Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 581C9C4332F for ; Fri, 19 Nov 2021 21:39:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235722AbhKSVmi (ORCPT ); Fri, 19 Nov 2021 16:42:38 -0500 Received: from mail-sn1anam02on2114.outbound.protection.outlook.com ([40.107.96.114]:1767 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235650AbhKSVme (ORCPT ); Fri, 19 Nov 2021 16:42:34 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lgXs/DCxM2QY+Y7PWT3Pgkc1Av1L+7zDA6YSXzuDfXqQT/7FHXf0+NDr8Ks717hJR5BVm8aUs5COai7pMQK1CE4VIhOPnClm3JNiuxeo35mZ8NfXrwj8GtN/ODdU1vhtme+CgGTOhFyrXVhlq24wlBzV8WPpeuZL6lVkWDerri/0QfOfP38VdSDopwslK8NdxdO6T4yXQiuK11sNqUTGv14aOQLI6ki7LgJF6zavUs73z68SnZamXfQkc14pfQy8Yidbop/GhpBAAOca3gUfTnxyzk1a6MkpYngdPjOKqRnbenH6ieZgCNE4Mgd92mZYVxnb3Jhso5sDJ3C9ndB75A== 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=teWH3hIwMFBYnGApZq4W5Op1sj66sQ6tWyuyTDdfIM4=; b=lGvy60gUz8GrqtcqebFIzXubKLmEo6TKhY5aG8t/Daih0vGLKtTksv38DElzTqTqKuN5lY9Pcs5aXeLaJBh3roorFTudnh6lj4KzfcNvB6NeFW87JgV0D70XDIdNVow/fs98/KZ/cfcl1KVbJ/QE4MNwsom53Jiq8Xkanl9blDl97iji7Xwkz86O2mlabRDfYeT6vKMK0nBII5QgOECHzCEyp2nP3Gu9TvKrLfAEy+Qug3UWkDHJlXiVRsLayyjMrIhQBSARxWyWKEYpD1zBphTBD1KO1Q0HwyugDsZHnFBjGTldYavff2IwJvFlRGQx+yOp7y6SaVqhioWRjmr94A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=teWH3hIwMFBYnGApZq4W5Op1sj66sQ6tWyuyTDdfIM4=; b=n+NZEK/6Gd6bO7+bTyxZJxNVXASCvP2JoS4Nfhvn+bjdVzppdpeBC/BELa7aKJ9PbylBQcCv1QQiKyoEnmhDgz3iUVAUqH5VvP+Id/FcU6dAwWY346Zkows+UW5Q/rJoluJepB/lkm5naxZYODa3J7RWkAdBsUDQdiUybJQNyUg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by MWHPR1001MB2304.namprd10.prod.outlook.com (2603:10b6:301:2e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.21; Fri, 19 Nov 2021 21:39:29 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::6430:b20:8805:cd9f]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::6430:b20:8805:cd9f%5]) with mapi id 15.20.4713.019; Fri, 19 Nov 2021 21:39:29 +0000 From: Colin Foster To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Vladimir Oltean , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Jakub Kicinski , Heiner Kallweit , Russell King Subject: [PATCH v1 net-next 2/3] net: dsa: ocelot: seville: utilize of_mdiobus_register Date: Fri, 19 Nov 2021 13:39:17 -0800 Message-Id: <20211119213918.2707530-3-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211119213918.2707530-1-colin.foster@in-advantage.com> References: <20211119213918.2707530-1-colin.foster@in-advantage.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MW4PR04CA0376.namprd04.prod.outlook.com (2603:10b6:303:81::21) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 Received: from localhost.localdomain (67.185.175.147) by MW4PR04CA0376.namprd04.prod.outlook.com (2603:10b6:303:81::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.19 via Frontend Transport; Fri, 19 Nov 2021 21:39:28 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4287fc28-1c16-4125-b7c1-08d9aba51107 X-MS-TrafficTypeDiagnostic: MWHPR1001MB2304: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: E6Qkmb1N8+LyFWyF9F9mA13u228yzaT8JzIPu3i36r8AQxlnU3Sm5Hqdu4q9Ew/cPpdeKFPhoj/wPWcO8VF8pyeZqZk2CHbZfNvRIuyq19ByXwu/iejB6uNFA1sOr3XNG4wxwMZWWwM1qakrw+htwERrT4rukPxyjzIPAH5V2Kl1bqUt4lIhz4PagnKu4eVVvs8yhc1vVi1I/WWuBn+wD6EqXyylOPZ32zCTBaFfSKfko9Uplu3iyKB1ZOIYHo9fH+5xHBnPCuRYiQK4nMwcl2U1IV6pm6gP6oAg89+fDfolg1t56v7fD/LqKaEfThzVD8J+bfxwcFzIgFKHSATwxZ3O9iuxRd+LVsAOC3vrGtqgNSKjadMBIWDLv2nOVFRS3iBCMXWwLYIjdd+VVzEQZIU85hbsIXWjGpFnoerQdM1L9AwaycdFO/aZI3T70DiZGxjgQDYCqrXjDIbM2653nXHO5/PLZGR1GI9gfChvM5hFbNTmk8vd8SjuJZlunUy0a86JIAAV0sR5j6VP0Xi98wnwWUIH0do7YWLPsiTVQDFe3e+QM3zzHvTGesEQxLFRYSwYLeAx4BARScM0we8LKauHvEpxR6l3oqR2mygb2Z3XE/5cHuHDODVEiwwc2w4eBaDT/xG2i8jPCLgTctw8TzEfuYqptqPPW25EtbJ7UrwRXpXKWD+holvdJa9eTWuJLsvdAYRneqcW1ZDBno0uAQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(39840400004)(396003)(366004)(346002)(136003)(376002)(6486002)(186003)(2616005)(956004)(26005)(38100700002)(7416002)(8676002)(6512007)(83380400001)(38350700002)(8936002)(54906003)(4326008)(6666004)(1076003)(6506007)(66946007)(66556008)(66476007)(5660300002)(2906002)(36756003)(316002)(508600001)(86362001)(52116002)(44832011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?cIzyyy7aPNsbzh46dAztIQM3mq7l1+FfKb/alXy/FxG528J/15QduXzXJyDe?= =?us-ascii?Q?8Apgp8bG9fsi51UfMnRRt/LdcdcOhXTTqbt8v+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VuWyPzpYE7oJOaNbfTjOg1MgX4jTO7iKePEKZCKbW7stcaA4U3RZV0Y?= =?us-ascii?Q?uFIzeb7eYdIBfIoDyjy8/gWuds9r+cW7R+qiMUoMxRsUKmYbMZ3USJ6Vh7pO?= =?us-ascii?Q?L96myoV/+nmG0yETPxnwrRJ/sPWBM5GzdOTkHwMr1R3AC3Zw4MZ7Y79hcK7J?= =?us-ascii?Q?jp547uOw+KLvSe1vzFXE8VF8G8JLH2bljwOL752xV4KIOQMAEIfYXJil6MGn?= =?us-ascii?Q?YbR+dx/ufk5pJoHhmPnbK1XT47GvilTGyknSlgdhjQI8/mYyHWdY6QbeiX36?= =?us-ascii?Q?L4I4G6alHDlLwJ40FXf5qIqAvFnZDU58Z80KJxhdZyW9kXdEJSKouThb9wLm?= =?us-ascii?Q?Z+rlhuml6tT+nntaslgqBCIn3XLdiZ5GdAN4fnQS4vCzbxmKTX4+/zcy4Wtl?= =?us-ascii?Q?AU+Y5PKtzQuGrlUCm8gJWIVJ+gusP4mxRyg4ht4k0vnpM34u2sWbJH+6bwVh?= =?us-ascii?Q?8jf2dpz3GmT6GDyMEz0vufuzPqWNbKOrcdsxCwrAZiuz0XBcRU+WjVLmq1Oj?= =?us-ascii?Q?wAB7+s71MjMbWevchNA1ytw2WvGHHQIZpKguHJ6IGCXA+QzkdtqgsdMVu4Zp?= =?us-ascii?Q?x4qTCO5QMoHOjBsFWew2U+CcQzyuIOmnazwQJ/6ba07pooRUgcIQXbXPFDAZ?= =?us-ascii?Q?iBO7wMKILFvvq6Hb8THAoK/QeyMWTmX/mD/nCU3e+/agBsjqN7dfwhxar42G?= =?us-ascii?Q?Cb5Mnw=3D=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4287fc28-1c16-4125-b7c1-08d9aba51107 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Nov 2021 21:39:29.4786 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: atwotOl+AoE5NmgwAeyZLocZa++k2ujQ6XEybT2i9NYbSRmnk3fjqcH5phltBh4Z2t0AvBnDqyNsnIJdPhMcgyZRD6Ww53gVxciTgUMacns= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1001MB2304 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Switch seville to use of_mdiobus_register(bus, NULL) instead of just mdiobus_register. This code is about to be pulled into a separate module that can optionally define ports by the device_node. Signed-off-by: Colin Foster Reviewed-by: Florian Fainelli Reviewed-by: Vladimir Oltean --- drivers/net/dsa/ocelot/seville_vsc9953.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/dsa/ocelot/seville_vsc9953.c b/drivers/net/dsa/ocelot/seville_vsc9953.c index 899b98193b4a..db124922c374 100644 --- a/drivers/net/dsa/ocelot/seville_vsc9953.c +++ b/drivers/net/dsa/ocelot/seville_vsc9953.c @@ -10,6 +10,7 @@ #include #include #include +#include #include "felix.h" #define MSCC_MIIM_CMD_OPR_WRITE BIT(1) @@ -1112,7 +1113,7 @@ static int vsc9953_mdio_bus_alloc(struct ocelot *ocelot) snprintf(bus->id, MII_BUS_ID_SIZE, "%s-imdio", dev_name(dev)); /* Needed in order to initialize the bus mutex lock */ - rc = mdiobus_register(bus); + rc = of_mdiobus_register(bus, NULL); if (rc < 0) { dev_err(dev, "failed to register MDIO bus\n"); return rc; -- 2.25.1