Received: by 2002:a05:7412:3210:b0:e2:908c:2ebd with SMTP id eu16csp247629rdb; Thu, 31 Aug 2023 08:19:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFeR7YW4tr8Vlpfeau5j4Kr6N39oibTzTpBKNIXsgBx2PxMhzJ8/mu9PHFJPbRjGvwsye9L X-Received: by 2002:a17:906:208:b0:9a4:dd49:da3e with SMTP id 8-20020a170906020800b009a4dd49da3emr4308846ejd.68.1693495196165; Thu, 31 Aug 2023 08:19:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693495196; cv=none; d=google.com; s=arc-20160816; b=vbA3Go6w+BvmWApeo2uSHONp5JhCxJtIqgbhsrjw14Y9Cyb6M/TfFsCnoV1UJkMLji 8tEjMVR29QS9WF5LE4EngGd+08CQt8Ij5jZPkkfPGxPtIQkvf3m9pjeF+LE/OpyRSnOE Kb8FOy3oeRkgujsDtRLZnb8ZR6oDPYjTl7De2dmwcH6/BF25Ys8O1SWjQBVzB8M6haC1 SXg8RtdcZSXqpaX9ltaMcquPj8KO236NSWGpSvU0sEibtHe0RRNNMLNYg+X4cQ503Xky SkXL0Egm3enwmfukLiBN9DZmmYsUO+Q40M6ftZriAzTRs1hGrV61PLc7Kr5Tlk38Fzah B3jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=hoLo2TaKd6h9mrA5ofK8Akgf1DhSo9SxwWKbapRypDs=; fh=GJqii0PrCYNzoogUcQPh1GskEt8H73q00qwuOqujPKw=; b=ZeW/1LCLCHAHlUARf2eQXuHo50449oJZ2ZnFoEukjnImsK8uVsX1vHEqL31wpjtOkJ XCev3KQwuiVFWSio/KOCN7mIeiXlvjYHqF6WcpwjUW1xEzi6Q4oE6P+dn9tJzEZpE/1D VypJu/SDrhjJMI9WAth4ahpWjThDeaQezygUHjHsQn6pllT8YazL0JdDwF3QwhcZ11B0 h8jcW7zzNS7VoY0xjDPgENrWjyvUfI3wbUTfdTrah0LdDKFHuH3T+tArWjZb9CDXCeL8 3RaLT/m47BhDmAXS1cULa0Sui5IBSKEzcBmvflBPpufikNicJI/Af6ECXMKb2KoN7ges Ckeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs10-20020a170906f18a00b0098dafe075ccsi1083546ejb.97.2023.08.31.08.19.27; Thu, 31 Aug 2023 08:19:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240362AbjHaLXy (ORCPT + 99 others); Thu, 31 Aug 2023 07:23:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230223AbjHaLXw (ORCPT ); Thu, 31 Aug 2023 07:23:52 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09B6CCE4 for ; Thu, 31 Aug 2023 04:23:50 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qbfm3-0000KS-J6; Thu, 31 Aug 2023 13:23:43 +0200 Received: from ore by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1qbfm2-0000FF-LD; Thu, 31 Aug 2023 13:23:42 +0200 Date: Thu, 31 Aug 2023 13:23:42 +0200 From: Oleksij Rempel To: "Russell King (Oracle)" Cc: Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Lukasz Majewski Subject: Re: [PATCH net v1] net: phy: micrel: Correct bit assignment for MICREL_KSZ8_P1_ERRATA flag Message-ID: <20230831112342.GD17603@pengutronix.de> References: <20230831110427.3551432-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 31, 2023 at 12:20:17PM +0100, Russell King (Oracle) wrote: > On Thu, Aug 31, 2023 at 01:04:27PM +0200, Oleksij Rempel wrote: > > The previous assignment of the phy_device quirk for the > > MICREL_KSZ8_P1_ERRATA flag was incorrect, working only due to > > coincidental conditions. Specifically: > > > > - The flag MICREL_KSZ8_P1_ERRATA, intended for KSZ88xx switches, was > > mistakenly overlapping with the MICREL_PHY_FXEN and > > MICREL_PHY_50MHZ_CLK flags. > > - MICREL_PHY_FXEN is used by the KSZ8041 PHY, and its related code path > > wasn't executed for KSZ88xx PHYs and other way around. > > - Additionally, the code path associated with the MICREL_PHY_50MHZ_CLK > > flag wasn't executed for KSZ88xx either. > > > > Fixes: 49011e0c1555d ("net: phy: micrel: ksz886x/ksz8081: add cabletest support") > > Signed-off-by: Oleksij Rempel > > --- > > include/linux/micrel_phy.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/include/linux/micrel_phy.h b/include/linux/micrel_phy.h > > index 8bef1ab62bba3..0cedbeb9167c3 100644 > > --- a/include/linux/micrel_phy.h > > +++ b/include/linux/micrel_phy.h > > @@ -43,7 +43,7 @@ > > /* struct phy_device dev_flags definitions */ > > #define MICREL_PHY_50MHZ_CLK 0x00000001 > > #define MICREL_PHY_FXEN 0x00000002 > > -#define MICREL_KSZ8_P1_ERRATA 0x00000003 > > +#define MICREL_KSZ8_P1_ERRATA BIT(3) > > Please can you also convert the other two flags to use BIT() as well to > make the entire thing explicitly bit-orientated? Thanks. Ack. This patch is for the net. The cleanup will got to the net-next. Except clean up will be accepted for the net too? Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |