[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0e152d7f-4b5f-0b0e-ac25-94b6cefa6901@arm.com>
Date: Tue, 16 Apr 2019 11:34:00 +0100
From: Suzuki K Poulose <suzuki.poulose@....com>
To: rafael@...nel.org
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
coresight@...ts.linaro.org, mathieu.poirier@...aro.org,
mike.leach@...aro.org, rjw@...ysocki.net, robert.walker@....com,
gregkh@...uxfoundation.org
Subject: Re: [PATCH v2 27/36] drivers: Add a generic helper to match device by
fwnode handle
Hi Rafael
On 04/16/2019 11:20 AM, Rafael J. Wysocki wrote:
> On Mon, Apr 15, 2019 at 6:06 PM Suzuki K Poulose <suzuki.poulose@....com> 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@...uxfoundation.org>
>> Cc: "Rafael J. Wysocki" <rafael@...nel.org>
>> Signed-off-by: Suzuki K Poulose <suzuki.poulose@....com>
>
> Can you resend this with a CC to linux-acpi@...r.kernel.org, please?
>
> There's some device properties material for 5.2 collected already and
> it would be good to keep all that together.
>
Sure, will do. Btw, I have a question w.r.t the match function.
We have :
class_find_device(struct class *class, struct device *start,
const void *data,
int (*match)(struct device *, const void *))
and
bus_find_device(struct bus_type *bus,
struct device *start, void *data,
int (*match)(struct device *dev, void *data))
Just because the "match" has slightly different constraint for the
data (i.e, const void * vs void *), we can't reuse the same match
function for class_find_device. Do you think we should converge the
types to reuse the same match every where (Of course in a separate
patch series) ?
Cheers
Suzuki
Powered by blists - more mailing lists