Re: [RESEND][PATCH v2 27/36] drivers: Add a generic helper to match device by fwnode handle

From: Suzuki K Poulose
Date: Thu Apr 18 2019 - 11:15:59 EST


On 04/18/2019 03:39 PM, Rafael J. Wysocki wrote:
On Tue, Apr 16, 2019 at 12:53 PM Suzuki K Poulose
<suzuki.poulose@xxxxxxx> wrote:

On 04/16/2019 11:48 AM, Rafael J. Wysocki wrote:
On Tue, Apr 16, 2019 at 12:39 PM Suzuki K Poulose
<suzuki.poulose@xxxxxxx> wrote:

Make the device_fwnode_match() a generic helper to match device
by fwnode handle for use with bus_find_device(). This will be
also used by coresight.

Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Cc: "Rafael J. Wysocki" <rafael@xxxxxxxxxx>
Cc: linux-acpi@xxxxxxxxxxxxxxx
Signed-off-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>
---

Resending with linux-acpi in Cc, as requested by Rafael.

Do any other patches in your series depend on this one?

Yes, I do. But they are in the middle of a big series of changes and
I don't expect this series to go into 5.2. So, if you plan to pull this
please go ahead.

I would prefer the new exported function to return bool. With that
changed, I can apply the patch I think.



That will need changes to all the other callers of bus_find_device()
to fix their match(). I guess that is a bit of an invasive change, so
I would rather do it in the "consolidation" series with
class_find_device().

Hope you're fine with that.

Suzuki