From patchwork Fri Sep 2 21:57:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 12964727 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 3222BC6FA82 for ; Fri, 2 Sep 2022 21:58:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229579AbiIBV6a (ORCPT ); Fri, 2 Sep 2022 17:58:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231156AbiIBV6R (ORCPT ); Fri, 2 Sep 2022 17:58:17 -0400 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150043.outbound.protection.outlook.com [40.107.15.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4369FB0CF; Fri, 2 Sep 2022 14:57:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EeY/6bYQwFp4EAS0a44xfxE5nLcAKRdiK7hiXUIP7gtgG3V4NVqPzIdUhlA02XGESU8Xhh7f0hJB4Pmf8pVxCfoNH9fH2UYqQ5HzWpwZEa7y495SoatFlLHq0Is+cLyI6H4eZNIm5XVzvzQwzgyZQ4dLBc0pRUrpSPHOFT+jTro40WuEaJH67sKi9GfhhkKms5drko3UlFFfQdLpUjj/JKWNoT9grqUam3ccdMSZM6/DZLjFsOppDS6vZshZ/bdaP4mxUcJqb9DZ/qbYCDHM7o4EnnhJKuxot9Br/rOfJb+UKFQt5T8dpibMoLnd3tccQmt1xdarZ4MaTOFfzYb+4A== 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=PggrfboskKj9kTUDvcULHvNTFGvjPzad6JWuIZ+Bx7Q=; b=NI8GoYkdowCzZPOBIDnN+mT5/8GLLFGGBSIEVUSpYCxgAO73KyqJ+glPE9JP+gftMNYl0oUBUAVOPxFxSP4FK1X3IhOpmNYBw0w9zJdsLyQlqU0gjq1h3kjgLLoxnc3pimC0c5403NGMav4DVrKwM6eF033K1ynWzC9JC1a4pXF1ren+4P1hSrI28kbf4SVb3vwjmpufoeuib/packPDHGdDIYePqxJQCAYf3LjBERj3/3HfQ/GNs+isAjRuyqz7G1LwEO1uoNlyUhHvAxZUYwesz/Q1g9bEXHIL3RLXyau4atQh+TNiZYa9HtcxOZx8zUklGzjqqoiWEDlyBw09zQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=seco.com; dmarc=pass action=none header.from=seco.com; dkim=pass header.d=seco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seco.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PggrfboskKj9kTUDvcULHvNTFGvjPzad6JWuIZ+Bx7Q=; b=kN/kLpvfk7VxFquSwFMnsCmvpWgdVc3oONIoQWQufPEZllRdRaDh+7K+eqcqLOgxEWaX+gAsfPSaoA6VIleAhaOvFr60EIeCgkN/LzUhz6gr8mH5/tfUbDiCwhpBi8Y3MmQXVkV9MU2sRiSoWgasEWcT88fzUjKorkPnIQgzDlXZL/K39FVJstUOoK0GBWojM2VAcoMy4dKTCclmzTcOZ8URtV73VNjEBcW7r7wqEvTNnqvmY5cjF4nr7891P/+LhSrvnPRX46zP1+eDwCIaNOstYmb20rVhI+po60JAeUTFHcCzKNWhDf5CY4c9YHCWDFZCg7IhunXbM3kBKWEKRg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) by AM6PR03MB4085.eurprd03.prod.outlook.com (2603:10a6:20b:1b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.14; Fri, 2 Sep 2022 21:57:48 +0000 Received: from DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::ecaa:a5a9:f0d5:27a2]) by DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::ecaa:a5a9:f0d5:27a2%4]) with mapi id 15.20.5566.019; Fri, 2 Sep 2022 21:57:48 +0000 From: Sean Anderson To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org Cc: Camelia Groza , Madalin Bucur , linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Sean Anderson , Li Yang Subject: [PATCH net-next v5 00/14] net: dpaa: Cleanups in preparation for phylink conversion (part 2) Date: Fri, 2 Sep 2022 17:57:22 -0400 Message-Id: <20220902215737.981341-1-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty X-ClientProxiedBy: CH0PR03CA0315.namprd03.prod.outlook.com (2603:10b6:610:118::15) To DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a43a75d7-19e0-45fd-dcc1-08da8d2e2c33 X-MS-TrafficTypeDiagnostic: AM6PR03MB4085:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aaDJNF3XZjhn9tfgVBubXAtVv0sNrR6fC0mMOzn4eIyTybSS4dAZb5XJhiGU1zGSW4llOOpD+1ALBMr/MSTpRjyKNVvsiwrCqRTO9tl0US2UYobo1ti3nXDI2SI4b4Bm+lVoGCk6zhl5vZFCYjtNzZCpdAAyjCgHCojwOi5i59u+g5+f9+SkEoQawsT/ofkKvp/8HHRbAkKJLcU+0IeaW95HAjN4Z8jRn1oKD7J6hP4qCv6zi1BrbMPq7st8h5QdT2HIbFfdWZcf9mpx/ESeA34baQtIy6SAjsGpMB5rr/3Fz25vsLvW+XNijs5jreJx7JfA1gYZpdBLZdfasXYtyX8YpeR6z5KMbZ3yg2ScMh34VGeoHWm7tp+RG2bY36GmSqmhBKbTtKtRExAWvTQRT8i96Y/p5k/C5yWsVUEWfcSpLOTWUc0SiPTz1TaHySlHLNnuLoQYqrI6PWUAL2XQJgh+Rfpj9idfBZMM63F31Vi2JdPM5/unSzZmh5XvOMpFNiQ0t2nby3v3yOn76wL3e2U7fFkOhqqs5rAIpqt4Ypgp8o0+jV3ZTKvphTWPFRmFs1xULjRfPM+8m10aiKDNp+4C49sl/cR+kSMyJZub0eh8KH9Tq0ZsQIViE62CBAKY8V3q/G6xJQNaL+xIHlDBLwI9MCqzfjbzhuT6GrgNLGqQ1AwRRY5DVdFfGzT6c22VtyAeJiFD24JygfBWQet5TCDaI/sXk2Jc3zsyYxhwk3PnHu7gzBgdWxUfYuudqsRXqt6HNvbEgWc5zKiLninIF2bRAJYmLe1zFSLw7SycfqQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR03MB4972.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(39850400004)(136003)(346002)(376002)(396003)(366004)(6506007)(6512007)(26005)(2616005)(186003)(1076003)(7416002)(44832011)(52116002)(8936002)(5660300002)(86362001)(6486002)(966005)(41300700001)(6666004)(478600001)(83380400001)(36756003)(2906002)(4326008)(8676002)(110136005)(316002)(38350700002)(38100700002)(66476007)(54906003)(66946007)(66556008);D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iC3RRIPnL6pYwo6+Rh3I7kZ/WmO2KEBpqgsKH2TmvQniYEQ7GsOf+xKaEWQEZGXGTpFCffIX4cvS2sZn/FWT9lf/ZBQTyHiZByPx3qe5UOdzQ+3qcjladVVYM1zNySVhqHcMBcgH9/lniZokI4l30l/+EODP7JbHIM3POiwyn+rVjInKZM6oT2pEmYrBq68VXyVWM6cG5vZNynaB9sLzPvYTvDQ93LQTCCYfuT5IPjoDxiy7mKNcODzJvCTDXNLX3BIADqjQIZ4MH7isTeaK68D3pilNJcmMyUUyJgKKwdn4gL9JzKUak2yzw2yQ3eVPfGwaBL43hqNoEo3hdPG2T4/g0aGyFW7zdVy4c3HhqlbPvh0vKIOBpMpPV8fbNdWWpKEnJGZazsYcq5CACNmTerejs7Aw6g2Jfefh+b926O+rxMy5fVilYQRLRl7QAMukFpeZE5lFm/TAA5lmH6hpsqhFdMWqxp9XgGKBS7QwUjsiXDOyJF4+29pZPkuu4SHB5/NOI56MBYgczNpy04ldZ3UxpGUeImmDistH1qCpnJx3iugDSzw8N90SaDgXQtzEBNl1BX2XY4/fNoli+21jgWiyxRwRh+VEf2R4ilrgH/HxKQ== X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: a43a75d7-19e0-45fd-dcc1-08da8d2e2c33 X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4972.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2022 21:57:47.9392 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OkpRE0cTguKH7F1qM6LBW8UyhO/ZK9t71PmnrdCwfVGxJSgW7CE3k1o3bDjS3dFQVkPhVn7DVp5k6M5o6jgyGQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR03MB4085 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org This series contains several cleanup patches for dpaa/fman. While they are intended to prepare for a phylink conversion, they stand on their own. This series was originally submitted as part of [1]. [1] https://lore.kernel.org/netdev/20220715215954.1449214-1-sean.anderson@seco.com Changes in v5: - Reduce line length of tgec_config - Reduce line length of qman_update_cgr_safe - Rebase onto net-next/master Changes in v4: - weer -> were - tricy -> tricky - Use mac_dev for calling change_addr - qman_cgr_create -> qman_create_cgr Changes in v2: - Fix prototype for dtsec_initialization - Fix warning if sizeof(void *) != sizeof(resource_size_t) - Specify type of mac_dev for exception_cb - Add helper for sanity checking cgr ops - Add CGR update function - Adjust queue depth on rate change Sean Anderson (14): net: fman: Move initialization to mac-specific files net: fman: Mark mac methods static net: fman: Inline several functions into initialization net: fman: Remove internal_phy_node from params net: fman: Map the base address once net: fman: Pass params directly to mac init net: fman: Use mac_dev for some params net: fman: Specify type of mac_dev for exception_cb net: fman: Clean up error handling net: fman: Change return type of disable to void net: dpaa: Use mac_dev variable in dpaa_netdev_init soc: fsl: qbman: Add helper for sanity checking cgr ops soc: fsl: qbman: Add CGR update function net: dpaa: Adjust queue depth on rate change .../net/ethernet/freescale/dpaa/dpaa_eth.c | 52 ++- .../ethernet/freescale/dpaa/dpaa_eth_sysfs.c | 2 +- .../net/ethernet/freescale/fman/fman_dtsec.c | 188 +++++---- .../net/ethernet/freescale/fman/fman_dtsec.h | 27 +- .../net/ethernet/freescale/fman/fman_mac.h | 14 +- .../net/ethernet/freescale/fman/fman_memac.c | 199 ++++++--- .../net/ethernet/freescale/fman/fman_memac.h | 26 +- .../net/ethernet/freescale/fman/fman_tgec.c | 123 ++++-- .../net/ethernet/freescale/fman/fman_tgec.h | 23 +- drivers/net/ethernet/freescale/fman/mac.c | 378 ++---------------- drivers/net/ethernet/freescale/fman/mac.h | 10 +- drivers/soc/fsl/qbman/qman.c | 77 +++- include/soc/fsl/qman.h | 9 + 13 files changed, 511 insertions(+), 617 deletions(-)