Re: [RFC, PATCH 0/2] Enable setting leds via hidraw on Sixaxis

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

 



On Wed, 13 Oct 2010 18:15:05 -0400
Alan Ott <alan@xxxxxxxxxxx> wrote:

> On 10/13/2010 04:57 PM, Antonio Ospite wrote:
> > Hi,
> >
> > this series adds a new quirk to force output reports to be sent over the
> > control endpoint rather than the interrupt ep, this is needed on our
> > "beloved" Sixaxis controller in order to set leds via hidraw, sending
> > the output report on the interrupt endpoint does not have any effect
> > whatsoever.
> >
> > This is just an RFC for now, the quirk name can be improved, and I have
> > to make clear in the code and in the commit messages if this is for
> > hidraw only, but you can get the idea already.
> >
> > Thanks,
> >     Antonio
> >
> >
> > Antonio Ospite (2):
> >    HID: usbhid, new quirk to force out reports on the control ep
> >    HID: hid-sony, use HID_QUIRK_FORCE_OUT_CONTROL_EP for Sixaxis
> >
> >   include/linux/hid.h           |    1 +
> >   drivers/hid/hid-sony.c        |    4 +++-
> >   drivers/hid/usbhid/hid-core.c |    3 ++-
> >   3 files changed, 6 insertions(+), 2 deletions(-)
> >
> >
> >    
> 
> Hi Antonio,
> 
> If it were me, I'd just call usb_control_msg() from inside your driver 
> (hid-sony) instead of calling usbhid_output_report(). What's wrong with 
> doing that?
>

Alan, yeah, _overriding_ the usbhid_output_report() method with another
function which performs usb_control_msg() unconditionally could work; I
am giving that a try.

Thanks,
   Antonio

-- 
Antonio Ospite
http://ao2.it

PGP public key ID: 0x4553B001

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?

Attachment: pgpw__yHin0yM.pgp
Description: PGP signature


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux