Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2599844rdh; Sun, 26 Nov 2023 12:12:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IHywYq4YeVYDIyLDLjdh44/hz0vb5STRjjo2AWxVKBXlT4n/UZdsuwqmkdOR1+Cea+NB5Gq X-Received: by 2002:a05:6a00:f8a:b0:690:d620:7801 with SMTP id ct10-20020a056a000f8a00b00690d6207801mr8851876pfb.11.1701029535739; Sun, 26 Nov 2023 12:12:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701029535; cv=none; d=google.com; s=arc-20160816; b=DTV5ZOSBJzkZAtGymwxrP1yMbX7GiORk3gUQ7SWuBrEtOWTf9HJNfl5S/jPAXC5FUC 01zkBxVlXAhfwxvYXh7jogNRSYoHxE+tJ4awu7RzZhY1wEyj4J0At+Nft9ke8kzGg03m RBtlk4BK/OEsqL1pn3MAY8d1mIh1jnLQfRaRzQH9cdsk1ETdw+pMI8jP+IgMQJ+1CRsf W9IzCti7s+mAeugM9uWPIYxFage793E/H02nxq7CbU94D2fDusANLJA+AMNQlnUxzWBS QbzSNFhD04eOKlz7mJiI/8VHkoYrEfEkClP85PqvrcO/EqKTzbPxYR99Mvj8wwGevUSq mkIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4T46UpkrmjcXMYW2/kbuQ/hVmyB9TC43EVzJzlD0Woo=; fh=v1x1h6Lt9N60wh/tvDkXloB7804kMI2dGeQt+HfD+dY=; b=j6azWW99oJCCTtd/DgQX9nDwwgYELf3WFSUAkFYqRI7mFA7RXaVzfo+bNhZh8m+rR2 acCkDWGUzP1zx49V+uRFtKBk2eQrbkEMggW4gECnD/6eCT00bbF/v1y8ZPMxodnRqyWG JF54nijcwRAA33li7IGJCl3VVLLyETNWp4yCGf42JbA1wR1NafQE0dUkBGumiyfHuGpA 1Wbnc3ESf/GWRysTlY9pyZotmlARQA4gy+yiqJTZbm9lLFlV0KrnxqycjDMPvO/TTDcM /WSa8t5L+ctpNArHVOlqnhsQS45wEnt7eX170sSCjJtPnrKaYViY3SjMfhdEsqCIX73w RUZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=caNhYdGK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id f17-20020a056a00229100b006cd82b4d0c4si2608870pfe.89.2023.11.26.12.12.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 12:12:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=caNhYdGK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 714B9807EAC6; Sun, 26 Nov 2023 12:12:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231130AbjKZULf (ORCPT + 99 others); Sun, 26 Nov 2023 15:11:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjKZULe (ORCPT ); Sun, 26 Nov 2023 15:11:34 -0500 Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A238BD7 for ; Sun, 26 Nov 2023 12:11:40 -0800 (PST) Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-5cd2f1a198cso32466227b3.0 for ; Sun, 26 Nov 2023 12:11:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701029500; x=1701634300; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4T46UpkrmjcXMYW2/kbuQ/hVmyB9TC43EVzJzlD0Woo=; b=caNhYdGK09L/2IMZpmG03p7RQnRhavLM/h/YORx+G36iJEPHJHNMZpLHduNtXxnT66 EU82QcR86vaz0avKia57Wzikqt69Mp4rN1JYibzi4oVvfqLo32C2dkR43AFbcbiJE/+O g1FaKG3YeTHtod1JHj6qPTByel5dkjaOuocGl6wExYe15TEPQBSrECAjdMTVmjRuoSR6 UMZ1+EiIcRRARNduHTiEkGUWC2kClWOrqmdbe3Nx7OUE1eGkubNvRCdj2xsdnGr5OH8e 0JOlopOy3ezbnTSoaTOObqCSUBEL/BJFGbhfevftoSKX14iLOCnefSSv9VBTTEg6l86w GpEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701029500; x=1701634300; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4T46UpkrmjcXMYW2/kbuQ/hVmyB9TC43EVzJzlD0Woo=; b=BsWeGsSe3MS4JyaRHcbOfSEawTkjTneSOnWuBAbUEABC1UpC0uVFeJcimkKmXw+q8f 6pdmGLrQnBQdTRZ9FiW8A+C2GvUZp6ujzjp416Bd4kSdXklnwumUdjklzW36LAEouP45 bTCZ/KSIXaWIK8HgPAGDZfHLd1JF595f/Pfs5ntgDq1BzWc5AQyxatf8pI8M5GnWgaci g46Ip/JC6BdSKE8neDUT8c0d6tKlblT/6M2umktH7WRVAFhcFYR9rk6/SWzKlFMtNIye wKd7sz6Vo5VWrRS3aCe5kaPctrXnxlWVp/ibNvIxPMN6f/0qhYVHWOfmfWioS5DiSKrP wVdA== X-Gm-Message-State: AOJu0YxQm/a7pCqNLad3swFiCg+vXmYV0pgmghFWi4qCMBTgy3PDJjGm gFlzEE4p5lStNEyZeaBBlMHUmsQFfhiVg08BybK9pQ== X-Received: by 2002:a81:9290:0:b0:5a7:bc0e:193e with SMTP id j138-20020a819290000000b005a7bc0e193emr10448152ywg.18.1701029499882; Sun, 26 Nov 2023 12:11:39 -0800 (PST) MIME-Version: 1.0 References: <20231123-mv88e6xxx-leds-v1-1-3c379b3d23fb@linaro.org> <4bd8642c-988f-4b99-944a-da573d0ef2c3@lunn.ch> In-Reply-To: <4bd8642c-988f-4b99-944a-da573d0ef2c3@lunn.ch> From: Linus Walleij Date: Sun, 26 Nov 2023 21:11:28 +0100 Message-ID: Subject: Re: [PATCH RFC] net: dsa: mv88e6xxx: Support LED control To: Andrew Lunn Cc: Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Christian Marangi , Tim Harvey , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sun, 26 Nov 2023 12:12:12 -0800 (PST) On Sun, Nov 26, 2023 at 5:45=E2=80=AFPM Andrew Lunn wrote: > On Sun, Nov 26, 2023 at 12:46:03AM +0100, Linus Walleij wrote: > > On Thu, Nov 23, 2023 at 5:13=E2=80=AFPM Andrew Lunn wr= ote: > > > > > What i would really like to see happen is that the DSA core handles > > > the registration of the LEDs, similar to how phylib does. The DT > > > binding should be identical for all DSA devices, so there is no need > > > for each driver to do its own parsing. > > > > > > There are some WIP patches at > > > > > > https://github.com/lunn/linux.git leds-offload-support-reduced-auto-n= etdev > > > > > > which implement this. Feel free to make use of them. > > > > Oh it's quite a lot of patches, I really cannot drive that because ther= e are > > so many things about them that I don't understand the thinking behind..= . > > But I like what I see! > > O.K. Let me dust them off, rebase them on net-next and see what is > missing. Thanks Andrew, appreciated! I'll be happy to rebuild it on top of what you put as the baseline, hopefully it will help Christian with the qca8k support as well? > You have some fibre things i don't have. I don't have a > machine with fibre so i cannot test that. I can test that, the way I check for its presence is through device tree lo= oking for an "sfp" phandle, AFAICT I don't see that the hardware can tell be when there is a fiber connected, but alas I don't have any datasheet. Yours, Linus Walleij