Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1587215

Re: [PATCH] drm: bridge: dw-hdmi: support i2c extended read mode

From Doug Anderson <dianders@chromium.org>
Newsgroups linux.kernel
Subject Re: [PATCH] drm: bridge: dw-hdmi: support i2c extended read mode
Date 2017-02-24 02:00 +0100
Message-ID <tecoN-FJ-1@gated-at.bofh.it> (permalink)
References <tdzQt-6EM-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

On Tue, Feb 21, 2017 at 11:45 PM, Nickey Yang
<nickey.yang@rock-chips.com> wrote:
> "I2C Master Interface Extended Read Mode" implements a segment
> pointer-based read operation using the Special Register configuration.
>
> This patch fix https://patchwork.kernel.org/patch/7098101/ mentioned
> "The current implementation does not support "I2C Master Interface
> Extended Read Mode" to read data addressed by non-zero segment
> pointer, this means that if EDID has more than 1 extension blocks"
>
> With this patch,dw-hdmi can read EDID data with 1/2/4 blocks.
>
> Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
> ---
>  drivers/gpu/drm/bridge/dw-hdmi.c | 38 ++++++++++++++++++++++++--------------
>  1 file changed, 24 insertions(+), 14 deletions(-)

I don't have any deep expertise on how the DW HDMI's i2c controller is
supposed to work and the truly correct way to specify the segment
address.  However, this looks fairly sane to me and review feedback I
provided on http://crosreview.com/442308 has been addressed.

I would agree that this appears to handle the types of messages that
the kernel seems to construct, basically noticing the first write to
DDC_SEGMENT_ADDR and stashing the data that the kernel provides in
HDMI_I2CM_SEGPTR.  It then tells dw-hdmi to do a
HDMI_I2CM_OPERATION_READ_EXT instead of HDMI_I2CM_OPERATION_READ.

Anyway, presuming that's the right way to tell dw-hdmi, I'd say:

Reviewed-by: Douglas Anderson <dianders@chromium.org>

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] drm: bridge: dw-hdmi:  support i2c extended read mode Nickey Yang <nickey.yang@rock-chips.com> - 2017-02-22 08:50 +0100
  Re: [PATCH] drm: bridge: dw-hdmi: support i2c extended read mode Jose Abreu <Jose.Abreu@synopsys.com> - 2017-02-22 11:00 +0100
    Re: [PATCH] drm: bridge: dw-hdmi: support i2c extended read mode "Nickey.Yang" <nickey.yang@rock-chips.com> - 2017-02-22 12:20 +0100
  Re: [PATCH] drm: bridge: dw-hdmi: support i2c extended read mode Doug Anderson <dianders@chromium.org> - 2017-02-24 02:00 +0100

csiph-web