Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6403225rwi; Mon, 24 Oct 2022 00:24:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM47IddSD9QuvY7c422is7FQBlqFcsGSpBXXk/AxEG6XgPu4xhgkUBwAU4Q7vH79TQnU65t/ X-Received: by 2002:a17:902:e5ca:b0:183:88dd:1d34 with SMTP id u10-20020a170902e5ca00b0018388dd1d34mr33170564plf.134.1666596233608; Mon, 24 Oct 2022 00:23:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666596233; cv=none; d=google.com; s=arc-20160816; b=Md/juaTdwLVp8KyoDXhnJCA4Qg9F6Fd/KIzBaHNrLs8O12+Ihp6fnMM/gePI45bK1d lFrq96g+aAy9hmzfdsozi+1p3GD1g4qX1TyQApE3WQf9run81eZ3vgaN6Vo/V0cffUe0 /VzpKAmv3kNzH/V6hcS4YAfUJaPT5MWt6b05JwqXAI4WRkxfUBwWEqqyJxvfxSiWwiy8 qleEUJBU23j2eHGu5rkg1ZGSpRSeDATWZOvUPSzaARJK4zUXvqCUx+Tw82JfxHe+MpC3 Rl8I/dXONgPwTBPi7uCBTusPjTgTpiQJKd8MFeEjfDf9MW1Wr1I7nVahDT0dq6ANPiiU Q4RA== 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:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=RGsQrACxVaiQ/PqYuY2b2GnpiqpCXdRkFoPEvUnvhcw=; b=slNW2H+G+yqY5Qzn7FDqot7CKt99AlD7Wctuynlup2LZxou5nEsqiVZTOLFe+RwKza DODBkWs8jRU/QuLBnpVRtoZ/2v83f5jQADvbn2CU4fDMLkUdM+5wG9U0TF9MimcaAyNS 4PZhQfkWGw8NnqEsYs8AC06MbXKmdLggpBv568TwOtwhABjfyjB61SBEuZgSEkJ8+52+ wiOjMsSaZ2sTxdutdDLyucsELjQG66I4f4nPeweTevQc0g6KaxS00Vl3MLbibRwDSI4z EuEyNS0w/vGPuQP9EFaVCHtzLftGcWhMNuEcVmuNdji0PVBfW2KQ4n4b7Ktd49t0HXIp TGLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=zB9GoWQc; 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 lk13-20020a17090b33cd00b00212de1542cesi9505154pjb.92.2022.10.24.00.23.42; Mon, 24 Oct 2022 00:23:53 -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=zB9GoWQc; 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 S230438AbiJXHRg (ORCPT + 99 others); Mon, 24 Oct 2022 03:17:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230467AbiJXHRc (ORCPT ); Mon, 24 Oct 2022 03:17:32 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AC0C52DD2; Mon, 24 Oct 2022 00:17:23 -0700 (PDT) Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29NLeKsd010847; Mon, 24 Oct 2022 09:16:55 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=RGsQrACxVaiQ/PqYuY2b2GnpiqpCXdRkFoPEvUnvhcw=; b=zB9GoWQcvHm20Je2/l5foUJXJkxACJFDuypPhjL11OVGyW36PsI+qBMY57EHuEnJjIzq qo4fW5FYlaVE4mGXjqny+4CM2bcBRfjx07DwSvKNCuZIOm5OUPoiAU5UyS4yIdNx3U5w FijVzsUL+QZJw2/JzruM4+h447bLSRzkywiMQPIhG/EGwf1HkVfyIRUc4nSHHxvY9bXg v07HlHbvGfkAANoBBm2WLms9trQx56j52JOXtAwC3V0HBE8g9hvsP72+2RXV/fnxB1Sv QZez3mD2Hj4f97EYdYOc3M69F+NHYNIkazy9Wn+Gn9JKNeBAerFpDthaapYcWyCAfprU Ew== 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 3kc7dk1cb5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Oct 2022 09:16:55 +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 E7121100039; Mon, 24 Oct 2022 09:16:48 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A89102132E7; Mon, 24 Oct 2022 09:16:48 +0200 (CEST) Received: from [10.201.21.72] (10.201.21.72) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 24 Oct 2022 09:16:48 +0200 Message-ID: Date: Mon, 24 Oct 2022 09:16:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v3] usb: dwc3: st: Rely on child's compatible instead of name To: Greg Kroah-Hartman CC: Felipe Balbi , , , , Jerome Audu , Felipe Balbi References: <20220930142018.890535-1-patrice.chotard@foss.st.com> Content-Language: en-US From: Patrice CHOTARD In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.201.21.72] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) 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.545,FMLib:17.11.122.1 definitions=2022-10-24_01,2022-10-21_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 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 10/22/22 12:26, Greg Kroah-Hartman wrote: > On Fri, Sep 30, 2022 at 04:20:18PM +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 >> --- >> v3: - rebase on correct branch >> v2: - add missing reported-by >> - add Fixes >> --- >> 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 6c14a79279f9..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, "usb"); >> + 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 >> > > Is this still needed for 6.1-final? Yes, still needed for v6.1. Thanks Patrice > > thanks, > > greg k-h