* John Stultz <john.stultz@xxxxxxxxxx> [181211 19:51]: > On Tue, Dec 11, 2018 at 11:25 AM Ricardo Salveti <rsalveti@xxxxxxxxxxxx> wrote: > > Then tried to reproduce with a simple 'while true; do ip link set dev > > wlan0 down; ip link set dev wlan0 up; done;' and it was already enough > > to cause the same hang. Adding a simple sleep 1 after down/up is > > already enough to make it work, so something might be missing during > > the down/up process that only happens when they get called right after > > the other. With while true test above, I'm getting: wlcore: ERROR timeout waiting for the hardware to complete initialization Then after ctrl-c, wlan0 connects to the access point just fine for me. Is that what you're seeing or some oops? > > And it works fine with NetworkManager when I disable MAC address > > randomization simply because it only brings the interface up once, > > avoiding the hang. > > > > Will enable debug and try to get a better trace. > > I'm not totally sure you're both seeing the same issue, but if its > helpful, here's the bug that Anders was working: > https://bugs.linaro.org/show_bug.cgi?id=3960 > > There's some mixing of a separate USB issue that has since been > resolved. But from the notes in that bug, Anders had possibly isolated > the wlcore issue down to the following commit: > https://git.linaro.org/people/anders.roxell/linux.git/commit/?h=tests-lwcore&id=598bfffb593d3fd0e31e790d604b44c9c5df368e > > I wonder if something in that pm_runtime change effects this? Maybe yeah. Anyways, should be trivial to fix now once we figure out how to reproduce it manually :) Regards, Tony