Skip to content

drm: Store USB device in struct drm_device

Thomas Zimmermann dri-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v23 patches 6 repliesSuperseded
  3. v13 patches 7 repliesSuperseded

Changes in v3 from the cover letter

* drop USB helper in favor of driver-internal helpers (Daniel)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/tiny/gm12u320: Retrieve USB device from struct drm_device.devdrivers/gpu/drm/tiny/gm12u320.c+28 -280 replies
2/2drm/udl: Retrieve USB device from struct drm_device.devdrivers/gpu/drm/udl/udl_connector.c drivers/gpu/drm/udl/udl_drv.c drivers/gpu/drm/udl/udl_drv.h +1 more+21 -190 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchHans de GoedeDaniel Vetter
1/2R-b A-b
2/2R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] drm: Store USB device in struct drm_device

The drivers gm12u320 and udl operate on USB devices. They leave the PCI device in struct drm_device empty and store the USB device in their own driver structure. It's expected that DRM core and helpers only touch the PCI-device field for actual PCI devices.

Fix this special case by upcasting struct drm_device.dev to the USB device. The drivers' udev variables are being removed.

v3:
* drop USB helper in favor of driver-internal helpers (Daniel)
v2:
* upcast USB device from struct drm_device.dev (Daniel)

Thomas Zimmermann (2):
drm/tiny/gm12u320: Retrieve USB device from struct drm_device.dev drm/udl: Retrieve USB device from struct drm_device.dev

 drivers/gpu/drm/tiny/gm12u320.c     | 56 ++++++++++++++---------------
 drivers/gpu/drm/udl/udl_connector.c |  8 ++---
 drivers/gpu/drm/udl/udl_drv.c       |  3 --
 drivers/gpu/drm/udl/udl_drv.h       |  6 +++-
 drivers/gpu/drm/udl/udl_main.c      | 23 ++++++------
 5 files changed, 49 insertions(+), 47 deletions(-)

--
2.29.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel