From patchwork Thu Jun 6 21:02:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ferry Toth X-Patchwork-Id: 13688962 Received: from mailfilter02-out30.webhostingserver.nl (mailfilter02-out30.webhostingserver.nl [195.211.72.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 881EA13BC02 for ; Thu, 6 Jun 2024 21:06:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=195.211.72.193 ARC-Seal: i=3; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717707996; cv=pass; b=PLy6CDszziHoq/mEAgW1oNwL0ahuQ9YhXC4ShF5keAy4HHzJM4QbbBb4+qaAByCZxRyplbaDK9WF8Xj/APJm3AfJwX8FupALJAPTjJVXrbqObvFoYZOquaRlBa+pUwYB6PSoDLw8ydoLOQHFUnLDhxkaq5WvE0zHBmD0Pa/6sWw= ARC-Message-Signature: i=3; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717707996; c=relaxed/simple; bh=0LxJ/wU5deDOnAL0gaaMov0d5yoYltHA4deqIeDYEV0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MVKP+1jUZbRsb0mPTcIOBtS42MXQi9XLdqptfO2NwgI/rqsMQ+mZaUca4YIT305PxtDiwUby9tS/+fOo3CVRfwfugVw+oyGRuNz2KqsfMpJxWbLW1YrLTdCtFi19X7ebhIAXXduY8ujUw7sn12a/+ZlFJT3LpLvWD00RNVFQQzQ= ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=exalondelft.nl; spf=pass smtp.mailfrom=exalondelft.nl; dkim=pass (2048-bit key) header.d=exalondelft.nl header.i=@exalondelft.nl header.b=H/KoR+up; arc=pass smtp.client-ip=195.211.72.193 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=exalondelft.nl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=exalondelft.nl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=exalondelft.nl header.i=@exalondelft.nl header.b="H/KoR+up" ARC-Seal: i=2; a=rsa-sha256; t=1717707926; cv=pass; d=webhostingserver.nl; s=whs1; b=ytc3+nhwfR0gIiUH4+Wo+9bA43uPUy0NGMHS6MevCU3vBMEq0xNsecf1eVnwHBThBvlpBZ4LbZdGJ vie2rIMvW9C85LTvH5ap315Zn7GkIa2PRUsEBEzIAQucHahdU22e59nG1wF92xd7+YGtnLPWvkib86 lU4+ym9fk83904vUgHCdT9tSfWlwg3MUBd3Mrhbvcwo8CpFHJ+sNtM+s019E6ALppGwwidZwJmXETv BRHtTzliAAwXmdljx5amH6XSUFuu4wLMSIm6Ct58Y+olswp6hkiJWjLcUXTYBNiyQKhc4sViNC3O3w pZRSY/KTczXRWbdOOfuZ6QnZb4xa9ZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=webhostingserver.nl; s=whs1; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:dkim-signature:from; bh=EKI97Lvf28y1ymmuneD6FlzohhD+JdA8V3mE6I22kuo=; b=QPtJGxhmNIb2iZqdl+26HdvxJ2TCDaJmokkzx7KGMRBKx8PoovBtZjavO/Vaw1uapXI4wOejmpyVM IMEONNRLIeEeuPVTc5ZEA46UgJr80ga22uSIFOxdJeX2is79q4JQ08TP6ECdPnC/Ort7asSaF8GWy9 5y2tR6p/MgtaMrvrvYMfdMp6sB4lnTarpe/UvzbMcKfSleihHODHm5b1eArCESSFqgnzzMJ+sTzS+X 36RD/SXCiOSNQWnLt6dLaXC+GrmrOe8U5nGfOZyvoDfCnHGcXFBuqcwP9kI62VZmMm1O+cLqlRlABx lWqp6FYvIHrJdpwgf5mKqZKLrCUdf9Q== ARC-Authentication-Results: i=2; mailfilter02.webhostingserver.nl; spf=pass smtp.mailfrom=exalondelft.nl smtp.remote-ip=141.138.168.154; dmarc=pass header.from=exalondelft.nl; arc=pass header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=exalondelft.nl; s=whs1; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=EKI97Lvf28y1ymmuneD6FlzohhD+JdA8V3mE6I22kuo=; b=H/KoR+upqzVhSsBziv46qnRWLxKteKqoD69cbxyiXmqnQeZLVSmmKOt/CqaxJ0xCmRXIclxQOVrKp k8kNwzH40yd6Ql7vqhUVfY844hNzIvTlOp1HVN3w5ekkVDNjFq2t/WbvNYiLMBUeP+86j9fhHcSRWM Gam+drge0E2E8SqN1o2RNhNzVOBKEveTrEI/S+nfBFEd+OWyUIrQp+mm+va27UPCag1X3GjDtg0i7Z N9wh5EIuko3HVp5gJe2c0/k1crGZCdHT8ZOeipsMaTmmYBEIKCtVXzOHtnJvmnxhCbCVMYhMHvt8kB Yq0KKES9LYV3qNMR6yrO1iR+QmYcrsA== X-Halon-ID: 7db8a552-2448-11ef-ae5d-001a4a4cb922 Received: from s198.webhostingserver.nl (s198.webhostingserver.nl [141.138.168.154]) by mailfilter02.webhostingserver.nl (Halon) with ESMTPSA id 7db8a552-2448-11ef-ae5d-001a4a4cb922; Thu, 06 Jun 2024 23:05:23 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=webhostingserver.nl; s=whs1; t=1717707923; b=n4Iq1CG8ZkTaWny54ixSQz4ZXSLz1/qAkZp5pHu5f4pXmIsp4DLDMrNOOS/8Veudp29lGh6Wt2 R/fykgw1SotcsAdtbhlAPFOnziDLhTYYg+s8icb0v6QiWILB0Etq4qhdU/1IREZ/S/DSUO12wf n9txzLWaQHxsR/wUemyXzR8jLVPx8N4fxjT0xnSq4/DznTGUZeTiEA7fUD1yp5JpCrbZm5PNgb 3wROyzW5wpQvD67O9yVR9q4RDP4HhvIv4bRzo/V32fOtDw4DQqHVz5IYzkHrQNCp/rG+AbJ7JO wcv2TK+sd5k46JR8Z6CmmpuIuljrSmxeU9TuNj0NSGwQwA==; ARC-Authentication-Results: i=1; webhostingserver.nl; smtp.remote-ip=2a02:a466:68ed:1:d680:309e:9a32:ec62; iprev=pass (2a02-a466-68ed-1-d680-309e-9a32-ec62.fixed6.kpn.net) smtp.remote-ip=2a02:a466:68ed:1:d680:309e:9a32:ec62; auth=pass (PLAIN) smtp.auth=ferry.toth@elsinga.info; spf=softfail smtp.mailfrom=exalondelft.nl; dmarc=skipped header.from=exalondelft.nl; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=webhostingserver.nl; s=whs1; t=1717707923; bh=0LxJ/wU5deDOnAL0gaaMov0d5yoYltHA4deqIeDYEV0=; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID: Date:Subject:Cc:To:From; b=qrRyC7X9UFxTh3HkMIBH3zLLHozLUpYJjUsgRamXw9wb128OwZeX0i/G3F84dqx3qbUYslrJIP BbQcq3jv9cJ+H9YkXlV4iaN2vUhVXdbDppOb7dZfoDGz4R4si90kCXmkwKhG0RbpsOb5JDYMYc 8lo7+L8V1RDB1I8Pe9i38PLRKvUo3rBj8mgHYDMmI/fbDQRHN93Otw5ej0yANCAbpQf4JWmznU viDM6WFDcI0ocXpStT5uGVUJ4CBc939IuxbY+3j0MPMsqykIA6SR7UliNGabGeL/Bmp5EcTNEK 2h4eXClXMB1jvRnGpyBWaZhcBB/eOvA/p59MKS2zLqrwEQ==; Authentication-Results: webhostingserver.nl; iprev=pass (2a02-a466-68ed-1-d680-309e-9a32-ec62.fixed6.kpn.net) smtp.remote-ip=2a02:a466:68ed:1:d680:309e:9a32:ec62; auth=pass (PLAIN) smtp.auth=ferry.toth@elsinga.info; spf=softfail smtp.mailfrom=exalondelft.nl; dmarc=skipped header.from=exalondelft.nl; arc=none Received: from 2a02-a466-68ed-1-d680-309e-9a32-ec62.fixed6.kpn.net ([2a02:a466:68ed:1:d680:309e:9a32:ec62] helo=submission) by s198.webhostingserver.nl with esmtpa (Exim 4.97.1) (envelope-from ) id 1sFKIV-0000000APHI-22yf; Thu, 06 Jun 2024 23:05:23 +0200 From: Ferry Toth To: Greg Kroah-Hartman , "Ricardo B. Marliere" , Kees Cook , Linyu Yuan , Justin Stitt , Ferry Toth , Richard Acayan , Hardik Gajjar , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andy Shevchenko , s.hauer@pengutronix.de, jonathanh@nvidia.com, paul@crapouillou.net, quic_eserrao@quicinc.com, erosca@de.adit-jv.com, regressions@leemhuis.info, Ferry Toth , stable@vger.kernel.org Subject: [PATCH v1 1/2] Revert "usb: gadget: u_ether: Re-attach netif device to mirror detachment" Date: Thu, 6 Jun 2024 23:02:31 +0200 Message-ID: <20240606210436.54100-2-ftoth@exalondelft.nl> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240606210436.54100-1-ftoth@exalondelft.nl> References: <20240606210436.54100-1-ftoth@exalondelft.nl> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ACL-Warn: Sender domain ( exalondelft.nl ) must match your domain name used in authenticated email user ( ferry.toth@elsinga.info ). X-ACL-Warn: From-header domain ( exalondelft.nl} ) must match your domain name used in authenticated email user ( ferry.toth@elsinga.info ) X-Antivirus-Scanner: Clean mail though you should still use an Antivirus This reverts commit 76c945730cdffb572c7767073cc6515fd3f646b4. Prerequisite revert for the reverting of the original commit f49449fbc21e. Fixes: 76c945730cdf ("usb: gadget: u_ether: Re-attach netif device to mirror detachment") Fixes: f49449fbc21e ("usb: gadget: u_ether: Replace netif_stop_queue with netif_device_detach") Reported-by: Ferry Toth Cc: stable@vger.kernel.org --- drivers/usb/gadget/function/u_ether.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/gadget/function/u_ether.c b/drivers/usb/gadget/function/u_ether.c index 11dd0b9e847f..aa0511c3a62c 100644 --- a/drivers/usb/gadget/function/u_ether.c +++ b/drivers/usb/gadget/function/u_ether.c @@ -1163,8 +1163,6 @@ struct net_device *gether_connect(struct gether *link) if (netif_running(dev->net)) eth_start(dev, GFP_ATOMIC); - netif_device_attach(dev->net); - /* on error, disable any endpoints */ } else { (void) usb_ep_disable(link->out_ep); From patchwork Thu Jun 6 21:02:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ferry Toth X-Patchwork-Id: 13688963 Received: from mailfilter05-out30.webhostingserver.nl (mailfilter05-out30.webhostingserver.nl [195.211.73.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1EF26A33B for ; Thu, 6 Jun 2024 21:06:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=195.211.73.139 ARC-Seal: i=3; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717708012; cv=pass; b=gDNgulQJoPmLcvL3NZ/onw860zzg+DRSwNhk3GR6cDa9IP+P+tyXIZfJLpJIVI5sZR3D+a5xK0r9CC6VYCMPu553HDYR0usPhU72WclLHxAUCdU8CILsDkWn6Je0GHi2T8Gk+ftohYcRFPkUgvEF6Yxu/8GPGgBfPTfjmc153/w= ARC-Message-Signature: i=3; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717708012; c=relaxed/simple; bh=2LfGQsiTfKh7G/p03O+Vr+UYtMgWtbnVWvSWFL9ixwc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iETnmMGg7qrjKUN8wfCIjJp+rzYHhkXyHwVYAlvVErSWVWYDDV23577JCxOostiE680O81h9y5HyjyBRMdRs4DLEXpGOdByPPYxb44GHXgFyJ8omZ97ArC/JzitNDtdN97W+oJOgQtYw6H3h79y1awCIh/KPOxt+C2YmVQewjwU= ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=exalondelft.nl; spf=pass smtp.mailfrom=exalondelft.nl; dkim=pass (2048-bit key) header.d=exalondelft.nl header.i=@exalondelft.nl header.b=LGM/SHI3; arc=pass smtp.client-ip=195.211.73.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=exalondelft.nl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=exalondelft.nl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=exalondelft.nl header.i=@exalondelft.nl header.b="LGM/SHI3" ARC-Seal: i=2; a=rsa-sha256; t=1717707942; cv=pass; d=webhostingserver.nl; s=whs1; b=Lx1EwviNzU8Ka+W/2IBHCdBXZMMU0gALqLEXd4x2efXAUgHR9mWw04STFQCR0LXN2QlSuLfpdgUl2 LWKzkWrJ0bDRXp3aFE8YbIgn+m4f6fDWg+fimtRceidWs/tTb1zpnLLa75SNgElk7RssTJkQgNX+WA Ae/jLrhPhaSxYNNIo0+yP4jn/w4Xkr8OSVl7TtmTweezv/N28YwP7d5kEswvEScZmOWztePSTgrrpQ FJTk6DVBYfeKytc6yQVq1fy+a7DkGLz24iRs3Xkz07i4lxqz4ugXXx6JfTD3y7EjMvINxCSUqpGsge rWYcwblUseCQykuA/L5sRqX6Emlw46Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=webhostingserver.nl; s=whs1; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:dkim-signature:from; bh=FsLnuFLGe0haxXdGehDFQL/y8+K9ZmLXTG4uRUF1/zo=; b=bEEb+jbTmBSZsQdvYYsT0BKZSgkaZDrQlVQpIqIT97ZUAlg/DWoFhrc1qVxgKV75ltJGOkFxyCj5d +maXd/waTOdJDLcShonIe27zo+cFKifwH0z4X1nhvagB+8gKzo0DVdZnaR710v1uwycOiHMGVJ+HAW 2DsbaTJ1uPu5rkiNdgcSt3DB+xKeYasgvFoawItyKXGeijdN5OqITQJ+mWacyE5VUTVw5+m/wQD2kM lVFA9XECRl63t2f5KF+DKbGCvk9BMF6kMrLKh1SwvkNzvQZlUwrzxCM7raZEpESu/z394CZowJMUUH hr2sWKzarovZ1pAq0GI341oJd6v9+3A== ARC-Authentication-Results: i=2; mailfilter05.webhostingserver.nl; spf=pass smtp.mailfrom=exalondelft.nl smtp.remote-ip=141.138.168.154; dmarc=pass header.from=exalondelft.nl; arc=pass header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=exalondelft.nl; s=whs1; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=FsLnuFLGe0haxXdGehDFQL/y8+K9ZmLXTG4uRUF1/zo=; b=LGM/SHI32TNJKiE3G9kJNz7clO/8LLwCawXsXW7xErcuDqIOJLVWb8Vga4qlVKl6HZ+eSZj56pBSo xVoFv6gaBTnuQwv0k7Qe5nSjHaINPPVRZx/oro0BqQrSWyJagleE1OM0HHQVl4LUMYOQKUAS7TwwZ0 wLPikjmKJqhlhWyEoVawizIlU+fCOYm58c4wBlgvloKljokxFEwnSozehlTXg0ele1THfQSJdRuIfs YCeiRtkxSFBa2+JO8hMW7oG9FNKYZuxEVB3nCVD6POcJOwYr/B9nT9ZXV5Y9HCR3JgZS8ftEddijxQ 2+VYZd99zGrV/P9H8hGFgMYzG0C6CTA== X-Halon-ID: 878ee013-2448-11ef-9554-001a4a4cb933 Received: from s198.webhostingserver.nl (s198.webhostingserver.nl [141.138.168.154]) by mailfilter05.webhostingserver.nl (Halon) with ESMTPSA id 878ee013-2448-11ef-9554-001a4a4cb933; Thu, 06 Jun 2024 23:05:40 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=webhostingserver.nl; s=whs1; t=1717707940; b=jVFg5tSPgeZJgpR42u9PofkZ2CoOYxrsE7PpLuVZSA6KvR+rZGaoQK90HOxWjiVHqz/z9w728/ 5aOpbhx1P1kaXMuvx5okbRJS6L3/18F6Lnfb7Gfo7Z5UUKRBTFs68DAwyBUbheFRpXtt6g1QJe ub7oQiOObFBKuIO0vT5iJyifMkH3Dga1SSXfnFCe00Rb1mKp1TWf12hoKUq9/WLbhNcMVbYS1O JcTeWJz5mz/p3+R7Gl21Y6vnu9GkGzOXXz5zTDQxsEfo34SMvexzLNPEMkW3ELaPgFGretU43+ tZcEqWgSQoOdwuK4nU5GWrT3zwSWVIpj86JVqdWduC21Ng==; ARC-Authentication-Results: i=1; webhostingserver.nl; smtp.remote-ip=2a02:a466:68ed:1:d680:309e:9a32:ec62; iprev=pass (2a02-a466-68ed-1-d680-309e-9a32-ec62.fixed6.kpn.net) smtp.remote-ip=2a02:a466:68ed:1:d680:309e:9a32:ec62; auth=pass (PLAIN) smtp.auth=ferry.toth@elsinga.info; spf=softfail smtp.mailfrom=exalondelft.nl; dmarc=skipped header.from=exalondelft.nl; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=webhostingserver.nl; s=whs1; t=1717707940; bh=2LfGQsiTfKh7G/p03O+Vr+UYtMgWtbnVWvSWFL9ixwc=; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID: Date:Subject:Cc:To:From; b=gWl5B4q5+s++MRB8Ib8PpyVSYjWKVF2vNydZ7d32FeeJEpJGQTfNJr3wINMlcJsZDnegrYpW+a JHoQj82ra4e4WP18M4xo3sLE+8CMfHUOPx9z/J+RfI1c1+47DVXsKU9RFuRP2RHWJ+XX+55Mxg PClkyFnqdFpL5lmt9F44ZmJSyIPIPgy/Og7UURv+8+QwlYNau2saKqC6hABQxvRGCpt3K010r1 qcGw2qcH+2WxLiMyjGnMsD7W8ktGgCY277begy/V+eWnwwm8G3OIMGgkVkHr2oQROHZQGetIio 5Qv/CuqSRL4HuS/GP5/TumwVQ7xJo0TdpAm4efXRTn0z7g==; Authentication-Results: webhostingserver.nl; iprev=pass (2a02-a466-68ed-1-d680-309e-9a32-ec62.fixed6.kpn.net) smtp.remote-ip=2a02:a466:68ed:1:d680:309e:9a32:ec62; auth=pass (PLAIN) smtp.auth=ferry.toth@elsinga.info; spf=softfail smtp.mailfrom=exalondelft.nl; dmarc=skipped header.from=exalondelft.nl; arc=none Received: from 2a02-a466-68ed-1-d680-309e-9a32-ec62.fixed6.kpn.net ([2a02:a466:68ed:1:d680:309e:9a32:ec62] helo=submission) by s198.webhostingserver.nl with esmtpa (Exim 4.97.1) (envelope-from ) id 1sFKIm-0000000APHI-0BCC; Thu, 06 Jun 2024 23:05:40 +0200 From: Ferry Toth To: Greg Kroah-Hartman , "Ricardo B. Marliere" , Kees Cook , Linyu Yuan , Justin Stitt , Ferry Toth , Richard Acayan , Hardik Gajjar , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andy Shevchenko , s.hauer@pengutronix.de, jonathanh@nvidia.com, paul@crapouillou.net, quic_eserrao@quicinc.com, erosca@de.adit-jv.com, regressions@leemhuis.info, Ferry Toth , stable@vger.kernel.org Subject: [PATCH v1 2/2] Revert "usb: gadget: u_ether: Replace netif_stop_queue with netif_device_detach" Date: Thu, 6 Jun 2024 23:02:32 +0200 Message-ID: <20240606210436.54100-3-ftoth@exalondelft.nl> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240606210436.54100-1-ftoth@exalondelft.nl> References: <20240606210436.54100-1-ftoth@exalondelft.nl> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ACL-Warn: Sender domain ( exalondelft.nl ) must match your domain name used in authenticated email user ( ferry.toth@elsinga.info ). X-ACL-Warn: From-header domain ( exalondelft.nl} ) must match your domain name used in authenticated email user ( ferry.toth@elsinga.info ) X-Antivirus-Scanner: Clean mail though you should still use an Antivirus This reverts commit f49449fbc21e7e9550a5203902d69c8ae7dfd918. This commit breaks u_ether on some setups (at least Merrifield). The fix "usb: gadget: u_ether: Re-attach netif device to mirror detachment" party restores u-ether. However the netif usb: remains up even usb is switched from device to host mode. This creates problems for user space as the interface remains in the routing table while not realy present and network managers (connman) not detecting a network change. Various attempts to find the root cause were unsuccesful up to now. Therefore revert until a solution is found. Link: https://lore.kernel.org/linux-usb/20231006141231.7220-1-hgajjar@de.adit-jv.com/ Reported-by: Andy Shevchenko Reported-by: Ferry Toth Fixes: f49449fbc21e ("usb: gadget: u_ether: Replace netif_stop_queue with netif_device_detach") Cc: stable@vger.kernel.org --- drivers/usb/gadget/function/u_ether.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/function/u_ether.c b/drivers/usb/gadget/function/u_ether.c index aa0511c3a62c..95191083b455 100644 --- a/drivers/usb/gadget/function/u_ether.c +++ b/drivers/usb/gadget/function/u_ether.c @@ -1200,7 +1200,7 @@ void gether_disconnect(struct gether *link) DBG(dev, "%s\n", __func__); - netif_device_detach(dev->net); + netif_stop_queue(dev->net); netif_carrier_off(dev->net); /* disable endpoints, forcing (synchronous) completion