From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D89CC48BC2 for ; Mon, 28 Jun 2021 01:16:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E89BB619B6 for ; Mon, 28 Jun 2021 01:16:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231912AbhF1BSz (ORCPT ); Sun, 27 Jun 2021 21:18:55 -0400 Received: from netrider.rowland.org ([192.131.102.5]:34727 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S231706AbhF1BSy (ORCPT ); Sun, 27 Jun 2021 21:18:54 -0400 Received: (qmail 639439 invoked by uid 1000); 27 Jun 2021 21:16:28 -0400 Date: Sun, 27 Jun 2021 21:16:28 -0400 From: Alan Stern To: Matt Corallo Cc: linux-usb@vger.kernel.org, linux-amlogic@lists.infradead.org, Martin Blumenstingl Subject: Re: ODROID-C1/-C2 USB Detection only triggered by some devices Message-ID: <20210628011628.GC638648@rowland.harvard.edu> References: <0badab7c-f12e-e9ed-2f90-2cf5f25f4038@bluematt.me> <20210628005825.GA638648@rowland.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Sun, Jun 27, 2021 at 09:05:25PM -0400, Matt Corallo wrote: > > > On 6/27/21 20:58, Alan Stern wrote: > > On Sun, Jun 27, 2021 at 08:32:21PM -0400, Matt Corallo wrote: > > > On an ODROID-C1/C2 device, using the dwc2 driver, only some devices cause USB bus to enumerate devices. > > > > > > Specifically, both on boot and during normal operation, if some devices are > > > plugged in, all USB devices are detected, but if those devices are removed, > > > no detection of any devices occurs. > > > > So if you boot with no devices plugged in, and then you plug in (say) a > > flash drive, it doesn't get detected? > > There is a separate and long-standing bug on the ODROID-C1 and ODROID-C2 > devices where hotplug doesn't work reliably, which is why I mentioned > rebooting. This specific bug all works identically whether booting fresh > with the devices or testing hotplug (which sometimes works with lsusb -vvv). That doesn't answer my question. If no devices are plugged in (either at boot or during normal operation), and then you plug in a device like a flash drive, does it get detected? What you wrote seems to imply that it does not. > > > I sadly don't have a lot more to go on, but xdarklight on IRC (I believe == > > > Martin, CC'd) confirmed the findings with a grab bag of USB devices he had > > > sitting around as well, and may be able to provide CONFIG_USB_DWC2_DEBUG > > > output. > > > > > > Any further guidance on where to look to debug this issue would be appreciated. > > > > > > As a sample, some devices which, when plugged in (either alone or together) > > > do not cause any USB device detection (see attached lsusb -v files): > > > > > > Samsung T7 USB 3 drive > > > Samsung-Branded Silicon Motion USB 3 Flash Drive > > > > > > Some devices which, when plugged in cause all USB devices to be detected: > > > > > > Mushkin-Branded Kingston USB 3 Flash Drive > > > Kingston-Branded Kingston USB 2 Flash Drive > > > USB-3 MicroSD Card reader (lsusb/testing by xdarklight) > > > SanDisk USB 3 Flash Drive (lsusb/testign by xdkarlight) > > > > This could simply be a question of power. Most of the flash drives and > > the card reader probably don't require very much power, whereas some of > > them need more. You can this, to some extent, in the MaxPower fields of > > the lsusb -v listings. > > That seems strange, though, given that the first group of devices appear and > work totally fine, but only when something from the second group of devices > is plugged in. If the second group is not present, then the first group of > devices do not appear at all. You mean that only devices in the first group are affected by this bug? Devices in the second group are always detected correctly regardless of what else is plugged in? (This contradicts what you wrote above.) Still, you are right that this does not seem like an insufficient power problem. Alan Stern > > Do things work better if you plug these devices into a powered hub > > rather than directly into the computer? If the hub can provide the > > power that these devices need, the computer won't be overloaded. > > I don't have a powered hub handy, sadly. Maybe Martin does and can comment when he wakes. > > Matt From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07010C48BC2 for ; Mon, 28 Jun 2021 01:16:40 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B9ED1619B6 for ; Mon, 28 Jun 2021 01:16:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B9ED1619B6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=rowland.harvard.edu Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MEvrspa9YEXm/Fv3MRCaiWZA2L93J5eCrZgPORMGTOI=; b=ZtVsWAt5gvRD8h 8xD61v0OFvF3DW/uHXEYOrqLlswfKcG+LxnaLLu3Tzb26JIL9lSZE/YZwDCHqyiyIIwuky9tE1OEb Z6B9NKBTBL7QMYpbB9ySN+CW9n0C23EEhx1fT0XqYdFZuT+uO4IVL1Uja5yyzd659CmruPmgnJgIz F7VBPZYZpP/iABWgyC9uAFATCx32KSxAILdcsHkVe2sPTdLf0N4Dib4nZaGYlul0o7tWoLeCwRi4A yp9F4I4EPnenGX1kUb5TXPjGmvFpNsB/iJBrHWRqnVgJ45q+nJHCtb5e7AchKvBo26mSZPWrKqm1w CcqliU5IWDPh5Z4QaK6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lxft1-006O18-Lw; Mon, 28 Jun 2021 01:16:31 +0000 Received: from netrider.rowland.org ([192.131.102.5]) by bombadil.infradead.org with smtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lxfsz-006O0a-IA for linux-amlogic@lists.infradead.org; Mon, 28 Jun 2021 01:16:31 +0000 Received: (qmail 639439 invoked by uid 1000); 27 Jun 2021 21:16:28 -0400 Date: Sun, 27 Jun 2021 21:16:28 -0400 From: Alan Stern To: Matt Corallo Cc: linux-usb@vger.kernel.org, linux-amlogic@lists.infradead.org, Martin Blumenstingl Subject: Re: ODROID-C1/-C2 USB Detection only triggered by some devices Message-ID: <20210628011628.GC638648@rowland.harvard.edu> References: <0badab7c-f12e-e9ed-2f90-2cf5f25f4038@bluematt.me> <20210628005825.GA638648@rowland.harvard.edu> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210627_181629_789627_13169457 X-CRM114-Status: GOOD ( 26.72 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org On Sun, Jun 27, 2021 at 09:05:25PM -0400, Matt Corallo wrote: > > > On 6/27/21 20:58, Alan Stern wrote: > > On Sun, Jun 27, 2021 at 08:32:21PM -0400, Matt Corallo wrote: > > > On an ODROID-C1/C2 device, using the dwc2 driver, only some devices cause USB bus to enumerate devices. > > > > > > Specifically, both on boot and during normal operation, if some devices are > > > plugged in, all USB devices are detected, but if those devices are removed, > > > no detection of any devices occurs. > > > > So if you boot with no devices plugged in, and then you plug in (say) a > > flash drive, it doesn't get detected? > > There is a separate and long-standing bug on the ODROID-C1 and ODROID-C2 > devices where hotplug doesn't work reliably, which is why I mentioned > rebooting. This specific bug all works identically whether booting fresh > with the devices or testing hotplug (which sometimes works with lsusb -vvv). That doesn't answer my question. If no devices are plugged in (either at boot or during normal operation), and then you plug in a device like a flash drive, does it get detected? What you wrote seems to imply that it does not. > > > I sadly don't have a lot more to go on, but xdarklight on IRC (I believe == > > > Martin, CC'd) confirmed the findings with a grab bag of USB devices he had > > > sitting around as well, and may be able to provide CONFIG_USB_DWC2_DEBUG > > > output. > > > > > > Any further guidance on where to look to debug this issue would be appreciated. > > > > > > As a sample, some devices which, when plugged in (either alone or together) > > > do not cause any USB device detection (see attached lsusb -v files): > > > > > > Samsung T7 USB 3 drive > > > Samsung-Branded Silicon Motion USB 3 Flash Drive > > > > > > Some devices which, when plugged in cause all USB devices to be detected: > > > > > > Mushkin-Branded Kingston USB 3 Flash Drive > > > Kingston-Branded Kingston USB 2 Flash Drive > > > USB-3 MicroSD Card reader (lsusb/testing by xdarklight) > > > SanDisk USB 3 Flash Drive (lsusb/testign by xdkarlight) > > > > This could simply be a question of power. Most of the flash drives and > > the card reader probably don't require very much power, whereas some of > > them need more. You can this, to some extent, in the MaxPower fields of > > the lsusb -v listings. > > That seems strange, though, given that the first group of devices appear and > work totally fine, but only when something from the second group of devices > is plugged in. If the second group is not present, then the first group of > devices do not appear at all. You mean that only devices in the first group are affected by this bug? Devices in the second group are always detected correctly regardless of what else is plugged in? (This contradicts what you wrote above.) Still, you are right that this does not seem like an insufficient power problem. Alan Stern > > Do things work better if you plug these devices into a powered hub > > rather than directly into the computer? If the hub can provide the > > power that these devices need, the computer won't be overloaded. > > I don't have a powered hub handy, sadly. Maybe Martin does and can comment when he wakes. > > Matt _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic