* [RFC 4/6] spi: atmel: use atmel_io.h to provide on-chip IO [not found] ` <1427370354-21247-1-git-send-email-ben.dooks-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org> @ 2015-03-26 11:45 ` Ben Dooks [not found] ` <1427370354-21247-5-git-send-email-ben.dooks-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Ben Dooks @ 2015-03-26 11:45 UTC (permalink / raw) To: linux-kernel-81qHHgoATdFT9dQujB1mzip2UmYkHbXO Cc: hskinnemoen-Re5JQEeQqe8AvxtiuMwx3w, egtvedt-BrfabpQBY5qlHtIdYg32fQ, linux-PelNFVqkFnVyf+4FbqDuWQ, nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Ben Dooks, Mark Brown, open list:SPI SUBSYSTEM Use <linux/atmel_io.h> to provide IO accessors which work on both AVR32 and ARM for on-chip peripherals. Signed-off-by: Ben Dooks <ben.dooks-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org> -- CC: Nicolas Ferre <nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org> (supporter:ATMEL SPI DRIVER) CC: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> (maintainer:SPI SUBSYSTEM) CC: linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org (open list:SPI SUBSYSTEM) CC: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org --- drivers/spi/spi-atmel.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index a2f40b1..f10cc75 100644 --- a/drivers/spi/spi-atmel.c +++ b/drivers/spi/spi-atmel.c @@ -25,6 +25,7 @@ #include <linux/io.h> #include <linux/gpio.h> +#include <linux/atmel_io.h> #include <linux/pinctrl/consumer.h> #include <linux/pm_runtime.h> @@ -180,17 +181,11 @@ | SPI_BF(name, value)) /* Register access macros */ -#ifdef CONFIG_AVR32 #define spi_readl(port, reg) \ - __raw_readl((port)->regs + SPI_##reg) + atmel_oc_readl((port)->regs + SPI_##reg) #define spi_writel(port, reg, value) \ - __raw_writel((value), (port)->regs + SPI_##reg) -#else -#define spi_readl(port, reg) \ - readl_relaxed((port)->regs + SPI_##reg) -#define spi_writel(port, reg, value) \ - writel_relaxed((value), (port)->regs + SPI_##reg) -#endif + atmel_oc_writel((value), (port)->regs + SPI_##reg) + /* use PIO for small transfers, avoiding DMA setup/teardown overhead and * cache operations; better heuristics consider wordsize and bitrate. */ -- 2.1.4 -- 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 ^ permalink raw reply related [flat|nested] 6+ messages in thread
[parent not found: <1427370354-21247-5-git-send-email-ben.dooks-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>]
* Re: [RFC 4/6] spi: atmel: use atmel_io.h to provide on-chip IO [not found] ` <1427370354-21247-5-git-send-email-ben.dooks-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org> @ 2015-03-26 11:55 ` Hans-Christian Egtvedt 2015-03-26 15:38 ` Mark Brown 2015-03-26 16:01 ` Mark Brown 2 siblings, 0 replies; 6+ messages in thread From: Hans-Christian Egtvedt @ 2015-03-26 11:55 UTC (permalink / raw) To: Ben Dooks Cc: linux-kernel-81qHHgoATdFT9dQujB1mzip2UmYkHbXO, hskinnemoen-Re5JQEeQqe8AvxtiuMwx3w, linux-PelNFVqkFnVyf+4FbqDuWQ, nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Mark Brown, open list:SPI SUBSYSTEM Around Thu 26 Mar 2015 11:45:52 +0000 or thereabout, Ben Dooks wrote: > Use <linux/atmel_io.h> to provide IO accessors which work on both > AVR32 and ARM for on-chip peripherals. > > Signed-off-by: Ben Dooks <ben.dooks-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org> Acked-by: Hans-Christian Egtvedt <egtvedt-BrfabpQBY5qlHtIdYg32fQ@public.gmane.org> > -- > CC: Nicolas Ferre <nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org> (supporter:ATMEL SPI DRIVER) > CC: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> (maintainer:SPI SUBSYSTEM) > CC: linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org (open list:SPI SUBSYSTEM) > CC: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org > --- > drivers/spi/spi-atmel.c | 13 ++++--------- > 1 file changed, 4 insertions(+), 9 deletions(-) <snipp diff> -- BR, HcE -- 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RFC 4/6] spi: atmel: use atmel_io.h to provide on-chip IO [not found] ` <1427370354-21247-5-git-send-email-ben.dooks-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org> 2015-03-26 11:55 ` Hans-Christian Egtvedt @ 2015-03-26 15:38 ` Mark Brown [not found] ` <20150326153855.GP3572-GFdadSzt00ze9xe1eoZjHA@public.gmane.org> 2015-03-26 16:01 ` Mark Brown 2 siblings, 1 reply; 6+ messages in thread From: Mark Brown @ 2015-03-26 15:38 UTC (permalink / raw) To: Ben Dooks Cc: linux-kernel-81qHHgoATdFT9dQujB1mzip2UmYkHbXO, hskinnemoen-Re5JQEeQqe8AvxtiuMwx3w, egtvedt-BrfabpQBY5qlHtIdYg32fQ, linux-PelNFVqkFnVyf+4FbqDuWQ, nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, open list:SPI SUBSYSTEM [-- Attachment #1: Type: text/plain, Size: 358 bytes --] On Thu, Mar 26, 2015 at 11:45:52AM +0000, Ben Dooks wrote: > Use <linux/atmel_io.h> to provide IO accessors which work on both > AVR32 and ARM for on-chip peripherals. To repeat the feedback on your previous big endian fix: I've not been CCed on the cover letter or any of the other patches so can someone tell me if there are any dependencies or anything? [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 473 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <20150326153855.GP3572-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>]
* Re: [RFC 4/6] spi: atmel: use atmel_io.h to provide on-chip IO [not found] ` <20150326153855.GP3572-GFdadSzt00ze9xe1eoZjHA@public.gmane.org> @ 2015-03-26 15:41 ` Nicolas Ferre [not found] ` <551428A9.9090604-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Nicolas Ferre @ 2015-03-26 15:41 UTC (permalink / raw) To: Mark Brown, Ben Dooks Cc: linux-kernel-81qHHgoATdFT9dQujB1mzip2UmYkHbXO, hskinnemoen-Re5JQEeQqe8AvxtiuMwx3w, egtvedt-BrfabpQBY5qlHtIdYg32fQ, linux-PelNFVqkFnVyf+4FbqDuWQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, SPI SUBSYSTEM Le 26/03/2015 16:38, Mark Brown a écrit : > On Thu, Mar 26, 2015 at 11:45:52AM +0000, Ben Dooks wrote: >> Use <linux/atmel_io.h> to provide IO accessors which work on both >> AVR32 and ARM for on-chip peripherals. > > To repeat the feedback on your previous big endian fix: I've not been > CCed on the cover letter or any of the other patches so can someone tell > me if there are any dependencies or anything? Yes, there is dependency on a common header file. So I think we should keep the series grouped or plan a migration path. Bye, -- Nicolas Ferre -- 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <551428A9.9090604-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>]
* Re: [RFC 4/6] spi: atmel: use atmel_io.h to provide on-chip IO [not found] ` <551428A9.9090604-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org> @ 2015-03-26 16:00 ` Mark Brown 0 siblings, 0 replies; 6+ messages in thread From: Mark Brown @ 2015-03-26 16:00 UTC (permalink / raw) To: Nicolas Ferre Cc: Ben Dooks, linux-kernel-81qHHgoATdFT9dQujB1mzip2UmYkHbXO, hskinnemoen-Re5JQEeQqe8AvxtiuMwx3w, egtvedt-BrfabpQBY5qlHtIdYg32fQ, linux-PelNFVqkFnVyf+4FbqDuWQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, SPI SUBSYSTEM [-- Attachment #1: Type: text/plain, Size: 569 bytes --] On Thu, Mar 26, 2015 at 04:41:29PM +0100, Nicolas Ferre wrote: > Le 26/03/2015 16:38, Mark Brown a écrit : > > To repeat the feedback on your previous big endian fix: I've not been > > CCed on the cover letter or any of the other patches so can someone tell > > me if there are any dependencies or anything? > Yes, there is dependency on a common header file. So I think we should > keep the series grouped or plan a migration path. OK, thanks for letting me know - Ben, if you're working on this stuff *please* bear dependency issues like this in mind. [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 473 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RFC 4/6] spi: atmel: use atmel_io.h to provide on-chip IO [not found] ` <1427370354-21247-5-git-send-email-ben.dooks-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org> 2015-03-26 11:55 ` Hans-Christian Egtvedt 2015-03-26 15:38 ` Mark Brown @ 2015-03-26 16:01 ` Mark Brown 2 siblings, 0 replies; 6+ messages in thread From: Mark Brown @ 2015-03-26 16:01 UTC (permalink / raw) To: Ben Dooks Cc: linux-kernel-81qHHgoATdFT9dQujB1mzip2UmYkHbXO, hskinnemoen-Re5JQEeQqe8AvxtiuMwx3w, egtvedt-BrfabpQBY5qlHtIdYg32fQ, linux-PelNFVqkFnVyf+4FbqDuWQ, nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, open list:SPI SUBSYSTEM [-- Attachment #1: Type: text/plain, Size: 240 bytes --] On Thu, Mar 26, 2015 at 11:45:52AM +0000, Ben Dooks wrote: > Use <linux/atmel_io.h> to provide IO accessors which work on both > AVR32 and ARM for on-chip peripherals. Acked-by: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 473 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-03-26 16:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1427370354-21247-1-git-send-email-ben.dooks@codethink.co.uk>
[not found] ` <1427370354-21247-1-git-send-email-ben.dooks-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
2015-03-26 11:45 ` [RFC 4/6] spi: atmel: use atmel_io.h to provide on-chip IO Ben Dooks
[not found] ` <1427370354-21247-5-git-send-email-ben.dooks-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
2015-03-26 11:55 ` Hans-Christian Egtvedt
2015-03-26 15:38 ` Mark Brown
[not found] ` <20150326153855.GP3572-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-03-26 15:41 ` Nicolas Ferre
[not found] ` <551428A9.9090604-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
2015-03-26 16:00 ` Mark Brown
2015-03-26 16:01 ` Mark Brown
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).