All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Stein <alexander.stein@systec-electronic.com>
To: Cory Tusar <cory.tusar@pid1solutions.com>
Cc: Han Xu <han.xu@freescale.com>,
	David Woodhouse <dwmw2@infradead.org>,
	Brian Norris <computersforpeace@gmail.com>,
	linux-mtd@lists.infradead.org
Subject: Re: [PATCH 1/1] mtd: fsl-quadspi: Add mutex for accessing different SPI-NOR devices
Date: Mon, 20 Jul 2015 08:50:48 +0200	[thread overview]
Message-ID: <22821071.S74fF7YYzh@ws-stein> (raw)
In-Reply-To: <55A7E9FA.4040704@pid1solutions.com>

Hello Cory,

On Thursday 16 July 2015 13:29:30, Cory Tusar wrote:
> On 07/16/2015 10:13 AM, Alexander Stein wrote:
> > Access is only serialized for each NOR device in spi_nor_lock_and_prep(),
> > but not for the QSPI device.
>
> Are both devices that you're testing with in the below scenario QSPI, or
> is it a combination of QSPI + some other MTD device?

On my board a s70fl01gs is connected to QSPI bank A. As this is a dual-die 
chip it uses both chip-selcts on bank A. So in the end it's 2 QSPI devices.
When accessing different flashs on those 2 chip-selects i get the following
error message:
> [  233.157410] fsl-quadspi 1550000.quadspi: cmd 0x05 timeout, addr@00000000,
> FR:0x08000000, SR:0x00003c00 [  233.166731] error -110 reading SR
> [  233.170097] end_request: I/O error, dev mtdblock3, sector 72
> [  233.175740] Buffer I/O error on device mtdblock3, logical block 9

This seems to be caused by simultaneously access to different chips.

Best regards,
Alexander
-- 
Dipl.-Inf. Alexander Stein
SYS TEC electronic GmbH
alexander.stein@systec-electronic.com

Legal and Commercial Address:
Am Windrad 2
08468 Heinsdorfergrund
Germany

Office: +49 (0) 3765 38600-11xx
Fax:    +49 (0) 0) 3765 38600-41xx
 
Managing Directors:
	Director Technology/CEO: Dipl.-Phys. Siegmar Schmidt;
	Director Commercial Affairs/COO: Dipl. Ing. (FH) Armin von Collrepp
Commercial Registry:
	Amtsgericht Chemnitz, HRB 28082; USt.-Id Nr. DE150534010

  reply	other threads:[~2015-07-20  6:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-16 14:13 [PATCH 1/1] mtd: fsl-quadspi: Add mutex for accessing different SPI-NOR devices Alexander Stein
2015-07-16 17:29 ` Cory Tusar
2015-07-20  6:50   ` Alexander Stein [this message]
2015-07-23 15:31     ` Han Xu
2015-07-23 15:41       ` Alexander Stein
2015-07-23 15:48         ` Han Xu
2015-07-23 16:00           ` Alexander Stein
2015-07-24 20:05             ` Brian Norris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=22821071.S74fF7YYzh@ws-stein \
    --to=alexander.stein@systec-electronic.com \
    --cc=computersforpeace@gmail.com \
    --cc=cory.tusar@pid1solutions.com \
    --cc=dwmw2@infradead.org \
    --cc=han.xu@freescale.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.