From 00d082cc4ea6e42ec4fed832a1020231bb1ca150 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 6 Mar 2019 22:48:35 +0200 Subject: drm: rcar-du: lvds: Set LVEN and LVRES bits together on D3 On the D3 SoC the LVDS PHY must be enabled in the same register write that enables the LVDS output. Skip writing the LVEN bit independently on that platform, it will be set by the write that sets LVRES. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- drivers/gpu/drm/rcar-du/rcar_lvds.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'drivers/gpu') diff --git a/drivers/gpu/drm/rcar-du/rcar_lvds.c b/drivers/gpu/drm/rcar-du/rcar_lvds.c index 9d8058d5c20a..620b51aab291 100644 --- a/drivers/gpu/drm/rcar-du/rcar_lvds.c +++ b/drivers/gpu/drm/rcar-du/rcar_lvds.c @@ -485,9 +485,13 @@ static void rcar_lvds_enable(struct drm_bridge *bridge) } if (lvds->info->quirks & RCAR_LVDS_QUIRK_GEN3_LVEN) { - /* Turn on the LVDS PHY. */ + /* + * Turn on the LVDS PHY. On D3, the LVEN and LVRES bit must be + * set at the same time, so don't write the register yet. + */ lvdcr0 |= LVDCR0_LVEN; - rcar_lvds_write(lvds, LVDCR0, lvdcr0); + if (!(lvds->info->quirks & RCAR_LVDS_QUIRK_PWD)) + rcar_lvds_write(lvds, LVDCR0, lvdcr0); } if (!(lvds->info->quirks & RCAR_LVDS_QUIRK_EXT_PLL)) { -- cgit v1.2.3 ec61ba342c8cebbfdf0fcdcd9ce54f7fa1'>treecommitdiffstats
AgeCommit message (Expand)AuthorFilesLines
2023-04-27cdx: fix build failure due to sysfs 'bus_type' argument needing to be constLinus Torvalds1-1/+1
2023-04-27ring-buffer: Sync IRQ works before buffer destructionJohannes Berg1-0/+4
2023-04-27mailmap: add entries for Paul MackerrasPaul Mackerras1-0/+2
2023-04-27libgcc: add forward declarations for generic library routinesGeert Uytterhoeven1-0/+7
2023-04-27mm,unmap: avoid flushing TLB in batch if PTE is inaccessibleHuang Ying1-4/+8
2023-04-27shmem: restrict noswap option to initial user namespaceChristian Brauner1-0/+4
2023-04-27mm/khugepaged: fix conflicting mods to collapse_file()Hugh Dickins1-22/+1
2023-04-27mm/mremap: fix vm_pgoff in vma_merge() case 3Vlastimil Babka1-1/+1
2023-04-27xfs: fix livelock in delayed allocation at ENOSPCDave Chinner1-1/+0
2023-04-26timekeeping: Fix references to nonexistent ktime_get_fast_ns()Geert Uytterhoeven1-2/+2
2023-04-26RISC-V: hwprobe: Explicity check for -1 in vdso initAndrew Jones1-1/+1
2023-04-26RISC-V: hwprobe: There can only be one firstAndrew Jones1-1/+3
2023-04-26riscv: Allow to downgrade paging mode from the command lineAlexandre Ghiti10-9/+154
2023-04-26dt-bindings: riscv: add sv57 mmu-typeConor Dooley1-0/+1
2023-04-26tracing: Add missing spaces in trace_print_hex_seq()Ken Lin1-1/+4
2023-04-26ring-buffer: Ensure proper resetting of atomic variables in ring_buffer_reset...Tze-nan Wu1-3/+13
2023-04-26net: phy: hide the PHYLIB_LEDS knobPaolo Abeni1-3/+1
2023-04-26powerpc/64s: Disable pcrel code model on ClangNicholas Piggin1-1/+6
2023-04-26powerpc: Fix merge conflict between pcrel and copy_thread changesNicholas Piggin1-1/+1
2023-04-25RISC-V: hwprobe: Remove __init on probe_vendor_features()Evan Green3-6/+6
2023-04-25recordmcount: Fix memory leaks in the uwrite functionHao Zeng1-1/+5
2023-04-25tracing/user_events: Limit max fault-in attemptsBeau Belgrave1-14/+35
2023-04-25tracing/user_events: Prevent same address and bit per processBeau Belgrave2-1/+49
2023-04-25tracing/user_events: Ensure bit is cleared on unregisterBeau Belgrave2-3/+40
2023-04-25tracing/user_events: Ensure write index cannot be negativeBeau Belgrave2-0/+8
2023-04-25seq_buf: Add seq_buf_do_printk() helperSergey Senozhatsky2-0/+34
2023-04-25tracing: Fix print_fields() for __dyn_loc/__rel_locBeau Belgrave1-4/+6
2023-04-25tracing/user_events: Set event filter_type from typeBeau Belgrave1-0/+3
2023-04-25ring-buffer: Clearly check null ptr returned by rb_set_head_page()Zheng Yejian1-2/+3
2023-04-25rtla/timerlat: Fix "Previous IRQ" auto analysis' lineDaniel Bristot de Oliveira1-1/+1
2023-04-25rtla/timerlat: Add auto-analysis only optionDaniel Bristot de Oliveira2-5/+51
2023-04-25rv: Remove redundant assignment to variable retvalColin Ian King1-2/+0
2023-04-25rv: Fix addition on an uninitialized variable 'run'Colin Ian King1-1/+1