[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <97138f56-3915-b7d6-73f6-e8eceaa0ca63@i2se.com>
Date: Thu, 22 Dec 2022 13:21:16 +0100
From: Stefan Wahren <stefan.wahren@...e.com>
To: Matthias Kaehlcke <mka@...omium.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-kernel@...r.kernel.org, linux-usb@...r.kernel.org,
stable@...r.kernel.org, Douglas Anderson <dianders@...omium.org>,
Ravi Chandra Sadineni <ravisadineni@...omium.org>
Subject: Re: [PATCH v2 2/2] usb: misc: onboard_hub: Fail silently when there
is no platform device
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 <mka@...omium.org>
> ---
>
Tested-by: Stefan Wahren <stefan.wahren@...e.com>
Powered by blists - more mailing lists