Patch "bus: ti-sysc: Fix error handling for sysc_check_active_timer()" has been added to the 5.10-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

    bus: ti-sysc: Fix error handling for sysc_check_active_timer()

to the 5.10-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:
     bus-ti-sysc-fix-error-handling-for-sysc_check_active.patch
and it can be found in the queue-5.10 subdirectory.

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



commit bf7ce78bb27c9541a76a5675eb80fffb1e2b4d75
Author: Tony Lindgren <tony@xxxxxxxxxxx>
Date:   Wed Aug 11 08:34:46 2021 +0300

    bus: ti-sysc: Fix error handling for sysc_check_active_timer()
    
    [ Upstream commit 06a089ef644934372a3062528244fca3417d3430 ]
    
    We have changed the return type for sysc_check_active_timer() from -EBUSY
    to -ENXIO, but the gpt12 system timer fix still checks for -EBUSY. We are
    also not returning on other errors like we did earlier as noted by
    Pavel Machek <pavel@xxxxxxx>.
    
    Commit 3ff340e24c9d ("bus: ti-sysc: Fix gpt12 system timer issue with
    reserved status") should have been updated for commit 65fb73676112
    ("bus: ti-sysc: suppress err msg for timers used as clockevent/source").
    
    Let's fix the issue by checking for -ENXIO and returning on any other
    errors as suggested by Pavel Machek <pavel@xxxxxxx>.
    
    Fixes: 3ff340e24c9d ("bus: ti-sysc: Fix gpt12 system timer issue with reserved status")
    Depends-on: 65fb73676112 ("bus: ti-sysc: suppress err msg for timers used as clockevent/source")
    Reported-by: Pavel Machek <pavel@xxxxxxx>
    Reviewed-by: Pavel Machek (CIP) <pavel@xxxxxxx>
    Cc: Grygorii Strashko <grygorii.strashko@xxxxxx>
    Cc: Jarkko Nikula <jarkko.nikula@xxxxxxxxxx>
    Signed-off-by: Tony Lindgren <tony@xxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c
index c3d8d44f28d7..159b57c6dc4d 100644
--- a/drivers/bus/ti-sysc.c
+++ b/drivers/bus/ti-sysc.c
@@ -3061,8 +3061,10 @@ static int sysc_probe(struct platform_device *pdev)
 		return error;
 
 	error = sysc_check_active_timer(ddata);
-	if (error == -EBUSY)
+	if (error == -ENXIO)
 		ddata->reserved = true;
+	else if (error)
+		return error;
 
 	error = sysc_get_clocks(ddata);
 	if (error)



[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