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


Groups > linux.kernel > #1700671 > unrolled thread

Re: [PATCH 2/3] gpio: Add FT232H CBUS GPIO driver

Started byLinus Walleij <linus.walleij@linaro.org>
First post2017-08-01 08:50 +0200
Last post2017-08-07 11:30 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 2/3] gpio: Add FT232H CBUS GPIO driver Linus Walleij <linus.walleij@linaro.org> - 2017-08-01 08:50 +0200
    Re: [PATCH 2/3] gpio: Add FT232H CBUS GPIO driver Johan Hovold <johan@kernel.org> - 2017-08-01 11:30 +0200
      Re: [PATCH 2/3] gpio: Add FT232H CBUS GPIO driver Linus Walleij <linus.walleij@linaro.org> - 2017-08-07 11:30 +0200

#1700671 — Re: [PATCH 2/3] gpio: Add FT232H CBUS GPIO driver

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-08-01 08:50 +0200
SubjectRe: [PATCH 2/3] gpio: Add FT232H CBUS GPIO driver
Message-ID<u9za9-8fB-11@gated-at.bofh.it>
On Thu, Jul 6, 2017 at 10:49 PM, Anatolij Gustschin <agust@denx.de> wrote:

> Add driver for CBUS pins on FT232H. The driver supports setting
> GPIO direction and getting/setting CBUS 0-3 pin value. The CBUS
> pins have to be enabled by configuring I/O mode in the FTDI EEPROM.
>
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
(...)

> +       select GPIO_GENERIC

You do not seem to be using this.

> +#include <linux/gpio.h>

This include should not be needed. If it is, something is wrong.

> +#include <linux/gpio/driver.h>

Drivers should only include this.

> +#include <linux/platform_device.h>
> +#include <linux/slab.h>
> +#include <linux/types.h>
> +#include <linux/usb.h>

Why is this needed if the device is abstracted behind an MFD interface?

> +#include <linux/mfd/ftdi/ftdi.h>

I.e. this?

Apart from these small things it looks like a solid and nice driver,
do you plan to merge this into MFD or should I merge it? Since it depends
on the Kconfig symbol I guess I can merge it orthogonally if I am sure
Lee will pick the MFD part.

Yours,
Linus Walleij

[toc] | [next] | [standalone]


#1700789

FromJohan Hovold <johan@kernel.org>
Date2017-08-01 11:30 +0200
Message-ID<u9BF0-1GX-9@gated-at.bofh.it>
In reply to#1700671
On Tue, Aug 01, 2017 at 08:49:02AM +0200, Linus Walleij wrote:
> On Thu, Jul 6, 2017 at 10:49 PM, Anatolij Gustschin <agust@denx.de> wrote:
> 
> > Add driver for CBUS pins on FT232H. The driver supports setting
> > GPIO direction and getting/setting CBUS 0-3 pin value. The CBUS
> > pins have to be enabled by configuring I/O mode in the FTDI EEPROM.
> >
> > Signed-off-by: Anatolij Gustschin <agust@denx.de>

> Apart from these small things it looks like a solid and nice driver,
> do you plan to merge this into MFD or should I merge it? Since it depends
> on the Kconfig symbol I guess I can merge it orthogonally if I am sure
> Lee will pick the MFD part.

There are some fundamental problems with this series which prevents it
from being merged. Please take a look at the discussion following patch
1/3.

Thanks,
Johan

[toc] | [prev] | [next] | [standalone]


#1705294

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-08-07 11:30 +0200
Message-ID<ubMwi-6nu-25@gated-at.bofh.it>
In reply to#1700789
On Tue, Aug 1, 2017 at 11:24 AM, Johan Hovold <johan@kernel.org> wrote:
> On Tue, Aug 01, 2017 at 08:49:02AM +0200, Linus Walleij wrote:
>> On Thu, Jul 6, 2017 at 10:49 PM, Anatolij Gustschin <agust@denx.de> wrote:
>>
>> > Add driver for CBUS pins on FT232H. The driver supports setting
>> > GPIO direction and getting/setting CBUS 0-3 pin value. The CBUS
>> > pins have to be enabled by configuring I/O mode in the FTDI EEPROM.
>> >
>> > Signed-off-by: Anatolij Gustschin <agust@denx.de>
>
>> Apart from these small things it looks like a solid and nice driver,
>> do you plan to merge this into MFD or should I merge it? Since it depends
>> on the Kconfig symbol I guess I can merge it orthogonally if I am sure
>> Lee will pick the MFD part.
>
> There are some fundamental problems with this series which prevents it
> from being merged. Please take a look at the discussion following patch
> 1/3.

Allright it is on hold pending the MFD discussion.

Yours,
Linus Walleij

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web