From: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: Laurentiu Palcu
<laurentiu.palcu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Samuel Ortiz <sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>,
Johan Havold <johan-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Octavian Purdila
<octavian.purdila-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 2/2] mfd: dln2: add support for USB-SPI module
Date: Mon, 10 Nov 2014 09:30:05 +0000 [thread overview]
Message-ID: <20141110093005.GF21424@x1> (raw)
In-Reply-To: <1415364314-30320-3-git-send-email-laurentiu.palcu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
On Fri, 07 Nov 2014, Laurentiu Palcu wrote:
> Signed-off-by: Laurentiu Palcu <laurentiu.palcu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> ---
> drivers/mfd/dln2.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/drivers/mfd/dln2.c b/drivers/mfd/dln2.c
> index 9765a17..0cdad2d 100644
> --- a/drivers/mfd/dln2.c
> +++ b/drivers/mfd/dln2.c
> @@ -52,6 +52,7 @@ enum dln2_handle {
> DLN2_HANDLE_CTRL,
> DLN2_HANDLE_GPIO,
> DLN2_HANDLE_I2C,
> + DLN2_HANDLE_SPI,
> DLN2_HANDLES
> };
>
> @@ -634,6 +635,12 @@ static struct dln2_platform_data dln2_pdata_i2c = {
> .port = 0,
> };
>
> +/* Only one SPI port supported */
> +static struct dln2_platform_data dln2_pdata_spi = {
Is this ever fiddled with? If not, const?
> + .handle = DLN2_HANDLE_SPI,
> + .port = 0,
> +};
> +
> static const struct mfd_cell dln2_devs[] = {
> {
> .name = "dln2-gpio",
> @@ -645,6 +652,11 @@ static const struct mfd_cell dln2_devs[] = {
> .platform_data = &dln2_pdata_i2c,
> .pdata_size = sizeof(struct dln2_platform_data),
> },
> + {
> + .name = "dln2-spi",
> + .platform_data = &dln2_pdata_spi,
> + .pdata_size = sizeof(struct dln2_platform_data),
> + },
> };
>
> static void dln2_disconnect(struct usb_interface *interface)
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Lee Jones <lee.jones@linaro.org>
To: Laurentiu Palcu <laurentiu.palcu@intel.com>
Cc: Mark Brown <broonie@kernel.org>,
Samuel Ortiz <sameo@linux.intel.com>,
Johan Havold <johan@kernel.org>,
Octavian Purdila <octavian.purdila@intel.com>,
linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] mfd: dln2: add support for USB-SPI module
Date: Mon, 10 Nov 2014 09:30:05 +0000 [thread overview]
Message-ID: <20141110093005.GF21424@x1> (raw)
In-Reply-To: <1415364314-30320-3-git-send-email-laurentiu.palcu@intel.com>
On Fri, 07 Nov 2014, Laurentiu Palcu wrote:
> Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
> ---
> drivers/mfd/dln2.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/drivers/mfd/dln2.c b/drivers/mfd/dln2.c
> index 9765a17..0cdad2d 100644
> --- a/drivers/mfd/dln2.c
> +++ b/drivers/mfd/dln2.c
> @@ -52,6 +52,7 @@ enum dln2_handle {
> DLN2_HANDLE_CTRL,
> DLN2_HANDLE_GPIO,
> DLN2_HANDLE_I2C,
> + DLN2_HANDLE_SPI,
> DLN2_HANDLES
> };
>
> @@ -634,6 +635,12 @@ static struct dln2_platform_data dln2_pdata_i2c = {
> .port = 0,
> };
>
> +/* Only one SPI port supported */
> +static struct dln2_platform_data dln2_pdata_spi = {
Is this ever fiddled with? If not, const?
> + .handle = DLN2_HANDLE_SPI,
> + .port = 0,
> +};
> +
> static const struct mfd_cell dln2_devs[] = {
> {
> .name = "dln2-gpio",
> @@ -645,6 +652,11 @@ static const struct mfd_cell dln2_devs[] = {
> .platform_data = &dln2_pdata_i2c,
> .pdata_size = sizeof(struct dln2_platform_data),
> },
> + {
> + .name = "dln2-spi",
> + .platform_data = &dln2_pdata_spi,
> + .pdata_size = sizeof(struct dln2_platform_data),
> + },
> };
>
> static void dln2_disconnect(struct usb_interface *interface)
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
next prev parent reply other threads:[~2014-11-10 9:30 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-07 12:45 [PATCH 0/2] Add SPI support for Diolan DLN2 Laurentiu Palcu
2014-11-07 12:45 ` Laurentiu Palcu
2014-11-07 12:45 ` [PATCH 1/2] spi: add support for DLN-2 USB-SPI adapter Laurentiu Palcu
[not found] ` <1415364314-30320-2-git-send-email-laurentiu.palcu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-11-08 10:46 ` Mark Brown
2014-11-08 10:46 ` Mark Brown
[not found] ` <20141108104606.GH2722-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-11-11 12:38 ` Laurentiu Palcu
2014-11-11 12:38 ` Laurentiu Palcu
2014-11-11 12:41 ` Mark Brown
2014-11-11 12:41 ` Mark Brown
2014-11-07 12:45 ` [PATCH 2/2] mfd: dln2: add support for USB-SPI module Laurentiu Palcu
[not found] ` <1415364314-30320-3-git-send-email-laurentiu.palcu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-11-08 10:33 ` Mark Brown
2014-11-08 10:33 ` Mark Brown
2014-11-10 9:30 ` Lee Jones [this message]
2014-11-10 9:30 ` Lee Jones
2014-11-11 13:09 ` Laurentiu Palcu
2014-11-13 10:32 ` Lee Jones
2014-11-13 10:32 ` Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141110093005.GF21424@x1 \
--to=lee.jones-qsej5fyqhm4dnm+yrofe0a@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=johan-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=laurentiu.palcu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=octavian.purdila-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.