All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Deucher <alexdeucher@gmail.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: Intel Graphics Development <intel-gfx@lists.freedesktop.org>,
	Thierry Reding <thierry.reding@gmail.com>,
	Maling list - DRI developers <dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH] drm/i915: support address only i2c-over-aux transactions
Date: Mon, 7 Apr 2014 10:35:56 -0400	[thread overview]
Message-ID: <CADnq5_PapteT1y+4qiNZLhcjVViNJ-W9DJd0OmyoSF5MM6Z-=A@mail.gmail.com> (raw)
In-Reply-To: <1396863445-30958-1-git-send-email-jani.nikula@intel.com>

On Mon, Apr 7, 2014 at 5:37 AM, Jani Nikula <jani.nikula@intel.com> wrote:
> To support bare address requests used by the drm dp helpers.
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
> ---
>
> Hi Alex, similar to Thierry's patch for i915.
>

Looks good to me.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

Do you want me to add this to the patch set?

Alex

> BR,
> Jani.
> ---
>  drivers/gpu/drm/i915/intel_dp.c |    7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
> index e48d47ced57b..b435d07fbc08 100644
> --- a/drivers/gpu/drm/i915/intel_dp.c
> +++ b/drivers/gpu/drm/i915/intel_dp.c
> @@ -575,7 +575,8 @@ out:
>         return ret;
>  }
>
> -#define HEADER_SIZE    4
> +#define BARE_ADDRESS_SIZE      3
> +#define HEADER_SIZE            (BARE_ADDRESS_SIZE + 1)
>  static ssize_t
>  intel_dp_aux_transfer(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg)
>  {
> @@ -592,7 +593,7 @@ intel_dp_aux_transfer(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg)
>         switch (msg->request & ~DP_AUX_I2C_MOT) {
>         case DP_AUX_NATIVE_WRITE:
>         case DP_AUX_I2C_WRITE:
> -               txsize = HEADER_SIZE + msg->size;
> +               txsize = msg->size ? HEADER_SIZE + msg->size : BARE_ADDRESS_SIZE;
>                 rxsize = 1;
>
>                 if (WARN_ON(txsize > 20))
> @@ -611,7 +612,7 @@ intel_dp_aux_transfer(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg)
>
>         case DP_AUX_NATIVE_READ:
>         case DP_AUX_I2C_READ:
> -               txsize = HEADER_SIZE;
> +               txsize = msg->size ? HEADER_SIZE : BARE_ADDRESS_SIZE;
>                 rxsize = msg->size + 1;
>
>                 if (WARN_ON(rxsize > 20))
> --
> 1.7.9.5
>

  reply	other threads:[~2014-04-07 14:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-07  8:37 [PATCH] drm/tegra: dp: Support address-only I2C-over-AUX transactions Thierry Reding
2014-04-07  9:37 ` [PATCH] drm/i915: support address only i2c-over-aux transactions Jani Nikula
2014-04-07 14:35   ` Alex Deucher [this message]
2014-04-07 20:00     ` Daniel Vetter
2014-04-08  6:58       ` Jani Nikula
2014-04-08  8:03         ` Daniel Vetter
2014-04-08 13:04           ` [Intel-gfx] " Alex Deucher
2014-04-08 13:09             ` Christian König
2014-04-08 13:11               ` Alex Deucher
2014-04-08 14:06 ` [PATCH] drm/tegra: dp: Support address-only I2C-over-AUX transactions Christian König
2014-04-08 20:47   ` Thierry Reding

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='CADnq5_PapteT1y+4qiNZLhcjVViNJ-W9DJd0OmyoSF5MM6Z-=A@mail.gmail.com' \
    --to=alexdeucher@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    --cc=thierry.reding@gmail.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.