Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4063214rwi; Sat, 22 Oct 2022 04:41:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4xvOgM0BfZnpBOZSaDYUmFjmefAtV9GGwXPaEuVfi/njwYx2b6ossf1tH5Rmo2FHPionpC X-Received: by 2002:a17:907:2c78:b0:78d:eacd:1060 with SMTP id ib24-20020a1709072c7800b0078deacd1060mr19190510ejc.244.1666438866134; Sat, 22 Oct 2022 04:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666438866; cv=none; d=google.com; s=arc-20160816; b=zLYxKVzJ24t7Gby3SVIQsLPvbJcpQpvsixhZEzkizdoV4wQcFOIJgR8GUGchLx6KWJ CEk9kfwhY9gyUtfo/2jyXIwi489z09ONTgS+f4TJwwoQM2Rgx1F5p+0nhQWpBT1Bdr1P GLwB87HTox/3+fba+iObZmmfeR4wr1nZamS/ySpYUUEpuSC7yY9yHmtsC96KhW8G936v pJjJuIrSYXG8AfNL61Woh5wy6OD2894Z5PHgTAye9hHJquXghjStfLZc0vGe/odpiZwj o/HTNxL7SJlz2qINfhPhlPgbwSHRi49gv7tdltJs3f/EgMJ9YsP2B15mTTjl6M4w7GTC Qq9A== 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=qypMxHpBDaifPYm6pc6dTAgU6fmTgpIlGa+HT8oSVhI=; b=dU1aux5zqIhY/y+qApP77lkBtVsf95RQjnA2tYyXyXaIlSc2+cwp7KLe8J3DL6Bbnj nryqnljkTHiww/z+NXJBTZ5WJfGWFp35Zz/oMRgVKE+jU94rGKEC5mJsCMoncXzQk9lv ViYdNWWhjy5e11+XYOQHBfnGEG1AJ+Yx0AWsOZY6f6BYTX6fmcLS/TFCLVFYbrZJytSn Y0+BYdi1Tc5uS5Y/bxc+wwJEEuICUx5xyn/LncowVsO+ujKJBVKtLKr/h1bB23RH2jGZ KqD5L/XK/DVqLnLM0kE8LdJwRgN5e4++i0PgAtxG3c+6o/JWcrMAxZrUS0ms6Piop00V r2NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Q4T17/U4"; 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 cs21-20020a170906dc9500b007a135a39e52si1435728ejc.137.2022.10.22.04.40.41; Sat, 22 Oct 2022 04:41:06 -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="Q4T17/U4"; 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 S230098AbiJVLIj (ORCPT + 99 others); Sat, 22 Oct 2022 07:08:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231149AbiJVLIQ (ORCPT ); Sat, 22 Oct 2022 07:08:16 -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 D37F52D37C5; Sat, 22 Oct 2022 03:26:54 -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 CA302B8077D; Sat, 22 Oct 2022 10:26:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCFC0C433C1; Sat, 22 Oct 2022 10:26:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666434411; bh=dTTyLGATFbJsGsPhwEJxmVPaeto9T/Tpgmku7JGHixs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q4T17/U4PIMJuTG8DgpKQAMg3Dxqwz2xAgQI7I6TnrONxSufLduiKcLRiyKnP5tcy pGUECVdCnFjJT2zwjH8w4DQBsa0HYk7HalSZftIancT0o0ltV+BEbgEzCVqVOGO6xr dG7Pb4s7Xb6Cpk24Yg8qBQqrUGc9aQqIuWgkwLds= Date: Sat, 22 Oct 2022 12:26:48 +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 v3] usb: dwc3: st: Rely on child's compatible instead of name Message-ID: References: <20220930142018.890535-1-patrice.chotard@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220930142018.890535-1-patrice.chotard@foss.st.com> X-Spam-Status: No, score=-7.4 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 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? thanks, greg k-h