[PATCH v2 bluetooth-next] cc2520: set the default fifo pin value from platform data

Subsystems: cc2520 ieee-802.15.4 radio driver, ieee 802.15.4 subsystem, networking drivers, the rest

STALE4045d

3 messages, 3 authors, 2015-08-11 · open the first message on its own page

[PATCH v2 bluetooth-next] cc2520: set the default fifo pin value from platform data

From: <hidden>
Date: 2015-08-11 02:45:26

From: Yong Li <redacted>

When the device tree support is disabled, the fifo_pin is uninitialized,
this patch will set the fifo_pin value based on platform data

Signed-off-by: Yong Li <redacted>
---
 drivers/net/ieee802154/cc2520.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c
index 613dae5..c5b54a1 100644
--- a/drivers/net/ieee802154/cc2520.c
+++ b/drivers/net/ieee802154/cc2520.c
@@ -833,6 +833,7 @@ static int cc2520_get_platform_data(struct spi_device *spi,
 		if (!spi_pdata)
 			return -ENOENT;
 		*pdata = *spi_pdata;
+		priv->fifo_pin = pdata->fifo;
 		return 0;
 	}
 
-- 
2.1.0

Re: [PATCH v2 bluetooth-next] cc2520: set the default fifo pin value from platform data

From: Varka Bhadram <hidden>
Date: 2015-08-11 03:18:34

On 08/11/2015 08:13 AM, sdliyong@gmail.com wrote:
From: Yong Li <redacted>

When the device tree support is disabled, the fifo_pin is uninitialized,
this patch will set the fifo_pin value based on platform data

Signed-off-by: Yong Li <redacted>
Acked-by: Varka Bhadram <redacted>
quoted hunk
---
  drivers/net/ieee802154/cc2520.c | 1 +
  1 file changed, 1 insertion(+)
diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c
index 613dae5..c5b54a1 100644
--- a/drivers/net/ieee802154/cc2520.c
+++ b/drivers/net/ieee802154/cc2520.c
@@ -833,6 +833,7 @@ static int cc2520_get_platform_data(struct spi_device *spi,
  		if (!spi_pdata)
  			return -ENOENT;
  		*pdata = *spi_pdata;
+		priv->fifo_pin = pdata->fifo;
  		return 0;
  	}
  
-- 
Varka Bhadram.

Re: [PATCH v2 bluetooth-next] cc2520: set the default fifo pin value from platform data

From: Marcel Holtmann <marcel@holtmann.org>
Date: 2015-08-11 04:15:06

Hi Yong,
When the device tree support is disabled, the fifo_pin is uninitialized,
this patch will set the fifo_pin value based on platform data

Signed-off-by: Yong Li <redacted>
---
drivers/net/ieee802154/cc2520.c | 1 +
1 file changed, 1 insertion(+)
patch has been applied to bluetooth-next tree.

Regards

Marcel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help