Skip to content

Commit 24138ec

Browse files
committed
Merge tag 'omap-for-v6.5/ti-sysc-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into soc/drivers
Non-urgent ti-sysc driver fix for v6.5 merge window A fix for masking bool variables that can wait for the merge window no problem. * tag 'omap-for-v6.5/ti-sysc-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: bus: ti-sysc: Fix dispc quirk masking bool variables Link: https://lore.kernel.org/r/pull-1685700720-242492@atomide.com Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents acaa52b + f620596 commit 24138ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/bus/ti-sysc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,7 +1791,7 @@ static u32 sysc_quirk_dispc(struct sysc *ddata, int dispc_offset,
17911791
if (!ddata->module_va)
17921792
return -EIO;
17931793

1794-
/* DISP_CONTROL */
1794+
/* DISP_CONTROL, shut down lcd and digit on disable if enabled */
17951795
val = sysc_read(ddata, dispc_offset + 0x40);
17961796
lcd_en = val & lcd_en_mask;
17971797
digit_en = val & digit_en_mask;
@@ -1803,7 +1803,7 @@ static u32 sysc_quirk_dispc(struct sysc *ddata, int dispc_offset,
18031803
else
18041804
irq_mask |= BIT(2) | BIT(3); /* EVSYNC bits */
18051805
}
1806-
if (disable & (lcd_en | digit_en))
1806+
if (disable && (lcd_en || digit_en))
18071807
sysc_write(ddata, dispc_offset + 0x40,
18081808
val & ~(lcd_en_mask | digit_en_mask));
18091809

0 commit comments

Comments
 (0)