Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3369294rwb; Fri, 30 Sep 2022 02:32:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM64IBFVnyOC2u57PGpHJNPQc8ruJGjQP4uVBetNW3x2wvGMNjU6t0dAOAMCatxxWIehplWa X-Received: by 2002:a63:24d:0:b0:439:3804:d0ff with SMTP id 74-20020a63024d000000b004393804d0ffmr6795146pgc.414.1664530322119; Fri, 30 Sep 2022 02:32:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664530322; cv=none; d=google.com; s=arc-20160816; b=e4720ff5DMI4EqQljb/OvNU3zW3gFb9J3Gx0Ix1pCgAQJOCT+9UM89Py/YgCHn7T5U VysV9fUYcuCePLTSMoZBEif84hmyiuAuW+uxYo1nkxkB46IVkFJx72mUrjmV0FGaIUXH LjhOqNMd58JsQEaPBGrFNEjztTVRk4XhNpgPDpgzoJz6i5ko6eQrpHNzqjnEvkXIiNwO gGwRptnICIP3/r2Aa/oMj7Gd4g21oy52PLNriFaynpPNKS63R6w6mu9sGZZxt/DxVUd5 rvGS6+2F5BHuqqjB5dBxK/4c3zrTveVBKJuazD06ab6y4EmK/CsUgiFKYPeHmJChzzq4 8GtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gJjW5fa7kvdDf/YmHZtzcK6loq7GxBtmWSs5easwdRI=; b=We3YiKYFTm0FYuoB1zd8+K1uzeoUaJzXAXVpCdEWvBEICR+bpr+rfA4TyanfWPsJUf +T5KUVMNf/EIiPbTwFCcs68uiUpd8w+SJ+6Vidj54vwvC+tAAZAlf/L/sELU1PUxyrH6 flyIdX4Jqno7Aj0d4thfE8ovMT7RYvDxHlJQEbnwpUTvr1MoNQHx636wEYPvcqmJ1LET L2VoRD7Y598ptWIWvsyf6N04i1vlDaITLEZcAdUxScuYAUCKdNRNWnHIOA5QMYAV6IAL rZGOoh29/4R/Y/vwQkpyCIfK/6DGuxYXABc9RubYi4I2HZuvXun3MTfiD9R4d3p6BTmq 1X9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UqsjRZoY; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r7-20020a170902be0700b0016ed623a591si2254252pls.1.2022.09.30.02.31.50; Fri, 30 Sep 2022 02:32:02 -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=@linuxfoundation.org header.s=korg header.b=UqsjRZoY; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230283AbiI3Ish (ORCPT + 99 others); Fri, 30 Sep 2022 04:48:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231174AbiI3Is3 (ORCPT ); Fri, 30 Sep 2022 04:48:29 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFE8A1F0CF3; Fri, 30 Sep 2022 01:48:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A9E17B82751; Fri, 30 Sep 2022 08:48:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 196A7C433C1; Fri, 30 Sep 2022 08:48:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664527706; bh=Jo/cOYiiIovyfrw3RudkLfXtR/QEJeserdY5pJ19vek=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UqsjRZoYG8eZFpj6519V68tfD3hQbHVcOwNbtP2WHaHUgAe5bmr1gvSIw++2z9l/p O8HeMelTtjuZZuict2IqGLRAQsEmDMo8XHqZ0Rf34qw8/Xkk3rXt1dVM4hbkCorsmu +y3P6WPHAdkavMLGdw8F1LygEm89pUgPvAhFlKeA= Date: Fri, 30 Sep 2022 10:48:23 +0200 From: Greg Kroah-Hartman To: patrice.chotard@foss.st.com Cc: Felipe Balbi , linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Jerome Audu , Felipe Balbi Subject: Re: [PATCH v2] usb: dwc3: st: Rely on child's compatible instead of name Message-ID: References: <20220930072707.516270-1-patrice.chotard@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220930072707.516270-1-patrice.chotard@foss.st.com> X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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 > Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what needs to be done here to properly describe this. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot