devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] serial: efm32: use $vendor,$device scheme for compatible string
@ 2014-03-25 13:59 Uwe Kleine-König
  2014-03-25 14:26 ` Wolfram Sang
  2014-03-25 14:53 ` [PATCH v2] " Uwe Kleine-König
  0 siblings, 2 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2014-03-25 13:59 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: kernel, Wolfram Sang, linux-serial, devicetree

Wolfgang Sang pointed out that "efm32,$device" is non-standard. So use the
common scheme and prefix device with "efm32-". The old compatible string
is left in place until arch/arm/boot/dts/efm32* is fixed.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/tty/serial/efm32-uart.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/tty/serial/efm32-uart.c b/drivers/tty/serial/efm32-uart.c
index 028582e924a5..c167a710dc39 100644
--- a/drivers/tty/serial/efm32-uart.c
+++ b/drivers/tty/serial/efm32-uart.c
@@ -798,6 +798,9 @@ static int efm32_uart_remove(struct platform_device *pdev)
 
 static const struct of_device_id efm32_uart_dt_ids[] = {
 	{
+		.compatible = "energymicro,efm32-uart",
+	}, {
+		/* doesn't follow the "vendor,device" scheme, don't use */
 		.compatible = "efm32,uart",
 	}, {
 		/* sentinel */
-- 
1.9.0

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] serial: efm32: use $vendor,$device scheme for compatible string
  2014-03-25 13:59 [PATCH] serial: efm32: use $vendor,$device scheme for compatible string Uwe Kleine-König
@ 2014-03-25 14:26 ` Wolfram Sang
  2014-03-25 14:53 ` [PATCH v2] " Uwe Kleine-König
  1 sibling, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2014-03-25 14:26 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: Greg Kroah-Hartman, kernel, linux-serial, devicetree

[-- Attachment #1: Type: text/plain, Size: 402 bytes --]

On Tue, Mar 25, 2014 at 02:59:14PM +0100, Uwe Kleine-König wrote:
> Wolfgang Sang pointed out that "efm32,$device" is non-standard. So use the
> common scheme and prefix device with "efm32-". The old compatible string
> is left in place until arch/arm/boot/dts/efm32* is fixed.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Acked-by: Wolfram Sang <wsa@the-dreams.de>


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2] serial: efm32: use $vendor,$device scheme for compatible string
  2014-03-25 13:59 [PATCH] serial: efm32: use $vendor,$device scheme for compatible string Uwe Kleine-König
  2014-03-25 14:26 ` Wolfram Sang
@ 2014-03-25 14:53 ` Uwe Kleine-König
  2014-03-25 16:19   ` Wolfram Sang
  1 sibling, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2014-03-25 14:53 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: kernel, Wolfram Sang, linux-serial, devicetree

Wolfgang Sang pointed out that "efm32,$device" is non-standard. So use the
common scheme and prefix device with "efm32-". The old compatible string
is left in place until arch/arm/boot/dts/efm32* is fixed.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
Changes since (implicit) v1, sent with
Message-id:1395755954-18988-1-git-send-email-u.kleine-koenig@pengutronix.de:
 - fix binding doc accordingly

 Documentation/devicetree/bindings/serial/efm32-uart.txt | 4 ++--
 drivers/tty/serial/efm32-uart.c                         | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/serial/efm32-uart.txt b/Documentation/devicetree/bindings/serial/efm32-uart.txt
index 1984bdfbd545..3ca01336b837 100644
--- a/Documentation/devicetree/bindings/serial/efm32-uart.txt
+++ b/Documentation/devicetree/bindings/serial/efm32-uart.txt
@@ -1,7 +1,7 @@
 * Energymicro efm32 UART
 
 Required properties:
-- compatible : Should be "efm32,uart"
+- compatible : Should be "energymicro,efm32-uart"
 - reg : Address and length of the register set
 - interrupts : Should contain uart interrupt
 
@@ -13,7 +13,7 @@ Optional properties:
 Example:
 
 uart@0x4000c400 {
-	compatible = "efm32,uart";
+	compatible = "energymicro,efm32-uart";
 	reg = <0x4000c400 0x400>;
 	interrupts = <15>;
 	efm32,location = <0>;
diff --git a/drivers/tty/serial/efm32-uart.c b/drivers/tty/serial/efm32-uart.c
index 028582e924a5..c167a710dc39 100644
--- a/drivers/tty/serial/efm32-uart.c
+++ b/drivers/tty/serial/efm32-uart.c
@@ -798,6 +798,9 @@ static int efm32_uart_remove(struct platform_device *pdev)
 
 static const struct of_device_id efm32_uart_dt_ids[] = {
 	{
+		.compatible = "energymicro,efm32-uart",
+	}, {
+		/* doesn't follow the "vendor,device" scheme, don't use */
 		.compatible = "efm32,uart",
 	}, {
 		/* sentinel */
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] serial: efm32: use $vendor,$device scheme for compatible string
  2014-03-25 14:53 ` [PATCH v2] " Uwe Kleine-König
@ 2014-03-25 16:19   ` Wolfram Sang
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2014-03-25 16:19 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: Greg Kroah-Hartman, kernel, linux-serial, devicetree

[-- Attachment #1: Type: text/plain, Size: 567 bytes --]

On Tue, Mar 25, 2014 at 03:53:12PM +0100, Uwe Kleine-König wrote:
> Wolfgang Sang pointed out that "efm32,$device" is non-standard. So use the

"Wolfram", please. BTW, you could also use this to describe that :)

Reported-by: Wolfram Sang <wsa@the-dreams.de>

No need to resend from my side, though.

> common scheme and prefix device with "efm32-". The old compatible string
> is left in place until arch/arm/boot/dts/efm32* is fixed.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Acked-by: Wolfram Sang <wsa@the-dreams.de>


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-25 16:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-25 13:59 [PATCH] serial: efm32: use $vendor,$device scheme for compatible string Uwe Kleine-König
2014-03-25 14:26 ` Wolfram Sang
2014-03-25 14:53 ` [PATCH v2] " Uwe Kleine-König
2014-03-25 16:19   ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).