From: Wolfram Sang <w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
To: Viresh Kumar <viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org,
khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org,
ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org,
linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
spear-devel-nkJGhpqTU55BDgjK7y7TUQ@public.gmane.org,
Vincenzo Frascino
<vincenzo.frascino-qxv4g6HH51o@public.gmane.org>,
Shiraz Hashim <shiraz.hashim-qxv4g6HH51o@public.gmane.org>
Subject: Re: [PATCH V6 2/2] i2c/designware: Provide i2c bus recovery support
Date: Fri, 30 Nov 2012 15:15:07 +0100 [thread overview]
Message-ID: <20121130141507.GH23231@pengutronix.de> (raw)
In-Reply-To: <CAKohpokdx91dkK3vBsjBMtc9iHypM_ZK2oJm5vcjkdiT-eW7vQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1105 bytes --]
> >> + if (adap->bus_recovery_info &&
> >> + adap->bus_recovery_info->recover_bus) {
> >> + dev_dbg(dev->dev, "try i2c bus recovery\n");
> >> + adap->bus_recovery_info->recover_bus(adap);
> >> + }
> >> +
> >
> > This should be in the core?
>
> Because wait_for_completion() would fail in controllers, so i kept this
> code here. How will we come to know about xfer failure in core?
Somehow true. We need the clarification of .timeout and .retries in the
i2c subsystem first, then we can think of returning a specific
-Esomething here which could indicate that a recovery might help. Might
require another thinking if that should be different from -ETIMEDOUT.
Still, we need the cleanup first, and because this may take a while, it
is not your problem.
So, we could start like above and fix users later.
Regards,
Wolfram
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2012-11-30 14:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-04 11:04 [PATCH V6 1/2] i2c/adapter: Add bus recovery infrastructure Viresh Kumar
[not found] ` <9adb13c1a2e35dce401b0a50e455fe1be76285a7.1349348405.git.viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2012-10-04 11:04 ` [PATCH V6 2/2] i2c/designware: Provide i2c bus recovery support Viresh Kumar
[not found] ` <6262d3a8e87858d938362c4aa44caf40938f2be9.1349348405.git.viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2012-11-24 21:03 ` Wolfram Sang
[not found] ` <20121124210314.GC3210-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-11-25 4:11 ` Viresh Kumar
[not found] ` <CAKohpokdx91dkK3vBsjBMtc9iHypM_ZK2oJm5vcjkdiT-eW7vQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-11-30 14:15 ` Wolfram Sang [this message]
2012-10-19 13:33 ` [PATCH V6 1/2] i2c/adapter: Add bus recovery infrastructure Viresh Kumar
[not found] ` <CAKohpokgrKVpGOcT=H7TvNCQyKwHfcUPetXj-_Ug1pP35nyFEg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-10-31 8:58 ` Viresh Kumar
2012-11-24 20:59 ` Wolfram Sang
[not found] ` <20121124205931.GB3210-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-11-25 4:04 ` Viresh Kumar
[not found] ` <CAKohpokLD60N087_ae8-JY-4b4Opn+OrTErt0MwFsTgnSwFb0w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-11-30 14:11 ` Wolfram Sang
[not found] ` <20121130141129.GG23231-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-12-03 2:47 ` Viresh Kumar
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=20121130141507.GH23231@pengutronix.de \
--to=w.sang-bicnvbalz9megne8c9+irq@public.gmane.org \
--cc=ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org \
--cc=khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=shiraz.hashim-qxv4g6HH51o@public.gmane.org \
--cc=spear-devel-nkJGhpqTU55BDgjK7y7TUQ@public.gmane.org \
--cc=u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
--cc=vincenzo.frascino-qxv4g6HH51o@public.gmane.org \
--cc=viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@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.