linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • * RE: [PATCH v4 0/7] Add spi-nor SPI transfer error handling
           [not found] <cover.1439543572.git.hramrach@gmail.com>
           [not found] ` <1592668a061137b33c9a6392dfccc67c69fc1fe6.1439543572.git.hramrach@gmail.com>
    @ 2015-08-15  1:51 ` Bean Huo 霍斌斌 (beanhuo)
      2015-08-16 10:20   ` Michal Suchanek
           [not found] ` <e1251eea4ec9cc8c72d54300f3396919a3afe4b1.1439543572.git.hramrach@gmail.com>
      2015-11-19 23:43 ` [PATCH v4 0/7] Add spi-nor SPI transfer error handling Brian Norris
      3 siblings, 1 reply; 12+ messages in thread
    From: Bean Huo 霍斌斌 (beanhuo) @ 2015-08-15  1:51 UTC (permalink / raw)
      To: Michal Suchanek, Hou Zhiqiang, shijie.huang, David Woodhouse,
    	Brian Norris, Han Xu, Rafał Miłecki
      Cc: Ben Hutchings, Marek Vasut, Gabor Juhos, linux-mtd, linux-kernel
    
    [-- Warning: decoded text below may be mangled, UTF-8 assumed --]
    [-- Attachment #1: Type: text/plain; charset="utf-8", Size: 639 bytes --]
    
    >Hello,
    
    >with these patches SPI transfer errors are not silently ignored but rather reported to spi-nor users.
    
    >This should prevent silently dropping data to the floor in cases when the SPI transfer fails and the failure is detected.
    
    >It has been pointed out that MTD users do not handle the case when data is read only partially so this version adds the last patch which handles this in spi-nor.
    
    >Thanks
    
    >Michal
     Seems parallel nand read/write also has the same condition.
    ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥
    
    ^ permalink raw reply	[flat|nested] 12+ messages in thread
  • [parent not found: <e1251eea4ec9cc8c72d54300f3396919a3afe4b1.1439543572.git.hramrach@gmail.com>]
  • * Re: [PATCH v4 0/7] Add spi-nor SPI transfer error handling
           [not found] <cover.1439543572.git.hramrach@gmail.com>
                       ` (2 preceding siblings ...)
           [not found] ` <e1251eea4ec9cc8c72d54300f3396919a3afe4b1.1439543572.git.hramrach@gmail.com>
    @ 2015-11-19 23:43 ` Brian Norris
      3 siblings, 0 replies; 12+ messages in thread
    From: Brian Norris @ 2015-11-19 23:43 UTC (permalink / raw)
      To: Michal Suchanek
      Cc: Hou Zhiqiang, David Woodhouse, Han Xu, Rafał Miłecki,
    	Ben Hutchings, Marek Vasut, Gabor Juhos,
    	Bean Huo 霍斌斌,,
    	linux-mtd, linux-kernel, Heiner Kallweit, Huang Shijie
    
    Hi Michal,
    
    On Fri, Aug 14, 2015 at 09:23:06AM -0000, Michal Suchanek wrote:
    > Hello,
    > 
    > with these patches SPI transfer errors are not silently ignored but rather
    > reported to spi-nor users.
    > 
    > This should prevent silently dropping data to the floor in cases when the SPI
    > transfer fails and the failure is detected.
    > 
    > It has been pointed out that MTD users do not handle the case when data is read
    > only partially so this version adds the last patch which handles this in
    > spi-nor.
    > 
    > Thanks
    > 
    > Michal
    > 
    > Michal Suchanek (7):
    >   mtd: spi-nor: change return value of read/write
    >   mtd: m25p80: return amount of data transferred or error in read/write
    >   mtd: fsl-quadspi: return amount of data read/written or error
    >   mtd: spi-nor: check return value from read/write
    >   mtd: spi-nor: stop passing around retlen
    
    Patches 1 to 5 look good to me, though there is a new spi-nor driver
    since you sent this. Can you rebase/fixup?
    
    >   mtd: spi-nor: simplify write loop
    >   mtd: spi-nor: add read loop
    
    I posted some comments for these. I get the feeling that patch 6 is
    over-complicated and should be just a simple assertion. And I'm still
    not 100% sure on the approach for patch 7, since it's not clear whether
    the responsibility lies in the SPI layer or in MTD.
    
    Brian
    
    >  drivers/mtd/devices/m25p80.c      | 33 +++++++++------
    >  drivers/mtd/spi-nor/fsl-quadspi.c | 29 ++++++-------
    >  drivers/mtd/spi-nor/spi-nor.c     | 85 +++++++++++++++++++++++----------------
    >  include/linux/mtd/spi-nor.h       |  8 ++--
    >  4 files changed, 91 insertions(+), 64 deletions(-)
    > 
    > -- 
    > 2.1.4
    > 
    
    ^ permalink raw reply	[flat|nested] 12+ messages in thread

  • end of thread, other threads:[~2016-01-12  7:07 UTC | newest]
    
    Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
    -- links below jump to the message on this page --
         [not found] <cover.1439543572.git.hramrach@gmail.com>
         [not found] ` <1592668a061137b33c9a6392dfccc67c69fc1fe6.1439543572.git.hramrach@gmail.com>
    2015-08-14 10:02   ` [PATCH v4 7/7] mtd: spi-nor: add read loop Andrew Murray
    2015-08-14 10:08     ` Michal Suchanek
    2015-11-05  3:39       ` Hou Zhiqiang
    2015-11-20 19:18         ` Michal Suchanek
    2016-01-12  6:35           ` Zhiqiang Hou
    2015-11-19 23:39   ` Brian Norris
    2015-11-20  6:26     ` Heiner Kallweit
    2015-08-15  1:51 ` [PATCH v4 0/7] Add spi-nor SPI transfer error handling Bean Huo 霍斌斌 (beanhuo)
    2015-08-16 10:20   ` Michal Suchanek
         [not found] ` <e1251eea4ec9cc8c72d54300f3396919a3afe4b1.1439543572.git.hramrach@gmail.com>
    2015-11-19 23:18   ` [PATCH v4 6/7] mtd: spi-nor: simplify write loop Brian Norris
    2015-11-20 18:59     ` Michal Suchanek
    2015-11-19 23:43 ` [PATCH v4 0/7] Add spi-nor SPI transfer error handling Brian Norris
    

    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).