From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: Alex Deucher <alexander.deucher@amd.com>,
Jani Nikula <jani.nikula@intel.com>,
treding@nvidia.com, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 3/4] drm/dp/i2c: Update comments about common i2c over dp assumptions
Date: Fri, 4 Apr 2014 21:47:05 +0300 [thread overview]
Message-ID: <20140404184704.GB4481@intel.com> (raw)
In-Reply-To: <1396633926-10403-4-git-send-email-alexander.deucher@amd.com>
On Fri, Apr 04, 2014 at 01:52:05PM -0400, Alex Deucher wrote:
> If you are using the common dp over i2c functionality, it is
> asumed that the aux transfer function does not modify the any
> of the msg structure other than the reply field. Doing so
> breaks the logic in the common code.
>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Cc: Jani Nikula <jani.nikula@intel.com>
> Cc: Thierry Reding <treding@nvidia.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> drivers/gpu/drm/drm_dp_helper.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c
> index 125f84d..7a8c091 100644
> --- a/drivers/gpu/drm/drm_dp_helper.c
> +++ b/drivers/gpu/drm/drm_dp_helper.c
> @@ -577,7 +577,9 @@ static u32 drm_dp_i2c_functionality(struct i2c_adapter *adapter)
>
> /*
> * Transfer a single I2C-over-AUX message and handle various error conditions,
> - * retrying the transaction as appropriate.
> + * retrying the transaction as appropriate. It is assumed that the
> + * aux->transfer function does not modify anything in the msg other than the
> + * reply field.
> */
> static int drm_dp_i2c_do_msg(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg)
> {
> --
> 1.8.3.1
--
Ville Syrjälä
Intel OTC
next prev parent reply other threads:[~2014-04-04 18:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-04 17:52 [PATCH 0/4] Reset i2c connection between xfers (v2) Alex Deucher
2014-04-04 17:52 ` [PATCH 1/4] drm/radeon/dp: handle zero sized i2c over aux transactions Alex Deucher
2014-04-04 17:52 ` [PATCH 2/4] drm/dp/i2c: send bare addresses to properly reset i2c connections (v2) Alex Deucher
2014-04-04 18:46 ` Ville Syrjälä
2014-04-04 17:52 ` [PATCH 3/4] drm/dp/i2c: Update comments about common i2c over dp assumptions Alex Deucher
2014-04-04 18:47 ` Ville Syrjälä [this message]
2014-04-04 17:52 ` [PATCH 4/4] drm/radeon/dp: switch to the common i2c over aux code Alex Deucher
-- strict thread matches above, loose matches on Subject: below --
2014-04-04 19:58 [PATCH 0/4] Reset i2c connection between xfers (v3) Alex Deucher
2014-04-04 19:58 ` [PATCH 3/4] drm/dp/i2c: Update comments about common i2c over dp assumptions Alex Deucher
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=20140404184704.GB4481@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=alexander.deucher@amd.com \
--cc=alexdeucher@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=treding@nvidia.com \
/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.