Skip to content

Commit c7c31f8

Browse files
nirmoytdz
authored andcommitted
drm/ast: Use msleep instead of mdelay for edid read
The busy-waiting in `mdelay()` can cause CPU stalls and kernel timeouts during boot. Signed-off-by: Nirmoy Das <[email protected]> Reviewed-by: Thomas Zimmermann <[email protected]> Tested-by: Carol L Soto [email protected]<mailto:[email protected]> Fixes: 594e9c0 ("drm/ast: Create the driver for ASPEED proprietory Display-Port") Cc: KuoHsiang Chou <[email protected]> Cc: Thomas Zimmermann <[email protected]> Cc: Dave Airlie <[email protected]> Cc: Jocelyn Falempe <[email protected]> Cc: [email protected] Cc: <[email protected]> # v5.19+ Signed-off-by: Thomas Zimmermann <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 288dac9 commit c7c31f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/ast/ast_dp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static int ast_astdp_read_edid_block(void *data, u8 *buf, unsigned int block, si
134134
* 3. The Delays are often longer a lot when system resume from S3/S4.
135135
*/
136136
if (j)
137-
mdelay(j + 1);
137+
msleep(j + 1);
138138

139139
/* Wait for EDID offset to show up in mirror register */
140140
vgacrd7 = ast_get_index_reg(ast, AST_IO_VGACRI, 0xd7);

0 commit comments

Comments
 (0)