Re: [PATCH v4] usb: dwc3: debugfs: Prevent any register access when devices

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

 





On 04.04.23 13:43, Johan Hovold wrote:

The device is being used; by the driver and ultimately by a user telling

I am afraid that is just an assumption we cannot make. The user may just as
well be reading a device state before a device is being used as that may matter.

the driver to do something on their behalf. The fact that the user is
initiating an action through an interface which intended for debugging
should not matter (and the user always has the option to check the
runtime pm state before initiating the action if that matters at all).

1. That is a race condition.
2. Quite a lot of bugs we are looking at involve power transitions.
You just cannot assume that a device will react the same way if it was
waken up between events.

	Regards
		Oliver




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

  Powered by Linux