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 19A63C001DB for ; Fri, 4 Aug 2023 17:54:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2F6A386894; Fri, 4 Aug 2023 19:54:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (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=1691171665; bh=4tToaO7DigQKi+dOqpok46ul3PxrOEPHtYrFGOvmvwU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=cbZs0wrfH2GZbS4fKl77ulz+G38qi3k6zro4Eu78XTldU0HQgfbZUvPF3a7h1HMHG Bg8XMBRIw+p8xXlsyciQoFhrEVje2Jf6IYt/UE1U3K7aH2xBiYC+gc04QmJlTTJxpx QdBMDDb9azOfiNTthkQ4ZXJ1TwpOH8S3pAmtYE0MaHVU6scez6xjLz+mtu0WXvmSqQ +abP0yCBbhi4wFE39bPmCte9W15z3/yW6rynSgQNvJWHfUBSnTM4tJ2o4yV7ACT3HV Hnu6DwGU/4/jfXuh2wAqnID+0RrwrDyWS9YTLkeCVRGc8XZ6xxi968AqJqvP0c+QJZ 5iwhct0TZGebA== 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 DA3B286612; Fri, 4 Aug 2023 19:54:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1691171663; bh=4tToaO7DigQKi+dOqpok46ul3PxrOEPHtYrFGOvmvwU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=hSc+7kNEuEgvi7CkmEzqJV2WpE1wxg5vW2fphyjj+DMIizLc3Oo6XB8mJQgBui0Vr EwKwzq+zsEWKlBjcKRPFEQb2h1XoQD0kE/wwapp/riCB9s0a8XFGZ/wbL/HSZSDibz Qu8SDI5y7ajRP4jiJcQ7IlssElXYXJYbOMEebxoS87DVmOx9EegXgi5DqauxW83ikc WXR9DAQ+MAnizjk2RD0fvYkbgKD7Tyo5oHmy3WicChyVTFzJMN2ujBYRL6A/MVtfF3 /4JaW9iVSSMcJslpWdHhiIYUGk6MGmgOG8pUsgpcy+BWtEE5GJDDALfgp8MsU3RwVu 1fB+6gTTzGqXQ== Message-ID: Date: Fri, 4 Aug 2023 19:54:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 Subject: Re: [PATCH v4 1/4] cmd: bind: Add unbind command with driver filter Content-Language: en-US To: Miquel Raynal Cc: Tom Rini , u-boot@lists.denx.de, Kevin Hilman , Lukasz Majewski , Simon Glass References: <20230802124657.31184-1-marex@denx.de> <20230804090028.70aa780d@xps-13> <4833722f-18ab-e885-291a-988115fe39f8@denx.de> <20230804150100.GN3630934@bill-the-cat> <8902cf54-acba-cfb4-571b-09ba807e7a89@denx.de> <20230804171206.07faade4@xps-13> <0eb7f3fe-42da-6252-3b77-50eb3276f2ee@denx.de> <20230804192409.45e650f8@xps-13> <72e90424-fadc-7213-7af9-2aace3577ff9@denx.de> <20230804194638.21128f5e@xps-13> From: Marek Vasut In-Reply-To: <20230804194638.21128f5e@xps-13> 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.8 at phobos.denx.de X-Virus-Status: Clean On 8/4/23 19:46, Miquel Raynal wrote: > Hi Marek, > > marex@denx.de wrote on Fri, 4 Aug 2023 19:31:50 +0200: > >> On 8/4/23 19:24, Miquel Raynal wrote: >> >> Hi, >> >>>>>>>>> exit not allowed from main input shell. >>>>>>>>> => unbind /ocp/usb@47400000/usb@47401000 usb_ether >>>>>>>> >>>>>>>> Does >>>>>>>> >>>> => unbind ethernet 0 >>>>>>>> >>>>>>>> work ? >>>>>>>> >>>>>>>> If so, 1/4 in this series can be skipped altogether. >>>>>>>> >>>>>>>> You likely won't even need the rebinding of ti-musb-peripheral anymore. >>>> >>>> Did you test this yet ? >>> >>> Unfortunately it does not work. Indeed it would be much simpler than >>> using the node path. Any idea why? >> >> Since you provided literally zero information, no. >> >> Console log would be a good starting point. > > Here it is, the unbind command itself does not complain has it seems to > catch the regular Ethernet controller (there is one in the SoC, but it > is not wired on the board). So the first time it does nothing, but the > second time it works as the USB gadget get dropped! And after the > second call, fastboot works without the bind call. > > => dm tree > misc 0 [ + ] ti-musb-wrapper | |-- usb@47400000 > usb 0 [ + ] ti-musb-peripheral | | |-- usb@47401000 > ethernet 1 [ + ] usb_ether | | | `-- usb_ether ^^^^^^^^ ^ unbind ethernet 1