Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp1049611lqp; Thu, 23 May 2024 07:41:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWfiizVhdFB+jydWSYpNWyDyGQhXoqvEug2z9TvYlShKdBoh2MuZO/cwqxz6qXoV+GtZxwVhZspjTf4+ydkzxz31qyL1QOgbWYe8+VHDA== X-Google-Smtp-Source: AGHT+IEj1mar4kQWt2zPuACSMx4bOsLJIx2hkZvi7LwdILg2XAK1YM0gWy3+48cvxYKXfRpKLTqb X-Received: by 2002:a05:6512:485b:b0:523:683a:f5ed with SMTP id 2adb3069b0e04-526bd0d1aa9mr3424148e87.9.1716475275127; Thu, 23 May 2024 07:41:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716475275; cv=pass; d=google.com; s=arc-20160816; b=x1FWxsEEJRY6VN2yMqsQKiksWWPGr0SbtZXMSPYfxmQ3YmqDMMcmKemMlcx/NhusiQ /WymnzW4vkr/D3tb418di4Yf2R+bTju2IO0Y535/AFFov1ORKADVyB6DY/8Ghkc00fX9 ieTSDdXUZgqcjxzo6He2Slwx2BRybMY1pSIgEqp16BhDJIVmJotB7QUhFKMCYYfVFzM8 WT+sFcHGiKRY5L2TYNtaXQbSA5IOWZ7H8zc7EM0IRyGhNJ35CCtMnxgS4VxsSYgda0ju PlcDcQB8WPpB9GQCsgGOzGzHFPsnDXlvm1j0fptJ42C+SkiAmGO8HPa9SNu44/WfcvE7 cptw== 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=nudZpaR/VX10/MgUxkiGdfoctpcEPLgZCgtJO+HXiGY=; fh=Prk+IlbHJw7SpKiVjbAC3lwelii+UU35ev9ooE7gJR8=; b=OB/Zai8YynF3htCzBVXMwhQ2RZwvDBcp4UazRJ8ZZhlSOdiD0A0vp2kOtNLbW3pAwj Ur5U6m+BpC94h5nL/Z0JR7+i5ETRheVHpPgeeho6X6SKScVR4HlmAl4rju/Y8pPW19Ko Kmu6qmW03kK6Lw8hKRE8WBw9ZbPOs5Osd/yUcvRXc8aEvMt8aTEw6T5YiLcpoWSBhO87 U1KAMfz2vX4O1Yy+1OoUF9w9mQPg9I5WKB8YGmMzNsO3yHwOtZHT6aeFY1cnAHWsdUKP FI3CmyhRZQbfZ+U0OGHgwhhebQN4I2ui6P6aXJm5VtPOs9jH2/m0g/q9gJZ+QuM+h1LP 94aA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QL0ITScb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-187659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187659-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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-a5a1b6095cfsi1674962266b.37.2024.05.23.07.41.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 07:41:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187659-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=@kernel.org header.s=k20201202 header.b=QL0ITScb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-187659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187659-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 D06EF1F21F1A for ; Thu, 23 May 2024 14:41:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2697C14BF98; Thu, 23 May 2024 14:41:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QL0ITScb" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 415E112B16E; Thu, 23 May 2024 14:41:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716475262; cv=none; b=HATgfDUk9yMVVbUPE/L90FgTj0oHapFzPakhjtKuItwRsITMOXRwTGi4Xa7sBj937Aeb66knz7Rwt+qr2TZKPGJ8oZJha+5d3H6aMUjfBqnw7FWdJoEgg7UHxgWmJXPCJKm6X2TE1Bo5fFfgp+YyQq9GA0XD/hU5Zg5KuR99/Jg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716475262; c=relaxed/simple; bh=J37CGLNwT838ydiPOn9Wa6R1GLXsTn7/JsoUPCz/9dA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=a4D8mRUV1IKJcOC6ewY3iKTdTbeIzj7LSbjK36hznVEzjSFp2nHKuDzzkkok54KzRkj35IYKSzNK66cciP4ygXrjICGV39R55TrNa595sj83vRlzPv7zbMLl88h3Yb1IbtPMQBBzs15YxP25Pr92ZLPqZZOv8hB7csYhOsaMJtc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QL0ITScb; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 691CFC32781; Thu, 23 May 2024 14:40:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716475261; bh=J37CGLNwT838ydiPOn9Wa6R1GLXsTn7/JsoUPCz/9dA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QL0ITScbbOElyfsR8elZCh9+T26SCaCcvQY3y5R5ZErz7XlJr8cGb2NGmFhunkSjP cITBqRd84LFpB13U5tk01oDerbVk9RsQ6uki2Mszgi36x6DwPcX47b8iCLGMzU1DIn mriaNCfssuXKrVDwwUMOiH8T7eaVEKkLIUfq+V5z4a8hCAHJPhQU74SJQFbg7N7/sI Bu4kgdEUwC5Q3mP1JAQbwISITePJ6A66gwDfPHABhlw3d7KGoUc1yG4OVdthA4OjFE eSVKtlhbQ4Ew5MkwW+DOQyy4629bKolE5X55VjGbks+vGaII+YCE40XZMY/MtiZTpM vCyUIoS4mPFag== Date: Thu, 23 May 2024 15:40:56 +0100 From: Simon Horman To: Parthiban Veerasooran 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: fix changing LED_SEL bit value updated from EEPROM Message-ID: <20240523144056.GO883722@kernel.org> References: <20240523085314.167650-1-Parthiban.Veerasooran@microchip.com> 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: <20240523085314.167650-1-Parthiban.Veerasooran@microchip.com> On Thu, May 23, 2024 at 02:23:14PM +0530, Parthiban Veerasooran wrote: > LED Select (LED_SEL) bit in the LED General Purpose IO Configuration > register is used to determine the functionality of external LED pins > (Speed Indicator, Link and Activity Indicator, Full Duplex Link > Indicator). The default value for this bit is 0 when no EEPROM is > present. If a EEPROM is present, the default value is the value of the > LED Select bit in the Configuration Flags of the EEPROM. A USB Reset or > Lite Reset (LRST) will cause this bit to be restored to the image value > last loaded from EEPROM, or to be set to 0 if no EEPROM is present. > > While configuring the dual purpose GPIO/LED pins to LED outputs in the > LED General Purpose IO Configuration register, the LED_SEL bit is changed > as 0 and resulting the configured value from the EEPROM is cleared. The > issue is fixed by using read-modify-write approach. > > Fixes: f293501c61c5 ("smsc95xx: configure LED outputs") > Signed-off-by: Parthiban Veerasooran > --- > drivers/net/usb/smsc95xx.c | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) Reviewed-by: Simon Horman