From: mds4@verizon.net (Mark Studebaker)
To: lm-sensors@vger.kernel.org
Subject: I2C block read fixed size to 32
Date: Thu, 19 May 2005 06:25:01 +0000 [thread overview]
Message-ID: <40CF853B.1050208@verizon.net> (raw)
In-Reply-To: <F815C23DC37A74429D347AAE3FAC186009F6BF@mpc034.mountside.nl>
good question.
you want to make the size bigger or smaller?
I'll assume you are using a bit-banging (i2c-algo-bit) adatper here...
It's true, if you use the call
i2c_smbus_read_i2c_block_data(),
the size is fixed at 32. This is enforced in these functions
and in i2c_smbus_xfer_emulated().
You can avoid this limitation by making a direct call to i2c_transfer(),
you should be able to find some drivers in the kernel that use i2c_transfer()
as an example.
If you have a proposal on a clean way to set the size on calls to
i2c_smbus_read_i2c_block_data()
we'll be happy to discuss it with you.
mds
Andre Fisser wrote:
> Hi,
>
> are there plans to remove the fixed size of i2c block reads? I use the I2C
> driver to communicate through the printer port with a kind of Philips dongle
> to a custom microprocessor circuit. The fixed block size is wasting
> bus-bandwidth which is a problem for me.
> I'm planning to remove this limitation myself if there's nobody already
> working on it. Maybe you guys have some advice for me how it can be best
> done?
>
> Best regards,
> Andre
>
>
> Andr? Fisser
>
> Imtech ICT Technical Systems
> Flight Forum 800,
> 5657 DV Eindhoven
>
> Telephone +31 (0)40 8484444
> Fax +31 (0)40 8484440
> Email Andre.Fisser@Imtech.nl
> www www.imtech.nl
>
> Imtech ICT is een full service ICT-dienstverlener die op een no-nonsense
> manier bijdraagt aan het succes van haar klanten. Imtech ICT biedt
> hoogwaardige dienstverlening op het gebied van projectmanagement, advies,
> technische automatisering, informatisering en communicatietechnologie, en is
> onderdeel van het beursgenoteerde Imtech.
>
>
>
next prev parent reply other threads:[~2005-05-19 6:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:25 I2C block read fixed size to 32 Andre Fisser
2005-05-19 6:25 ` Andre Fisser
2005-05-19 6:25 ` Mark Studebaker [this message]
2005-05-19 6:25 ` Andre Fisser
2005-05-19 6:25 ` Mark Studebaker
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=40CF853B.1050208@verizon.net \
--to=mds4@verizon.net \
--cc=lm-sensors@vger.kernel.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.