Re: [PATCH 0/3] Remove usb_host class

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

 



On Mon, May 04, 2009 at 03:34:37PM -0400, Alan Stern wrote:
> On Mon, 4 May 2009, Kay Sievers wrote:
> 
> > Like this? Like spring cleaning? :)
> > 
> > I left some of the earlier changes in, to make sure, that nothing goes
> > wrong, if the devices are eventually added to the usb bus (they would
> > just need unique names).
> > 
> > Thanks,
> > Kay
> > 
> > 
> > From: Kay Sievers <kay.sievers@xxxxxxxx>
> > Subject: usb: convert endpoint devices to bus-less childs of the usb interface
> > 
> > The endpoint devices look like simple attribute groups now, and no longer
> > like devices with a specific subsystem. They will also no longer emit uevents.
> > 
> > It also removes the device node requests for endpoint devices, which are not
> > implemented for now.
> 
> This all looks okay to me.
> 
> Acked-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
> 
> If we are going to fulfill Dave's dream, this line:
> 
> > +	dev_set_name(&ep_dev->dev, "ep_%02x", endpoint->desc.bEndpointAddress);
> 
> should instead become:
> 
> 	if (usb_endpoint_xfer_control(&endpoint->desc))
> 		dev_set_name(&ep_dev->dev, "ep%d",
> 				usb_endpoint_num(&endpoint->desc));
> 	else
> 		dev_set_name(&ep_dev->dev, "ep%d-%s",
> 				usb_endpoint_num(&endpoint->desc),
> 				usb_endpoint_dir_in(&endpoint->desc) ?
> 					"in" : "out");

No, I really don't want to fufill Dave's dream here :)

The direction doesn't belong in a "bus id" type description, the address
is fine to have here like it currently is.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

  Powered by Linux