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 B971EEB64D9 for ; Thu, 6 Jul 2023 12:39:51 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 03E4786313; Thu, 6 Jul 2023 14:39:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="WagXofgu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A1EA3862AE; Thu, 6 Jul 2023 14:39:48 +0200 (CEST) Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 985FA86372 for ; Thu, 6 Jul 2023 14:39:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=nm@ti.com Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 366CdaME045597; Thu, 6 Jul 2023 07:39:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1688647176; bh=KT+ycgoEUhPz5xig5KNEWj2pJ5F8hHMCdTo/UK8qUnA=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=WagXofgu8tiqxXfIfLo84nofKzhyGYJzL6MSVKbC1tQUuWt56aK2Vo/5an5YJzCqU 59jOL7Ocpt2UpwarbkzSxjg2oASa4pY7n3ms98ugltUoVbPC6fIbeNplRWoxY1f8E+ 45NJ0otrj78kXG8x7ZJuoG6lfXjsckTgEBey/uo4= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 366CdZDK012893 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 6 Jul 2023 07:39:35 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 6 Jul 2023 07:39:35 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 6 Jul 2023 07:39:35 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 366CdZEx015788; Thu, 6 Jul 2023 07:39:35 -0500 Date: Thu, 6 Jul 2023 07:39:35 -0500 From: Nishanth Menon To: Julien Panis CC: , Marek Vasut , , , , Subject: Re: [PATCH v4 1/2] musb-new: ti-musb: Handle usb dual-role feature as peripheral Message-ID: <20230706123935.alil6t5gas76dgiz@chaps> References: <20230621-fix_usb_ether_init-v4-0-5f4977bb7678@baylibre.com> <20230621-fix_usb_ether_init-v4-1-5f4977bb7678@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230621-fix_usb_ether_init-v4-1-5f4977bb7678@baylibre.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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 12:40-20230706, Julien Panis wrote: > This prevents from getting some 'No USB device found' error, > in usb_ether_init() function for instance. > > Signed-off-by: Julien Panis > --- > drivers/usb/musb-new/ti-musb.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/musb-new/ti-musb.c b/drivers/usb/musb-new/ti-musb.c > index 3be3f93dd85d..44697dc31387 100644 > --- a/drivers/usb/musb-new/ti-musb.c > +++ b/drivers/usb/musb-new/ti-musb.c > @@ -302,6 +302,7 @@ static int ti_musb_wrapper_bind(struct udevice *parent) > dr_mode = usb_get_dr_mode(node); > switch (dr_mode) { > case USB_DR_MODE_PERIPHERAL: > + case USB_DR_MODE_OTG: > /* Bind MUSB device */ > ret = device_bind_driver_to_node(parent, > "ti-musb-peripheral", > > -- > 2.37.3 > Reviewed-by: Nishanth Menon -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D