From: Greg KH <gregkh@linuxfoundation.org>
To: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: linux-kernel@vger.kernel.org, rafael@kernel.org,
"Alan Tull" <atull@kernel.org>,
"Alessandro Zummo" <a.zummo@towertech.it>,
"Alexander Aring" <alex.aring@gmail.com>,
"Alexander Shishkin" <alexander.shishkin@linux.intel.com>,
"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
"Andreas Noever" <andreas.noever@gmail.com>,
"Andrew Lunn" <andrew@lunn.ch>, "Arnd Bergmann" <arnd@arndb.de>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Corey Minyard" <minyard@acm.org>,
"Daniel Vetter" <daniel@ffwll.ch>, "Dan Murphy" <dmurphy@ti.com>,
"David Airlie" <airlied@linux.ie>,
"David Kershner" <david.kershner@unisys.com>,
"David S. Miller" <davem@davemloft.net>,
"Doug Ledford" <dledford@redhat.com>,
dri-devel@lists.freedesktop.org,
"Elie Morisse" <syniurge@gmail.com>,
"Eric Anholt" <eric@anholt.net>,
"Felipe Balbi" <balbi@kernel.org>,
"Florian Fainelli" <f.fainelli@gmail.com>,
"Frank Rowand" <frowand.list@gmail.com>,
"Grant Likely" <grant.likely@arm.com>,
"Grygorii Strashko" <grygorii.strashko@ti.com>,
"Harald Freudenberger" <freude@linux.ibm.com>,
"Hartmut Knaack" <knaack.h@gmx.de>,
"Heikki Krogerus" <heikki.krogerus@linux.intel.com>,
"Heiko Carstens" <heiko.carstens@de.ibm.com>,
"Heiko Stübner" <heiko@sntech.de>,
"Heiner Kallweit" <hkallweit1@gmail.com>,
"Inki Dae" <inki.dae@samsung.com>,
"Jacek Anaszewski" <jacek.anaszewski@gmail.com>,
"James E.J. Bottomley" <jejb@linux.ibm.com>,
"Jason Gunthorpe" <jgg@ziepe.ca>, "Jiri Slaby" <jslaby@suse.com>,
"Joe Perches" <joe@perches.com>, "Joerg Roedel" <joro@8bytes.org>,
"Jonathan Cameron" <jic23@kernel.org>,
"Jonathan Hunter" <jonathanh@nvidia.com>,
"Lee Jones" <lee.jones@linaro.org>, "Len Brown" <lenb@kernel.org>,
"Liam Girdwood" <lgirdwood@gmail.com>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Mark Brown" <broonie@kernel.org>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
"Mathieu Poirier" <mathieu.poirier@linaro.org>,
"Maxime Coquelin" <mcoquelin.stm32@gmail.com>,
"Maxime Ripard" <maxime.ripard@bootlin.com>,
"Michael Jamet" <michael.jamet@intel.com>,
"Mika Westerberg" <mika.westerberg@linux.intel.com>,
"Moritz Fischer" <mdf@kernel.org>,
"Nehal Shah" <nehal-bakulchandra.shah@amd.com>,
"Oliver Neukum" <oneukum@suse.com>, "Pavel Machek" <pavel@ucw.cz>,
"Peter Oberparleiter" <oberpar@linux.ibm.com>,
"Peter Rosin" <peda@axentia.se>,
"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
"Rafael J . Wysocki " <rjw@rjwysocki.net>,
"Rob Herring" <robh+dt@kernel.org>,
"Robin Murphy" <robin.murphy@arm.com>,
"Russell King" <linux@armlinux.org.uk>,
"Sandy Huang" <hjc@rock-chips.com>,
"Sebastian Andrzej Siewior" <bigeasy@linutronix.de>,
"Sebastian Ott" <sebott@linux.ibm.com>,
"Seung-Woo Kim" <sw0312.kim@samsung.com>,
"Shyam Sundar S K" <shyam-sundar.s-k@amd.com>,
"Srinivas Kandagatla" <srinivas.kandagatla@linaro.org>,
"Stefan Schmidt" <stefan@datenfreihafen.org>,
"Takashi Iwai" <tiwai@suse.com>,
"Thierry Reding" <thierry.reding@gmail.com>,
"Thor Thayer" <thor.thayer@linux.intel.com>,
"Tomas Winkler" <tomas.winkler@intel.com>,
"Ulf Hansson" <ulf.hansson@linaro.org>,
"Will Deacon" <will.deacon@arm.com>,
"Wolfram Sang" <wsa@the-dreams.de>,
devicetree@vger.kernel.org, linux-acpi@vger.kernel.org,
linux-fpga@vger.kernel.org, linux-i2c@vger.kernel.org,
linux-leds@vger.kernel.org, linux-rockchip@lists.infradead.org,
linux-rtc@vger.kernel.org, linux-spi@vger.kernel.org,
linux-usb@vger.kernel.org, linux-wpan@vger.kernel.org
Subject: Re: [PATCH v2 00/28] drivers: Consolidate device lookup helpers
Date: Mon, 24 Jun 2019 05:23:48 +0200 [thread overview]
Message-ID: <20190624032348.GA28919@kroah.com> (raw)
In-Reply-To: <1560534863-15115-1-git-send-email-suzuki.poulose@arm.com>
On Fri, Jun 14, 2019 at 06:53:55PM +0100, Suzuki K Poulose wrote:
> We have device iterators to find a particular device matching a criteria
> for a given bus/class/driver. i.e, {bus,class,driver}_find_device() APIs.
> The matching criteria is a function pointer for the APIs. Often the lookup
> is based on a generic property of a device (e.g, name, fwnode, of node pointer
> or device type) rather than a driver specific information. However, each driver
> writes up its own "match" function, spilling the similar match functions all
> over the driver subsystems.
>
> Additionally the prototype for the "match" functions accepted by the above APIs
> have a minute difference which prevents us otherwise sharing the match functions.
> i.e,
> int (*match)(struct device *dev, void *data) for {bus/driver}_find_device()
> vs
> int (*match)(struct device *dev, const void *) for class_find_device()
>
> If we promote the former to accept a "const void*" parameter, we could share one
> single match function for all the helpers. This series achieves the following:
>
> a) [Patches 03-05] Unify the prototype for "match" functions accepted by the
> device lookup APIs.
I've applied the first 6 patches of this series to my tree now. Let's
see how that goes, and this should give you a more solid base to redo
the rest of the series off of.
thanks,
greg k-h
WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <gregkh@linuxfoundation.org>
To: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Andrew Lunn <andrew@lunn.ch>,
Shyam Sundar S K <shyam-sundar.s-k@amd.com>,
rafael@kernel.org, Will Deacon <will.deacon@arm.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
dri-devel@lists.freedesktop.org, Pavel Machek <pavel@ucw.cz>,
Stefan Schmidt <stefan@datenfreihafen.org>,
Wolfram Sang <wsa@the-dreams.de>,
linux-acpi@vger.kernel.org, Doug Ledford <dledford@redhat.com>,
Jiri Slaby <jslaby@suse.com>,
Tomas Winkler <tomas.winkler@intel.com>,
Dan Murphy <dmurphy@ti.com>,
linux-usb@vger.kernel.org, Seung-Woo Kim <sw0312.kim@samsung.com>,
linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org,
Joe Perches <joe@perches.com>,
linux-wpan@vger.kernel.org,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
David Airlie <airlied@linux.ie>,
"Rafael J . Wysocki " <rjw@rjwysocki.net>,
Thierry Reding <thierry.reding@gmail.com>,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>linu
Subject: Re: [PATCH v2 00/28] drivers: Consolidate device lookup helpers
Date: Mon, 24 Jun 2019 05:23:48 +0200 [thread overview]
Message-ID: <20190624032348.GA28919@kroah.com> (raw)
In-Reply-To: <1560534863-15115-1-git-send-email-suzuki.poulose@arm.com>
On Fri, Jun 14, 2019 at 06:53:55PM +0100, Suzuki K Poulose wrote:
> We have device iterators to find a particular device matching a criteria
> for a given bus/class/driver. i.e, {bus,class,driver}_find_device() APIs.
> The matching criteria is a function pointer for the APIs. Often the lookup
> is based on a generic property of a device (e.g, name, fwnode, of node pointer
> or device type) rather than a driver specific information. However, each driver
> writes up its own "match" function, spilling the similar match functions all
> over the driver subsystems.
>
> Additionally the prototype for the "match" functions accepted by the above APIs
> have a minute difference which prevents us otherwise sharing the match functions.
> i.e,
> int (*match)(struct device *dev, void *data) for {bus/driver}_find_device()
> vs
> int (*match)(struct device *dev, const void *) for class_find_device()
>
> If we promote the former to accept a "const void*" parameter, we could share one
> single match function for all the helpers. This series achieves the following:
>
> a) [Patches 03-05] Unify the prototype for "match" functions accepted by the
> device lookup APIs.
I've applied the first 6 patches of this series to my tree now. Let's
see how that goes, and this should give you a more solid base to redo
the rest of the series off of.
thanks,
greg k-h
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <gregkh@linuxfoundation.org>
To: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Andrew Lunn <andrew@lunn.ch>,
Shyam Sundar S K <shyam-sundar.s-k@amd.com>,
rafael@kernel.org, Will Deacon <will.deacon@arm.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
dri-devel@lists.freedesktop.org, Pavel Machek <pavel@ucw.cz>,
Stefan Schmidt <stefan@datenfreihafen.org>,
Wolfram Sang <wsa@the-dreams.de>,
linux-acpi@vger.kernel.org, Doug Ledford <dledford@redhat.com>,
Jiri Slaby <jslaby@suse.com>,
Tomas Winkler <tomas.winkler@intel.com>,
Dan Murphy <dmurphy@ti.com>,
linux-usb@vger.kernel.org, Seung-Woo Kim <sw0312.kim@samsung.com>,
linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org,
Joe Perches <joe@perches.com>,
linux-wpan@vger.kernel.org,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
David Airlie <airlied@linux.ie>,
"Rafael J . Wysocki " <rjw@rjwysocki.net>,
Thierry Reding <thierry.reding@gmail.com>,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
linu
Subject: Re: [PATCH v2 00/28] drivers: Consolidate device lookup helpers
Date: Mon, 24 Jun 2019 05:23:48 +0200 [thread overview]
Message-ID: <20190624032348.GA28919@kroah.com> (raw)
In-Reply-To: <1560534863-15115-1-git-send-email-suzuki.poulose@arm.com>
On Fri, Jun 14, 2019 at 06:53:55PM +0100, Suzuki K Poulose wrote:
> We have device iterators to find a particular device matching a criteria
> for a given bus/class/driver. i.e, {bus,class,driver}_find_device() APIs.
> The matching criteria is a function pointer for the APIs. Often the lookup
> is based on a generic property of a device (e.g, name, fwnode, of node pointer
> or device type) rather than a driver specific information. However, each driver
> writes up its own "match" function, spilling the similar match functions all
> over the driver subsystems.
>
> Additionally the prototype for the "match" functions accepted by the above APIs
> have a minute difference which prevents us otherwise sharing the match functions.
> i.e,
> int (*match)(struct device *dev, void *data) for {bus/driver}_find_device()
> vs
> int (*match)(struct device *dev, const void *) for class_find_device()
>
> If we promote the former to accept a "const void*" parameter, we could share one
> single match function for all the helpers. This series achieves the following:
>
> a) [Patches 03-05] Unify the prototype for "match" functions accepted by the
> device lookup APIs.
I've applied the first 6 patches of this series to my tree now. Let's
see how that goes, and this should give you a more solid base to redo
the rest of the series off of.
thanks,
greg k-h
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2019-06-24 3:23 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-14 17:53 [PATCH v2 00/28] drivers: Consolidate device lookup helpers Suzuki K Poulose
2019-06-14 17:53 ` Suzuki K Poulose
2019-06-14 17:53 ` Suzuki K Poulose
2019-06-14 17:53 ` [PATCH v2 01/28] staging: most-core: Use bus_find_device_by_name Suzuki K Poulose
2019-06-14 17:53 ` [PATCH v2 02/28] mfd: Remove unused helper syscon_regmap_lookup_by_pdevname Suzuki K Poulose
2019-07-25 10:50 ` Lee Jones
2019-06-14 17:53 ` [PATCH v2 03/28] acpi: utils: Cleanup acpi_dev_match_cb Suzuki K Poulose
2019-06-17 22:08 ` Rafael J. Wysocki
2019-06-24 3:20 ` Greg Kroah-Hartman
2019-06-14 17:53 ` [PATCH v2 04/28] bus_find_device: Unify the match callback with class_find_device Suzuki K Poulose
2019-06-14 20:30 ` Rob Herring
2019-06-14 20:30 ` Wolfram Sang
2019-06-14 17:54 ` [PATCH v2 05/28] driver_find_device: Unify the match function with class_find_device() Suzuki K Poulose
2019-06-14 17:54 ` [PATCH v2 06/28] drivers: Add generic helper to match by of_node Suzuki K Poulose
2019-06-14 17:54 ` Suzuki K Poulose
2019-06-14 17:54 ` Suzuki K Poulose
2019-06-14 20:31 ` Wolfram Sang
2019-06-14 20:31 ` Wolfram Sang
2019-06-14 20:31 ` Wolfram Sang
2019-06-17 9:59 ` Suzuki K Poulose
2019-06-17 10:06 ` Wolfram Sang
2019-06-14 17:54 ` [PATCH v2 07/28] drivers: Add generic helper to match by fwnode Suzuki K Poulose
2019-06-14 17:54 ` [PATCH v2 08/28] drivers: Add generic helper to match by device type Suzuki K Poulose
2019-06-14 17:54 ` [PATCH v2 09/28] drivers: Add generic match helper by ACPI_COMPANION device Suzuki K Poulose
2019-06-17 22:07 ` Rafael J. Wysocki
2019-06-18 8:38 ` Suzuki K Poulose
2019-06-18 8:40 ` Rafael J. Wysocki
2019-06-14 17:54 ` [PATCH v2 10/28] drivers: Add generic helper to match by name Suzuki K Poulose
2019-06-14 17:54 ` Suzuki K Poulose
2019-06-14 17:54 ` [PATCH v2 11/28] drivers: Add generic helper to match any device Suzuki K Poulose
2019-06-14 17:54 ` [PATCH v2 12/28] drivers: Introduce class_find_device_by_name() helper Suzuki K Poulose
2019-06-21 11:02 ` Pavel Machek
2019-06-24 10:08 ` Alexandre Belloni
2019-06-14 17:54 ` [PATCH v2 13/28] drivers: Introduce class_find_device_by_of_node() helper Suzuki K Poulose
2019-06-22 5:25 ` Peter Rosin
2019-06-24 8:34 ` Suzuki K Poulose
2019-06-24 14:07 ` Peter Rosin
2019-06-24 15:19 ` Suzuki K Poulose
2019-06-14 17:54 ` [PATCH v2 14/28] drivers: Introduce class_find_device_by_fwnode() helper Suzuki K Poulose
2019-06-18 10:42 ` Heikki Krogerus
2019-06-14 17:54 ` [PATCH v2 15/28] drivers: Introduce class_find_device_by_devt() helper Suzuki K Poulose
2019-06-14 17:54 ` [PATCH v2 16/28] drivers: Introduce class_find_device_by_acpi_dev() helper Suzuki K Poulose
2019-06-14 17:54 ` [PATCH v2 17/28] drivers: Introduce bus_find_device_by_of_node() helper Suzuki K Poulose
2019-06-14 20:32 ` Wolfram Sang
2019-06-14 20:32 ` Wolfram Sang
2019-07-09 16:19 ` Rob Herring
2019-07-09 16:19 ` Rob Herring
2019-06-14 17:54 ` [PATCH v2 18/28] drivers: Introduce bus_find_device_by_fwnode() helper Suzuki K Poulose
2019-06-14 17:54 ` [PATCH v2 19/28] drivers: Introduce bus_find_device_by_devt() helper Suzuki K Poulose
2019-06-14 17:54 ` [PATCH v2 20/28] drivers: Introduce bus_find_next_device() helper Suzuki K Poulose
2019-06-14 17:54 ` [PATCH v2 21/28] drivers: Introduce bus_find_device_by_acpi_dev() helper Suzuki K Poulose
2019-06-14 18:08 ` Mark Brown
2019-06-17 9:39 ` Mika Westerberg
2019-06-17 10:07 ` Wolfram Sang
2019-06-14 17:54 ` [PATCH v2 22/28] drivers: Introduce driver_find_device_by_name() helper Suzuki K Poulose
2019-06-14 17:54 ` [PATCH v2 23/28] drivers: Introduce driver_find_device_by_of_node() helper Suzuki K Poulose
2019-07-25 10:51 ` Lee Jones
2019-07-25 13:38 ` Suzuki K Poulose
2019-06-14 17:54 ` [PATCH v2 24/28] drivers: Introduce driver_find_device_by_fwnode() helper Suzuki K Poulose
2019-06-14 17:54 ` [PATCH v2 25/28] drivers: Introduce driver_find_device_by_devt() helper Suzuki K Poulose
2019-06-14 17:54 ` [PATCH v2 26/28] drivers: Introduce driver_find_next_device() helper Suzuki K Poulose
2019-06-14 17:54 ` [PATCH v2 27/28] drivers: Introduce driver_find_device_by_acpi_dev() helper Suzuki K Poulose
2019-06-14 17:54 ` [PATCH v2 28/28] platform: Add platform_find_device_by_driver() helper Suzuki K Poulose
2019-06-14 18:24 ` [PATCH v2 00/28] drivers: Consolidate device lookup helpers Joe Perches
2019-06-17 10:07 ` Suzuki K Poulose
2019-06-24 3:23 ` Greg KH [this message]
2019-06-24 3:23 ` Greg KH
2019-06-24 3:23 ` Greg KH
2019-06-24 8:31 ` Suzuki K Poulose
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190624032348.GA28919@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=a.zummo@towertech.it \
--cc=airlied@linux.ie \
--cc=alex.aring@gmail.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=alexandre.belloni@bootlin.com \
--cc=andreas.noever@gmail.com \
--cc=andrew@lunn.ch \
--cc=arnd@arndb.de \
--cc=atull@kernel.org \
--cc=balbi@kernel.org \
--cc=bhelgaas@google.com \
--cc=bigeasy@linutronix.de \
--cc=broonie@kernel.org \
--cc=daniel@ffwll.ch \
--cc=davem@davemloft.net \
--cc=david.kershner@unisys.com \
--cc=devicetree@vger.kernel.org \
--cc=dledford@redhat.com \
--cc=dmurphy@ti.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=eric@anholt.net \
--cc=f.fainelli@gmail.com \
--cc=freude@linux.ibm.com \
--cc=frowand.list@gmail.com \
--cc=grant.likely@arm.com \
--cc=grygorii.strashko@ti.com \
--cc=heikki.krogerus@linux.intel.com \
--cc=heiko.carstens@de.ibm.com \
--cc=heiko@sntech.de \
--cc=hjc@rock-chips.com \
--cc=hkallweit1@gmail.com \
--cc=inki.dae@samsung.com \
--cc=jacek.anaszewski@gmail.com \
--cc=jejb@linux.ibm.com \
--cc=jgg@ziepe.ca \
--cc=jic23@kernel.org \
--cc=joe@perches.com \
--cc=jonathanh@nvidia.com \
--cc=joro@8bytes.org \
--cc=jslaby@suse.com \
--cc=knaack.h@gmx.de \
--cc=lee.jones@linaro.org \
--cc=lenb@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-fpga@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux-rtc@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=linux-wpan@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=maarten.lankhorst@linux.intel.com \
--cc=martin.petersen@oracle.com \
--cc=mathieu.poirier@linaro.org \
--cc=maxime.ripard@bootlin.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=mdf@kernel.org \
--cc=michael.jamet@intel.com \
--cc=mika.westerberg@linux.intel.com \
--cc=minyard@acm.org \
--cc=nehal-bakulchandra.shah@amd.com \
--cc=oberpar@linux.ibm.com \
--cc=oneukum@suse.com \
--cc=pavel@ucw.cz \
--cc=peda@axentia.se \
--cc=rafael.j.wysocki@intel.com \
--cc=rafael@kernel.org \
--cc=rjw@rjwysocki.net \
--cc=robh+dt@kernel.org \
--cc=robin.murphy@arm.com \
--cc=sebott@linux.ibm.com \
--cc=shyam-sundar.s-k@amd.com \
--cc=srinivas.kandagatla@linaro.org \
--cc=stefan@datenfreihafen.org \
--cc=suzuki.poulose@arm.com \
--cc=sw0312.kim@samsung.com \
--cc=syniurge@gmail.com \
--cc=thierry.reding@gmail.com \
--cc=thor.thayer@linux.intel.com \
--cc=tiwai@suse.com \
--cc=tomas.winkler@intel.com \
--cc=ulf.hansson@linaro.org \
--cc=will.deacon@arm.com \
--cc=wsa@the-dreams.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.