linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Driver-Support of I2C_M_RECV_LEN
@ 2014-06-20 12:03 Michael Post
       [not found] ` <53A42321.5020701-S0/GAf8tV78@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Post @ 2014-06-20 12:03 UTC (permalink / raw)
  To: linux-i2c-u79uwXL29TY76Z2rM5mHXA

Hello,

in the documentation i found at
http://ww2.cs.fsu.edu/~rosentha/linux/2.6.26.5/docs/DocBook/kernel-api/re1222.html
the following sentence:

"Note that using this function requires that the client's adapter
support the I2C_FUNC_SMBUS_READ_BLOCK_DATA functionality. Not all
adapter drivers support this; its emulation through I2C messaging relies
on a specific mechanism (I2C_M_RECV_LEN) which may not be implemented."

The second sentence says that the mechanism I2C_M_RECV_LEN is not all
over implemented.

How i can figure out whether this mechanism will be provided of my driver?
What is the alternative of using the function i2c_smbus_read_block_data?

Thanks a lot for your support,

Michael Post

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Driver-Support of I2C_M_RECV_LEN
       [not found] ` <53A42321.5020701-S0/GAf8tV78@public.gmane.org>
@ 2014-07-04  7:38   ` Michael Post
  2014-07-04  7:39   ` Michael Post
  2014-07-04  7:58   ` Wolfram Sang
  2 siblings, 0 replies; 4+ messages in thread
From: Michael Post @ 2014-07-04  7:38 UTC (permalink / raw)
  To: linux-i2c-u79uwXL29TY76Z2rM5mHXA

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello together,

Am 20.06.14 14:03, schrieb Michael Post:
> Hello,
> 
> in the documentation i found at 
> http://ww2.cs.fsu.edu/~rosentha/linux/2.6.26.5/docs/DocBook/kernel-api/re1222.html
>
> 
the following sentence:
> 
> "Note that using this function requires that the client's adapter 
> support the I2C_FUNC_SMBUS_READ_BLOCK_DATA functionality. Not all 
> adapter drivers support this; its emulation through I2C messaging
> relies on a specific mechanism (I2C_M_RECV_LEN) which may not be
> implemented."
> 
> The second sentence says that the mechanism I2C_M_RECV_LEN is not
> all over implemented.
> 
> How i can figure out whether this mechanism will be provided of my
> driver? What is the alternative of using the function
> i2c_smbus_read_block_data?
> 

does nobody has any clue or hints for me?
Maybe there is an other mailinglist i can ask?

Thanks a lot,

Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCgAGBQJTtln2AAoJEFF6fE6T32A87NkH/3f2pslue7/oYiIiZ8PlKway
C9hOI02EEX0Z+sxB31ZTMyis2VxGFmZ3VGp4sSpiPv2iK9huMYmeVV0a2a+J0MLg
wmObCFRUZVN85lLqau+nEuqNMHSVYpYedHovC3Ui3rTHZNDM3pWJSDBy5dFG57d2
TE6Jae6Q31/hRn8gq106XmRdtYgKmzCfmfjRwYyBt0tYH2vQ43xhJQ3zGZCuKJ5O
xjY4em5jLWv+oiWi/HAkXFqfC4GskklBcn77K9TDEuw+oXkeF8Re4JPmvOBKxrQA
O+a246FVyyrKHs7VKXXAORX+Ty/q2QtP+dbFk9M0Uo0M0Xi17QhJ8TsUwQViFV4=
=gIOJ
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Driver-Support of I2C_M_RECV_LEN
       [not found] ` <53A42321.5020701-S0/GAf8tV78@public.gmane.org>
  2014-07-04  7:38   ` Michael Post
@ 2014-07-04  7:39   ` Michael Post
  2014-07-04  7:58   ` Wolfram Sang
  2 siblings, 0 replies; 4+ messages in thread
From: Michael Post @ 2014-07-04  7:39 UTC (permalink / raw)
  To: linux-i2c-u79uwXL29TY76Z2rM5mHXA

Hello together,

Am 20.06.14 14:03, schrieb Michael Post:
> Hello,
> 
> in the documentation i found at
> http://ww2.cs.fsu.edu/~rosentha/linux/2.6.26.5/docs/DocBook/kernel-api/re1222.html
> the following sentence:
> 
> "Note that using this function requires that the client's adapter
> support the I2C_FUNC_SMBUS_READ_BLOCK_DATA functionality. Not all
> adapter drivers support this; its emulation through I2C messaging relies
> on a specific mechanism (I2C_M_RECV_LEN) which may not be implemented."
> 
> The second sentence says that the mechanism I2C_M_RECV_LEN is not all
> over implemented.
> 
> How i can figure out whether this mechanism will be provided of my driver?
> What is the alternative of using the function i2c_smbus_read_block_data?

does nobody has any clue or hints for me?
Maybe there is an other mailinglist i can ask?

Thanks a lot,

Michael

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Driver-Support of I2C_M_RECV_LEN
       [not found] ` <53A42321.5020701-S0/GAf8tV78@public.gmane.org>
  2014-07-04  7:38   ` Michael Post
  2014-07-04  7:39   ` Michael Post
@ 2014-07-04  7:58   ` Wolfram Sang
  2 siblings, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2014-07-04  7:58 UTC (permalink / raw)
  To: Michael Post; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

Hi,

> How i can figure out whether this mechanism will be provided of my driver?

Use i2c_get_functionality() and check for
I2C_FUNC_SMBUS_READ_BLOCK_DATA (or look at the source code).

> What is the alternative of using the function i2c_smbus_read_block_data?

That depends solely on your slave device. Check the documentation what
transfer types it supports and what alternatives are possible.

Regards,

   Wolfram

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-04  7:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-20 12:03 Driver-Support of I2C_M_RECV_LEN Michael Post
     [not found] ` <53A42321.5020701-S0/GAf8tV78@public.gmane.org>
2014-07-04  7:38   ` Michael Post
2014-07-04  7:39   ` Michael Post
2014-07-04  7:58   ` Wolfram Sang

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).