Skip to content

Commit 1e16a40

Browse files
committed
Merge tag 'omap-for-v5.14/gpt12-fix-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into arm/fixes
Fix for omap gpt12 timer error handling Two of the recent fixes for ti-sysc driver had bad interaction for a function return value that caused one of the fixes to not work so we need to change the return value handling. Otherwise early beagleboard variants still have a boot issue. * tag 'omap-for-v5.14/gpt12-fix-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: bus: ti-sysc: Fix error handling for sysc_check_active_timer() Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents d0dc706 + 06a089e commit 1e16a40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/bus/ti-sysc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3097,8 +3097,10 @@ static int sysc_probe(struct platform_device *pdev)
30973097
return error;
30983098

30993099
error = sysc_check_active_timer(ddata);
3100-
if (error == -EBUSY)
3100+
if (error == -ENXIO)
31013101
ddata->reserved = true;
3102+
else if (error)
3103+
return error;
31023104

31033105
error = sysc_get_clocks(ddata);
31043106
if (error)

0 commit comments

Comments
 (0)