Re: [PATCH 08/10] usb: add usb port auto power off mechanism

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

 



On Fri, 7 Dec 2012, Lan Tianyu wrote:

> > Maybe you really need two flags.  Do whatever is best; I'm sure you can
> > figure out a good scheme.
> Yeah. Two flags maybe good. In this situation, it should be call
> "power_is_on", right? power_is_on can be used to avoid to sending
> redundant PORT_POWER request. The other flag is dedicated to prevent
> device from being disconnected. Something like hub->busy_bits. We can
> can "child_busy", I am not very good at giving a name. So I'd like to
> see your opinion. :)

How about "needs_debounce"?

Alan Stern

--
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