Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp82265rwj; Thu, 22 Dec 2022 05:18:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXuxLsbABOI1youjMKnWMJF89QXHGvi6ZaTqHZxPrSCGPpwCR5UcsN8H3KoabIA95oYkgkHw X-Received: by 2002:a05:6402:2482:b0:47a:e008:8662 with SMTP id q2-20020a056402248200b0047ae0088662mr5394160eda.34.1671715089819; Thu, 22 Dec 2022 05:18:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671715089; cv=none; d=google.com; s=arc-20160816; b=lLVLFNRltWjm+G9eTy1q3+ljRuqoiTtb0sncMi2DlmwOWN6kRgiivtj5H62q3OdlUE Hkh6lqzCkdKt4kadI5cmlSZoOYi4SJ7dqsnM1OVwpLO1RZx2HUpHbf13kSGFzgN3VqXu XBK0Go9QQss3hdv5+mz9zb35KbImKLf2rfhf9U9G+XuY5DKeiIWqPuDUvuVpVMqNdLXj tGroK5+4rmuYUr1Rpqkdz/G1LdhkLA+XYqSSvSMOLBB4jb3rWuTdDKtQLDYqdU0bPsOy rG+8RErnzAflMNiIm+am3bjKT3akhkSg1YuGuFTKwhluGgs7Wy6Fcc1iq593a8DiZwVk EGog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id; bh=iGX3BUvy6OLEj0P/QTL1cQV/e9krIO4szJ6kc7BeK0s=; b=C6Z+ISgF4zKo+0hOLTfc0QzAUhCo9+uPNC3J/tvC1QJIbQmeNG2WhVi0XbN7IvTt2R 2G+CZUAfda7WAFutFIBrvQRXcz+0NzPxBd2rbZpwpxSgTpOHD6HNVAQEC8VezmpXvq6O hHFw9+SZFFjVAaZzo61ZnIIKqtjI6rD+GNZGRWSgJCN5JjZFYU9jHh6AUo6jqxtSjOiU WCLaT0u+i+RkOaQ1anHCXxorXbGQ710fy/4RzNnPh1rd7Ef5T2uy0JHzmsZovTc0mXzw KPUVYCHSalaegq+F89dr8sG9xveY+rEtMZz1Jyh0t/25REKsu1z5DJMYrwLgPrt0jwSO h3xg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd21-20020a1709069b9500b007fed8db38a8si545714ejc.114.2022.12.22.05.17.54; Thu, 22 Dec 2022 05:18:09 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235201AbiLVMVX (ORCPT + 67 others); Thu, 22 Dec 2022 07:21:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbiLVMVV (ORCPT ); Thu, 22 Dec 2022 07:21:21 -0500 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B94D0F019; Thu, 22 Dec 2022 04:21:19 -0800 (PST) Received: from [192.168.1.139] ([37.4.248.22]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M3DBd-1p9hTs0g1d-003fA7; Thu, 22 Dec 2022 13:21:17 +0100 Message-ID: <97138f56-3915-b7d6-73f6-e8eceaa0ca63@i2se.com> Date: Thu, 22 Dec 2022 13:21:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v2 2/2] usb: misc: onboard_hub: Fail silently when there is no platform device Content-Language: en-US To: Matthias Kaehlcke , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, stable@vger.kernel.org, Douglas Anderson , Ravi Chandra Sadineni References: <20221222022605.v2.1.If5e7ec83b1782e4dffa6ea759416a27326c8231d@changeid> <20221222022605.v2.2.I0c5ce35d591fa1f405f213c444522585be5601f0@changeid> From: Stefan Wahren In-Reply-To: <20221222022605.v2.2.I0c5ce35d591fa1f405f213c444522585be5601f0@changeid> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:HlE8p13iAhP0Vhk6L3o0fro9+sYEBtmoiRX5ecuA4PT0NVCHQbu u8Q2ovmUZpKklSNwiWfE8JN4VKGzTgbQ0VkO/4gbRDIpqIoJDZRCckeBI8Y78Aaj9k+Ef/y XUuexUmInUaj+YTthaiM3Xd4kJuDxIg2rrcbfYq2zVDUiftGJ57+zSxVnIx4qny6h0XphfI oWJW2FxLUgbAcQuJLWDYg== UI-OutboundReport: notjunk:1;M01:P0:dETeS9UmyNs=;dBNkXmBiuAy1A8vVOBu8CuESKcm iF5wqqkRAHKvS78FdbNx497SiQefjCqKLa5q30L3mHCYBL6WOwpcZfqN+lwF/6IG+BnBfL0Td RuJDRTgxhuVshxe7RM6kDJapGjHaEtPoBD2rQ3yQpzML+sVxqmH9TfJTYbr4Jt2lBPDnAN9xJ 2GRsn6ZshlQTLlLRmj00DV5OIp6GqydQcW2ldp+HRpcroZRIoJrPq1MqFSjoic6GXQQsaZEDM l/jY4gMkzvKqyEgKt7C995AclUMMyvfjXcTqhF87t3FcKWKWVfYMsGCn1sPL1rDFrHKEz4vjB m9YwEal/soWMiaaWJY21a9Knmn3V8yBUA3gLEp0bBEb9gD0jhCjFsG8yGpjzhik1LmGeZksBR hTEH6DPc5nbxzUPFjsOM8pHDJ2Fzwvu8E1vhwmP9Sg84606xkzJNofo5F3DLxque/KEKJuzro sOAl0e6u59rY2S/UxKYUnZ8KNUICHJ+miDOjcbssyACYOxjwYq03nzuuJFYUWorccJezln6sO kXylwqxTomNPxXDCwUHMYdWrit4mSsnc9HdNciHCFwvq+tA88poV8Pra2vpJLkErKujnn9dkt 0de7qAiSErL+41dt4h1RQq69nW9L/ZT9qAXjADXGGIO+sOrL+xAW6MPtHexvvVR7UD8NZPV0i 1z470JyV5+FglKbZHPBtwyuZDQkpiSdSpOBV6fEhvA== X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 Am 22.12.22 um 03:26 schrieb Matthias Kaehlcke: > 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 > --- > Tested-by: Stefan Wahren