Patch "staging: r8188eu: remove duplicate bSurpriseRemoved check" has been added to the 6.0-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    staging: r8188eu: remove duplicate bSurpriseRemoved check

to the 6.0-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     staging-r8188eu-remove-duplicate-bsurpriseremoved-ch.patch
and it can be found in the queue-6.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit a6a3d1be20741f50cb4ef684efa44f8695c9b147
Author: Martin Kaiser <martin@xxxxxxxxx>
Date:   Sun Sep 18 19:56:59 2022 +0200

    staging: r8188eu: remove duplicate bSurpriseRemoved check
    
    [ Upstream commit 8f60cb9534e459d66f6888038951ffd74351ef25 ]
    
    We don't have to check bSurpriseRemoved in the SwLedOn function.
    
    SwLedOn calls rtw_read8 which in turn calls usb_read. This function checks
    bSurpriseRemoved for us.
    
    Tested-by: Philipp Hortmann <philipp.g.hortmann@xxxxxxxxx> # Edimax N150
    Signed-off-by: Martin Kaiser <martin@xxxxxxxxx>
    Link: https://lore.kernel.org/r/20220918175700.215170-6-martin@xxxxxxxxx
    Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
    Stable-dep-of: 12c6223fc180 ("staging: r8188eu: fix led register settings")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/staging/r8188eu/core/rtw_led.c b/drivers/staging/r8188eu/core/rtw_led.c
index d5c6c5e29621..e889e7861706 100644
--- a/drivers/staging/r8188eu/core/rtw_led.c
+++ b/drivers/staging/r8188eu/core/rtw_led.c
@@ -37,7 +37,7 @@ static void SwLedOn(struct adapter *padapter, struct led_priv *pLed)
 	u8	LedCfg;
 	int res;
 
-	if (padapter->bSurpriseRemoved || padapter->bDriverStopped)
+	if (padapter->bDriverStopped)
 		return;
 
 	res = rtw_read8(padapter, REG_LEDCFG2, &LedCfg);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux