All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shawn Lin <shawn.lin-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
To: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>,
	Shawn Lin <shawn.lin-TNX95d0MmH7DzftRWevZcw@public.gmane.org>,
	Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	Doug Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>,
	linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Issues with cros_ec and "spi: rockchip: check return value of dmaengine_prep_slave_sg"
Date: Sat, 2 Apr 2016 17:56:17 +0800	[thread overview]
Message-ID: <56FF9741.4040304@rock-chips.com> (raw)
In-Reply-To: <5681888.LvkE41Ux3K@phil>

Hi Heiko,

在 2016/4/2 7:52, Heiko Stuebner 写道:
> Hi Shawn,
>
> it looks like commit ea9849113343 ("spi: rockchip: check return value of
> dmaengine_prep_slave_sg") negatively affects the cros_ec spi backend.
>
> During boot on the most recent mainline kernel I get:
>
> [    1.025480] cros-ec-spi spi0.0: Chrome EC device registered
> [    1.641636] input: cros_ec as /devices/platform/ff110000.spi/spi_master/spi0/spi0.0/ff110000.spi:ec@0:keyboard-controller/input/input0
> [    2.340214] cros-ec-spi spi0.0: EC failed to respond in time
> [    2.357735] cros-ec-spi spi0.0: packet too long (249 bytes, expected 4)
> [    2.470353] cros-ec-spi spi0.0: EC failed to respond in time
> [    2.508495] cros-ec-spi spi0.0: packet too long (249 bytes, expected 4)
> [    2.620176] cros-ec-spi spi0.0: EC failed to respond in time
> [    2.637345] cros-ec-spi spi0.0: packet too long (249 bytes, expected 4)
> [    2.750245] cros-ec-spi spi0.0: EC failed to respond in time
> [    2.767519] cros-ec-spi spi0.0: packet too long (249 bytes, expected 4)
>
> The cros-ec works ok after boot without further errors [aka keyboard
> and everything working correctly] and I haven't been able to figure out
> what goes wrong, but was able to bisect the issue down to the commit
> mentioned above.
>

Which Soc I can reproduce it?

I'm not able to find out how this commit to break the cros-ec. So I
prone to think this commit just expose some issues rather than 
introducing negatively affects. I guess, before this commit, cros-ec
always get successful transfer, but the reality is that the tranfer
does failed in the early booting stage but spi-rockchip doesn't log out
anything. If that is the case, that means spi-rockchip fails to prepare
sg for some unknown reasons?

> Reverting the patch silences the cros-ec again. I'll try to look into it
> further, but maybe you also have an idea what might go wrong.
>
>
> Heiko
>
> _______________________________________________
> Linux-rockchip mailing list
> Linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
> http://lists.infradead.org/mailman/listinfo/linux-rockchip
>


-- 
Best Regards
Shawn Lin

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

  reply	other threads:[~2016-04-02  9:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-01 23:52 Issues with cros_ec and "spi: rockchip: check return value of dmaengine_prep_slave_sg" Heiko Stuebner
2016-04-02  9:56 ` Shawn Lin [this message]
     [not found]   ` <56FF9741.4040304-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-04-02 13:37     ` Heiko Stuebner
2016-04-11 17:54       ` Javier Martinez Canillas
     [not found]         ` <CABxcv=kotgZosaLBKV0f1NpwYH8w57k+RT0fS2QL5ZpNWtU-yA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-17  0:07           ` Heiko Stübner

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=56FF9741.4040304@rock-chips.com \
    --to=shawn.lin-tnx95d0mmh7dzftrwevzcw@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
    --cc=heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org \
    --cc=linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@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 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.