Re: [PATCH] HID: wacom: Ensure bootloader PID is usable in hidraw mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 1 Dec 2022, Jason Gerecke wrote:

> From: Jason Gerecke <killertofu@xxxxxxxxx>
> 
> Some Wacom devices have a special "bootloader" mode that is used for
> firmware flashing. When operating in this mode, the device cannot be
> used for input, and the HID descriptor is not able to be processed by
> the driver. The driver generates an "Unknown device_type" warning and
> then returns an error code from wacom_probe(). This is a problem because
> userspace still needs to be able to interact with the device via hidraw
> to perform the firmware flash.
> 
> This commit adds a non-generic device definition for 056a:0094 which
> is used when devices are in "bootloader" mode. It marks the devices
> with a special BOOTLOADER type that is recognized by wacom_probe() and
> wacom_raw_event(). When we see this type we ensure a hidraw device is
> created and otherwise keep our hands off so that userspace is in full
> control.
> 
> Signed-off-by: Jason Gerecke <jason.gerecke@xxxxxxxxx>
> Tested-by: Tatsunosuke Tobita <tatsunosuke.tobita@xxxxxxxxx>
> Cc: <stable@xxxxxxxxxxxxxxx>

Applied, thanks.

-- 
Jiri Kosina
SUSE Labs




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux