From: Simon Lindgren <simon-IfRblWqrl23QT0dZR+AlfA@public.gmane.org>
To: Mark Roszko <mark.roszko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Implementing bus recovery
Date: Wed, 27 Aug 2014 13:02:30 +0200 [thread overview]
Message-ID: <53FDBAC6.4090807@aqwary.com> (raw)
In-Reply-To: <CAJjB1qLO86mDntbnMZKWNycmuW4QGDuZVd_EhqB2XSenunzOxQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
(btw, I noticed my emails were badly formatted. Hopefully I have fixed
that now)
Den 2014-08-27 05:08, Mark Roszko skrev:
>> We are using a sama5d3-based machine which is almost entirely dt based, so passing callbacks to the driver using the platform data seems like a bad fit. >Hard coding these calls in the driver won't really work either (even for a single machine) since not all instances of the adapter exist on the same peripheral. >Ie, one adapter is on peripheral A and the others are on peripheral B for this specific soc.
>
> I forgot the SAMA5 doesn't keep the TWI peripherals on the same
> pinmux positions. Even more variance with the other Atmel SoCs using
> the same driver. Easiest fix would be to pass the i2c_adapter pointer
> rather than i2c_bus_recovery_info which seems harmless and retains the
> recovery info pointer internally. That way you can grab the at91
> driver struct where you would have saved the pinmux before/after
> config.
>
Gave this a shot and it seems to work fine :-)
> Btw, side thing, this may help you since you seem to care about your
> SAMA5's i2c functioning.... if you are doing smbus block reads with
> the SAMA5 you may want to pull this patch for yourself:
> https://patchwork.ozlabs.org/patch/381843/. Fixes a kernel panic and
> at91 TWI controller timeout.
>
Nice, thanks for the heads-up :-)
prev parent reply other threads:[~2014-08-27 11:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-22 19:14 Implementing bus recovery Simon Lindgren
[not found] ` <53F796B1.2000400-IfRblWqrl23QT0dZR+AlfA@public.gmane.org>
2014-08-23 0:41 ` Mark Roszko
[not found] ` <CAJjB1q+_KbLBKXNMvG6DWHcuVOvmJs3XmT3B8yb-_a0K12ZJtw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-25 10:43 ` Simon Lindgren
[not found] ` <53FB1369.802-IfRblWqrl23QT0dZR+AlfA@public.gmane.org>
2014-08-27 3:08 ` Mark Roszko
[not found] ` <CAJjB1qLO86mDntbnMZKWNycmuW4QGDuZVd_EhqB2XSenunzOxQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-27 11:02 ` Simon Lindgren [this message]
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=53FDBAC6.4090807@aqwary.com \
--to=simon-ifrblwqrl23qt0dzr+alfa@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mark.roszko-Re5JQEeQqe8AvxtiuMwx3w@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).