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

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

 



Please use Reply-To-All so that your message goes to the mailing list as 
well as to me.

On Fri, Dec 15, 2023 at 05:17:02PM -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. Do you have any suggestions?

I can't really suggest anything without knowing more about your
userspace environment.  It's very unusual to be in a situation where
you are allowed to modify the kernel by adding a new driver but you
aren't allowed to modify the userspace by adding a new shell script!

Alan Stern

> On Fri, Dec 15, 2023 at 4:46 PM Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
> wrote:
> 
> > On Fri, Dec 15, 2023 at 03:12:10PM -0600, Yinghua Yang wrote:
> > > New USB driver that sets power/control to autosuspend for Motorola
> > > Solutions security accessories. The new driver only changes the power
> > > control for specific USB devices, normal read/write/ioctl of the usb
> > > device uses the unmodified usbfs.
> > >
> > > The rationale for a vendor specific driver was to allow for autosuspend
> > > behavior on Linux installations that are battery powered and do not
> > > allow user modifications to udev settings (e.g. embedded Linux, Android,
> > > etc.). The idealistic generic approach that would allow any USB device
> > > that supports autosuspend to change the power control could not be found
> > > without a change to the USB standard or substantial change to the usbfs
> > > architecture.
> > >
> > > Signed-off-by: Yinghua Yang <Yinghua.Yang@xxxxxxxxxxxxxxxxxxxxx>
> > > ---
> >
> > It seems silly to write a kernel driver for this.  Isn't there any way
> > to handle it in userspace?  All you would need is a simple shell
> > script.
> >
> > Alan Stern
> >
> 
> -- 
> 
> 
> *For more information on how and why we collect your personal 
> information, please visit our Privacy Policy 
> <https://www.motorolasolutions.com/en_us/about/privacy-policy.html?elqTrackId=8980d888905940e39a2613a7a3dcb0a7&elqaid=2786&elqat=2#privacystatement>.*




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux