Skip to content

Commit 5591c8f

Browse files
jhovolddanvet
authored andcommitted
drm/udl: fix control-message timeout
USB control-message timeouts are specified in milliseconds and should specifically not vary with CONFIG_HZ. Fixes: 5320918 ("drm/udl: initial UDL driver (v4)") Cc: [email protected] # 3.4 Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 0d97950 commit 5591c8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/udl/udl_connector.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static int udl_get_edid_block(void *data, u8 *buf, unsigned int block,
3030
int bval = (i + block * EDID_LENGTH) << 8;
3131
ret = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0),
3232
0x02, (0x80 | (0x02 << 5)), bval,
33-
0xA1, read_buff, 2, HZ);
33+
0xA1, read_buff, 2, 1000);
3434
if (ret < 1) {
3535
DRM_ERROR("Read EDID byte %d failed err %x\n", i, ret);
3636
kfree(read_buff);

0 commit comments

Comments
 (0)