Re: Linux 4.2.0-rc5: am335x: musb warnings

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

 



Hi,

On Wed, May 04, 2016 at 04:33:14PM +0200, Marcin Niestroj wrote:
> On 04.05.2016 16:14, Bin Liu wrote:
> >Hi,
> >
> >On Wed, May 04, 2016 at 04:00:59PM +0200, Marcin Niestroj wrote:
> >>On 04.05.2016 15:53, Bin Liu wrote:
> >>>Hi,
> >>>
> >>>On Wed, May 04, 2016 at 03:44:41PM +0200, Marcin Niestroj wrote:
> >>>>Hi,
> >>>>
> >>>>On 03.05.2016 15:37, Bin Liu wrote:
> >>>>>Hi,
> >>>>>
> >>>>>On Tue, May 03, 2016 at 03:19:10PM +0200, Yegor Yefremov wrote:
> >>>>>>On Tue, May 3, 2016 at 3:16 PM, Bin Liu <b-liu@xxxxxx> wrote:
> >>>>>>>Hi,
> >>>>>>>
> >>>>>>>On Tue, May 03, 2016 at 11:03:23AM +0200, Yegor Yefremov wrote:
> >>>>>>>>On Thu, Apr 14, 2016 at 6:50 PM, Bin Liu <b-liu@xxxxxx> wrote:
> >>>>>>>>>Hi,
> >>>>>>>>>
> >>>>>>>>>On Thu, Apr 07, 2016 at 09:09:50AM +0200, Yegor Yefremov wrote:
> >>>>>>>>>>>>Could you then look at the freeze issue with removing FTDI device
> >>>>>>>>>>>>during it is working?
> >>>>>>>>>>>
> >>>>>>>>>>>I can. I will have to first locate a FT4243H device.
> >>>>>>>>>>
> >>>>>>>>>>Insert MA260 and execute following command:
> >>>>>>>>>>
> >>>>>>>>>>cat /dev/zero > /dev/ttyUSB2
> >>>>>>>>>>
> >>>>>>>>>>then remove MA260 - system freezes.
> >>>>>>>>>
> >>>>>>>>>Can you please try the patch [1] to see if it fixes the system freezing
> >>>>>>>>>issue?
> >>>>>>>>>
> >>>>>>>>>[1] http://marc.info/?l=linux-usb&m=144683124825113&w=2
> >>>>>>>>
> >>>>>>>>I've tested this patch with both FTDI FT4232HS as also Huawei
> >>>>>>>>ME909u-521. I can produce a freeze with both devices.
> >>>>>>>
> >>>>>>>Please remind me, is the dongle directly connected to MUSB or behind a
> >>>>>>>hub?
> >>>>>>
> >>>>>>Behind a hub.
> >>>>>>
> >>>>>>Btw your other patch "musb_host: fix lockup on rxcsr_h_error" is working.
> >>>>>
> >>>>>Thanks for the update.
> >>>>>
> >>>>>Can you please test the patch [1] instead? I'd like to use it as the
> >>>>>fix.
> >>>>
> >>>>We are running a system on ChiliBoard (am335x) and we have also noticed
> >>>>freezes caused by usb driver. After applying this patch, we are not able
> >>>>to reproduce the issue anymore.
> >>>
> >>>Thanks for the report.
> >>>
> >>>>
> >>>>Our setup: We have Telit LE910 modem connected to USB hub, which is
> >>>>connected to am335x. We use AT commands (usb option driver) to control
> >>>>modem. Freezing happens when we poweroff the modem (issue poweroff to
> >>>>modem, not simply remove the power). Before freeze, we have active
> >>>>connection to some modem's virtual serial ports (GPS, modem connection).
> >>>
> >>>It seems to be the same problem which the patch fixes.
> >>>
> >>>>
> >>>>We also noticed, that when we remove 5V power from the board, system
> >>>
> >>>From which board? the ChiliBoard or Telit?
> >>
> >>From ChiliBoard. But ChiliBoard is suppied by both, 5V (AC) and USB.
> >>ChiliBoard stays active, because PMIC switches automatically to USB.
> >>Telit however goes down, because it is supplied directly from 5V (AC).
> >
> >I am not sure I understand what happens. When you remove 5V from the
> >board, it not only powers off the modem, but also the ChiliBoard, so
> >nothing is running then, what do you mean by 'system unfreezes'? Putting
> >back the 5V system works fine? Of cause, this is reboot. The freezing
> >only happens when disconnecting the device.
> 
> When we remove AC (refered as 5V in my previous comments) from the
> ChiliBoard it is still active, because it starts to use USB power from
> PC (in fact also 5V). Only Telit powers down, because it uses AC 5V
> directly.

Ok, clear now.

> 
> In summary: after unplugging AC cable ChiliBoard is still powered, but
> with USB power from PC. Telit is powered down, because it is connected
> to AC 5V directly, with no option to use USB power from PC.

It will be interesting to see what is happening when removing AC from
ChiliBoard. You could first try to turn on dynamic debug log in
musb_host.c. A bus trace between MUSB and hub also could help.

Regards,
-Bin.

> 
> >
> >Regards,
> >-Bin.
> >
> >>
> >>>
> >>>>unfreezes and works ok from that time. In our case 5V is used to power
> >>>>Telit modem.
> >>>>
> >>>>>
> >>>>>Regards,
> >>>>>-Bin.
> >>>>>
> >>>>>[1] http://marc.info/?l=linux-usb&m=146222355213935&w=2
> >>>>>
> >>>>>--
> >>>>>To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> >>>>>the body of a message to majordomo@xxxxxxxxxxxxxxx
> >>>>>More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >>>>>
> >>>>
> >>>>--
> >>>>Regards,
> >>>>Marcin
> >>>
> >>>Regards,
> >>>-Bin.
> >>>--
> >>>To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> >>>the body of a message to majordomo@xxxxxxxxxxxxxxx
> >>>More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >>>
> >>
> >>--
> >>Regards,
> >>Marcin
> 
> -- 
> Regards,
> Marcin
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux