All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfram Sang <wsa@kernel.org>
To: Marek Behun <marek.behun@nic.cz>
Cc: "Russell King - ARM Linux admin" <linux@armlinux.org.uk>,
	"Andrew Lunn" <andrew@lunn.ch>,
	netdev@vger.kernel.org, "Pali Rohár" <pali@kernel.org>,
	linux-i2c@vger.kernel.org
Subject: Re: question about i2c_transfer() function (regarding mdio-i2c on RollBall SFPs)
Date: Thu, 7 Jan 2021 22:02:48 +0100	[thread overview]
Message-ID: <20210107210248.GA894@kunai> (raw)
In-Reply-To: <20210107192500.54d2d0f0@nic.cz>

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


> My question is whether this is allowed, whether the msgs array passed
> to the i2c_transfer() function can have multiple msgs pointing to the
> same buffer (the one into which the original page is first stored
> with first i2c_msg and then restored from it in the last i2c_msg).

Sending the messages is serialized, so the buffers won't interfere. At
first glance, I think it would work this way. But it's late evening
here, so I will have another look again tomorrow.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2021-01-07 21:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-07 18:25 question about i2c_transfer() function (regarding mdio-i2c on RollBall SFPs) Marek Behun
2021-01-07 21:02 ` Wolfram Sang [this message]
2021-01-07 21:42   ` Marek Behun
2021-01-08  8:40     ` Wolfram Sang

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=20210107210248.GA894@kunai \
    --to=wsa@kernel.org \
    --cc=andrew@lunn.ch \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=marek.behun@nic.cz \
    --cc=netdev@vger.kernel.org \
    --cc=pali@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.