Re: [PATCH v2 11/14] USB: add connect_type == hotplug as a port poweroff constraint

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

 



On Fri, Nov 22, 2013 at 2:41 AM, Oliver Neukum <oneukum@xxxxxxx> wrote:
> On Fri, 2013-11-22 at 01:08 -0800, Dan Williams wrote:
>> Now that userspace can discover the constraints keeping a port powered, require
>> it to explicitly disable hotplug capability before powering off a port.  This
>> makes the 'connect_type' attribute writable, and must be set to 'hardwired'
>> before a port is a candidate for poweroff.
>
> Is it really desirable to have false information here?
> It would seem better to admit that a port is hotpluggable
> even if we don't care at some times about hotplug.
> I'd prefer a fifth state, like "ignored" for this facility.
>

Hm, that would also help with recovering the original state of the
connection-type.  Maybe enforece hotplug ports can only transition to
an 'ignore' type, and conversely have a 'force hotplug' type for
enabling hotplug on a 'hardwired' port.
--
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