On Saturday, May 16, 2015 07:43:07 AM Viresh Kumar wrote:
On 16-05-15, 03:18, Rafael J. Wysocki wrote:
You seem to be breaking things first and then fixing them up with this patch.
Would it be possible to avoid breaking them in the first place?
I thought it was already broken in mainline and so did it towards the end. Will check that again.
Well, if the sysfs directories are removed on every offline, then in particular they will be removed when the device is physically going away, so it should actually work (unless we've broken it already and nobody noticed).
If you want to keep them around after offline, you need to become careful about the "physical hot-remove" case at the same time (and not several patches later).