From: Sascha Hauer <s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
To: Wolfram Sang <w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Samuel Ortiz <sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>,
Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>,
linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Ben Dooks <ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org>,
kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org
Subject: Re: [PATCH 2/3] i2c: Add Congatec CGEB I2C driver
Date: Wed, 15 Feb 2012 14:54:13 +0100 [thread overview]
Message-ID: <20120215135413.GD3852@pengutronix.de> (raw)
In-Reply-To: <20120207101016.GB2539-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
On Tue, Feb 07, 2012 at 11:10:16AM +0100, Wolfram Sang wrote:
> Hi Sascha,
>
> > +config I2C_CONGATEC_CGEB
> > + tristate "Congatec CGEB I2C driver"
> > + depends on MFD_CONGATEC_CGEB
> > + help
> > + This driver provides support for the I2C busses accssable via
> > + the Congatec CGEB interface found on Congatec boards.
> > +
>
> Please keep the sorting (eg20t is wrong and will be fixed).
>
> > + ret = cgeb_call(priv->board, &fps, CgebI2CTransfer);
> > + if (ret) {
> > + ret = -EREMOTEIO;
> > + goto out;
> > + }
>
> -EREMOTEIO is not present in Documentation/i2c/fault-codes. Please use
> one from that file.
-EIO?
>
> > + ret = cgeb_i2c_set_speed(priv, 400000);
> > + if (ret)
> > + /*
> > + * not a critical error, we can continue with the default speed.
> > + */
> > + dev_warn(&pdev->dev, "Could not set speed to 400KHz\n");
>
> Is it possible to make this configurable? Not all I2C devices support
> 400KHz, 100KHz is OK.
Yes, it is. The problem is more *how* it should be configurable.
Exposing it via sysfs is the only reasonable option I can think
of.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2012-02-15 13:54 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-01 13:26 [RESEND] Congatec CGEB base, i2c and watchdog driver support Sascha Hauer
2012-02-01 13:26 ` [PATCH 1/3] mfd: Add basic support for the Congatec CGEB BIOS interface Sascha Hauer
[not found] ` <1328102793-4313-2-git-send-email-s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-02-06 19:07 ` Christian Gmeiner
2012-02-20 16:39 ` Samuel Ortiz
2012-02-20 18:07 ` Sascha Hauer
[not found] ` <20120220180752.GV3852-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-02-27 13:58 ` Samuel Ortiz
2012-02-27 17:24 ` Sascha Hauer
[not found] ` <20120227172443.GD3852-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-02-28 14:32 ` Mark Brown
2012-02-01 13:26 ` [PATCH 2/3] i2c: Add Congatec CGEB I2C driver Sascha Hauer
2012-02-07 8:38 ` Christian Gmeiner
[not found] ` <1328102793-4313-3-git-send-email-s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-02-07 10:10 ` Wolfram Sang
[not found] ` <20120207101016.GB2539-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-02-15 13:54 ` Sascha Hauer [this message]
2012-02-13 23:22 ` Ben Dooks
[not found] ` <1328102793-4313-1-git-send-email-s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-02-01 13:26 ` [PATCH 3/3] watchdog: Add Congatec CGEB watchdog driver Sascha Hauer
[not found] ` <1328102793-4313-4-git-send-email-s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-02-07 15:08 ` Wolfram Sang
[not found] ` <20120207150856.GI2539-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-02-15 13:41 ` Sascha Hauer
2012-02-06 10:58 ` [RESEND] Congatec CGEB base, i2c and watchdog driver support Christian Gmeiner
-- strict thread matches above, loose matches on Subject: below --
2013-02-12 10:02 [PATCH] " Sascha Hauer
[not found] ` <1360663374-30951-1-git-send-email-s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-02-12 10:02 ` [PATCH 2/3] i2c: Add Congatec CGEB I2C driver Sascha Hauer
[not found] ` <1360663374-30951-3-git-send-email-s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-02-14 10:11 ` Wolfram Sang
[not found] ` <20130214101130.GB12290-8EAEigeeuNG034pCzgS/Qg7AFbiQbgqx@public.gmane.org>
2013-03-26 9:55 ` Christian Gmeiner
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=20120215135413.GD3852@pengutronix.de \
--to=s.hauer-bicnvbalz9megne8c9+irq@public.gmane.org \
--cc=ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org \
--cc=kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
--cc=khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
--cc=w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@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).