Re: BUG: scheduling while atomic in f_fs when gadget remove driver

2016-10-03 Thread John Stultz
On Mon, Oct 3, 2016 at 1:16 PM, John Stultz wrote: > On Mon, Oct 3, 2016 at 1:07 PM, Michal Nazarewicz wrote: >> On Mon, Oct 03 2016, John Stultz wrote: >>> Can you resend it using git-send-email or in some way other then >>> embedding it inline here?

Re: BUG: scheduling while atomic in f_fs when gadget remove driver

2016-10-03 Thread Michal Nazarewicz
On Mon, Oct 03 2016, John Stultz wrote: > On Wed, Sep 28, 2016 at 2:38 PM, Michal Nazarewicz wrote: >> On Wed, Sep 28 2016, Michal Nazarewicz wrote: >>> With that done, the only thing which needs a mutex is >>> epfile->read_buffer. >> >> Perhaps this would do: >> >> >8

Re: BUG: scheduling while atomic in f_fs when gadget remove driver

2016-10-03 Thread John Stultz
On Wed, Sep 28, 2016 at 2:38 PM, Michal Nazarewicz wrote: > On Wed, Sep 28 2016, Michal Nazarewicz wrote: >> With that done, the only thing which needs a mutex is >> epfile->read_buffer. > > Perhaps this would do: > > >8 --

Re: BUG: scheduling while atomic in f_fs when gadget remove driver

2016-09-29 Thread Chen Yu
Hi Michal, Thanks for the patch. 在 2016/9/29 5:38, Michal Nazarewicz 写道: > On Wed, Sep 28 2016, Michal Nazarewicz wrote: >> With that done, the only thing which needs a mutex is >> epfile->read_buffer. > > Perhaps this would do: > I tested the patch on Hikey board with adb function on

Re: BUG: scheduling while atomic in f_fs when gadget remove driver

2016-09-28 Thread Michal Nazarewicz
On Wed, Sep 28 2016, Michal Nazarewicz wrote: > With that done, the only thing which needs a mutex is > epfile->read_buffer. Perhaps this would do: >8 -- - >From 6416a1065203a39328311f6c58083089efe169aa Mon Sep 17 00:00:00 2001

Re: BUG: scheduling while atomic in f_fs when gadget remove driver

2016-09-28 Thread Michal Nazarewicz
On Wed, Sep 28 2016, Chen Yu wrote: > I will try to fix it, but I'm engaged in other tasks and can not spend > much time on it. > > Do you have any suggestions about how to fix it? epfile->ep is protected by ffs->eps_lock which brings us to realisation that there is another bug in the code and we

Re: BUG: scheduling while atomic in f_fs when gadget remove driver

2016-09-28 Thread Chen Yu
Hi, 在 2016/9/27 18:01, Felipe Balbi 写道: > > Hi, > > Chen Yu writes: >> Hi All, >> >> I'm working on Hikey board based around the HiSilicon Kirin 620, with >> linaro kernel version 4.8.rc1 and I get below BUG error while >> extracting USB cable from PC. > > which

Re: BUG: scheduling while atomic in f_fs when gadget remove driver

2016-09-27 Thread Felipe Balbi
Hi, Chen Yu writes: > Hi All, > > I'm working on Hikey board based around the HiSilicon Kirin 620, with > linaro kernel version 4.8.rc1 and I get below BUG error while > extracting USB cable from PC. which peripheral controller does this one have? Is it dwc3? I'm very