From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: "Srinivasan, Nageswari" <nageswari-l0cyMroinI0@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: I2C_RDRW_IOCTL_MAX_MSGS
Date: Tue, 17 Jan 2012 14:09:54 +0100 [thread overview]
Message-ID: <20120117140954.05dd30ef@endymion.delvare> (raw)
In-Reply-To: <464859D4BE03A84686BA47749242C1D0317B66EC-Er742YJ7I/eIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
Hi Nageswari,
On Tue, 17 Jan 2012 10:56:43 +0000, Srinivasan, Nageswari wrote:
> Is there any specific reason to limit no of i2c messages
> to 42 in i2c-dev.c file
>
> /* Put an arbitrary limit on the number of messages that can
> * be sent at once */
> if (rdwr_arg.nmsgs > I2C_RDRW_IOCTL_MAX_MSGS)
> return -EINVAL;
No, as the comment says there is no good reason, it's purely arbitrary.
If this limitation is a problem for you it can be raised.
But you should also keep in mind that pushing many messages at once
increases the I2C bus latency so other devices on the same bus might
become unresponsive.
As a matter of fact the limitation has been there for over 10 years and
nobody ever complained about it, so you must be doing something quite
unusual. I invite you to explain your case in details if you need
I2C_RDRW_IOCTL_MAX_MSGS to be increased.
--
Jean Delvare
next prev parent reply other threads:[~2012-01-17 13:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-17 10:56 I2C_RDRW_IOCTL_MAX_MSGS Srinivasan, Nageswari
[not found] ` <464859D4BE03A84686BA47749242C1D0317B66EC-Er742YJ7I/eIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2012-01-17 13:09 ` Jean Delvare [this message]
[not found] ` <20120117140954.05dd30ef-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2012-01-17 14:49 ` I2C_RDRW_IOCTL_MAX_MSGS Srinivasan, Nageswari
[not found] ` <464859D4BE03A84686BA47749242C1D0317B6E7A-Er742YJ7I/eIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2012-01-17 15:06 ` I2C_RDRW_IOCTL_MAX_MSGS Jean Delvare
[not found] ` <20120117160655.0586cd2c-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2012-01-17 15:12 ` I2C_RDRW_IOCTL_MAX_MSGS Srinivasan, Nageswari
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=20120117140954.05dd30ef@endymion.delvare \
--to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=nageswari-l0cyMroinI0@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