Re: [PATCH] usb: misc: Add driver for Motorola Solutions security accessories

From: Greg KH
Date: Sun Dec 17 2023 - 03:29:30 EST


On Sat, Dec 16, 2023 at 12:15:35PM -0600, Yinghua Yang Yang wrote:
> I would prefer an easier way too. On a linux platform where udev
> is supported, a udev rule can be used to set the power/control flag. But on
> the platform I am using, the udev is not available and I don't have
> root access.
> If this driver is accepted by the Linux kernel, we hope the driver will
> subsequently be picked up by the platform's hardware vendor. With that, any
> USB device that is specified by this driver when plugged into the platform,
> auto suspend will be enabled on it.
>
> Any suggestions will be appreciated.

As Alan says, please just fix your userspace to properly enable the
correct setting, no need for a kernel change at all.

You have the contacts and interactions to work with the hardware vendor,
don't use the kernel community as a "back door" to circumvent that.

thanks,

greg k-h