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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0BEBFC05027 for ; Fri, 20 Jan 2023 18:42:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D02E385477; Fri, 20 Jan 2023 19:42:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1674240133; bh=Dncv15JQ7LiJFT6TbD5Ejam0rjjDZPV9WjLdeXqFB3c=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Nwv51Y+q0iz5DD58oDm0+U3Ys4Wso2DycziO5xuE8f7FsGmHscFvIiC6YrdsP61ub 5f5lHhpqUtki/HzmBTl+Exvx4ZK/yQUTR277p07NuK4sZlSOlz7RMk/90F/n4P4OWf KDWx1yrBNBqRC4FDpDQxKUPWNd77GW000uJcPLUMafj7f/z3c1i+OUlOkkoHnkzaIQ YQGmP/Xc+Ap+TkFgCGcEWJpWor9pXOM80AjAl8iDqBqw1GHiCwzAI30ko3XYANzS9a pkH0KA4sH3OJPVYbLnb1ZnHp5nEb+Eg8UBJzVhmkywAs6UXFn9QvUzsTUf95OyXf0Z L/pVX3j4yUv0w== Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 449818532C; Fri, 20 Jan 2023 19:42:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1674240130; bh=Dncv15JQ7LiJFT6TbD5Ejam0rjjDZPV9WjLdeXqFB3c=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=uIm+6px+7Unbl9fYphePO/IskDqNWnB2Pq2wd7Zm0FEvAGpp+YTzrfwcvaRhM1HZA O2MJvwK1iDT4alXXDDvoeyp1AW0uo0Ux8v4aMny9tDJGy4ca8wtuMw4sxyu4qM+6FR LSbYtEFF//3ciSo+q1ykZF3FKVSuQRiDDKn7mOBEOoFozgrF5NMFOlFiIcegyaOg15 m56ZOX/ohhfDlnSWfin7wsrVDOaIDqBvBsQnYv18Nf95yAbzGFrYZxDknzl+DSJP5y d6tUlAmaGGfFcozFzrWFnBdwyIzpuh1H/w9Jt1TO3SqLluwbRL0Wps3OF4knFjaaKX pstbbHXEY52vQ== Message-ID: <57126369-4e44-1107-f228-c5fee2fdeff2@denx.de> Date: Fri, 20 Jan 2023 19:42:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH] usb: gadget: ether: split start/stop from init/halt Content-Language: en-US To: Niel Fourie Cc: u-boot@lists.denx.de, Lukasz Majewski , Ramon Fried References: <20221212152945.1870385-1-lusus@denx.de> <20221212152945.1870385-2-lusus@denx.de> <85189f43-e216-0cfd-fec9-a38b0e0bab12@denx.de> <93348484-8ea4-24fb-7983-668d898c2c9e@denx.de> <06dcacc981d90e2c559f3a8b5f41249f@denx.de> <46b09842-6143-7e93-3047-c81b975aa56d@denx.de> From: Marek Vasut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On 1/20/23 18:26, Niel Fourie wrote: > Hi Marek Hi, > On 18/12/2022 02:51, Marek Vasut wrote: >> On 12/16/22 17:35, lusus@denx.de wrote: >>> Hi Marek, >> >> Hi, >> >> [...] >> >>>> Should "[PATCH v2] net: eth-uclass: revalidate priv after stop() in >>>> eth_halt()" be dropped ? It seems this patch fully replaces it. >>> >>> That old patch only exists for in case there were showstopper issues >>> with the new patch which I missed, or as a stopgap if major changes >>> were needed first. I did my best to test the new patch on the >>> hardware I have, but if any other gadget drivers were to misbehave, I >>> would not know about it, for example. But if you are happy with this >>> new patch, that old patch could gladly be dropped. >> >> The new patch is by far preferable. If you can sort out the >> network_started comment, I would like to pick this via usb/next. > > I did some more testing and I found that keeping network_started as it > is works best, so I did not change it for v2 of this patch. This doesn't answer the question whether netconsole connection gets broken or not by this change, it think the netconsole connection would get broken and that's not good. > Unfortunately during local testing (on imx8mp), I uncovered an issue in > the dwc3 gadget driver causing it to hang. I have a workaround, but I am > still looking into fixing the root cause, and that would have to be > fixed in a separate patch series. You can send the workaround as [RFC][PATCH] so it wouldn't get included accidentally and possibly CC Peng Fan from NXP. > Similar issues might also still crop up with other gadget drivers. [...]