Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1316299 > unrolled thread
| Started by | Heikki Krogerus <heikki.krogerus@linux.intel.com> |
|---|---|
| First post | 2016-01-25 10:10 +0100 |
| Last post | 2016-01-26 09:50 +0100 |
| Articles | 6 — 4 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCHv2 3/4] ARM: tegra: use build-in device properties with rfkill_gpio Heikki Krogerus <heikki.krogerus@linux.intel.com> - 2016-01-25 10:10 +0100
Re: [PATCHv2 3/4] ARM: tegra: use build-in device properties with rfkill_gpio Thierry Reding <thierry.reding@gmail.com> - 2016-01-25 13:20 +0100
Re: [PATCHv2 3/4] ARM: tegra: use build-in device properties withrfkill_gpio Marc Dietrich <marvin24@gmx.de> - 2016-01-25 22:10 +0100
Re: [PATCHv2 3/4] ARM: tegra: use build-in device properties withrfkill_gpio Johannes Berg <johannes@sipsolutions.net> - 2016-01-26 09:50 +0100
Re: [PATCHv2 3/4] ARM: tegra: use build-in device propertieswithrfkill_gpio Marc Dietrich <marvin24@gmx.de> - 2016-01-26 10:00 +0100
Re: [PATCHv2 3/4] ARM: tegra: use build-in device properties with rfkill_gpio Johannes Berg <johannes@sipsolutions.net> - 2016-01-26 09:50 +0100
| From | Heikki Krogerus <heikki.krogerus@linux.intel.com> |
|---|---|
| Date | 2016-01-25 10:10 +0100 |
| Subject | [PATCHv2 3/4] ARM: tegra: use build-in device properties with rfkill_gpio |
| Message-ID | <qULjQ-1FX-9@gated-at.bofh.it> |
Pass the rfkill name and type to the device with properties
instead of driver specific platform data.
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
CC: Alexandre Courbot <gnurou@gmail.com>
CC: Thierry Reding <thierry.reding@gmail.com>
CC: Stephen Warren <swarren@wwwdotorg.org>
---
arch/arm/mach-tegra/board-paz00.c | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/arch/arm/mach-tegra/board-paz00.c b/arch/arm/mach-tegra/board-paz00.c
index 49d1110..52db8bf 100644
--- a/arch/arm/mach-tegra/board-paz00.c
+++ b/arch/arm/mach-tegra/board-paz00.c
@@ -17,23 +17,25 @@
*
*/
+#include <linux/property.h>
#include <linux/gpio/machine.h>
#include <linux/platform_device.h>
-#include <linux/rfkill-gpio.h>
#include "board.h"
-static struct rfkill_gpio_platform_data wifi_rfkill_platform_data = {
- .name = "wifi_rfkill",
- .type = RFKILL_TYPE_WLAN,
+static struct property_entry __initdata wifi_rfkill_prop[] = {
+ PROPERTY_ENTRY_STRING("name", "wifi_rfkill"),
+ PROPERTY_ENTRY_STRING("type", "wlan"),
+ { },
+};
+
+static struct property_set __initdata wifi_rfkill_pset = {
+ .properties = wifi_rfkill_prop,
};
static struct platform_device wifi_rfkill_device = {
.name = "rfkill_gpio",
.id = -1,
- .dev = {
- .platform_data = &wifi_rfkill_platform_data,
- },
};
static struct gpiod_lookup_table wifi_gpio_lookup = {
@@ -47,6 +49,7 @@ static struct gpiod_lookup_table wifi_gpio_lookup = {
void __init tegra_paz00_wifikill_init(void)
{
+ platform_device_add_properties(&wifi_rfkill_device, &wifi_rfkill_pset);
gpiod_add_lookup_table(&wifi_gpio_lookup);
platform_device_register(&wifi_rfkill_device);
}
--
2.7.0.rc3
[toc] | [next] | [standalone]
| From | Thierry Reding <thierry.reding@gmail.com> |
|---|---|
| Date | 2016-01-25 13:20 +0100 |
| Subject | Re: [PATCHv2 3/4] ARM: tegra: use build-in device properties with rfkill_gpio |
| Message-ID | <qUOhH-3K1-7@gated-at.bofh.it> |
| In reply to | #1316299 |
[Multipart message — attachments visible in raw view] — view raw
On Mon, Jan 25, 2016 at 12:03:48PM +0300, Heikki Krogerus wrote: > Pass the rfkill name and type to the device with properties > instead of driver specific platform data. > > Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> > CC: Alexandre Courbot <gnurou@gmail.com> > CC: Thierry Reding <thierry.reding@gmail.com> > CC: Stephen Warren <swarren@wwwdotorg.org> > --- > arch/arm/mach-tegra/board-paz00.c | 17 ++++++++++------- > 1 file changed, 10 insertions(+), 7 deletions(-) Looks fine to me. We might want to wait for Marc (Cc'ed) to give this a spin, since I don't have the hardware. For reference, the series can be found here: http://patchwork.ozlabs.org/patch/572640/ http://patchwork.ozlabs.org/patch/572644/ http://patchwork.ozlabs.org/patch/572643/ http://patchwork.ozlabs.org/patch/572642/ Johannes, I assume that you'll want to take this through your tree because of the dependency? In that case: Acked-by: Thierry Reding <treding@nvidia.com>
[toc] | [prev] | [next] | [standalone]
| From | Marc Dietrich <marvin24@gmx.de> |
|---|---|
| Date | 2016-01-25 22:10 +0100 |
| Subject | Re: [PATCHv2 3/4] ARM: tegra: use build-in device properties withrfkill_gpio |
| Message-ID | <qUWyD-1sh-27@gated-at.bofh.it> |
| In reply to | #1316607 |
[Multipart message — attachments visible in raw view] — view raw
Am Montag 25 Januar 2016, 13:18:40 schrieb Thierry Reding: > On Mon, Jan 25, 2016 at 12:03:48PM +0300, Heikki Krogerus wrote: > > Pass the rfkill name and type to the device with properties > > instead of driver specific platform data. > > > > Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> > > CC: Alexandre Courbot <gnurou@gmail.com> > > CC: Thierry Reding <thierry.reding@gmail.com> > > CC: Stephen Warren <swarren@wwwdotorg.org> > > --- > > > > arch/arm/mach-tegra/board-paz00.c | 17 ++++++++++------- > > 1 file changed, 10 insertions(+), 7 deletions(-) > > Looks fine to me. We might want to wait for Marc (Cc'ed) to give this a > spin, since I don't have the hardware. For reference, the series can be > found here: > > http://patchwork.ozlabs.org/patch/572640/ > http://patchwork.ozlabs.org/patch/572644/ > http://patchwork.ozlabs.org/patch/572643/ > http://patchwork.ozlabs.org/patch/572642/ > > Johannes, I assume that you'll want to take this through your tree > because of the dependency? In that case: > > Acked-by: Thierry Reding <treding@nvidia.com> seems to work fine. I wish we could instantiate this from device-tree so we can finially get rid of this file. Tested-by: Marc Dietrich <marvin24@gmx.de>
[toc] | [prev] | [next] | [standalone]
| From | Johannes Berg <johannes@sipsolutions.net> |
|---|---|
| Date | 2016-01-26 09:50 +0100 |
| Subject | Re: [PATCHv2 3/4] ARM: tegra: use build-in device properties withrfkill_gpio |
| Message-ID | <qV7u2-1y3-27@gated-at.bofh.it> |
| In reply to | #1317305 |
On Mon, 2016-01-25 at 21:59 +0100, Marc Dietrich wrote: > > seems to work fine. I wish we could instantiate this from device-tree > so we can finially get rid of this file. That'd be nice - anyone want to propose rfkill DT bindings? :) johannes
[toc] | [prev] | [next] | [standalone]
| From | Marc Dietrich <marvin24@gmx.de> |
|---|---|
| Date | 2016-01-26 10:00 +0100 |
| Subject | Re: [PATCHv2 3/4] ARM: tegra: use build-in device propertieswithrfkill_gpio |
| Message-ID | <qV7DH-1Be-3@gated-at.bofh.it> |
| In reply to | #1317643 |
[Multipart message — attachments visible in raw view] — view raw
Am Dienstag, 26. Januar 2016, 09:46:56 CET schrieb Johannes Berg: > On Mon, 2016-01-25 at 21:59 +0100, Marc Dietrich wrote: > > > > > > seems to work fine. I wish we could instantiate this from device-tree > > so we can finially get rid of this file. > > That'd be nice - anyone want to propose rfkill DT bindings? :) There have been at least 5 attempts to do this in the past - all fail. You've been warned :-) Marc
[toc] | [prev] | [next] | [standalone]
| From | Johannes Berg <johannes@sipsolutions.net> |
|---|---|
| Date | 2016-01-26 09:50 +0100 |
| Subject | Re: [PATCHv2 3/4] ARM: tegra: use build-in device properties with rfkill_gpio |
| Message-ID | <qV7u2-1y3-15@gated-at.bofh.it> |
| In reply to | #1316607 |
On Mon, 2016-01-25 at 13:18 +0100, Thierry Reding wrote: > > Johannes, I assume that you'll want to take this through your tree > because of the dependency? In that case: > > Acked-by: Thierry Reding <treding@nvidia.com> I can, but I don't really care - perhaps you'd rather take the entire series through your tree to get it into one place for Marc? In which case, you have my Acked-by: Johannes Berg <johannes@sipsolutions.net> for the other 3 patches. Let me know which you prefer. johannes
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web