Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1291184
| From | Ranjit Waghmode <ranjit.waghmode@xilinx.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [LINUX RFC v3 2/4] mtd: add spi_device instance to spi_nor struct |
| Date | 2015-12-14 14:30 +0100 |
| Message-ID | <qFBmr-6GS-27@gated-at.bofh.it> (permalink) |
| References | <qFBcL-6CH-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This patch adds struct spi_device instacne to the spi_nor structure.
Signed-off-by: Ranjit Waghmode <ranjit.waghmode@xilinx.com>
---
V3 Changes:
- No change in this patch
V2 Changes:
- This is new patch, basically splitted on request of Mark Brown
---
drivers/mtd/devices/m25p80.c | 1 +
include/linux/mtd/spi-nor.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index fe9ceb7..bab4939 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -204,6 +204,7 @@ static int m25p_probe(struct spi_device *spi)
spi_set_drvdata(spi, flash);
flash->spi = spi;
+ nor->spi = spi;
if (spi->mode & SPI_RX_QUAD)
mode = SPI_NOR_QUAD;
diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h
index c8723b6..872b2b4 100644
--- a/include/linux/mtd/spi-nor.h
+++ b/include/linux/mtd/spi-nor.h
@@ -155,6 +155,7 @@ struct spi_nor {
struct mtd_info mtd;
struct mutex lock;
struct device *dev;
+ struct spi_device *spi;
struct device_node *flash_node;
u32 page_size;
u8 addr_width;
--
2.1.2
--
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/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[LINUX RFC v3 0/4] spi: add dual parallel mode support in Zynq MPSoC GQSPI controller Ranjit Waghmode <ranjit.waghmode@xilinx.com> - 2015-12-14 14:20 +0100 [LINUX RFC v3 1/4] spi: addng support for data stripe feature in core Ranjit Waghmode <ranjit.waghmode@xilinx.com> - 2015-12-14 14:20 +0100 [LINUX RFC v3 2/4] mtd: add spi_device instance to spi_nor struct Ranjit Waghmode <ranjit.waghmode@xilinx.com> - 2015-12-14 14:30 +0100 [LINUX RFC v3 3/4] mtd: spi-nor: add dual parallel mode support Ranjit Waghmode <ranjit.waghmode@xilinx.com> - 2015-12-14 14:30 +0100 [LINUX RFC v3 4/4] spi: zynqmp: gqspi: add support for dual parallel mode configuration Ranjit Waghmode <ranjit.waghmode@xilinx.com> - 2015-12-14 14:30 +0100
csiph-web