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


Groups > linux.kernel > #1373441

[LINUX PATCH v2 2/3] mtd:m25p80: Assigned number of dummy cycles to dummy_cycles.

From P L Sai Krishna <lakshmi.sai.krishna.potthuri@xilinx.com>
Newsgroups linux.kernel
Subject [LINUX PATCH v2 2/3] mtd:m25p80: Assigned number of dummy cycles to dummy_cycles.
Date 2016-04-07 16:50 +0200
Message-ID <rljpU-5mp-13@gated-at.bofh.it> (permalink)
References <rljgf-5hz-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Assigned number of dummy cycles to dummy_cycles member of
spi_transfer structure in m25p80_read API.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
---
v2: 
 - New Patch.
 
 drivers/mtd/devices/m25p80.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index c9c3b7f..7c9fac9 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -139,6 +139,7 @@ static int m25p80_read(struct spi_nor *nor, loff_t from, size_t len,
 
 	t[0].tx_buf = flash->command;
 	t[0].len = m25p_cmdsz(nor) + dummy;
+	t[0].dummy = nor->read_dummy;
 	spi_message_add_tail(&t[0], &m);
 
 	t[1].rx_buf = buf;
-- 
2.1.2

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[LINUX PATCH v2 1/3] spi: Added dummy_cycle entry in the spi_transfer structure. P L Sai Krishna <lakshmi.sai.krishna.potthuri@xilinx.com> - 2016-04-07 16:40 +0200
  [LINUX PATCH v2 3/3] spi:zynqmp:gqspi: Added separate dummy entry. P L Sai Krishna <lakshmi.sai.krishna.potthuri@xilinx.com> - 2016-04-07 16:50 +0200
  [LINUX PATCH v2 2/3] mtd:m25p80: Assigned number of dummy cycles to dummy_cycles. P L Sai Krishna <lakshmi.sai.krishna.potthuri@xilinx.com> - 2016-04-07 16:50 +0200
    Re: [LINUX PATCH v2 2/3] mtd:m25p80: Assigned number of dummy cycles  to dummy_cycles. kbuild test robot <lkp@intel.com> - 2016-04-07 17:10 +0200
  Re: [LINUX PATCH v2 1/3] spi: Added dummy_cycle entry in the  spi_transfer structure. Cyrille Pitchen <cyrille.pitchen@atmel.com> - 2016-04-07 17:10 +0200
    RE: [LINUX PATCH v2 1/3] spi: Added dummy_cycle entry in the  spi_transfer structure. Lakshmi Sai Krishna Potthuri   <lakshmi.sai.krishna.potthuri@xilinx.com> - 2016-04-13 07:30 +0200
      Re: [LINUX PATCH v2 1/3] spi: Added dummy_cycle entry in the  spi_transfer structure. Cyrille Pitchen <cyrille.pitchen@atmel.com> - 2016-04-14 10:10 +0200
        Re: [LINUX PATCH v2 1/3] spi: Added dummy_cycle entry in the  spi_transfer structure. Mark Brown <broonie@kernel.org> - 2016-04-14 11:00 +0200
          Re: [LINUX PATCH v2 1/3] spi: Added dummy_cycle entry in the  spi_transfer structure. Cyrille Pitchen <cyrille.pitchen@atmel.com> - 2016-04-14 17:30 +0200
  Re: [LINUX PATCH v2 1/3] spi: Added dummy_cycle entry in the  spi_transfer structure. Mark Brown <broonie@kernel.org> - 2016-04-12 08:20 +0200

csiph-web