Message ID | 20230817150644.3605105-7-vladimir.oltean@nxp.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 90AA7C3063E for <linux-phy@archiver.kernel.org>; Thu, 17 Aug 2023 15:22:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1C+d+3UWXsF+N1gslTjqtGkxRMs6HtKsRULoAG/3gkY=; b=sGk/9f2m2EuH/t qS4YFsiPsC2hl2DjnJesOFtvwx1QdvZL8Ds2rdFmceegAfi+LBm2ukpM6dduXuvO9dALhaLHBy46E 6Y+Dhh7rzpbIjROrbQF22b6ymD+tPQ0n9cIqQwN70Kh1T0wXJWlV4PhuP2K5vr10FOPFcxHRrPGDS 2CQ1E24sUyCeNUHhFRIwX9hl1gho+Xr3EkeZ/8iV0uwLsbNwtcypns3vqrW/yGSe0zH6JTW+fFKit nK9hELizBUycUwBH0hg0n4B29dN7b+7IOSAzckmetNc67NJq0aYXK9M1Mg5fPhdphLNQ/bWs8QFP1 iuIZ513Bc9NJ7ppgDweA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qWepG-006ftF-0X; Thu, 17 Aug 2023 15:22:18 +0000 Received: from mail-am6eur05on20606.outbound.protection.outlook.com ([2a01:111:f400:7e1b::606] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qWepD-006fsP-2P for linux-phy@lists.infradead.org; Thu, 17 Aug 2023 15:22:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mck5g8ceeEiKn77tM1Pkgx2Mq6wC8T1FeZgIKul8BmvSCYKDaOX+7Dt8fWhdQ29F/SUgwyl4rLIzzkFBCJO1IkqWYeKZUWKJv3qBEEE/qIedmY3zW3v1vzqHmhJ0VnhCD0TBYuz9RxIKGj3k5A4KbDl2PAG4xbmc/bHwQH4WJ7gli9oKkE6brpssbkG1nN4dnwPiisqbMca2PJleM++v1ssmecJc6JKr8WdNqYPwgDbisJxlU4s9mMRIoOtdfuaEhvRDF4gYj4tWgQ+5W5ReAK5WYvoc1JVgSWJFaX6fJLJF9RPQHb02n29kKfIZi+3yJXpsVKpL+WsQjW16CGsywg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=s8AkHZ8cYvnIpEOwkWEUYJkx8PnKV/JTVotjFoEl3Oc=; b=l8Ki+CEgeO+oH/yEuMK7spd3i8P+QFrmboRvqFz7Ogqe6dE9/DeKeInKYWLa2NS9ifjrlL0s195fnbI0BP8Zv5jyQZ4uyfpNSvS2K8GPgTS1NuChzCUALBP/AbqjkMK6KkuJxpo+dcCyOkKngKU5Xn9YVM0hFdGBFkGU8+QVN0sdqZ8bvMn9mtT8JpPc1QyhRCvY0KSVGOTyaMtS2+OJN4yhI9TD3Eddci2GMf75wL0lqHenxG7iu7jagTKy5lm7KXQI2cvWO42d+uAnZvaiDiPlwK4y+DHnxRYC0oOORoEH39IWlLg0pRSr7lU8k7HNLk2pS77SF0OKXyvj4nwpLQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=s8AkHZ8cYvnIpEOwkWEUYJkx8PnKV/JTVotjFoEl3Oc=; b=DL9qVRFvEgH4Zm6BRhLPEBx2VLSpdjtU4v4RFjZtlHiTNwEOEaSObv00Uq4mXPfUU2LuST6rncLj7yq9KQnY/n+j2//T4LUgv4qcBl3JMVNFq98+O+UbuRoQRpFa+FWXJXNmsN1ZumEbYQ94z/LOEhQJkuMScCZBEMdU2G+k3O8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) by PAXPR04MB9469.eurprd04.prod.outlook.com (2603:10a6:102:2b4::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.29; Thu, 17 Aug 2023 15:07:04 +0000 Received: from AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::d4ed:20a0:8c0a:d9cf]) by AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::d4ed:20a0:8c0a:d9cf%7]) with mapi id 15.20.6678.031; Thu, 17 Aug 2023 15:07:04 +0000 From: Vladimir Oltean <vladimir.oltean@nxp.com> To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Cc: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>, Heiner Kallweit <hkallweit1@gmail.com>, Andrew Lunn <andrew@lunn.ch>, Florian Fainelli <f.fainelli@gmail.com>, Madalin Bucur <madalin.bucur@nxp.com>, Ioana Ciornei <ioana.ciornei@nxp.com>, Camelia Groza <camelia.groza@nxp.com>, Li Yang <leoyang.li@nxp.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor@kernel.org>, Sean Anderson <sean.anderson@seco.com>, Maxime Chevallier <maxime.chevallier@bootlin.com>, Vinod Koul <vkoul@kernel.org>, Kishon Vijay Abraham I <kishon@kernel.org> Subject: [RFC PATCH net-next 6/8] net: phy: initialize phydev->master_slave_set to MASTER_SLAVE_CFG_UNKNOWN Date: Thu, 17 Aug 2023 18:06:42 +0300 Message-Id: <20230817150644.3605105-7-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230817150644.3605105-1-vladimir.oltean@nxp.com> References: <20230817150644.3605105-1-vladimir.oltean@nxp.com> X-ClientProxiedBy: AM0PR02CA0137.eurprd02.prod.outlook.com (2603:10a6:20b:28c::34) To AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB6452:EE_|PAXPR04MB9469:EE_ X-MS-Office365-Filtering-Correlation-Id: e7790dd4-1735-4a57-22e6-08db9f339dd0 X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Dr4hbIfWHVUTdmwSgDyxVy4YVZMqrHCmihXThARakQJqDDBa1Ah3yV37AoB904I6seF4WBPzHWt4kXTvpUGeyBCpu1xnUBJYbOYeuJ2CuO8Pa342mPLtCOdAICoD4iDESIbf1mNjbJQrEfn0cCw7Yb8x/CExIfrnPBkKFKh4MfhGwDybTggrITrX9o3e4mQlfTSZweBshhpQS9oJ1nSSHulfuXkDNOG3lun6no4buQ4nBm7IO7G/csQnnslkGgoh2Eu7lxFw+qNC57A/b2VOvQUBgOWXlGq/j1lMPtYXzMfJY9SihCs+NgWR6+18+cKasK/uSM3lOtuB0nCZAmnfasZSZtkDs5g6S6c0pwSRmdUT4r/6NTQ5L6v4j5mDcgn+kfPdALH42vF5fuur4csoO6FXe7SvdwK2v/D3ZJFVEVvXbYWdIYX1AcZWNPXj72m4LTapHj5tvGsL1co2KRTFgO4ISIGMpC0A6So2lrjWBBiZIOAiB9UX84ctN+8H9RXKiuw02LtMVNFhUGmZkLrlC/I2/zlTEYvss49gpvaG4CQNOUJJR7ogciaXuEF/MT1VhTsr5WAAeSi6F09DVW9fGvmqBc9/7WmU0lARH2/glWYbWnkPr4JTmgkK9W5R0QQC X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB6452.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(376002)(136003)(346002)(39860400002)(396003)(186009)(451199024)(1800799009)(2906002)(83380400001)(26005)(86362001)(7416002)(478600001)(6506007)(36756003)(6666004)(2616005)(1076003)(6486002)(6512007)(52116002)(44832011)(5660300002)(41300700001)(316002)(54906003)(66946007)(66476007)(66556008)(4326008)(8676002)(8936002)(38350700002)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5Rn9knMI1/Hy3NRw5xHXdkCGgsmbzG9nhSOQj8AoECZEyhKcb+vVrYb6qgg403xb58qbAVX8Z4zAfmC0to+EDjMIwT0eNiu7rq01Yj2h8d6iwsMrpw2qNne1h/pZi+DnHDs4NALEVaCkGNhzP/iGhuYhMYvCJ1qFFkrY8uTupJK18BwwVxwTBZGEBC5KcQQHiTpChdmkMO4zXNLqqP9V8VzSOb3NGCUH/bL7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gql0zmzYhhGxc2Y2SEBphva0S9jYRepPMXR0NlAEE3w8X0zg6Qk+ykm6g7GRFrnPh01XY5l3+8KBejUwmEtsmkp+3JOdfzUkAw8LezijKUrpd/fvoErRNb8deiMdwdaqh8Tx8urW6EHWLho1vFqoBLn4AVMVLGML1NwFQkhvkPse+SAQCg40YKLWkqCeux9oUlkA6xQA62jvCMe2/rj/zxqCVSR/fHJkyJ/IfoMq3wx6zSn7RmnruZKGom+HVjIkxzZ11fuonm5omybkfjlMTpE7ypCgUVULF34xQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e7790dd4-1735-4a57-22e6-08db9f339dd0 X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB6452.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Aug 2023 15:07:04.4620 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kqZYkxD31DRUu1S7Vnt5ymt8TZRRxfZo27r8xDHsNCzkaSRI/VHR4Ll6V4flTkqInzUGlR42Y10N32QP7qwwkQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9469 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230817_082215_784884_42170E58 X-CRM114-Status: GOOD ( 11.08 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list <linux-phy.lists.infradead.org> List-Unsubscribe: <https://lists.infradead.org/mailman/options/linux-phy>, <mailto:linux-phy-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-phy/> List-Post: <mailto:linux-phy@lists.infradead.org> List-Help: <mailto:linux-phy-request@lists.infradead.org?subject=help> List-Subscribe: <https://lists.infradead.org/mailman/listinfo/linux-phy>, <mailto:linux-phy-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" <linux-phy-bounces@lists.infradead.org> Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org |
Series |
Add C72/C73 copper backplane support for LX2160
|
expand
|
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index 9cb5aa04b2b5..e374d1a57030 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c @@ -3276,6 +3276,7 @@ static int phy_probe(struct device *dev) phydev->is_internal = true; phydev->suspended = true; + phydev->master_slave_set = MASTER_SLAVE_CFG_UNKNOWN; /* Deassert the reset signal */ phy_device_reset(phydev, 0);
It doesn't really make sense for phydev->master_slave_set (the user requested AN master/slave configuration) to take the value MASTER_SLAVE_CFG_UNSUPPORTED. That only exists, AFAICS, to detect implementations which don't report phydev->master_slave_get and phydev->master_slave_state. Permit the most trivial of drivers to exist, that where .config_aneg() accepts any user request, and is implemented as: /* We support anything */ phydev->master_slave_get = phydev->master_slave_set; This is currently rejected by ethnl_update_linkmodes() with the message "master/slave configuration not supported by device", precisely because lsettings->master_slave_cfg (which came from phydev->master_slave_get through phy_ethtool_ksettings_get()) is MASTER_SLAVE_CFG_UNSUPPORTED (coming from phydev->master_slave_get, see implementation above). By making phydev->master_slave_set never hold UNSUPPORTED, we avoid the above confusion (driver does implement master/slave but still gets detected as unsupported by core) without special casing in the driver. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> --- drivers/net/phy/phy_device.c | 1 + 1 file changed, 1 insertion(+)