public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
From: Rodolfo Giometti <giometti-k2GhghHVRtY@public.gmane.org>
To: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>,
	Ben Dooks <ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org>,
	Rodolfo Giometti <giometti-k2GhghHVRtY@public.gmane.org>
Subject: [PATCH 2/2] i2c pxa: add the force reset method.
Date: Fri,  6 Feb 2009 16:23:18 +0100	[thread overview]
Message-ID: <1233933798-17673-2-git-send-email-giometti@linux.it> (raw)
In-Reply-To: <1233933798-17673-1-git-send-email-giometti-k2GhghHVRtY@public.gmane.org>

Signed-off-by: Rodolfo Giometti <giometti-k2GhghHVRtY@public.gmane.org>
---
 drivers/i2c/busses/i2c-pxa.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
index 6af6814..ccbc9ba 100644
--- a/drivers/i2c/busses/i2c-pxa.c
+++ b/drivers/i2c/busses/i2c-pxa.c
@@ -963,6 +963,13 @@ static int i2c_pxa_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num
 	return ret;
 }
 
+static void i2c_pxa_force_reset(struct i2c_adapter *adap)
+{
+	struct pxa_i2c *i2c = adap->algo_data;
+
+	i2c_pxa_reset(i2c);
+}
+
 static u32 i2c_pxa_functionality(struct i2c_adapter *adap)
 {
 	return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL;
@@ -1065,6 +1072,7 @@ static int i2c_pxa_probe(struct platform_device *dev)
 
 	i2c->adap.algo_data = i2c;
 	i2c->adap.dev.parent = &dev->dev;
+	i2c->adap.reset	  = i2c_pxa_force_reset;
 
 	ret = i2c_add_numbered_adapter(&i2c->adap);
 	if (ret < 0) {
-- 
1.5.6.3

  parent reply	other threads:[~2009-02-06 15:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-06 15:23 [PATCH 1/2] i2c: add "reset" sysfs entry for adapters Rodolfo Giometti
     [not found] ` <1233933798-17673-1-git-send-email-giometti-k2GhghHVRtY@public.gmane.org>
2009-02-06 15:23   ` Rodolfo Giometti [this message]
2009-02-09 14:55   ` Ben Dooks
     [not found]     ` <20090209145546.GO8032-elnMNo+KYs3pIgCt6eIbzw@public.gmane.org>
2009-02-09 15:02       ` Rodolfo Giometti
     [not found]         ` <20090209150255.GA7975-AVVDYK/kqiJWk0Htik3J/w@public.gmane.org>
2009-02-09 15:28           ` Jean Delvare
     [not found]             ` <20090209162838.7cfeee94-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-02-09 15:37               ` Rodolfo Giometti
2009-02-09 16:17   ` Jean Delvare
     [not found]     ` <20090209171720.76efd2c8-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-02-09 20:41       ` Rodolfo Giometti
     [not found]         ` <20090209204108.GH7975-AVVDYK/kqiJWk0Htik3J/w@public.gmane.org>
2009-02-10 10:44           ` Jean Delvare
     [not found]             ` <20090210114438.67bfb5fb-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-02-11 13:00               ` Rodolfo Giometti
     [not found]                 ` <20090211130028.GM8639-AVVDYK/kqiJWk0Htik3J/w@public.gmane.org>
2009-02-11 13:40                   ` Wolfram Sang
2009-02-13 17:39                   ` Jean Delvare
2009-02-10 10:33   ` Jean Delvare

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=1233933798-17673-2-git-send-email-giometti@linux.it \
    --to=giometti-k2ghghhvrty@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 \
    /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