Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp98902rwn; Fri, 16 Sep 2022 16:11:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4FSd1qYwT5zw0Bw9VqE3UEvYt+xmvskWMNUtcB8Uv/4SNgwUqMMNFlxUB2LnqwlIlsA7fa X-Received: by 2002:a17:903:2441:b0:178:4f51:1f78 with SMTP id l1-20020a170903244100b001784f511f78mr2043022pls.82.1663369905791; Fri, 16 Sep 2022 16:11:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663369905; cv=pass; d=google.com; s=arc-20160816; b=EOvu/Tnp2sEfG2xClkSAfWxVrQMxSfdJ1oULK0fKFxXtHPefDVjqJujrD50046rccX ao1zP+rNzOmpsDDGgJqSgLNwblz5ZBahQBZVlEgW1GlQUl5F5JyHH9f1AQ4TnVe/mk3Y dpx0vKhamTfsizTCqCZXZY4CNDGOprXGYrI+lkYT2lHMy+uxaQlaaakcDglMLFSh8jNi vzUNkC3ac2bss7h6UYM9zJHMD5myGFzum/nPDso8iqPpp1bD5J+gNPOAO+lD9oKvOo0m qv1LtBiiMq4plZNmgqL1jGQJQKReh7d0pZp682FVketEDUWCMEJSQKrXh3HKoLcajkzU lOEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eoTQcz6ZO9ZThInOAmqALWBRiHRXdNxKb8kJ520mjpw=; b=phUjpvEI5Z0hYLZ4LNa4JWcRGosiFHwEVCLSwmvj9SwMgXBDsdohXdBUya07HE24Wq kSSUZHFRPsFWZ2tCvwCHLTlj91xOMymuAD/FBBYY6bQPOdaTAe9Ng8l5hsX9sVSFWhxm +6hCbk7uuv9RdhL4L+lduMu5CXlwGHSilTVQ0nNWJxgRxmxWh1Ow+8cnODuR+95+PqzA k1hIyRF6tsv2P9E1QIQ/LSBrnhpTdbVKMLEImBquO8rgx8I852GaPSfRQgVtrjV45Fah 86B8PZw+u2jcbMoAeuhEf7vIpXqr3guMVbW1f+wa+2dSoHfHUtnY7mM95uyAndLrZXJ1 cxew== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=dXXZ372z; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f125-20020a623883000000b00536bf099c14si20650347pfa.307.2022.09.16.16.11.28; Fri, 16 Sep 2022 16:11:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=dXXZ372z; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229714AbiIPXKp (ORCPT + 99 others); Fri, 16 Sep 2022 19:10:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbiIPXKn (ORCPT ); Fri, 16 Sep 2022 19:10:43 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2124.outbound.protection.outlook.com [40.107.100.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91C6C2019E; Fri, 16 Sep 2022 16:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UpXVWipsOVZZdnTfNYIiAprz+Y3oEOqEP0lY9x6IxnzBDUhy1TmwAWLMlQSr7wjdjTb9+6el9EoFI7FskAEFA0xAMpxI3SGvQvT5XNp1+Zk8IEGTR2wIiL2ad0wh/PEh0FKoFooEzTsvn+N2G5bzfmvUNFWSBS9sDbuKSuB0xvCJpxd+1g3nSmxr6MQMB+U8cztddvO8UEKq4+wJ+2ief3OD2a102Q5n8jq8fzccRswYbegAGpV6vQBYEIr0+kkiyWLDmHCQt2zFp+jN3z+8FQ/OxdzpFQ4U2ZrwTjPUTZvdDffrOp+0H4/WszPNuVav/Xa4XYcXjZJzoZeNCLYqRQ== 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=eoTQcz6ZO9ZThInOAmqALWBRiHRXdNxKb8kJ520mjpw=; b=ag01E/Hd4j68769DD9WczN+hztPhXX1nWESgdUo/DmLWufECbY/agURC9W3KjMPAV/JE+LpGNiq4uTNL7Ho3OHLL6BHSfoHirY5pfnxLXP25YoWgg3UVFfyIrbJbrm8Uemq/bBFLWuT9e20HehSmk3l8zLvjz15jy+fX8UvNa/mLtJ/j65Y/hUQeP1DP9suXxG+zJRTIUtZz9+lRd33o67v8pNGm9YuUTEXrgaVFJiNAgjMhGVDWyISKL4z6TFisChx50CucfL6+lChPCkim77JATm03AGZdZA+bbhVrYLvrdWJh1hG/VS8RLgf27eS+yGZnUVNH5ypD3ZefihA0Ew== 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=eoTQcz6ZO9ZThInOAmqALWBRiHRXdNxKb8kJ520mjpw=; b=dXXZ372zqKl5STnCeFeQqpHvPkT0tDbwMe2lUTUV4mNzVxyYBIqiMrFjwiErDgYhE3pNIXE+ZiRfccjENhUkh/knVzAeXecAUcVeZvAMozbvye5GT9VV0/1/U+pt5m46cNpojvoygmF6A72+KMDlEcrirw0szUiRd5zOt1fzcwQ= 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 PH7PR10MB6202.namprd10.prod.outlook.com (2603:10b6:510:1f2::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Fri, 16 Sep 2022 23:10:40 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::dcf2:ddbd:b18d:bb49]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::dcf2:ddbd:b18d:bb49%3]) with mapi id 15.20.5632.015; Fri, 16 Sep 2022 23:10:39 +0000 Date: Fri, 16 Sep 2022 16:10:36 -0700 From: Colin Foster To: Vladimir Oltean Cc: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Russell King , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Florian Fainelli , Vivien Didelot , Andrew Lunn , "UNGLinuxDriver@microchip.com" , Alexandre Belloni , Claudiu Manoil , Lee Jones Subject: Re: [RFC v1 net-next 8/8] net: dsa: ocelot: add external ocelot switch control Message-ID: References: <20220911200244.549029-1-colin.foster@in-advantage.com> <20220911200244.549029-1-colin.foster@in-advantage.com> <20220911200244.549029-9-colin.foster@in-advantage.com> <20220911200244.549029-9-colin.foster@in-advantage.com> <20220912172109.ezilo6su5w6dihrk@skbuf> <20220916223146.a5djbyvwlh6jekw6@skbuf> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220916223146.a5djbyvwlh6jekw6@skbuf> X-ClientProxiedBy: BYAPR05CA0083.namprd05.prod.outlook.com (2603:10b6:a03:e0::24) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|PH7PR10MB6202:EE_ X-MS-Office365-Filtering-Correlation-Id: 6270e6a7-b946-4991-723e-08da9838abf1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HvakxXLyrdoJJPK+LGmmOxAXQYil+U5Uxg9xId2rKr7Y5PtWhZZUeIFtyL6IGe6QkbjbTTz5qucExPq6RHPY/0r0X3yQBo4xwtPTLCWoTLNSWQHA3rgU8E5bmbtW7FGvgSoM9A5Vmq5KaVlQMpjndtMQaa4uLFYuPxoc8jqAhAcG0bmqHeIar8UhBO/CphKm2p13sncwt6VcefSQryShfMe+ESj95cmPLeIxuwuh7/xnu+kT5knoKqf6MpPkTZGcSRPacnPxP3Qm2/FebJJUIS95IKWjQ3mbuosEb7yDQ6xNy89A7P6jMpkjLeAwQhfjMiUOOGAxXFkNwQsnCmXgQSLYOSApqTmFYd6kTBNhTRC1SpjuAAAI+yZud2RqvIjMkZE39UaEhNHMLyx/jWf23sc0k5WPXXa0m5vIZmhqHh4TFfv6EMVyM3BraFOzCu+xoJc32dtyQpYJe7C5ojJyD9kJF654RtZNJfwdDU42E6X9tTtCA6+Up6gToIgjwsW5LNKGc+AspZecVBrkR18ck4rbVRSRc3ljftubLLPm9+kg7G6s0Zky2Aog6/A3Acze9zaqBwvdAT86sHQPEX3BstjUN1L8OpJfuQeWbW83Gv2dCitmcVSf6yWGzVxtEymde70mHEPp8/OmZ9TzF92pF6X1vx9E7CX4E65pOsKwoGcF1ZX0VLAR8gtr6wCLXHPf5RMNgJ7GmfhTNTuc95UyCQ== 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:(13230022)(7916004)(396003)(39840400004)(366004)(136003)(376002)(346002)(451199015)(86362001)(316002)(41300700001)(66476007)(33716001)(26005)(186003)(6512007)(2906002)(6506007)(66946007)(5660300002)(6486002)(7416002)(38100700002)(4326008)(54906003)(478600001)(9686003)(66556008)(44832011)(8936002)(8676002)(6666004)(6916009);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?FvXjEYZtdfwpYv4FYfJevJY3OfPDlK12z1D+VNt/Ldwyndq7khaBX3JyvqQk?= =?us-ascii?Q?N2F6Vz1ma+h02fyWXEcYg1Bs74EnvosftNWsX+Ll1fib+rNyD1a8rvn4E7XI?= =?us-ascii?Q?mkR86p5NLeBEd09dQEFnf4HXrIRLerII3VsBE7ycp2Kl9o1hd0rc/CKkHJYZ?= =?us-ascii?Q?/guKEBdIgj9LyXwYhUWFhDjU+xV8DhP9ANil6bvTRc1raDQecPex+YbPMNUg?= =?us-ascii?Q?ToG03u6mKu63OQf03OIbNqmpzjSYtDZgtP/swksDCkMyfwJLryg8nFDn3msB?= =?us-ascii?Q?soDpivcoIKhTznTag5K+W/brJXbaXTaCRh0c4gWA7HLbruOzFI2NW2kJhW5B?= =?us-ascii?Q?ud6wKZyI74zMlL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KNIoepJqsJDsqx?= =?us-ascii?Q?SlO4zbj7d2iVFcxZrO1/u1gq3hZN3z6ArkQpZwrw9LSE+FtkboJIPeTNJiDy?= =?us-ascii?Q?jb8gS2vUOOEj82WmUjAhgRGiXjT5diA5YazaxyCknnD6KzfP4Op+F1JK9vcw?= =?us-ascii?Q?Y56nCC1dDMZExJ+1JEi6oBjHt9qo/EHOz05BlX07L5QjCSrZMo0zVwduECpj?= =?us-ascii?Q?vnciubwAT6GAwzHx67To6cyA3LyFltI4/G4/MEKxUOKjYgZRAgWjbrC/hZKE?= =?us-ascii?Q?2n9ZCuN7fzQAv7HScZUQZxMSBkQzzJ4uA7V1ihSwxGM5zJi2YTLDZzgFoF76?= =?us-ascii?Q?EzqqJw4DGmTHM72FB4BEBtPBz+UyKcHnmKGBNrDgtCdObZl8aTJXR855trYC?= =?us-ascii?Q?73jItGcY0WnMDaVI5e0K/78=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6270e6a7-b946-4991-723e-08da9838abf1 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2022 23:10:39.8539 (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: ftND0Ty58QaHvkfHThuZohPK9g2Jlpq2O0D8Wax+EQROxPBY/zBrltN4bLp5T9xhmA2ipLIfrpKBPm6X0v3jnJ5klvDCS2Jcb8QF/a/309k= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB6202 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 On Fri, Sep 16, 2022 at 10:31:47PM +0000, Vladimir Oltean wrote: > On Fri, Sep 16, 2022 at 09:55:55AM -0700, Colin Foster wrote: > Yes, please use as much as possible from the ocelot switch library, > after all you are driving pretty much the same hardware. I'm glad for > your revelation and sorry that I didn't think of expressing it this way > sooner. I think the reset procedure used to be slightly different in the > times when the ocelot_ext DSA driver also took care of setting up what > is now the responsibility of the ocelot-mfd driver. That's exactly right. Early on ocelot_ext was doing all sorts of things that are now the control of ocelot-mfd and the various subsystems. These couple procedures seem to be the last relics of those early days. As I cleaned this up, I realized ocelot_ext_reset_phys() is no longer needed, as it is handled in the MDIO driver. It looks like there won't be much to remove when this is all said and done :-) > Between then and > now, some time has passed (years if I'm not mistaken) Thanks for reminding me. If I knew then what I know now... maybe I'd ask the hardware person to spec a different chip ;-) I'm joking of course, and looking forward to being able to use this thing!