netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 bluetooth-next] cc2520: set the default fifo pin value from platform data
@ 2015-08-11  2:43 sdliyong
  2015-08-11  3:18 ` Varka Bhadram
  2015-08-11  4:14 ` Marcel Holtmann
  0 siblings, 2 replies; 3+ messages in thread
From: sdliyong @ 2015-08-11  2:43 UTC (permalink / raw)
  To: varkabhadram, alex.aring, linux-wpan, netdev, linux-kernel; +Cc: Yong Li

From: Yong Li <sdliyong@gmail.com>

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 <sdliyong@gmail.com>
---
 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

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

* Re: [PATCH v2 bluetooth-next] cc2520: set the default fifo pin value from platform data
  2015-08-11  2:43 [PATCH v2 bluetooth-next] cc2520: set the default fifo pin value from platform data sdliyong
@ 2015-08-11  3:18 ` Varka Bhadram
  2015-08-11  4:14 ` Marcel Holtmann
  1 sibling, 0 replies; 3+ messages in thread
From: Varka Bhadram @ 2015-08-11  3:18 UTC (permalink / raw)
  To: sdliyong, alex.aring, linux-wpan, netdev, linux-kernel

On 08/11/2015 08:13 AM, sdliyong@gmail.com wrote:
> From: Yong Li <sdliyong@gmail.com>
>
> 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 <sdliyong@gmail.com>

Acked-by: Varka Bhadram <varkabhadram@gmail.com>

> ---
>   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.

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

* Re: [PATCH v2 bluetooth-next] cc2520: set the default fifo pin value from platform data
  2015-08-11  2:43 [PATCH v2 bluetooth-next] cc2520: set the default fifo pin value from platform data sdliyong
  2015-08-11  3:18 ` Varka Bhadram
@ 2015-08-11  4:14 ` Marcel Holtmann
  1 sibling, 0 replies; 3+ messages in thread
From: Marcel Holtmann @ 2015-08-11  4:14 UTC (permalink / raw)
  To: sdliyong; +Cc: Varka Bhadram, Alexander Aring, linux-wpan, netdev, linux-kernel

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 <sdliyong@gmail.com>
> ---
> drivers/net/ieee802154/cc2520.c | 1 +
> 1 file changed, 1 insertion(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel

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

end of thread, other threads:[~2015-08-11  4:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-11  2:43 [PATCH v2 bluetooth-next] cc2520: set the default fifo pin value from platform data sdliyong
2015-08-11  3:18 ` Varka Bhadram
2015-08-11  4:14 ` Marcel Holtmann

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).