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 2942CC43334 for ; Tue, 28 Jun 2022 09:22:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245553AbiF1JWQ (ORCPT ); Tue, 28 Jun 2022 05:22:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231164AbiF1JWP (ORCPT ); Tue, 28 Jun 2022 05:22:15 -0400 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 344161D333 for ; Tue, 28 Jun 2022 02:22:14 -0700 (PDT) Date: Tue, 28 Jun 2022 19:21:48 +1000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jookia.org; s=key1; t=1656408132; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=cBbs/EKlmPkORXJSAE+YMoFEzEUwS9Y567ky/0pdQGQ=; b=Hb0t39reUs0cdJXopFS/a1J9rcIH5WlDQcXJ4zkza0a8qvNYZQhbq83xs8/tzo3vcUgsVj gwmcNnUrajuxC/ohdFcuESzSTROX13ms45cCFTRGpXQNC6gsep3dosuYiSvltN70Hzd948 9plD6QdLLIZL0D4ulSj9tj+ydEd2TSdER92L/JjxHb9iQukZnHlDMI0TolIKtOsVrSpYyb EuZJxqUti9EjeMeA/wIMF5qK7eLLAK5pJlFl4LM9v8TY4lUGPvWNIqmRogWmHnuAMnolEo tpQRfQN5tysBCIa7xeHUFZc+pD2tmbu3MUG17t8D9HruVjEJdiEuPdGsSNtjVQ== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Jookia To: Greg KH Cc: linux-usb@vger.kernel.org Subject: Re: acm_port_shutdown hangs for 30 seconds Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: jookia.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Hi Greg, Thanks for getting back to this! On Mon, Jun 27, 2022 at 02:57:17PM +0200, Greg KH wrote: > What host controller driver is this showing up on? I have the following modules loaded: xhci_pci_renesas xhci_pci xhci_hcd This isn't an ARM board or anything, this is a standard x86 desktop (B450 plus motherboard, Ryzen 3700x chipset)- but I believe I've had the same error when using serial cables on a years older computer and in general when doing embedded development. I believe this issue is related to buggy serial devices, in particular ones run by a microcontroller like an ATmega32u4 and perhaps Linux USB gadget where the device is abruptly reset but the serial session isn't terminated. The host device USB system has to time out then, which is fine, but in userspace this seems to hang close() instead of doing this asynchronously. > thanks, > > greg k-h Jookia.