Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6860234rwd; Mon, 19 Jun 2023 13:44:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6M1KseV2Ry+nUCLH2TqV/wduTXD/XnjYdvu1q3M76uCV3QSk8jcgvM8EA47/jVRhle3NQh X-Received: by 2002:a17:902:ab18:b0:1ac:6d4c:c24b with SMTP id ik24-20020a170902ab1800b001ac6d4cc24bmr5797133plb.3.1687207457980; Mon, 19 Jun 2023 13:44:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687207457; cv=pass; d=google.com; s=arc-20160816; b=EHyKE+lDIlsVRrZGmVelqc9hETmyguZlmLni/KRED9QK1DAAOCtUagWspXBnuevl1q Z+lWUCvuTMin4qOROL8xNnQuk7jqI4pD13K0CcYO1/5DxSSB7s2Ch0ZzqJY2OLijclQA +6TZyQVydvaCjZFfJGUGawkc70ccnYQ/M9I9f/EW71uA5jJyj8FCYL07EUPD1onjrWBo MFOLuouOakfAtUYzGZnl6vvyFFquEPl87M1pv9nHOJzH8qpstcpvpVQcDeEWJOD806wk 1+jYV7+8cDFlqijnuBi5qeXbJOlJ+T9/30Hv2HulsCT+TyQEneKvl4tc0/GDgn3M4LOX ENqQ== 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=HevRcZ0tszKIa2+bUxaw96zPKBv2Aviw7lp3sgLHs1w=; b=hSm9UidSe7pBsnqSPlkb3C7MPzWD/P/OxNNnL2a+m0Pm9vTq9ocIKi96guig+cbGP9 xWKRJh1GhGGMc2K30hBRmSXaxKGl2/Li+cWVDQNwMTNrVRrughgaeI6cdyF4vl2EAsJ0 GpzR1sydD7iIsBIRIit3H94Qu9iaAIQ0IxzsMsLJQtpec6nPsr6fXy+f0JT/Vnx6jBVC BQdSwdEpf3mzlV8PcHI75ns0sxGDaMNyRnEMzE6Yjpqntm2L7dpsdK8YOw1GfToeclSs 43odY8oBMC52nANuwm8bek2wXFD9rY3sy+l5biZmcVTuTzqjyreJuXgrJSY617jzCu5Z f2Pg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=a9TntZOY; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.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=corigine.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020a170903124e00b001b5589848absi502573plh.234.2023.06.19.13.44.02; Mon, 19 Jun 2023 13:44:17 -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=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=a9TntZOY; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.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=corigine.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229757AbjFSU1R (ORCPT + 99 others); Mon, 19 Jun 2023 16:27:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjFSU1Q (ORCPT ); Mon, 19 Jun 2023 16:27:16 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2099.outbound.protection.outlook.com [40.107.93.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14C12D2; Mon, 19 Jun 2023 13:27:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UJpmusm4pQ40SdIY9bd3zzltd4SuxP1nZ4d1GYmNopgSlWMfjQoEpMy1sbzIhB2X/l7srsAMzO8WuKFILv8rvDvTdZf0zkjYym2yv5hpM5goBKN2NniPLz8qRWtK5ETOVTvvA6zvkr2InW6cKLl+ezzlkqC+mPOa6mlLoCerDdGOHPsWMw8znZY6zaT+0kK6UA+1+ZxxvHC3RZgDkkDaNzXlV9C7GQo0G4tfJSszVbmj8+KCUZ8eb9JNaQjhGQ9KxUifACzyy/fPNr7lQ9mEn8ecqPe8u74qjeSeebqHHYjPFFlMooqgCz9dS1d+dkEdMCMG4yn4gQdHGqokzK+kKA== 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=HevRcZ0tszKIa2+bUxaw96zPKBv2Aviw7lp3sgLHs1w=; b=XGOnVvPBhzesEo7x1d0V1B1In0KqybALS7OJybgo9vOwKHWmPpl666YuOnASv7POlkBihpcOYMMZJqr7/UWvbySMzd/fJy6IxVg1r92GB8aWj0GcuWltvHTjgiWmhpRo+K74SaHOkGuUMOWe4PU7I90HkNwvAWY2EwVeCoSoYNLWcNg5G6hB1919xDW0XLYZrrKSifLnwZdGlpBxr3AvX6Bvwadz2S0rV5oAokrWv312TEra0aBy8/XGbGI6xBzc+3KZ90qjua/I5RpAanWAfSUSjfF1Vm0PiVmz+55hF6v+wuUqZPeapK9V4K71xZtuuPT59OGDH32tS7UqCAEQTw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HevRcZ0tszKIa2+bUxaw96zPKBv2Aviw7lp3sgLHs1w=; b=a9TntZOYMH4rK3mAl9WuGcW5dVVHni9va+YuwNEWkZJ7XItaHc3TORFgFC787Dkz7LcA7nt6p3JOA1EI9dcejCLx4hmCn6QbNCsO4FDT6bNFVDPJTCaE5s7W7YnNb2MGicYTR33wXlhxIe630Q20DyulAJ7oXU0IWW69AovXOfY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) by CO1PR13MB4822.namprd13.prod.outlook.com (2603:10b6:303:f1::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.36; Mon, 19 Jun 2023 20:27:11 +0000 Received: from PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::eb8f:e482:76e0:fe6e]) by PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::eb8f:e482:76e0:fe6e%5]) with mapi id 15.20.6500.036; Mon, 19 Jun 2023 20:27:11 +0000 Date: Mon, 19 Jun 2023 22:27:05 +0200 From: Simon Horman To: Christian Marangi Cc: Pavel Machek , Lee Jones , Andrew Lunn , "David S. Miller" , Yang Li , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [net-next PATCH v4 0/3] leds: trigger: netdev: add additional modes Message-ID: References: <20230617115355.22868-1-ansuelsmth@gmail.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230617115355.22868-1-ansuelsmth@gmail.com> X-ClientProxiedBy: AS4P251CA0027.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:5d3::13) To PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR13MB4842:EE_|CO1PR13MB4822:EE_ X-MS-Office365-Filtering-Correlation-Id: c6da2f92-0d17-425c-2dff-08db71038fd0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OOJOOt8WtMgT0egIfiE50LGWbXyXn25K+8JefuZ4YYNQBMYgJ1+7n18QwfNQcGRyNi0rTEVZ4/VHu28DMp2Al49rLqECl/9b/+lWGocBSTkLJpe9v21ZU8rIYQmej2XtgYBza5MYMXz8yQoYhK5ClyO70pKBUSK/r+HN2AcLR1sKjgGlIyiLqIOUXVo3gjfMbThFcTA7GXu56HjCSwXxUg4FGGfXmD3sIEWtJhn+w/NQW1BT0Id2TKi2OfPb9eoFoG4o0MobD1mvrjlXqSU5TIOWbgilY1WDWba9AveBNQl2pIJ2U2jfHs7GqUJ4L8yb5bJuzujekMGZpXt+eDyzVRSeNfO3FM7cZy74TIp4ZlH2sHetrDyeK0GWyA2io/WduEZACE1YXA5w8RtcU/WQZ4QkSvnQIo2h3bW8dXVO9Vuq0C6UNyJJakVRt56PWOkCnwiQr1qdI1gSR59zRdHyamnsyOC0p/oOUluz4zSkP0yLBELwmLUobom/VM2v06qXaN5bBh+IW3C8TCKE6ftyaZ0SHOwRGoDlJycYqLPAENa5tHQAeMvWK8XkZqlYq567+FVq/WT4tG3SmJj549lx/7pJ0JwEPmIUeg2lSiPIK4M= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR13MB4842.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(39840400004)(136003)(396003)(366004)(346002)(451199021)(2906002)(41300700001)(5660300002)(44832011)(8936002)(8676002)(36756003)(86362001)(478600001)(6506007)(6512007)(186003)(54906003)(6486002)(6666004)(966005)(66556008)(66946007)(66476007)(4326008)(6916009)(316002)(38100700002)(2616005)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?75hStyMPx2dgK8g+gJkclu0b58KvCeI86SFWzcM9QdEP7ldqMzhYXNR2YQ5X?= =?us-ascii?Q?2G251CY8uC0PeGTor6Io8jtvg5RioG/K6OstPbjj/mWpRDIM8083Bmo9EBWP?= =?us-ascii?Q?pxczwHp4GDVJbYqEhjXN70GK4j1Yz8XTgMVVnuttGj9BU+AXnvbLmjogKkVW?= =?us-ascii?Q?QCX/N7MhOnzX68QT112IgW43dg1+AapaCHUVSZBI9rbHNrOD5Z6pXVoIugsD?= =?us-ascii?Q?uTEmvaNMzDPB9YZqtC4raXq0Ad5rzJY59ljGKBASFvhsDBin+NBQBNJAI6gl?= =?us-ascii?Q?1mmJae2A1+gufPFuLekt7a9dVVt0kiJsB8IlycPVhssu9/Avqh0eiHowQPAe?= =?us-ascii?Q?eICzLq9Svfc+MAYX7IeL3U5LkVLqDaW3UCF3Sg4eLF5yXZCjHU4DL3F/FugY?= =?us-ascii?Q?JnO+zx1EYyj34UBbhgdoZQombA9rUe4yJ+Kxp1qZok+LhFzcmTE8Fu1IboW9?= =?us-ascii?Q?ag/56jgz3IuCF0HxYOpbgpvmZBMGikkk/Q8tQIYYg5el7nCoSSCtZ2mIEV1b?= =?us-ascii?Q?nxpCgx8IBPTWZ7Ag37gZqvrUU/4dbIEc+BHADntWmgium+lyZund49hsC3Av?= =?us-ascii?Q?0Ysa6Ae0kaXXcu5OwbVs7uV3S2t6219Nul1QHoxhLDCXhYO7qc7hbOmS0Y6+?= =?us-ascii?Q?VCpC3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nORCy?= =?us-ascii?Q?PIDOB0Re3L17JzzwqcNpUQ/JGpLIDID4tF4NutzkSruJs3DBRSnOOfKfzNlf?= =?us-ascii?Q?m5YUuExX5LR1lPJdxw7gKB3JbX2unOslVIK0i16NtycBDQUf7PSMxoPxdA1J?= =?us-ascii?Q?4ZiW7g=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: c6da2f92-0d17-425c-2dff-08db71038fd0 X-MS-Exchange-CrossTenant-AuthSource: PH0PR13MB4842.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2023 20:27:11.5805 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: X3ezvm4pJ0H9Mij5Jbv68tlSrupvcKxnhgmQbqBSRArmMt/6+lXnLhd4rU+2X/mOxDQ49HVkP9Mg5fgbLE5lifDogjuFU9AUBtXnDGuQyGk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR13MB4822 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, T_SCC_BODY_TEXT_LINE 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 Sat, Jun 17, 2023 at 01:53:52PM +0200, Christian Marangi wrote: > This is a continue of [1]. It was decided to take a more gradual > approach to implement LEDs support for switch and phy starting with > basic support and then implementing the hw control part when we have all > the prereq done. > > This should be the final part for the netdev trigger. > I added net-next tag and added netdev mailing list since I was informed > that this should be merged with netdev branch. > > We collect some info around and we found a good set of modes that are > common in almost all the PHY and Switch. > > These modes are: > - Modes for dedicated link speed(10, 100, 1000 mbps). Additional mode > can be added later following this example. > - Modes for half and full duplex. > > The original idea was to add hw control only modes. > While the concept makes sense in practice it would results in lots of > additional code and extra check to make sure we are setting correct modes. > > With the suggestion from Andrew it was pointed out that using the ethtool > APIs we can actually get the current link speed and duplex and this > effectively removed the problem of having hw control only modes since we > can fallback to software. > > Since these modes are supported by software, we can skip providing an > user for this in the LED driver to support hw control for these new modes > (that will come right after this is merged) and prevent this to be another > multi subsystem series. > > For link speed and duplex we use ethtool APIs. > > To call ethtool APIs, rtnl lock is needed but this can be skipped on > handling netdev events as the lock is already held. > > [1] https://lore.kernel.org/lkml/20230216013230.22978-1-ansuelsmth@gmail.com/ Hi Christian, I am sorry if I am missing something obvious here, but this series does not appear to apply on top of net-next. Please consider rebasing and reposting. As you probably know, you can include the reviewed-by tags provided by Andrew for this posting, unless there are substantial changes. -- pw-bot: changes-requested