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=0.4 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, PDS_BAD_THREAD_QP_64,SPF_HELO_NONE,SPF_PASS 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 E4982C433ED for ; Thu, 22 Apr 2021 07:32:37 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (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 BD6776145D for ; Thu, 22 Apr 2021 07:32:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BD6776145D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=cirsa.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1lZToz-0002pO-QU; Thu, 22 Apr 2021 03:32:21 -0400 Received: from mail-eopbgr00133.outbound.protection.outlook.com ([40.107.0.133] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lZToy-0002pB-DG for kernelnewbies@kernelnewbies.org; Thu, 22 Apr 2021 03:32:20 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JJIxoBHVHgWJqhtdj5XWm4AzEnbYY02kTLwzXcOZ6EkuFh5dJtOomHRN/ZzFubE2rl41+RSPmLntIqFNjGZFZ6fSheprTnhOiPbNk75i5i+OC5qzxMwk7+5Pj3BdRTpn+mCPXG4BWlussdW0dbjEy9vqmBTa769uBO02gYEuFLWf9QjlEj9noB8IyoIeNsTpHQvm9hvW5OCQTL1cVYVeXdDpyK8EY09yv/FK9mhSpycRjtEZgsOJpG8ajukqKrVtpipUfGrOVDc0hIEw49jJmbWZhIucF35j9BaGADJhFliqBwTX++C/DBvIrkjWw6L1dV22fx6uWZApiy9pixqCXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4IkCbDts23yyZXXQg4eWO6ChHCJtsvUfXCZnjPiAJm0=; b=AqCxBSLsyDM1vyjH9J8a/gZq+cbgnK5pxXEJE6I5JTLsNnwdZJsCD/nVTwfdLpTmnQMLODyKDYqNjodBnMEXHDltk/eh/NI6ktwABqGCEqQBSb3KnWqhNhYxvjzaI32cDMrqMu/nu+Bf/nVapjGytSG6bKAzwDgYsQyAtduU+uLslFLy8NCe8zMBNnGgTIGk/UD8f+O30v+1dmDFmPqWdL3J9/AeKUEIgl4pHXDs6pxO/tRipvCLFyrIOWKMp3Jcv6i7bR9AsG719Wih5Bx6QpCicgDIcMW5HacFHzC7VK8zIJeraLvCXOwVAT0dlasmBtOA5VDjVPMQLsWqAgADwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cirsa.com; dmarc=pass action=none header.from=cirsa.com; dkim=pass header.d=cirsa.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirsa.onmicrosoft.com; s=selector1-cirsa-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4IkCbDts23yyZXXQg4eWO6ChHCJtsvUfXCZnjPiAJm0=; b=jsoIdH8UFm5iDLerbSf5hq9C4TpvLUOy69HNLhM3L1yq/remobjjszWBc/5XnkPYY7PAAQffUdQ/OHICEHrxwJbJYNaGqANW1eGrKdklwuKUrOnpiCl1ZPt86GtexgfHBDnmVeJSM4B+OtNkOS3GoyUF47U5W8mBzBPOzwIKFBo= Received: from DB9PR10MB4522.EURPRD10.PROD.OUTLOOK.COM (20.183.120.15) by DB8PR10MB2684.EURPRD10.PROD.OUTLOOK.COM (20.179.10.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.20; Thu, 22 Apr 2021 07:32:15 +0000 Received: from DB9PR10MB4522.EURPRD10.PROD.OUTLOOK.COM ([fe80::4838:c9b0:934f:9cf5]) by DB9PR10MB4522.EURPRD10.PROD.OUTLOOK.COM ([fe80::4838:c9b0:934f:9cf5%6]) with mapi id 15.20.4042.024; Thu, 22 Apr 2021 07:32:15 +0000 From: Jorge Fernandez Monteagudo To: Greg KH Subject: RE: USB resets Thread-Topic: USB resets Thread-Index: AQHXNbM8kVv1j1QgSEaT9gspacwd5aq9AIGAgAAEgFqAABSlgIADC98k Date: Thu, 22 Apr 2021 07:32:15 +0000 Message-ID: References: , In-Reply-To: Accept-Language: es-ES, en-US Content-Language: es-ES X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: linuxfoundation.org; dkim=none (message not signed) header.d=none;linuxfoundation.org; dmarc=none action=none header.from=cirsa.com; x-originating-ip: [185.180.48.40] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 061f35c3-5999-4875-fc62-08d90560c096 x-ms-traffictypediagnostic: DB8PR10MB2684: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: DcMo5aaEYZK+++Mfqk0RG2wPdCnLAgLe6TwanXTRpuxJSrWHgdCgS+e5+agJ2sNeOcIHNuerGcRiR3DwlCTeZvOlJ6zO1Rv9Hv2xgrWCSNyfuK5UmHN53ryZ3yZroOboW57svnIlpdl/X9yMfOR8BmjlVBw5NV4eN0NFgc91f8IhtK95Y4EpGN9X3whcEZ1g2CUeBtoy2UQiQ+pY+cEy7GAS/erN6el4tE79fVKWvMVAmK6iUuVYEOot0wUfogCq5ayAG+o5JnAl6CKjvNKGBhvGIuKZuqMGzQ+mc9h+FYbcLDsEs174tzm0BId+2B6xm14yBBRZLylsZQGXUE00sdi/m9zjk4m4JSx+uz++XO2PWVlxoe+vIgnCjGYZOlRiMjcbIDBJ46p7I8ie50Ixq5mLQbfKXCUjOp+c3d7j3AAbsKIcXlq17Du53ZAr95KCj8cI0/pIBgkbTBZk43bZ4TUqJU3SY6lvIeUHz/yATHzgsAteFIigjm7K/T7WmsXpUfCXf2a0f3CIfMtGswS3Wd4+Ko0S5M0TGAMG9lpoO0GLJp3IHWJExlOGuhzSVsrYANPumZPJTHu7f6lU/4yI62Nie4vM6Ksep3K1cVD1ZgE= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR10MB4522.EURPRD10.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(136003)(366004)(346002)(376002)(39850400004)(396003)(3480700007)(2906002)(186003)(316002)(66556008)(55016002)(66946007)(83380400001)(52536014)(26005)(66476007)(5660300002)(91956017)(7116003)(8676002)(7696005)(76116006)(86362001)(6916009)(8936002)(4326008)(38100700002)(9686003)(122000001)(33656002)(6506007)(478600001)(71200400001)(66446008)(19627405001)(64756008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?U+Kl73bx4deDBo91L+NlTGbNzSyopyiijeTStcMvWC3pBwAs9HeCkFDmPoRQ?= =?us-ascii?Q?UFn6WsZbMCKm/tWnyI9jMGgy48wyvRo46pA6p3BE441RWSdvAvIn7E7+Hi2Q?= =?us-ascii?Q?74J22vJYt61SAM4+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ascii?Q?qkCq5B9SlkTNP689tezyrhIJji01K/RvSHC4z1tO0mHM7w8eArJzeyZD5ESV?= =?us-ascii?Q?6yOtP7qTPyJ6wzb80y0bMtaEOJaELFb5WWgA2Lhqi0nsYwY29b5VPktMz7VL?= =?us-ascii?Q?8ed09ZZ0qFx4fHfLsG5XHV913BxZcrwxn/kmFU4iOHM7blRRYr1Onas5xYuo?= =?us-ascii?Q?0bD2pXLDuBUPjQFrC4TiT7/qVDMYBapFn48lIDcHEXL9n/GgGkDBpOmTKlgP?= =?us-ascii?Q?KIGt2sfQ7M5eEt/08VqcEyjQdn1xoHc2cvjy7BgnxN3irLBFgW3BysCJViYA?= =?us-ascii?Q?ObQ=3D?= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: cirsa.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DB9PR10MB4522.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 061f35c3-5999-4875-fc62-08d90560c096 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Apr 2021 07:32:15.4242 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e6d255d9-7bfe-42f2-a01e-09634cc3a03b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: qXYImajLWOUQrHDd4z+uRqbvwlZKfrx1DA1HgWUjA7YIFgCjAfEno1fCKsgzDF02Xi8ix6BDAOWE9+fEriZZrA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR10MB2684 Cc: "kernelnewbies@kernelnewbies.org" X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1852964702272621414==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============1852964702272621414== Content-Language: es-ES Content-Type: multipart/alternative; boundary="_000_DB9PR10MB4522725BD8950394B16808EEA1469DB9PR10MB4522EURP_" --_000_DB9PR10MB4522725BD8950394B16808EEA1469DB9PR10MB4522EURP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I've been able to stop the disconnecting loop. First I tried the usbcore.autosuspend=3D-1 guessing that an inactive period= of time will send the device to some low power state, explaining the enume= rating and disconnect loop with, but I had no luck. Then I force using the device with an udev rule running evtest --query $DEVNAME EV_KEY 0 and the disconnection disappears. Maybe it's an error in the tobis touchscr= een controller code?? I would like to test if the behavior changes in full speed instead of high = speed. Is there some way to downgrade the EHCI speed to full speed? Thanks! ________________________________ De: Greg KH Enviado: martes, 20 de abril de 2021 10:52 Para: Jorge Fernandez Monteagudo Cc: kernelnewbies@kernelnewbies.org Asunto: Re: USB resets On Tue, Apr 20, 2021 at 07:41:14AM +0000, Jorge Fernandez Monteagudo wrote: > >Bad hardware, the kernel can not cause a disconnect :( > > > >Do you have a flaky cable or underpowerd hub here? > > > > How many retries before the kernel decides to send a reset to a USB devic= e? After a reset, this device is ignored? The hub itself disconnects the device electronically, the kernel does not do that. When the device comes back, then it is initialized by the kernel, as the logs show, but then it is disconnected again. This really looks like broken hardware or electronic noise on the connection, the kernel can not cause electronic disconnects on a USB hub like this. good luck! greg k-h --_000_DB9PR10MB4522725BD8950394B16808EEA1469DB9PR10MB4522EURP_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
I've been able to stop the disconnecting loop.

First I tried the usbcore.autosuspend=3D-1 guessing that = an inactive period of time will send the device to some low power state, ex= plaining the enumerating and disconnect loop with, but I had no luck.

Then I force using the device with an udev rule running

evtest --query $DEVNAME EV_KEY 0

and the disconnection disappears. Maybe it's an error in the tobis touchscr= een controller code??

I would like to test if the behavior changes in full speed instead of high = speed. Is there some way to downgrade the EHCI speed to full speed?

Thanks!

De: Greg KH <gregkh@linu= xfoundation.org>
Enviado: martes, 20 de abril de 2021 10:52
Para: Jorge Fernandez Monteagudo <jorgefm@cirsa.com>
Cc: kernelnewbies@kernelnewbies.org <kernelnewbies@kernelnewbies.= org>
Asunto: Re: USB resets
 
On Tue, Apr 20, 2021 at 07:41:14AM +0000, Jorge Fe= rnandez Monteagudo wrote:
> >Bad hardware, the kernel can not cause a disconnect :(
> >
> >Do you have a flaky cable or underpowerd hub here?
> >
>
> How many retries before the kernel decides to send a reset to a USB de= vice? After a reset, this device is ignored?

The hub itself disconnects the device electronically, the kernel does
not do that.  When the device comes back, then it is initialized by th= e
kernel, as the logs show, but then it is disconnected again.

This really looks like broken hardware or electronic noise on the
connection, the kernel can not cause electronic disconnects on a USB hub like this.

good luck!

greg k-h
--_000_DB9PR10MB4522725BD8950394B16808EEA1469DB9PR10MB4522EURP_-- --===============1852964702272621414== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============1852964702272621414==--