Patch "staging: r8188eu: don't check bSurpriseRemoved in SwLedOff" 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: don't check bSurpriseRemoved in SwLedOff

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-don-t-check-bsurpriseremoved-in-swle.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 492d755ea3d13e5ff318957e039b7a3cdd44df86
Author: Martin Kaiser <martin@xxxxxxxxx>
Date:   Sun Sep 25 16:04:05 2022 +0200

    staging: r8188eu: don't check bSurpriseRemoved in SwLedOff
    
    [ Upstream commit 647085006beb2cc41bef27a24f249f4dec3c1e15 ]
    
    The SwLedOff function calls rtw_read8 which in turn calls usb_read.
    
    bSurpriseRemoved is checked in usb_read. We don't have to check it again
    in SwLedOff.
    
    Tested-by: Philipp Hortmann <philipp.g.hortmann@xxxxxxxxx> # Edimax N150
    Signed-off-by: Martin Kaiser <martin@xxxxxxxxx>
    Link: https://lore.kernel.org/r/20220925140406.112991-2-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 e889e7861706..42e35953fd7b 100644
--- a/drivers/staging/r8188eu/core/rtw_led.c
+++ b/drivers/staging/r8188eu/core/rtw_led.c
@@ -53,7 +53,7 @@ static void SwLedOff(struct adapter *padapter, struct led_priv *pLed)
 	u8	LedCfg;
 	int res;
 
-	if (padapter->bSurpriseRemoved || padapter->bDriverStopped)
+	if (padapter->bDriverStopped)
 		goto exit;
 
 	res = rtw_read8(padapter, REG_LEDCFG2, &LedCfg);/* 0x4E */



[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