[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-gpio
Subject:    Re: [RFC PATCH 1/3] mfd: upboard: Add UP2 platform controller driver
From:       Linus Walleij <linus.walleij () linaro ! org>
Date:       2018-04-30 19:17:36
Message-ID: CACRpkdZWtxUh91RCjK=Sp7DxL4dCBN5Wein6MdTV=AT2Qg2rrA () mail ! gmail ! com
[Download RAW message or body]

On Mon, Apr 30, 2018 at 6:59 PM, Javier Arteaga <javier@emutex.com> wrote:

> I don't think that is straightforward as this isn't really I2C, only
> annoyingly close enough. Besides the lack of ACK, location of R/W bit
> and register width as already mentioned, there's also:
>
> - two separate lines for data reads and writes, and
> - sequence start signaling pulse on yet another line.

OK how typical.

(...)

> I agree - tweaking I2C code to allow for so many quirks feels wrong.
>
> @Linus: if we can't reuse i2c-gpio, would you consider this kind of
> generic approach a prerequisite for this patchset?

Nope. Go ahead with this, it was just some generic discussion.

We do not need to generalize until we find another one of these.

Acked-by: Linus Walleij <linus.walleij@linaro.org>

I like the code's use of GPIO descriptors.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic