Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp365202rdb; Thu, 30 Nov 2023 06:59:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYZCx5C0t+Nx3XQiRC4Iix01FN0e5ZKIwXtY2pBePOq64XUH7LtKUYrPtS+9Grl5aFSb+3 X-Received: by 2002:a17:90a:e7cf:b0:280:cc2b:d5be with SMTP id kb15-20020a17090ae7cf00b00280cc2bd5bemr20885573pjb.15.1701356346174; Thu, 30 Nov 2023 06:59:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701356346; cv=none; d=google.com; s=arc-20160816; b=w9+xArbDlUhGUV5NhIV8MGC72PlkpL+P7CAEK8GIQy9C2sDmE8mKyKKrrN3om8SP5W w1H//2qBiai4htmq1V+PKqS7u+N8fe/vSyBPV1OouYWwRymyBJu3jl5gxfOWxmS3M/uf nSmw/gAtw6bTCDjTD+AARwWZOOa2U4hJu3IZMZDlCprLp5n5kr1pRXFBkqfDbtnNTJBw 3M5NqttODGxtUUSmXFDLwV+c7HQ7Xh7Q6Aq7FDLsr/x5u5ADM3KphYWuNj65oodEbIxV rUClMqTYyDeN5AJ2yIq7b0dyGqWGw2goxveF2p4sdoprqDMxP4h5MEESu1j8SqEdJBlb W69A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DupwdXKpFNNO1IYb/Kwpndtw685CzVAkyF0rfB3hn3A=; fh=plG+UOTDgiXW4347QLSMGIFwEdGEv3gFyVPMnT9Yfog=; b=tF1H3lQZznNoI+cirU6Zv/tXqxfMKsa55UeVQFTzVi761wG1MnINzPSlZR12s0tR3R +/aXP6YNNxsvHyDF93tq8BdNWFjaB0LVbJr402O+cQ0eyGMmf1O2Cqqqp9vWCQlorzaQ SSR3RvKLDgD59JMXPODDojcV+FFgtD/Qewe67WUOHr9J/8axx+Cduic/2XZgw3QJ2NzS wq13Qqi6vlIjfks/LoZD6t4jAFV4MZutUXGzLIiJMOg9X2RVjqTrhndRI22IrXpkr2zn GUhI+Kwfa6sDfM1p4ZhvAsXoc4aiXxVa6b7uMa4fVmmg5TYDOSSn4+5r/AXj6RJ67LGm R9Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=InpbtX+T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id x11-20020a17090ab00b00b0026305080a6fsi1476120pjq.63.2023.11.30.06.59.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 06:59:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=InpbtX+T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 8E40883F02A4; Thu, 30 Nov 2023 06:59:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346205AbjK3O6q (ORCPT + 99 others); Thu, 30 Nov 2023 09:58:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346244AbjK3O6j (ORCPT ); Thu, 30 Nov 2023 09:58:39 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A516A10F3; Thu, 30 Nov 2023 06:58:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=DupwdXKpFNNO1IYb/Kwpndtw685CzVAkyF0rfB3hn3A=; b=InpbtX+Tz/Pi2xwtXz/ZuWpvAT xKjQzZX7NFyTyTbAbaQ5vCZlpqPFxCvTaNsGGRPFREwiQ5tmYX32QDt+Elv+YAHfdutK4vugv251Q y0hRrc7O8c+36z2CDNZIn9ZWBnHWfqnUO57z4//fcTH7UJXjk+ZCvRlcUUS0O4zNlP2s=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r8iUu-001ft8-Fz; Thu, 30 Nov 2023 15:58:36 +0100 Date: Thu, 30 Nov 2023 15:58:36 +0100 From: Andrew Lunn To: Christian Marangi Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [net-next PATCH 02/14] net: phy: at803x: move disable WOL for 8031 from probe to config Message-ID: References: <20231129021219.20914-1-ansuelsmth@gmail.com> <20231129021219.20914-3-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231129021219.20914-3-ansuelsmth@gmail.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 30 Nov 2023 06:59:01 -0800 (PST) > if (phydev->drv->phy_id == ATH8031_PHY_ID) { > + /* Disable WoL in 1588 register which is enabled > + * by default > + */ > + ret = phy_modify_mmd(phydev, MDIO_MMD_PCS, > + AT803X_PHY_MMD3_WOL_CTRL, > + AT803X_WOL_EN, 0); > + if (ret) > + return ret; > + Maybe it comes later in the patch series, but i would actually add a at8031_probe() which calls the common at803x_probe() and then does this WoL stuff. I don't see any reason to have just one probe, with if (phydev->drv->phy_id == ATH8031_PHY_ID) { in it. Andrew