Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3737009rwb; Fri, 30 Sep 2022 07:41:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7HRB9qsY21mmZFiV2msAhTLIktfV9LI1MedBunKmZqlh+tWpl7zOH52zDcInAI0dthVlQc X-Received: by 2002:a17:907:7e9d:b0:782:3601:7d01 with SMTP id qb29-20020a1709077e9d00b0078236017d01mr6657537ejc.361.1664548910931; Fri, 30 Sep 2022 07:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664548910; cv=none; d=google.com; s=arc-20160816; b=iwlV6bK3yDB5fxXKGNgao+OSz8L6GU1DG06fPhpQzjztWctorOpw6BrAieD5coB2e/ v/aiEv97KSfJQejERq0X9hj0o+kOJLwi62lo55RweNXl6fzm1H42sMqb2skOoRg9gsEV KwZbrjkYd5XSkSkZUbNCmL5dCkhky8Aodx4h+Gd5H3La0bkvQzopPh+PFnW5KKGfDkbF wv5A+jizDpSn/k963NM+2O3bML/1ESCnn9AR4avUkQahcWKi4+DO5KpHnr1dbiSBDHsy Uk2pwUKq+ZunQYS/h675c09g+/C0G6el3lACrDBoS+dzkLoiDP4tl9K2RRvjyFjwnIix Q+UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=5mh9M8v3SuC/0m2KMYvd313TI/M6UNxK38tIpJ8zt9Q=; b=twWnMcjktfYwblT/jG1ucScRm21Y32MImUYl6QIqg+VQemTyTKAyxK7E+Irw+9Y7lw jNsWruaaUhFwxP0QnVVppywoXn6R5B22q2rcq5G6wD1JgeG3WdrzHE8gt7UDUfUMwzIo aLSHP8oXEaUYUti2u+u2s3NSYGUQq0YDexXweOEBNJ+Lmt1G1AJblyX3zhCu5V6Wlp0t Jlw1PTUJIlWWU9v7mCbwTBwv/d0p5IdueoZI9oAY2H0sS0jKxvYdSVXcnMpUOHlo79ww i/iw4VQbKxhcMh0mwgmvPS/qT5rlpbjXuvHHD/T8Zu8TGU4z9iFKxBxN5KrbvPz+NM+s jw1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=qzQn5b0m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o22-20020a170906975600b0077953fba3b3si1954851ejy.694.2022.09.30.07.41.23; Fri, 30 Sep 2022 07:41:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=qzQn5b0m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231871AbiI3OTb (ORCPT + 99 others); Fri, 30 Sep 2022 10:19:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231873AbiI3OT0 (ORCPT ); Fri, 30 Sep 2022 10:19:26 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DE981A10BE; Fri, 30 Sep 2022 07:19:18 -0700 (PDT) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28UD1kOB007622; Fri, 30 Sep 2022 16:18:58 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : from : to : cc : references : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=5mh9M8v3SuC/0m2KMYvd313TI/M6UNxK38tIpJ8zt9Q=; b=qzQn5b0mQpen6qtcWKXX2p4z7MI51MyO3BMke9Pe1HhZheyHC7Th3DcVdSVFsY7AXH8Z evtFJqofwNW1wZyRjxjS5ALXedqk6dSIyO9dJpt0kjUmTCKP3hZeBv+oMJ1NhhWroWB0 zSPhIWkj8VdcqHqDmA0adZONxDAGeLsi+q2G1Op/zZsEMr3zuWbrPR7+BIuan2oNzJ7G 21Yy6eHnrGgfx3+Nr0OuT++9Jf4piXmOkr9TzlHHFHZLCyVORYEjXiGVGRWGBMcvnk9Z PJ4pMm79ffAspHlcJNZqri0HhNeu6R6P6S2Ob1p4AJRS7+V+NUdXxxLOGrAZErBYST4V QA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3jwxefhdqp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 30 Sep 2022 16:18:58 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6BC5310002A; Fri, 30 Sep 2022 16:18:56 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 3852D2309E6; Fri, 30 Sep 2022 16:18:56 +0200 (CEST) Received: from [10.201.21.72] (10.75.127.50) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Fri, 30 Sep 2022 16:18:55 +0200 Message-ID: <990c5782-2206-c012-d770-966887fd4515@foss.st.com> Date: Fri, 30 Sep 2022 16:18:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2] usb: dwc3: st: Rely on child's compatible instead of name Content-Language: en-US From: Patrice CHOTARD To: Greg Kroah-Hartman CC: Felipe Balbi , , , , Jerome Audu , Felipe Balbi References: <20220930072707.516270-1-patrice.chotard@foss.st.com> <8a6122f8-6432-d160-5937-fa7df029c928@foss.st.com> In-Reply-To: <8a6122f8-6432-d160-5937-fa7df029c928@foss.st.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-30_04,2022-09-29_03,2022-06-22_01 X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/30/22 16:16, Patrice CHOTARD wrote: > > > On 9/30/22 13:48, Greg Kroah-Hartman wrote: >> On Fri, Sep 30, 2022 at 09:27:07AM +0200, patrice.chotard@foss.st.com wrote: >>> From: Patrice Chotard >>> >>> To ensure that child node is found, don't rely on child's node name >>> which can take different value, but on child's compatible name. >>> >>> Fixes: f5c5936d6b4d ("usb: dwc3: st: Fix node's child name") >>> >>> Cc: Jerome Audu >>> Reported-by: Felipe Balbi >>> Signed-off-by: Patrice Chotard >>> --- >>> drivers/usb/dwc3/dwc3-st.c | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/drivers/usb/dwc3/dwc3-st.c b/drivers/usb/dwc3/dwc3-st.c >>> index 166b5bde45cb..fea5290de83f 100644 >>> --- a/drivers/usb/dwc3/dwc3-st.c >>> +++ b/drivers/usb/dwc3/dwc3-st.c >>> @@ -251,7 +251,7 @@ static int st_dwc3_probe(struct platform_device *pdev) >>> /* Manage SoftReset */ >>> reset_control_deassert(dwc3_data->rstc_rst); >>> >>> - child = of_get_child_by_name(node, "dwc3"); >>> + child = of_get_compatible_child(node, "snps,dwc3"); >>> if (!child) { >>> dev_err(&pdev->dev, "failed to find dwc3 core node\n"); >>> ret = -ENODEV; >>> -- >>> 2.25.1 >>> >> >> This commit doesn't even apply to my tree. What branch is it against? >> >> confused, > > Sorry... a v3 will be send, rebased on correct branch. > > Patrice > >> >> greg k-h