All of lore.kernel.org
 help / color / mirror / Atom feed
From: Magnus Damm <magnus.damm@gmail.com>
To: Wolfram Sang <wsa@the-dreams.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Linux-I2C <linux-i2c@vger.kernel.org>,
	SH-Linux <linux-sh@vger.kernel.org>,
	Simon Horman <horms@verge.net.au>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
	Kuninori Morimoto <kuninori.morimoto.gx@gmail.com>
Subject: Re: [PATCH v2 05/10] i2c: rcar: refactor setup of a msg
Date: Wed, 18 Nov 2015 02:18:00 +0000	[thread overview]
Message-ID: <CANqRtoS0tFtjNcB=gP5xKNzMW2_41rxAydOcZM1+fOSjfCaM7w@mail.gmail.com> (raw)
In-Reply-To: <20151117070053.GA952@tetsubishi>

Hi Wolfram,

On Tue, Nov 17, 2015 at 4:00 PM, Wolfram Sang <wsa@the-dreams.de> wrote:
> Hi Laurent,
>
>> Sorry for bringing bad news, but as with v1, this patch breaks ADV7511
>> detection on my Koelsch board. Reverting it on top of the series fixes the
>> problem.
>
> In v1, patch 5/9 was breaking. I hope in v2, it is 6/10 and not 5/10 as
> you replied to (patch 1/10 is the new one)? This bug is strange enough,
> but 5/10 breaking would be extremly crazy.
>
>> You'll find the dmesg and trace logs with your debugging patch applied
>> attached to this e-mail in two versions, one with the whole series applied (-
>> bad) and one with this patch additionally reverted on top of the series (-
>> good).
>
> Thanks for doing this. I'll think about it some more, but it may be that
> I am running out of ideas without being able to connect a scope. Would
> it be possible to exchange our Koelsch and Lager boards for a while? Or
> is your multimedia work Koelsch dependant?

Swapping boards is of course one option, but shouldn't it also be
possible to reproduce the issue by creating a similar hardware setup
using loopback adapters? The problem is that you cannot reproduce it
on your current hardware, right?

Judging by the Koelsch schematics port EXIO_C has GP6_22/GP6_23 routed
as SD2_CD_3/SC2_WP_3 that may be possible to repurpose as
IIC1_SCL_C/IIC1_SDA_C. So if you want to try an IIC master device on
Koeslch with the I2C2 devices that hold the ADV7511 chip then you
should be able to use those ZEBAX adapters and loopback wires. If you
want to sniff the I2C2 signals on Koelsch then the I2C2 bus is exposed
to EXIO_A and EXIO_D.

On Lager it seems that the GP5_5/GP_6 pins with the I2C2 bus for the
ADV7511 chip has more flexible configuration, so using either IIC or
I2C should be possible. You can sample those pins on EXIO_A with the
ZEBAX break out adapter.

And either way you should be able to compare the results of the I2C
and IIC masters with GPIO using the bitbang implementation.

Feel free to let me know exactly what the problem is and I will do my
best to help you out!

Thanks,

/ magnus

WARNING: multiple messages have this Message-ID (diff)
From: Magnus Damm <magnus.damm@gmail.com>
To: Wolfram Sang <wsa@the-dreams.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Linux-I2C <linux-i2c@vger.kernel.org>,
	SH-Linux <linux-sh@vger.kernel.org>,
	Simon Horman <horms@verge.net.au>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
	Kuninori Morimoto <kuninori.morimoto.gx@gmail.com>
Subject: Re: [PATCH v2 05/10] i2c: rcar: refactor setup of a msg
Date: Wed, 18 Nov 2015 11:18:00 +0900	[thread overview]
Message-ID: <CANqRtoS0tFtjNcB=gP5xKNzMW2_41rxAydOcZM1+fOSjfCaM7w@mail.gmail.com> (raw)
In-Reply-To: <20151117070053.GA952@tetsubishi>

Hi Wolfram,

On Tue, Nov 17, 2015 at 4:00 PM, Wolfram Sang <wsa@the-dreams.de> wrote:
> Hi Laurent,
>
>> Sorry for bringing bad news, but as with v1, this patch breaks ADV7511
>> detection on my Koelsch board. Reverting it on top of the series fixes the
>> problem.
>
> In v1, patch 5/9 was breaking. I hope in v2, it is 6/10 and not 5/10 as
> you replied to (patch 1/10 is the new one)? This bug is strange enough,
> but 5/10 breaking would be extremly crazy.
>
>> You'll find the dmesg and trace logs with your debugging patch applied
>> attached to this e-mail in two versions, one with the whole series applied (-
>> bad) and one with this patch additionally reverted on top of the series (-
>> good).
>
> Thanks for doing this. I'll think about it some more, but it may be that
> I am running out of ideas without being able to connect a scope. Would
> it be possible to exchange our Koelsch and Lager boards for a while? Or
> is your multimedia work Koelsch dependant?

Swapping boards is of course one option, but shouldn't it also be
possible to reproduce the issue by creating a similar hardware setup
using loopback adapters? The problem is that you cannot reproduce it
on your current hardware, right?

Judging by the Koelsch schematics port EXIO_C has GP6_22/GP6_23 routed
as SD2_CD_3/SC2_WP_3 that may be possible to repurpose as
IIC1_SCL_C/IIC1_SDA_C. So if you want to try an IIC master device on
Koeslch with the I2C2 devices that hold the ADV7511 chip then you
should be able to use those ZEBAX adapters and loopback wires. If you
want to sniff the I2C2 signals on Koelsch then the I2C2 bus is exposed
to EXIO_A and EXIO_D.

On Lager it seems that the GP5_5/GP_6 pins with the I2C2 bus for the
ADV7511 chip has more flexible configuration, so using either IIC or
I2C should be possible. You can sample those pins on EXIO_A with the
ZEBAX break out adapter.

And either way you should be able to compare the results of the I2C
and IIC masters with GPIO using the bitbang implementation.

Feel free to let me know exactly what the problem is and I will do my
best to help you out!

Thanks,

/ magnus

  parent reply	other threads:[~2015-11-18  2:18 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-12 14:31 [PATCH v2 00/10] i2c: rcar: tackle race conditions in the driver Wolfram Sang
2015-11-12 14:31 ` Wolfram Sang
2015-11-12 14:31 ` [PATCH v2 01/10] i2c: rcar: make sure clocks are on when doing clock calculation Wolfram Sang
2015-11-12 14:31   ` Wolfram Sang
2015-11-12 19:16   ` Sergei Shtylyov
2015-11-12 19:16     ` Sergei Shtylyov
2015-11-12 14:31 ` [PATCH v2 02/10] i2c: rcar: rework hw init Wolfram Sang
2015-11-12 14:31   ` Wolfram Sang
2015-11-12 14:31 ` [PATCH v2 03/10] i2c: rcar: remove unused IOERROR state Wolfram Sang
2015-11-12 14:31   ` Wolfram Sang
2015-11-12 14:31 ` [PATCH v2 04/10] i2c: rcar: remove spinlock Wolfram Sang
2015-11-12 14:31   ` Wolfram Sang
2015-11-12 15:04   ` Sergei Shtylyov
2015-11-12 15:04     ` Sergei Shtylyov
2015-11-12 15:52     ` Wolfram Sang
2015-11-12 15:52       ` Wolfram Sang
2015-11-12 14:31 ` [PATCH v2 05/10] i2c: rcar: refactor setup of a msg Wolfram Sang
2015-11-12 14:31   ` Wolfram Sang
2015-11-16 21:02   ` Laurent Pinchart
2015-11-16 21:02     ` Laurent Pinchart
2015-11-17  7:00     ` Wolfram Sang
2015-11-17  7:00       ` Wolfram Sang
2015-11-17  7:38       ` Laurent Pinchart
2015-11-17  7:38         ` Laurent Pinchart
2015-11-18  7:31         ` Wolfram Sang
2015-11-18  7:31           ` Wolfram Sang
2015-11-18  2:18       ` Magnus Damm [this message]
2015-11-18  2:18         ` Magnus Damm
2015-11-18  6:45         ` Laurent Pinchart
2015-11-18  6:45           ` Laurent Pinchart
2015-11-18  8:07         ` Wolfram Sang
2015-11-18  8:07           ` Wolfram Sang
2015-11-18  8:17           ` Magnus Damm
2015-11-18  8:17             ` Magnus Damm
2015-11-12 14:31 ` [PATCH v2 06/10] i2c: rcar: init new messages in irq Wolfram Sang
2015-11-12 14:31   ` Wolfram Sang
2015-11-13  2:12 ` [PATCH v2 00/10] i2c: rcar: tackle race conditions in the driver Kuninori Morimoto

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='CANqRtoS0tFtjNcB=gP5xKNzMW2_41rxAydOcZM1+fOSjfCaM7w@mail.gmail.com' \
    --to=magnus.damm@gmail.com \
    --cc=geert@linux-m68k.org \
    --cc=horms@verge.net.au \
    --cc=kuninori.morimoto.gx@gmail.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=wsa@the-dreams.de \
    --cc=yoshihiro.shimoda.uh@renesas.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.