Re: [patch 06/16] usb: add the concept of default authorization to USB hosts

Inaky Perez-Gonzalez <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization Intel Corporation
Message-ID <[email protected]>
On Tuesday 17 July 2007, Greg KH wrote:
> On Tue, Jul 10, 2007 at 12:45:02PM -0700, [email protected] wrote:
> > +static
> > +ssize_t usb_host_authorized_default_show(struct class_device *dev, char *buf)
> > +{
> > +	struct usb_bus *usb_bus = class_get_devdata(dev);
> > +	struct usb_hcd *usb_hcd = container_of(usb_bus, struct usb_hcd, self);
> > +	return snprintf(buf, PAGE_SIZE, "%u\n", usb_hcd->authorized_default);
> > +}
> 
> I'm currently trying _really_ hard to just drop the whole
> /sys/class/usb_host/ stuff entirely as no one currently uses it other
> than for debugging stuff.
> 
> So I'd really prefer to not add new stuff here that I'll just have to
> rip out in a few weeks anyway.
> 
> Is there any where else you can add this?  Does this really need to be
> on a per-host-controller basis?  If so, just add it to the host
> controller device itself, not in this class_device.

I was looking into it, but as I saw class_host was still there, I sat
for it. I'll replace it with the controller device or the root hub.
Give me a couple of hours and will resend the whole patch series (I also
had to fix a couple of patches and add two more).

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.