Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1204704 > unrolled thread

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

Started bysdliyong@gmail.com
First post2015-08-11 04:50 +0200
Last post2015-08-11 06:20 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2 bluetooth-next] cc2520: set the default fifo pin value from platform data sdliyong@gmail.com - 2015-08-11 04:50 +0200
    Re: [PATCH v2 bluetooth-next] cc2520: set the default fifo pin value  from platform data Varka Bhadram <varkabhadram@gmail.com> - 2015-08-11 05:20 +0200
    Re: [PATCH v2 bluetooth-next] cc2520: set the default fifo pin value from platform data Marcel Holtmann <marcel@holtmann.org> - 2015-08-11 06:20 +0200

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

Fromsdliyong@gmail.com
Date2015-08-11 04:50 +0200
Subject[PATCH v2 bluetooth-next] cc2520: set the default fifo pin value from platform data
Message-ID<pW7Nw-gK-5@gated-at.bofh.it>
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

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

[toc] | [next] | [standalone]


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

FromVarka Bhadram <varkabhadram@gmail.com>
Date2015-08-11 05:20 +0200
SubjectRe: [PATCH v2 bluetooth-next] cc2520: set the default fifo pin value from platform data
Message-ID<pW8gx-14e-1@gated-at.bofh.it>
In reply to#1204704
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.

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

[toc] | [prev] | [next] | [standalone]


#1204741

FromMarcel Holtmann <marcel@holtmann.org>
Date2015-08-11 06:20 +0200
Message-ID<pW9cB-2p0-5@gated-at.bofh.it>
In reply to#1204704
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

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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web