linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] spi: Add addr_width field to struct spi_message
@ 2015-05-10 14:47 Zhiqiang Hou
       [not found] ` <1431269253-22890-1-git-send-email-B48286-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Zhiqiang Hou @ 2015-05-10 14:47 UTC (permalink / raw)
  To: linux-spi-u79uwXL29TY76Z2rM5mHXA
  Cc: broonie-DgEjT+Ai2ygdnm+yROfE0A, B21284-KZfg59tc24xl57MIdRCFDg,
	Hou Zhiqiang

From: Hou Zhiqiang <B48286-KZfg59tc24xl57MIdRCFDg@public.gmane.org>

Make SPI controller can get address width of the SPI device.

Signed-off-by: Hou Zhiqiang <B48286-KZfg59tc24xl57MIdRCFDg@public.gmane.org>

Based on git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git.
Tested on T1040RDB and T2080RDB.
---
 include/linux/spi/spi.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h
index d673072..c9cef2c 100644
--- a/include/linux/spi/spi.h
+++ b/include/linux/spi/spi.h
@@ -682,6 +682,9 @@ struct spi_message {
 	unsigned		actual_length;
 	int			status;
 
+	/* deliver the address width of spi device to spi controller */
+	u8			addr_width;
+
 	/* for optional use by whatever driver currently owns the
 	 * spi_message ...  between calls to spi_async and then later
 	 * complete(), that's the spi_master controller driver.
-- 
2.1.0.27.g96db324

--
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] 11+ messages in thread

end of thread, other threads:[~2015-05-12 10:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-10 14:47 [PATCH 1/3] spi: Add addr_width field to struct spi_message Zhiqiang Hou
     [not found] ` <1431269253-22890-1-git-send-email-B48286-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2015-05-10 14:47   ` [PATCH 2/3] mtd: m25p80: Initialize the addr_width field of spi_message Zhiqiang Hou
2015-05-10 14:47   ` [PATCH 3/3] spi/fsl-espi: Add the 4Byte address width device support Zhiqiang Hou
     [not found]     ` <1431269253-22890-3-git-send-email-B48286-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2015-05-11  7:45       ` Geert Uytterhoeven
2015-05-11  7:43   ` [PATCH 1/3] spi: Add addr_width field to struct spi_message Geert Uytterhoeven
     [not found]     ` <CAMuHMdUakeDgLZ4hXe0DBu97Xx4eiC9K_Qfc-imkDBrDBXNs6A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-11 16:17       ` Mark Brown
2015-05-12  8:06       ` Hou Zhiqiang
     [not found]         ` <CY1PR0301MB0780A4057DBB4DEBC45A631F8BDA0-YrwGdl+PljnwWZenWrSUgZwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2015-05-12  8:11           ` Geert Uytterhoeven
     [not found]             ` <CAMuHMdUzkr6_evPD5y-gaH=rtEgyZ+bHAddD+UmpTssQXZry1g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-12  8:27               ` Hou Zhiqiang
     [not found]                 ` <CY1PR0301MB078056CF0855A97334FD96458BDA0-YrwGdl+PljnwWZenWrSUgZwN6zqB+hSMnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2015-05-12  8:57                   ` Geert Uytterhoeven
     [not found]                     ` <CAMuHMdXFY_W6Rd37rNeNUnztZ=8xUcZBS3=eLQwK52N6byGgBg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-12 10:23                       ` 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).