projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d97950
)
drm/udl: fix control-message timeout
author
Johan Hovold
<johan@kernel.org>
Mon, 25 Oct 2021 11:53:53 +0000
(13:53 +0200)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Fri, 5 Nov 2021 10:15:14 +0000
(11:15 +0100)
USB control-message timeouts are specified in milliseconds and should
specifically not vary with CONFIG_HZ.
Fixes:
5320918b9a87
("drm/udl: initial UDL driver (v4)")
Cc: stable@vger.kernel.org # 3.4
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link:
https://patchwork.freedesktop.org/patch/msgid/20211025115353.5089-1-johan@kernel.org
drivers/gpu/drm/udl/udl_connector.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/udl/udl_connector.c
b/drivers/gpu/drm/udl/udl_connector.c
index
3750fd2
..
930574a
100644
(file)
--- a/
drivers/gpu/drm/udl/udl_connector.c
+++ b/
drivers/gpu/drm/udl/udl_connector.c
@@
-30,7
+30,7
@@
static int udl_get_edid_block(void *data, u8 *buf, unsigned int block,
int bval = (i + block * EDID_LENGTH) << 8;
ret = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0),
0x02, (0x80 | (0x02 << 5)), bval,
- 0xA1, read_buff, 2,
HZ
);
+ 0xA1, read_buff, 2,
1000
);
if (ret < 1) {
DRM_ERROR("Read EDID byte %d failed err %x\n", i, ret);
kfree(read_buff);