linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Leonard Crestez <leonard.crestez-3arQi8VN3Tc@public.gmane.org>
To: Fabio Estevam <fabio.estevam-3arQi8VN3Tc@public.gmane.org>
Cc: <linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	<jiada_wang-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>,
	<broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH] spi: imx: Revert "spi: imx: dynamic burst length adjust for PIO mode"
Date: Thu, 18 May 2017 16:59:18 +0300	[thread overview]
Message-ID: <1495115958.26925.23.camel@nxp.com> (raw)
In-Reply-To: <1495113735-11891-1-git-send-email-fabio.estevam-3arQi8VN3Tc@public.gmane.org>

On Thu, 2017-05-18 at 10:22 -0300, Fabio Estevam wrote:
> This reverts commit 8d4a6cad7adb3ddac32cd52635f20e11de11a658.
> 
> Commit 8d4a6cad7adb ("spi: imx: dynamic burst length adjust for PIO mode")
> breaks the detection of the SPI NOR on a imx6q-sabresd board:
> 
> m25p80 spi0.0: unrecognized JEDEC id bytes: 10, 00, 00
> 
> # cat /proc/mtd 
> dev:    size   erasesize  name
> 
> After reverting this commit SPI works back to normal again:
> 
> m25p80 spi0.0: m25p32 (4096 Kbytes)
> 
> # cat /proc/mtd 
> dev:    size   erasesize  name
> mtd0: 00400000 00010000 "spi0.0"
> 
> It also causes kernel crashes on imx6dl-sabreauto and imx6sl-evk boards
> as reported by Leonard Crestez, so better revert it.

A fix was already posted: https://lkml.org/lkml/2017/5/18/264. Can you
check it in your scenario? I don't know if a revert or a fix is more
appropriate.

It seems to me the crash is triggered by the way spi-nor uses the SPI
API. It's strange that you get a wrong ID instead of a crash.

I checked that after the fix the flash block is detected and it can be
read from, but not that the transferred data is correct.
--
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

  parent reply	other threads:[~2017-05-18 13:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-18 13:22 [PATCH] spi: imx: Revert "spi: imx: dynamic burst length adjust for PIO mode" Fabio Estevam
     [not found] ` <1495113735-11891-1-git-send-email-fabio.estevam-3arQi8VN3Tc@public.gmane.org>
2017-05-18 13:59   ` Leonard Crestez [this message]
     [not found]     ` <1495115958.26925.23.camel-3arQi8VN3Tc@public.gmane.org>
2017-05-18 14:22       ` Fabio Estevam
     [not found]         ` <CAOMZO5Adj+sgxgoO9gN232EEH=NtjTHpKfB+EaUAbRXyaPD_Gg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-05-18 15:37           ` Jiada Wang
     [not found]             ` <591DBFD2.4090601-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
2017-05-18 15:41               ` Fabio Estevam
     [not found]                 ` <CAOMZO5BZvp_iWoJCTkZL-buSu6pscv1U-6XLjjEm8PjVOjf9wQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-05-19 10:55                   ` Jiada Wang
     [not found]                     ` <591ECF3B.4040001-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
2017-05-19 15:19                       ` Fabio Estevam
2017-05-19 16:30                         ` Mark Brown

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=1495115958.26925.23.camel@nxp.com \
    --to=leonard.crestez-3arqi8vn3tc@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=fabio.estevam-3arQi8VN3Tc@public.gmane.org \
    --cc=jiada_wang-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org \
    --cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 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).