Skip to contentSkip to conversation

drm/bridge: ti-sn65dsi86: Set max register for regmap

PATCH Applied Stephen Boyd 2 participants 2 messages Dec 15, 2021 – Dec 16, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/bridge: ti-sn65dsi86: Set max register for regmap

Set the maximum register to 0xff so we can dump the registers for this device in debugfs.

Fixes a095f15c00e2 ("drm/bridge: add support for sn65dsi86 bridge driver")
Cc Rob Clark <[email protected]>
Cc Douglas Anderson <[email protected]>
Cc Laurent Pinchart <[email protected]>
---
 drivers/gpu/drm/bridge/ti-sn65dsi86.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/ti-sn65dsi86.c +1 -0
index 6154bed0af5b..83d06c16d4d7 100644
@@ -188,6 +188,7 @@ static const struct regmap_config ti_sn65dsi86_regmap_config = {
 	.val_bits = 8,
 	.volatile_table = &ti_sn_bridge_volatile_table,
 	.cache_type = REGCACHE_NONE,
+	.max_register = 0xFF,
 };
 
 static void ti_sn65dsi86_write_u16(struct ti_sn65dsi86 *pdata,

base-commit: 136057256686de39cc3a07c2e39ef6bc43003ff6

Signature · 1 line
https://chromeos.dev
Reviewed-by on v1 1/1 Applied
#1 lore raw

Hi Stephen,

Thanks for submitting this fix.

Quoted 26 lines · Stephen Boyd

Set the maximum register to 0xff so we can dump the registers for this device in debugfs.

Fixes a095f15c00e2 ("drm/bridge: add support for sn65dsi86 bridge driver")
Cc Rob Clark <[email protected]>
Cc Douglas Anderson <[email protected]>
Cc Laurent Pinchart <[email protected]>
---
 drivers/gpu/drm/bridge/ti-sn65dsi86.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/ti-sn65dsi86.c +1 -0
index 6154bed0af5b..83d06c16d4d7 100644
@@ -188,6 +188,7 @@ static const struct regmap_config ti_sn65dsi86_regmap_config = {
        .val_bits = 8,
        .volatile_table = &ti_sn_bridge_volatile_table,
        .cache_type = REGCACHE_NONE,
+       .max_register = 0xFF,
 };
 
 static void ti_sn65dsi86_write_u16(struct ti_sn65dsi86 *pdata,
Quoted 4 lines

base-commit: 136057256686de39cc3a07c2e39ef6bc43003ff6 --
https://chromeos.dev

Applied to drm-misc-next