Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp10084rwj; Wed, 21 Dec 2022 22:06:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXv/DWL2UfZ+5lgTqzXp7ZnSkgJFcx2V3moDmt93uwvjHrXiAkuZ5tOjjIWPCi4iRMU2NxjQ X-Received: by 2002:a17:906:b0d1:b0:82e:a57b:cc9b with SMTP id bk17-20020a170906b0d100b0082ea57bcc9bmr7482446ejb.24.1671689214822; Wed, 21 Dec 2022 22:06:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671689214; cv=none; d=google.com; s=arc-20160816; b=ZE3FXQvCA3FqEVAqiXlWixezdVyH9T7t3TpVXjNGCdALNWWoJtN6M89x7Hom46wzFA CaSH9jK6c+NnpzKlZTT5SjVBNAtHRcTHV0ChQwg6AiKebJoLCcY5k8L4p3s10AngIOtW MbeQBS/o3W/2nssZmUriezJdmRyk2/gI8iSEuU1rdU1R8o+J/eURiOzZcJCKATS4CATY 83CRdXpOD6JbMliWiQzbaCTo7e6Kfu+3Kxa3aqJWBPd/LoYrLvOD/ORuImxWwG2OwXBr vwa8fTH/cUw2jg5ouakhyv9Zkowvrc+DTqLdrC7na+OiIDkYHXP/Q57fP9wBEK+NCFGG 7Bww== 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=dlRmio6DdyQpxyWIvY0UqvoKntbXXqP9VpPvSbvt9vE=; b=LHU3ppSJTPEPEBBa8jayiBJ6RxPeFr35FJT1WPrzefk0bZ21V09+CpuueAZa9yoeDz OnrE0akwvSrxzqr2wUCHSpmaNgxagHbaPp8VBSokUr3TtzlQHVib5FUKSLksufoQj+66 3uMae49F2IhQhfYkL/TB7doIfrEXl7+nG46nL1OhbTOUvUfZxkneGeGIUsy1MnCSyq7L DN0GLvPkIvGXgJRH+e3UWU7UeEaZyg7LSPb0pNFoD4L1k35t7ZCzrZX68CsKnXQPaXQs phBkilnZtDCc6GitJ7kJw1AaMTgl2nm3PcGSbFuk+X+tEzpECGcI7n4tZQxb9bf3X2Kj qBlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tVeiZ3HA; 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 qa35-20020a17090786a300b0082b7e633997si8561431ejc.434.2022.12.21.22.06.39; Wed, 21 Dec 2022 22:06:54 -0800 (PST) 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=tVeiZ3HA; 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 S234935AbiLVFuX (ORCPT + 67 others); Thu, 22 Dec 2022 00:50:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbiLVFuR (ORCPT ); Thu, 22 Dec 2022 00:50:17 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A5581903A; Wed, 21 Dec 2022 21:50:16 -0800 (PST) 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 D0118B81C5E; Thu, 22 Dec 2022 05:50:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DA59C433D2; Thu, 22 Dec 2022 05:50:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1671688213; bh=5V9ED/JzaBt/cMkwYVq6/4E5hG05GxzX6B4YQYjwXzw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tVeiZ3HALwW9t+ntmd5NVcNRnVkxw5qx+2tHRM36o6Z1QXqiQzz9cgKfEDqEJI74b hx3+eD5kpwOHjGNX3/aFWK0Q3dmLOYdQf/IdMhwSyA1IhWzHAu8W+T+miZzbz7g/VT MolxtRPzf/UjgaZNJ7XlewjspUQE9ByQsXywpXj4= Date: Thu, 22 Dec 2022 06:50:11 +0100 From: Greg Kroah-Hartman To: Matthias Kaehlcke Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Stefan Wahren , stable@vger.kernel.org, Douglas Anderson , Ravi Chandra Sadineni Subject: Re: [PATCH v2 2/2] usb: misc: onboard_hub: Fail silently when there is no platform device Message-ID: References: <20221222022605.v2.1.If5e7ec83b1782e4dffa6ea759416a27326c8231d@changeid> <20221222022605.v2.2.I0c5ce35d591fa1f405f213c444522585be5601f0@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221222022605.v2.2.I0c5ce35d591fa1f405f213c444522585be5601f0@changeid> X-Spam-Status: No, score=-7.1 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 Thu, Dec 22, 2022 at 02:26:45AM +0000, Matthias Kaehlcke wrote: > Some boards with an onboard USB hub supported by the onboard_hub > driver have a device tree node for the hub, but the node doesn't > specify all properties needed by the driver (which is not a DT > error per se). For such a hub no onboard_hub platform device is > created. However the USB portion of the onboard hub driver still > probes and uses _find_onboard_hub() to find the platform device > that corresponds to the hub. If the DT node of the hub doesn't > have an associated platform device the function looks for a > "peer-hub" node (to get the platform device from there), if > that doesn't exist either it logs an error and returns -EINVAL. > > The absence of a platform device is expected in some > configurations, so drop the error log and fail silently with > -ENODEV. > > Fixes: 8bc063641ceb ("usb: misc: Add onboard_usb_hub driver") > Signed-off-by: Matthias Kaehlcke > --- > > Changes in v2: > - patch added to the series > > drivers/usb/misc/onboard_usb_hub.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.