From patchwork Thu May 30 16:33:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 13680582 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2075.outbound.protection.outlook.com [40.107.20.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7904B1CF94 for ; Thu, 30 May 2024 16:33:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.75 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717086833; cv=fail; b=Ffr7Kcdbfq+/q+blfDjAiZAr0ble2+g5dVJupK01Ub6UEGjlGuAbOE2sSwwMk/hj5vi4BnWBuEC8972Jcunglb0CWlWHp+WRNk8wDs72tt5kFTFrKc8y31w3OybAoXFLy7pVCmetZtPMfib5U3NdZHGa6F5M6kVrNxWreindc4c= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717086833; c=relaxed/simple; bh=o9kiuglD4JXg2EAkeedKMxlSfh/+4vWQm4rSPNytJW0=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=JVKf3Xv82cMmValVAEBUUHgZ/CpiDJ/pcCKyfhRgFIh25xtrMtfqEqwnV/6UrVF6L+nzYZQ8yF5cRzOi9h5TuDzVW4+BfWspPKBVpiR7IuWXXBcfLVh6C3+w2Mqa7H6CD1vioBwNgfy7gSg7bdyFqb8zaZDavgFxLWJ6LF+JIwg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=OK9kKfdz; arc=fail smtp.client-ip=40.107.20.75 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="OK9kKfdz" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k9nM5FP7Ol4sI0IObf5byyrg32WYOOZc1F322OnGvltv7KZeGVMkV3KLk3tGglX/6DRRBx+qhSodANgNXBDX12f5bYoN8kUtBeCg4Tl9KPm0W2ARXODcbK8TFjZFPLKxV7Ah21CYR2qLs03PYRBxcfjflvqJV16vLZBbFXtvhFB6mU984lyXuusXhuIWd5FvfUyytMdG5CqzPm/TA6T+l1wnYTVA1TB6YJ33zN6KPjHbDSy6XZfEZQiK7dnHM19aIM4mdmWrKaZm8ctJfig/JuIGOtfi4Ef/vmp0Ag9lj87THYgOQh9xetezhy3zcoFBNG8XQUK/fuMHqWPqPvpsLw== 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=VcR8Od9KU6n0TL2vRdv02YeUmK50BG8IT5HM7ia4iyI=; b=N3f5oDfwW/tNqFyVVHmBWa1gGyIsLlaXctd7bepPT5ckvH2iuV7XIVEmi4d1Kx76S5FIbXz0CB9BKaGqKw+SwGQwBZNXTNpgaYQhV79Yfr7Ad4+A/GOSYvSrjCEQuaPqaHeS30WuQtRcyFJsBu3iVnODR3jlO+kRasMxFlFIzRqPRVJfIwXKgICm+15fnrjjCBmaNskiDe3XgWs56hUfzcDc0bGtZWf1iJ6h+3zPckKXJS6sYGEhOZFJd2zGYCA1k4hQvozaZWyT7lshSIR7lL6QlgcBT6MuTZfxw82vz0MW+VcUjgpihrjDd6SrQnmC5CMIOJkP2+625LU7jFcedg== 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=VcR8Od9KU6n0TL2vRdv02YeUmK50BG8IT5HM7ia4iyI=; b=OK9kKfdznLzQ6VTVRcgltyH4AyL+ajcpTKnPqZRGBhebw1o0lb3341KYLa12hPmNW3ZwSEljcWFLSySFAFEjbh5Omf5i3j2FojLGGCTSMfhwrHatEKjZNG/lRNmebtsOhKhxyy3GBXLwTQv26FhgIfKW2D2g5afG1sFUH9bQjb8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB7PR04MB4555.eurprd04.prod.outlook.com (2603:10a6:5:33::26) by DU0PR04MB9585.eurprd04.prod.outlook.com (2603:10a6:10:316::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Thu, 30 May 2024 16:33:49 +0000 Received: from DB7PR04MB4555.eurprd04.prod.outlook.com ([fe80::86ff:def:c14a:a72a]) by DB7PR04MB4555.eurprd04.prod.outlook.com ([fe80::86ff:def:c14a:a72a%7]) with mapi id 15.20.7611.030; Thu, 30 May 2024 16:33:49 +0000 From: Vladimir Oltean To: netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Andrew Lunn , Florian Fainelli , Colin Foster , Russell King Subject: [PATCH net-next 0/8] Probing cleanup for the Felix DSA driver Date: Thu, 30 May 2024 19:33:25 +0300 Message-Id: <20240530163333.2458884-1-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: VI1PR0102CA0007.eurprd01.prod.exchangelabs.com (2603:10a6:802::20) To DB7PR04MB4555.eurprd04.prod.outlook.com (2603:10a6:5:33::26) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB4555:EE_|DU0PR04MB9585:EE_ X-MS-Office365-Filtering-Correlation-Id: 2da8d551-af53-4e95-6733-08dc80c64877 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|52116005|1800799015|7416005|366007|38350700005; X-Microsoft-Antispam-Message-Info: tHtwo1Ut0bzoVPu31dWxH3DsLfSG4qNM54utXxmmvXGJ7jIBocrrZRAooV+YFAzLn7H/KNqFesrgscehcXqwoJzRIWmyOzG9jJ5iWGOWuCoO2bj0yy+snBl5TKgBA/9nruqRPF3VuxaZ5LUf8Ve6lvorYRBgqeHnHKIGHzDL1HSsZQ5wDzFXXFqQNUTvZ5IjUSedMjpZuCuxs+xH6WADU8po1y9RpBGo5PnLOwsRIwPdxxWwaXT6GfpBhEFJElQSCsBWR0nATZqgA86jl6XADh7UXJKylTehrLoTMMSWimE6nZcW7zs4en3lSRxsXNyJ0/jW677tWDwnE0tGycXlcHc7Unp6Dfm6DyMxT6pwKCP3Xghsn2MwxQE7wNlj3bwv8hwDWzh1LFLCSPqAGVUvF9/EDzL3EKrPNPniwGvOWH4+zA0+t60vCSCAegsDMrGtUmnbXNuHjetcepFl/32mnUfjunSZ8v84BHE6APDySleHXwNfwnjDQjLWxpV1mdcyJqoxCFzT/iurMylfUntBAORT7MIz/v/XNbNwmB45GkjnsO2qD/coVBJQe4qRD6zPd9rg0sbHvBQFlVm5PxdiJ2SDltb7vJyL8/kzULgMEqt7Yy1BILChv3ksEsVlGWpHuMdH4V3fLRnV5V+IxAU7IA/MzZ9SGLMafCfMt1GnmZch1YTSLGag2frjQkACE79SfwignYQS0zrCR39apo88rKYkDeQntQy0b/VVtxRBVDA3mYG0uzer6QyYwSFQTWkiJtpwf5CE9yo7ZuEMic9ZBbRRhUJ+Q4+YbcROY62144HKDh0RJifJPL9znHPPWuZY37PEXDNqPsYKuHVYEWYO/twFj/h7Cb5fIM5srmUzB1GwySM6fP6PQ7eapTAO9rX2d4qXcoFzFFBJJOBmHHXh00+9AuLE4SXNoT33VTNuss9xEFkIuE5othN7zs2vjeVvLwqCSCfjbucmPAy1Lw/TUwO580EAZRvX+3VIpbix7xEZo3GGg9L50NqdLEEMUYeeUNao/J/x7KuSmimLuVRJ1c9iPSdU88WN+y9JOnEcdebGlGBYkfbc9MJb+tIzTcOAUK82gzQB8hzX0zHteek/3sj/HRTzcFtQhHwigP3aJRVvO5EE0H16QA3gr4b/50JGeFetvjHQ0hhbfMBihhmzieD9oDUsC0itq4IFwHA1ZbJTqUGhrsb/kl7jLnAHwfgSYM5cySXqAcJJluuV+uG7bz3rNdUv8JGLN08ED908bdyaRPLGCRth3BHkUioxQLsQIRxKM2dlMsiTs5plnBssmA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR04MB4555.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(52116005)(1800799015)(7416005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: X+/EEta/NtD02kqF0MI2riUaZLJYUWwcSj0fvt64fGlPxwv6tBgdl7g+jmPHJHy/0lW7Khm6Q6KJFfPzUlRLSr20nUpYU2nzGngx10dYENg2AK2RRLXwgl5LMKej3zG38nmh7jmX8cfKdNduTxDr+HQ+O0ZVGG5dVs1r/L5Cl5C+4GrarA5/LRlU9LgIiCNcCUvbhoyHZo//khcN44ZiO6m1uxV0GrSwzJa+U1V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5OAqZVvgl6LSkVUn2xEfWPvXDB8ZBMMAauQ51iTG3pyqyK10Eqm8nciqloiH+XZnnpElOgm08/pYadShONeq8ZQAHcGrYdFDetnGSu+1gr0rSY+LVUB3ADcuwEt90aIpUPIgkIHJrUikyv+TXqaq2M+j64rN5nQ0UDu4uZfjU1l40eqJwQC8C/A9mLn/wY1GDA3eAtjku7plqK1vWvOWXXBPvJk739TLbrYWpwHafI1Co1ulamAPLLnYU0C9mkLv3+i+hc8RDyPgYOHBp1TWYmw4n+HAxvGRKBte2scGBrTRHr6zAitUhej/k6hg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2da8d551-af53-4e95-6733-08dc80c64877 X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB4555.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2024 16:33:48.9574 (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: ckVnwZIAte2O5+LKy3twCXjQL4eS9L2cN07+zsguT+jlu/MLi/3ccjZy9DzDcatvtEANzIPKq35rQkfe9qVmVw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9585 X-Patchwork-Delegate: kuba@kernel.org This is a follow-up to Russell King's request for code consolidation among felix_vsc9959, seville_vsc9953 and ocelot_ext, stated here: https://lore.kernel.org/all/Zh1GvcOTXqb7CpQt@shell.armlinux.org.uk/ Details are in individual patches. Testing was done on NXP LS1028A (felix_vsc9959). Vladimir Oltean (8): net: dsa: ocelot: use devres in ocelot_ext_probe() net: dsa: ocelot: use devres in seville_probe() net: dsa: ocelot: delete open coded status = "disabled" parsing net: dsa: ocelot: consistently use devres in felix_pci_probe() net: dsa: ocelot: move devm_request_threaded_irq() to felix_setup() net: dsa: ocelot: use ds->num_tx_queues = OCELOT_NUM_TC for all models net: dsa: ocelot: common probing code net: dsa: ocelot: unexport felix_phylink_mac_ops and felix_switch_ops drivers/net/dsa/ocelot/felix.c | 62 ++++++++++++- drivers/net/dsa/ocelot/felix.h | 10 +- drivers/net/dsa/ocelot/felix_vsc9959.c | 113 +++++++---------------- drivers/net/dsa/ocelot/ocelot_ext.c | 55 +---------- drivers/net/dsa/ocelot/seville_vsc9953.c | 61 ++---------- 5 files changed, 106 insertions(+), 195 deletions(-)