Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp990600rdb; Fri, 1 Dec 2023 04:26:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHcuW49CPes2TaqV6WBOntbuojjBxSNl/BSeCeZaoLE/jV10HBX92q23P8jC+NZpoDV8dxu X-Received: by 2002:a17:90b:3b50:b0:286:54d3:3a1b with SMTP id ot16-20020a17090b3b5000b0028654d33a1bmr2340734pjb.35.1701433566282; Fri, 01 Dec 2023 04:26:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701433566; cv=none; d=google.com; s=arc-20160816; b=AiaJqlQav9Xu10orOKKJ7L5RR0r4/poHgO7NIZCRBO5lJYK8tBA8vRAlZR1ad3mIj4 daTABOif7ABT9VGkCORSZUuJsJlCXWSe3tAPBJ5Ed/E4KItE9Bj+vOa5ksq7NWtv0Ip7 P1iWFgWFiI1M3+wRyhdcUEg9B0MfRDb4tA7mHYI8UF+K3+iuOit3Qq9Jpv3NKDak9uDN dG79NG/Ax2kmZdTmxs809wL8B3wfcVcKlc2x4uAddeiI5fCrXm9dI9PcVCzfM3CES9j+ oPI7pDH2b7EHnk7XFVXUoQfvH93UXCKpsZD6gNAyAMkQ195fTLei61fKzDdOd+e1aEid nTzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=8L9CprDdm9b9J6FUNGfqCgNU8FEUAwtyKRriGeA6wEY=; fh=xfVKfXAQWpvIkCdulNVMB7LIPTNY8Ht8X0AP/B/H8Cs=; b=wecvNYWQwHiQzNBjly57tbFckK94vf8Aztszt3++Qi37VD16eAItF+HGzhaRgF8U+6 Z8NO+iZlU6qAFAUx7zHDzotP2DqBOL2fSEuR9vFpRjBfXwLck0XYNE8XJaAW4JvCcIMt VI6PH1t4YwCCrWdBdnjGndvBH//1VK+nSNxAmlVEuQSnO4f4FqMXjgUcJ74yMvGQKap/ gPMUuYBS/6hbhXhSX4OqvcLHk0Lw9LoyCPZiN/G7XAvG3dtzZiKSAsKz7oOSjROD0eD5 kYwpveWzXaGmu60aczc4xgI1Vq6jPL/uBQlr+R9mqeQqlh4tz18m5fIdK2ZisRUB+Z8S p//w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=kyfdNyjp; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="ltRo/qHM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id h17-20020a17090aa89100b00285d591d93fsi5427823pjq.182.2023.12.01.04.26.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 04:26:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=kyfdNyjp; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="ltRo/qHM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0CD6C81BFBB7; Fri, 1 Dec 2023 04:26:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378832AbjLAMZj (ORCPT + 99 others); Fri, 1 Dec 2023 07:25:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378794AbjLAMZi (ORCPT ); Fri, 1 Dec 2023 07:25:38 -0500 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71B8A10D7; Fri, 1 Dec 2023 04:25:44 -0800 (PST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id D8D875C0206; Fri, 1 Dec 2023 07:25:43 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Fri, 01 Dec 2023 07:25:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1701433543; x=1701519943; bh=8L 9CprDdm9b9J6FUNGfqCgNU8FEUAwtyKRriGeA6wEY=; b=kyfdNyjpr2uVqvHhBj y+o3anI0mpxnn8Zt7z20rIjuOpA5LYhTCXS/xXKktvXzIViWdtCnK53znD9tBD/5 sG2TyaETD58U0hygGdSVLBHQpMKLOnaXMKN0gR9Vvq/ijTnTO70Jj+G13vfSy+22 JqJo3ZTyQkn1AffPaXqt9BGa2q94qMuf/IVyRqH+N4PL82uDMHZgOwXZ0oGo1rUn zyXUYVTmfxJPlR8uC0bJ41sPEIMC95wk1c2kJtmyzmtdYAw/Y+FFFgiZ1E+AzOnl EQ4kElEDQZJlThgAw/Lt8sZdfkmQFi09la6I6Rl5PTyQnpT8vVS4Ew7Fz5qLtxd0 c82Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1701433543; x=1701519943; bh=8L9CprDdm9b9J 6FUNGfqCgNU8FEUAwtyKRriGeA6wEY=; b=ltRo/qHMHelfPOkPLa99rRPsWO8x3 e01eAsZh8AD7f26pMMHWOmI1b6Ep7XKh58PrVghPYlpR+yWZ6w0HotXpNqKlQsis eeZ/rSzMrQiOO9Zj9V8NZQmWZcWk60VpgeMMVJSqWve7dzlsK692zowyjf+CLK3u OhrVgz0dUAvvGpO7o7r8DKgDImz2MJpFdpF2zFS60bndMZhh74SpjeRqf7zVYyDc 9LAdfwWHYSG13tI4sbp7f4EkcD6azQdYvXDbyWnQJcNrRyeBJFn9bwHUWG8TrYfz jKEnigC7ZkXqlNUGkqXYo2F36jh5WBc1u92LsmI73/cPi2UoHfQ03BJmQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeiledgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvvefukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpefirhgvghcumffjuceoghhrvghgsehkrhhorghhrdgtohhm qeenucggtffrrghtthgvrhhnpeehgedvvedvleejuefgtdduudfhkeeltdeihfevjeekje euhfdtueefhffgheekteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtghomh X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 1 Dec 2023 07:25:43 -0500 (EST) Date: Fri, 1 Dec 2023 12:25:40 +0000 From: Greg KH To: Jose Ignacio Tornos Martinez Cc: stern@rowland.harvard.edu, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, netdev@vger.kernel.org, oneukum@suse.com, pabeni@redhat.com Subject: Re: [PATCH v2] net: usb: ax88179_178a: avoid failed operations when device is disconnected Message-ID: <2023120130-repair-tackle-698e@gregkh> References: <20231201115143.177081-1-jtornosm@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231201115143.177081-1-jtornosm@redhat.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 01 Dec 2023 04:26:02 -0800 (PST) On Fri, Dec 01, 2023 at 12:51:43PM +0100, Jose Ignacio Tornos Martinez wrote: > When the device is disconnected we get the following messages showing > failed operations: > Nov 28 20:22:11 localhost kernel: usb 2-3: USB disconnect, device number 2 > Nov 28 20:22:11 localhost kernel: ax88179_178a 2-3:1.0 enp2s0u3: unregister 'ax88179_178a' usb-0000:02:00.0-3, ASIX AX88179 USB 3.0 Gigabit Ethernet > Nov 28 20:22:11 localhost kernel: ax88179_178a 2-3:1.0 enp2s0u3: Failed to read reg index 0x0002: -19 > Nov 28 20:22:11 localhost kernel: ax88179_178a 2-3:1.0 enp2s0u3: Failed to write reg index 0x0002: -19 > Nov 28 20:22:11 localhost kernel: ax88179_178a 2-3:1.0 enp2s0u3 (unregistered): Failed to write reg index 0x0002: -19 > Nov 28 20:22:11 localhost kernel: ax88179_178a 2-3:1.0 enp2s0u3 (unregistered): Failed to write reg index 0x0001: -19 > Nov 28 20:22:11 localhost kernel: ax88179_178a 2-3:1.0 enp2s0u3 (unregistered): Failed to write reg index 0x0002: -19 > > The reason is that although the device is detached, normal stop and > unbind operations are commanded from the driver. These operations are > not necessary in this situation, so avoid these logs when the device is > detached if the result of the operation is -ENODEV and if the new flag > informing about the stopping or unbind operation is enabled. > > Fixes: e2ca90c276e1f ("ax88179_178a: ASIX AX88179_178A USB 3.0/2.0 to gigabit ethernet adapter driver") > Signed-off-by: Jose Ignacio Tornos Martinez > --- > V1 -> V2: > - Follow the suggestions from Alan Stern and Oliver Neukum to check the > result of the operations (-ENODEV) and not the internal state of the USB > layer (USB_STATE_NOTATTACHED). > > drivers/net/usb/ax88179_178a.c | 16 ++++++++++++++-- > 1 file changed, 14 insertions(+), 2 deletions(-) Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - You have marked a patch with a "Fixes:" tag for a commit that is in an older released kernel, yet you do not have a cc: stable line in the signed-off-by area at all, which means that the patch will not be applied to any older kernel releases. To properly fix this, please follow the documented rules in the Documentation/process/stable-kernel-rules.rst file for how to resolve this. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot