All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: airlied@redhat.com, sean@poorly.run, patrik.r.jakobsson@gmail.com
Cc: dri-devel@lists.freedesktop.org, Thomas Zimmermann <tzimmermann@suse.de>
Subject: [PATCH 0/9] drm/udl: Support adapters without vendor firmware descriptor
Date: Tue,  1 Apr 2025 18:12:10 +0200	[thread overview]
Message-ID: <20250401161929.283244-1-tzimmermann@suse.de> (raw)

Fallback to default values for devices without vendor firmware
descriptor. Enables support for such devices. Since we're at it,
improve the descriptor parser.

Patches 1 to 3 do some cleanups for the driver.

Patches 4 to 8 rewrite the parser code for the vendor firmware
descriptor. It's now more compatible and validates the raw input
more reliably.

Patch 9 adds support for the additional devices.

Tested with various DisplayLink adapters, including one without
vendor firmware descriptor.

Thomas Zimmermann (9):
  drm/udl: Remove unused field dev from struct udl_device
  drm/udl: Remove unused field gem_lock from struct udl_device
  drm/udl: Improve type safety when using struct udl_device
  drm/udl: The number of pixels is always positive
  drm/udl: Handle errors from usb_get_descriptor()
  drm/udl: Return error if vendor descriptor is too short
  drm/udl: Treat vendor descriptor as u8
  drm/udl: Validate length in vendor-descriptor parser
  drm/udl: Support adapters without firmware descriptor

 drivers/gpu/drm/udl/udl_drv.c      |   6 +-
 drivers/gpu/drm/udl/udl_drv.h      |  19 ++--
 drivers/gpu/drm/udl/udl_main.c     | 174 +++++++++++++++++------------
 drivers/gpu/drm/udl/udl_modeset.c  |  21 ++--
 drivers/gpu/drm/udl/udl_transfer.c |   6 +-
 5 files changed, 128 insertions(+), 98 deletions(-)

-- 
2.49.0


             reply	other threads:[~2025-04-01 16:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-01 16:12 Thomas Zimmermann [this message]
2025-04-01 16:12 ` [PATCH 1/9] drm/udl: Remove unused field dev from struct udl_device Thomas Zimmermann
2025-04-01 16:12 ` [PATCH 2/9] drm/udl: Remove unused field gem_lock " Thomas Zimmermann
2025-04-01 16:12 ` [PATCH 3/9] drm/udl: Improve type safety when using " Thomas Zimmermann
2025-04-01 16:12 ` [PATCH 4/9] drm/udl: The number of pixels is always positive Thomas Zimmermann
2025-04-01 16:12 ` [PATCH 5/9] drm/udl: Handle errors from usb_get_descriptor() Thomas Zimmermann
2025-04-01 16:12 ` [PATCH 6/9] drm/udl: Return error if vendor descriptor is too short Thomas Zimmermann
2025-04-02 13:16   ` Patrik Jakobsson
2025-04-03  7:28     ` Thomas Zimmermann
2025-04-03 11:06       ` Patrik Jakobsson
2025-04-01 16:12 ` [PATCH 7/9] drm/udl: Treat vendor descriptor as u8 Thomas Zimmermann
2025-04-01 16:12 ` [PATCH 8/9] drm/udl: Validate length in vendor-descriptor parser Thomas Zimmermann
2025-04-01 16:12 ` [PATCH 9/9] drm/udl: Support adapters without firmware descriptor Thomas Zimmermann
2025-04-03 11:03   ` Patrik Jakobsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250401161929.283244-1-tzimmermann@suse.de \
    --to=tzimmermann@suse.de \
    --cc=airlied@redhat.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=patrik.r.jakobsson@gmail.com \
    --cc=sean@poorly.run \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.