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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F54AC54E94 for ; Thu, 26 Jan 2023 16:24:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230317AbjAZQYJ (ORCPT ); Thu, 26 Jan 2023 11:24:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232678AbjAZQYH (ORCPT ); Thu, 26 Jan 2023 11:24:07 -0500 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id C9D15211E for ; Thu, 26 Jan 2023 08:23:42 -0800 (PST) Received: (qmail 264950 invoked by uid 1000); 26 Jan 2023 11:23:42 -0500 Date: Thu, 26 Jan 2023 11:23:42 -0500 From: Alan Stern To: Troels Liebe Bentsen Cc: Hans Petter Selasky , Greg KH , linux-usb@vger.kernel.org Subject: Re: All USB tools hang when one descriptor read fails and needs to timeout Message-ID: References: <236997e1-d2db-ad2d-7161-c9e3845318f6@selasky.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Thu, Jan 26, 2023 at 04:26:24PM +0100, Troels Liebe Bentsen wrote: > But that's another question, how do I get Linux to re-enumerating the > device and update the sysfs files? You can force a device reset using libusb or the usb-reset program floating around the Internet. After the kernel resets a device, it checks to make sure the device, BOS, configuration, and serial-number string descriptors have not changed. If any of them is different from what it used to be, the kernel will re-enumerate the device. Or, you can get the same effect by unplugging the device and then plugging it back in. But with direct-wired connections, that's not possible. Alan Stern