Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp967825lqp; Thu, 23 May 2024 05:43:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUiqI8BWSeiRB5g9QG6/3zietIFN01N1MpQUl51zAVMWHSMfYpkKtRSkNS/WhO59mdQGqfTRiS5ld5PFwWaQmncO9Ehl2qHUDqGLUlNuA== X-Google-Smtp-Source: AGHT+IElm1OEzWgSB4pRI44dZBlmgaL8sMLTgAWYBCFvAHhMR7eY52Io42QEioxr+2FXzpa7pJc1 X-Received: by 2002:a17:906:d8d1:b0:a5a:177b:d8d2 with SMTP id a640c23a62f3a-a623e8f87a3mr152268966b.22.1716468211152; Thu, 23 May 2024 05:43:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716468211; cv=pass; d=google.com; s=arc-20160816; b=hRZZzaB4TUSG9BWtmgN4ODjzprHJNi1N3CWWUvM+xug/VGQA2a5NELCrFPaqijECSI JPBW3kRgjtTAKNHxxK1xzu33MQJhHfTufe7TxuMeDbeIWNhDZDiNZ+rtjwqh0ModOxJ0 TU4yKW75WWwYQ8eM78CpiNi2/B1WqusfGMJTDb4a0Ce0q7rvhkutp/NTV9TR7UZ6A3kN larcCGi7/YEvWzUL5wFNGtzmlW/PA9+ivbrRZWNIsweCTVphyJiRjmoHv3/W8rhq6uUO 7dng0HuVER625ISiZ8Jpwj4wVf9HwAmFKnMkUCMtE/79KfAWfvmeySQqHyCfcDEkULdW zB0g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=u5xqnRII9t7YYXMuJNUmdTWOeMBfSd5MQF3lTq705uI=; fh=jZc8spzh3fT1FBf3RI8N8JeuTS493hFlFBpMdPPDqEQ=; b=yGm5yRy9Wn/m8YrrS4z0l4sbbf2umwec7tQYrWAZ9ee2uecx9Rhs3+wR1NiL6xJOXh bw1nzRWqqKZXzSxKyURN4033efV5tDk9L0h7BQ0XhdtLwfoGgqgc6QGz/QeQMPUd8TaX P+d/1z5NaLzj87EA2QbrgyN/OhtpB5pksa+6BnLaF9OaHok7BnR0Dt/9/Gbp16SBju+S OSlUsLXv5YcCZ7W0DL4Z4MnA3WQL5VIbuXa4Jnigqv1qLDDFr5J8SoabtWCXnzEW85y5 5fOowS6+DUINJKtUccUUFVBgir5eTHJQPk5Ql8WWCky3ZhIbtwMQ7hOs0qmBr+IDjReg pzsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=CvHkio7O; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-187488-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187488-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17b21d10si1558307766b.382.2024.05.23.05.43.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 05:43:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187488-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=CvHkio7O; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-187488-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187488-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DDFA31F216AB for ; Thu, 23 May 2024 12:43:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4DB7514A08E; Thu, 23 May 2024 12:43:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="CvHkio7O" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 EB3CE149017; Thu, 23 May 2024 12:43:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716468196; cv=none; b=q8xA7UELZyLpgzzFWl7lsYZBSs2R8RUDzs3T5eVTkT5XkkfcAJ9GXh4ZMVh4JQrXc7L+shfeWNdUVFsCYNlREDYXoQX6UHH9mrSUB0YHxBLDnTuPSHBwPOj7g/L5nKxwEyqAlWK141TXJrlWmnYeDpWXqBSdDriKFvKxkLxSwYY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716468196; c=relaxed/simple; bh=XYhesPrIe+ub1SdQr2xl3FCi7rcAAsmL9Ma1RciSGTM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NpozwHXMotWInZW8LGCRxVM7eH9kL3f0B9UlmVScvxhSnqyyMFOExfymYx/dG3gJeNkNRetameCY36seZQNxAHxgLW0adIAKMMB7EAVkGDk7XhKH69mc6Xnzl8sa3WCC1+nZNbLbP7cxlK7lslU+vAGr5jj4ZFOrYSYosOzy5mM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=CvHkio7O; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=u5xqnRII9t7YYXMuJNUmdTWOeMBfSd5MQF3lTq705uI=; b=CvHkio7OCvRzUdpLmwyhVj4QMY LtoR9hvr7JZ42pcvFz7dA/LAjqXjDDvoZehfM6TPKZFXxTaPDvrZj793Jb73sst8vlfBQzU/xyMju E9PD5quPEPQLLxgcD/Ug5PTEx5H+HOUe/vYyRMgdnjTTQcagntmimL7z9dueblOC3t0c=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sA7mf-00FtJG-MP; Thu, 23 May 2024 14:43:01 +0200 Date: Thu, 23 May 2024 14:43:01 +0200 From: Andrew Lunn To: Parthiban.Veerasooran@microchip.com Cc: steve.glendinning@shawell.net, UNGLinuxDriver@microchip.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: usb: smsc95xx: configure external LEDs function for EVB-LAN8670-USB Message-ID: <5853e477-be38-40b3-8efe-93f20c57e6fd@lunn.ch> References: <20240522140817.409936-1-Parthiban.Veerasooran@microchip.com> <9c19e0a1-b65c-416a-833c-1a4c3b63fa2f@lunn.ch> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, May 23, 2024 at 08:51:54AM +0000, Parthiban.Veerasooran@microchip.com wrote: > Hi Andrew, > > On 22/05/24 10:14 pm, Andrew Lunn wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > On Wed, May 22, 2024 at 07:38:17PM +0530, Parthiban Veerasooran wrote: > >> By default, LAN9500A configures the external LEDs to the below function. > >> nSPD_LED -> Speed Indicator > >> nLNKA_LED -> Link and Activity Indicator > >> nFDX_LED -> Full Duplex Link Indicator > >> > >> But, EVB-LAN8670-USB uses the below external LEDs function which can be > >> enabled by writing 1 to the LED Select (LED_SEL) bit in the LAN9500A. > >> nSPD_LED -> Speed Indicator > >> nLNKA_LED -> Link Indicator > >> nFDX_LED -> Activity Indicator > > > > What else can the LEDs indicate? > There is no other indications. O.K. So it is probably not worth going the direction of using the netde LED infrastructure to allow the use to configure the LED. > >> + /* Set LED Select (LED_SEL) bit for the external LED pins functionality > >> + * in the Microchip's EVB-LAN8670-USB 10BASE-T1S Ethernet device which > > > > Is this a function of the USB dongle? Or a function of the PHY? > It is the function of USB dongle. So an OEM designing a dongle could make the LEDs do different things? You are solving the problem only for your reference design, and OEMs are going to have to solve the same problem for their own design? This is why i'm asking is it a function of the PHY or the board. If it is the PHY, we could have one generic solution for everybody using that PHY. Andrew