Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp784803rdg; Wed, 11 Oct 2023 05:39:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEgO7M2HtDdyfWBndR5hugFkeW4RcEIfoWIevNb6x5VzlSLkziY7320SPeY2FFOBesXGnLH X-Received: by 2002:a05:6358:4311:b0:13c:fd78:bb43 with SMTP id r17-20020a056358431100b0013cfd78bb43mr20742526rwc.27.1697027964722; Wed, 11 Oct 2023 05:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697027964; cv=none; d=google.com; s=arc-20160816; b=YO6diSQqOlKPSUnS/VSvxpG8rL8i+qLmbmKHtQ53DnF0ji7jseehvI2+Ez5Du/B/6/ APU8oN9IMD9tt9zP5tnJCyY9dgNFqBDe1JfIkl91oocfLp3nxBBrJQys8EZl3ybvpMU7 6C0TeqAlFtpAfdhXcLYCUlpuZcOt/Fwsq7qWDmDKuWluo7Ix59VWjCZ1G6dSgIXkMxk1 kXmknAIz5VHqtsHPNHgRl4xrhzZXH3MG1iRnPBcrP0nP88dMKl9wlH+ZibRUB5EYacKs usf8fdjOG7Y2qWAFxfwNGmhhSRwPaikYkfnGFWLzROUsqmoudagq6O1128eHVFnHOBBT MImA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=AJ014EwSTfbgy2TWMzgbdlD3STyGBX0T2t13tK2rALI=; fh=j9s5hIO3Bp22eL5GiD7sdOL2eTdxGeOXyUDoEydDNo0=; b=c9VdyI5s9jCyfuXVG6tC2BNwZVibyR/wzfd9asCJn/hxVGcQ22sCGEtzECb50sXAL4 Sg1BaJOwln2CnUpy6qiKAA9wdQisaUlKiMWrWbbQUnZRMVQRy8a1XU9fDhwz93p52R2V gW4AyAtIhhW2uWPoaKmCHp4FhxL7+Xy5WIfNZ6EH/rSoFgv39cAWMgWsOUgK5w8PPcgR 3NIbErGsccfKwP65bG60uJ8ptxkN7vVYnrxCUuH35YJCPBVsCVDBc/UVhCJyG+hFca9o UatLCVrafiwbsBjb29ejTGxAEGNmxYzU23u7KP3ZzINKZnv+xrsi4kAu5cdpBni/gGP6 doAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id p12-20020a056a000a0c00b006933caa6f03si12448562pfh.165.2023.10.11.05.39.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:39:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9BDB281CC841; Wed, 11 Oct 2023 05:39:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346408AbjJKMjS (ORCPT + 99 others); Wed, 11 Oct 2023 08:39:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234885AbjJKMjR (ORCPT ); Wed, 11 Oct 2023 08:39:17 -0400 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FC0DA4 for ; Wed, 11 Oct 2023 05:39:15 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qqYUN-0006sa-DI; Wed, 11 Oct 2023 14:38:59 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qqYUM-000uOA-6s; Wed, 11 Oct 2023 14:38:58 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1qqYUM-0063TX-0S; Wed, 11 Oct 2023 14:38:58 +0200 From: Oleksij Rempel To: Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, Russell King , netdev@vger.kernel.org Subject: [PATCH net-next v1 1/3] net: phy: micrel: Extend KSZ886X PHY Special Ctrl/Status Reg definitions Date: Wed, 11 Oct 2023 14:38:54 +0200 Message-Id: <20231011123856.1443308-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 11 Oct 2023 05:39:23 -0700 (PDT) Extend 'micrel_phy.h' with additional definitions for KSZ886X PHY Special Control/Status Register (Reg 31), for upcoming usage in subsequent patches. Signed-off-by: Oleksij Rempel --- include/linux/micrel_phy.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/micrel_phy.h b/include/linux/micrel_phy.h index 4e27ca7c49de..591bf5b5e8dc 100644 --- a/include/linux/micrel_phy.h +++ b/include/linux/micrel_phy.h @@ -64,6 +64,10 @@ #define KSZ886X_BMCR_DISABLE_TRANSMIT BIT(1) #define KSZ886X_BMCR_DISABLE_LED BIT(0) +/* PHY Special Control/Status Register (Reg 31) */ #define KSZ886X_CTRL_MDIX_STAT BIT(4) +#define KSZ886X_CTRL_FORCE_LINK BIT(3) +#define KSZ886X_CTRL_PWRSAVE BIT(2) +#define KSZ886X_CTRL_REMOTE_LOOPBACK BIT(1) #endif /* _MICREL_PHY_H */ -- 2.39.2