Re: [PATCH 1/2] usb: Add support for indicating port visibility

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

 



On Thu, Oct 06, 2011 at 01:13:26PM -0400, Alan Stern wrote:

> No particular objections.  Why do you store that characteristic
> explicitly in the device structure, as opposed to determining it
> whenever the sysfs file is read?  The usb_set_device_visibility() 
> routine could be renamed to usb_device_is_removable() and made public 
> so that show_removable() can call it.

The hub descriptor isn't the only data source. Making it dynamic would 
involve adding extra callbacks to hook into the platform code, so 
there's some extra complexity there without any terribly large benefit. 
We certainly could do it that way, but do you expect the data to change?

-- 
Matthew Garrett | mjg59@xxxxxxxxxxxxx
--
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