Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1490744

Re: RK3288 USB Issues

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Norbert Lange <nolange79@gmail.com>
Newsgroups linux.kernel
Subject Re: RK3288 USB Issues
Date Sat, 24 Sep 2016 22:20:01 +0200
Message-ID <sl1At-5AQ-9@gated-at.bofh.it> (permalink)
References <sl0l3-4Bt-13@gated-at.bofh.it> <sl0l3-4Bt-15@gated-at.bofh.it> <sl0l3-4Bt-17@gated-at.bofh.it> <sl0l3-4Bt-11@gated-at.bofh.it>
X-Original-To ayaka <ayaka@soulik.info>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6LLZy0uVBVVy+vWekrV1aXNbtVES2F5hGsmE4/oKq7U=; b=CzkUbvPpKwW4/jOf7u/KjTF8JlwpJGAZrfLh60rlI5tR3ocLIA8O4+KASApg3davLa Y7wR+zm2BbbhtegBr0tG9g0E3QJT6NUxDD/y8rd5QePM92vzul4AMDPlUKlOE4uC1rPO M15AElusAnOrGc5LpLptzln7j6fLMkAj15hhSuyMcSiX7i4mD1xCVlF7pHVl0GB4bUhR Anve4GSX6gbR7PbgcositMBqxA+qfKwRQ8maBG0Tf1/g+8GYxq+k4ug6QXtReBQAOlGw 4735R0eylokPpNqim+Qn/N+zuCsaQbndnDirULNL8b6fM5gbecdl2PYk8kRMklijOp5I GiPw==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=6LLZy0uVBVVy+vWekrV1aXNbtVES2F5hGsmE4/oKq7U=; b=ExcDty1ouxCAAZ4L9VQw+9zcpWTWoIDhIPeP9tEYTJfHwdoHnZOaFs3UJk2OZQY8vG TcXIPvb1qKgkFGEwaqgg90XGU3WK9N8KkaP27nQpk71JQp2WzS3xn/s70FiFV4Q0HGvf pPXWjkJ2nx2PEI4A+h1VY5rIcIc36KZ02bk3Gp3ZXvqPgVivFcK79kGRJLj8f0/2hKmR fLQOelZYF1bhlW0tZSHCL2TcxpBOmFiaELYArjwPw4riXmupO03maaRkj7fkMMSCz2TD dTbLAKUMswo4arF0wMrKb545U41Qg2eNlnm48htXLDa19hwnClWZvzSIlm+r6X/mu5ct wd5A==
X-Gm-Message-State AE9vXwN5lXSClxC7T5lwAIUWvbTATEsMFOMWC6iu2ghvpwi5s42+c91FLzwWsnKQKHKL0op1taItR2TK+ScPtw==
X-Received by 10.202.56.136 with SMTP id f130mr15738897oia.33.1474747836334; Sat, 24 Sep 2016 13:10:36 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 173
Organization linux.* mail to news gateway
X-Original-Cc linux-kernel <linux-kernel@vger.kernel.org>, linux-usb@vger.kernel.org, linux-rockchip@lists.infradead.org
X-Original-Date Sat, 24 Sep 2016 22:10:35 +0200
X-Original-Message-ID <CADYdroMADjBKccdtZ7PnW3AvY8oAp1Mw6hzz+nXLjyG5zB1E1g@mail.gmail.com>
X-Original-References <CADYdroO5sQgLEujisG5-nHbkB90s7upJhbJRxLbykmz5cgU9YQ@mail.gmail.com> <46A5EBA0-0F42-4851-9172-E0897AD42B0D@soulik.info> <CADYdroP3SE9g5fMo1p3Twmpd7o3u=zOQgHtfc9NKgdVX2wHbxA@mail.gmail.com> <d668fd3a-e54e-ef0a-59c7-5bb420437b1b@soulik.info>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1490744

Show key headers only | View raw


Hello,

did you try without your patches, to see if you can reproduce the problem?
I can fix my issues if I disable usb autosuspend

To narrow down the causes I can think of:
*) Some hardware issue only on my side -> please try to reproduce it
with an unpached kernel
*) Some other stuff I modified -> gonna try a clean kernel with just
your patches (hopefully will find time on sunday)
*) Maybe some different kernel config options -> mine are
multi_v7_defconfig with a few modules added

Kind regards,
Norbert

2016-09-24 20:53 GMT+02:00 ayaka <ayaka@soulik.info>:
>
> On 09/23/2016 03:10 PM, Norbert Lange wrote:
>>
>> Hi,
>>
>> I wanted to reply to the Linux mailing List (your patch thread), I
>> dont know exactly where since the addresses are blanked out.
>> Just tell me where I should move this discussion.
>>
>> The board can use both USB peripherals (haven`t tested the OTG Port).
>> The issue starts if the board has *no* USB peripherals attached
>> (either booting without any USB peripherals, or disconnecting all
>> peripherals).
>
> I have checked my patches with kernel next-20160923, I didn't meet your
> problem. The firefly RK3288 release board works fine.
>
>> *Then* I cant connect a single peripheral, just getting read errors.
>>
>> Seems like something is getting powered down if no USB peripheral is
>> connected, and can`t start up again.
>>
>> Kind regard,
>> Norbert
>>
>> 2016-09-23 2:48 GMT+02:00 Ayaka <ayaka@soulik.info>:
>>>
>>>
>>> 從我的 iPad 傳送
>>>
>>>> Norbert Lange <nolange79@gmail.com> 於 2016年9月23日 上午7:37 寫道:
>>>>
>>>> Hello Randi,
>>>> I am Randy
>>>> sorry for stalking you, but I have a problem with the USB Ports on
>>>
>>> You have better CC to Linux-use as well
>>>>
>>>> RK3288 and Heiko pointed me to your patch [1].
>>>>
>>>> Firefly RK3288
>>>> Linux Kernel 4.8rc3 with multi_v7_defconfig and some additional
>>>> modules and mali drm driver
>>>> Your patch v7 applied [2]
>>>>
>>>> [1] https://irclog.whitequark.org/linux-rockchip/2016-09-20
>>>> [2] https://www.spinics.net/lists/linux-usb/msg146496.html
>>>>
>>>> I can easily reproduce the issue, if no USB Device is connected then
>>>> attaching USB Devices will produce Read Errors.
>>>> The only way around that is to always leave one device connected.
>>>>
>>> So the board could only connect to use one usb peripheral device?
>>>>
>>>> # plug in an USB Stick
>>>> Sep 10 23:05:19 hipase2firefly kernel: usb 1-1: reset high-speed USB
>>>> device numb
>>>> Sep 10 23:05:24 hipase2firefly kernel: usb 1-1: device descriptor
>>>> read/64, error
>>>> Sep 10 23:05:40 hipase2firefly kernel: usb 1-1: device descriptor
>>>> read/64, error
>>>> Sep 10 23:05:42 hipase2firefly kernel: usb usb1-port1: Cannot enable.
>>>> Maybe the
>>>> Sep 10 23:05:43 hipase2firefly kernel: usb usb1-port1: Cannot enable.
>>>> Maybe the
>>>> Sep 10 23:05:44 hipase2firefly kernel: usb usb1-port1: Cannot enable.
>>>> Maybe the
>>>> Sep 10 23:05:44 hipase2firefly kernel: usb 1-1: USB disconnect, device
>>>> number 2
>>>> Sep 10 23:05:45 hipase2firefly kernel: usb usb1-port1: Cannot enable.
>>>> Maybe the
>>>> Sep 10 23:05:47 hipase2firefly kernel: usb usb1-port1: Cannot enable.
>>>> Maybe the
>>>> Sep 10 23:05:48 hipase2firefly kernel: usb usb1-port1: Cannot enable.
>>>> Maybe the
>>>> Sep 10 23:05:49 hipase2firefly kernel: usb usb1-port1: Cannot enable.
>>>> Maybe the
>>>> Sep 10 23:05:49 hipase2firefly kernel: usb usb1-port1: unable to
>>>> enumerate USB d
>>>>
>>>> # reset without disconnecting USB
>>>> # connecting a second USB Device (Logitech Receiver)
>>>>
>>>> Sep 10 23:03:14 hipase2firefly kernel: usb 1-1.4: new full-speed USB
>>>> device numb
>>>> Sep 10 23:03:14 hipase2firefly mtp-probe[2207]: checking bus 1, device
>>>> 4: "/sys/
>>>> Sep 10 23:03:14 hipase2firefly mtp-probe[2207]: bus: 1, device: 4 was
>>>> not an MTP
>>>> Sep 10 23:03:14 hipase2firefly kernel: logitech-djreceiver
>>>> 0003:046D:C52B.0003:
>>>> Sep 10 23:03:14 hipase2firefly kernel: input: Logitech K400 as
>>>> /devices/platform
>>>> Sep 10 23:03:14 hipase2firefly kernel: logitech-hidpp-device
>>>> 0003:046D:4024.0004
>>>>
>>>> # disconnectin 1 USB Device
>>>> Sep 10 23:04:00 hipase2firefly kernel: usb 1-1.4: USB disconnect, device
>>>> number
>>>>
>>>> #reconnecting the same device
>>>> Sep 10 23:05:49 hipase2firefly kernel: usb 1-1.4: new full-speed USB
>>>> device numb
>>>> Sep 10 23:05:49 hipase2firefly kernel: logitech-djreceiver
>>>> 0003:046D:C52B.0007:
>>>> Sep 10 23:05:49 hipase2firefly mtp-probe[2276]: checking bus 1, device
>>>> 5: "/sys/
>>>> Sep 10 23:05:49 hipase2firefly mtp-probe[2276]: bus: 1, device: 5 was
>>>> not an MTP
>>>> Sep 10 23:05:49 hipase2firefly kernel: input: Logitech K400 as
>>>> /devices/platform
>>>> Sep 10 23:05:49 hipase2firefly kernel: logitech-hidpp-device
>>>> 0003:046D:4024.0008
>>>>
>>>> # disconnecting both USB Devices
>>>> Sep 10 23:06:45 hipase2firefly kernel: usb 1-1.4: USB disconnect, device
>>>> number
>>>> Sep 10 23:06:49 hipase2firefly kernel: usb 1-1.1: USB disconnect, device
>>>> number
>>>> Sep 10 23:06:49 hipase2firefly systemd-udevd[2339]:
>>>> inotify_add_watch(9, /dev/sdb, 10) failed: No such file or directory
>>>>
>>>> # reconnecting the Logitech Receiver
>>>> Sep 10 23:08:40 hipase2firefly kernel: usb 1-1: reset high-speed USB
>>>> device number 2 using dwc2
>>>> Sep 10 23:08:46 hipase2firefly kernel: usb 1-1: device descriptor
>>>> read/64, error -110
>>>> Sep 10 23:09:01 hipase2firefly kernel: usb 1-1: device descriptor
>>>> read/64, error -110
>>>> Sep 10 23:09:03 hipase2firefly kernel: usb usb1-port1: Cannot enable.
>>>> Maybe the
>>>> Sep 10 23:09:04 hipase2firefly kernel: usb usb1-port1: Cannot enable.
>>>> Maybe the
>>>> Sep 10 23:09:05 hipase2firefly kernel: usb usb1-port1: Cannot enable.
>>>> Maybe the
>>>> Sep 10 23:09:05 hipase2firefly kernel: usb 1-1: USB disconnect, device
>>>> number 2
>>>> Sep 10 23:09:07 hipase2firefly kernel: usb usb1-port1: Cannot enable.
>>>> Maybe the
>>>> Sep 10 23:09:08 hipase2firefly kernel: usb usb1-port1: Cannot enable.
>>>> Maybe the
>>>> Sep 10 23:09:09 hipase2firefly kernel: usb usb1-port1: Cannot enable.
>>>> Maybe the
>>>> Sep 10 23:09:11 hipase2firefly kernel: usb usb1-port1: Cannot enable.
>>>> Maybe the
>>>> Sep 10 23:09:11 hipase2firefly kernel: usb usb1-port1: unable to
>>>> enumerate USB device
>>>>
>>>> Kind regards,
>>>> Norbert
>
>

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: RK3288 USB Issues ayaka <ayaka@soulik.info> - 2016-09-24 21:00 +0200
  Re: RK3288 USB Issues Norbert Lange <nolange79@gmail.com> - 2016-09-24 22:20 +0200
    Re: RK3288 USB Issues ayaka <ayaka@soulik.info> - 2016-09-25 06:10 +0200
      Re: RK3288 USB Issues Norbert Lange <nolange79@gmail.com> - 2016-09-26 00:00 +0200

csiph-web