Re: [PATCH 1/2] x86: gpio: AMD G-Series pch gpio platform driver

2019-02-20 Thread Linus Walleij
On Thu, Feb 14, 2019 at 10:56 AM Enrico Weigelt, metux IT consult wrote: > On 08.02.19 15:25, Linus Walleij wrote: > > >> +config GPIO_AMD_FCH > >> + tristate "GPIO support for AMD Fusion Controller Hub (G-series > >> SOCs)" > >> + select GPIO_GENERIC > > > > You are selecting

Re: [PATCH 1/2] x86: gpio: AMD G-Series pch gpio platform driver

2019-02-14 Thread Enrico Weigelt, metux IT consult
On 08.02.19 15:25, Linus Walleij wrote: Hi, >> +config GPIO_AMD_FCH >> + tristate "GPIO support for AMD Fusion Controller Hub (G-series SOCs)" >> + select GPIO_GENERIC > > You are selecting GPIO_GENERIC, is this necessary? I thought > X86 was already selecting this. Doesn't look so

Re: [PATCH 1/2] x86: gpio: AMD G-Series pch gpio platform driver

2019-02-14 Thread Enrico Weigelt, metux IT consult
On 13.02.19 10:02, Linus Walleij wrote: Hi, > What we normally do is expose all the lines from a gpio chip> as kernel > abstraction.> > This is because at least in theory this chip can be used by> several boards. I'm afraid it's a bit more complicated. The register set doesn't seem to be

Re: [PATCH 1/2] x86: gpio: AMD G-Series pch gpio platform driver

2019-02-13 Thread Linus Walleij
On Mon, Feb 11, 2019 at 11:46 AM Enrico Weigelt, metux IT consult wrote: > On 08.02.19 15:25, Linus Walleij wrote: > >> +/*>> + * struct amd_fch_gpio_reg - GPIO register definition>> + * @reg: > register index>> + * @name: signal name>> + */>> +struct > amd_fch_gpio_reg {>> +int

Re: [PATCH 1/2] x86: gpio: AMD G-Series pch gpio platform driver

2019-02-11 Thread Enrico Weigelt, metux IT consult
On 08.02.19 15:25, Linus Walleij wrote: Hi, >> +/*>> + * struct amd_fch_gpio_reg - GPIO register definition>> + * @reg: register index>> + * @name: signal name>> + */>> +struct amd_fch_gpio_reg {>> +int reg;>> +const char* name;>> +};> > Can't you put this in the driver file?

Re: [PATCH 1/2] x86: gpio: AMD G-Series pch gpio platform driver

2019-02-08 Thread Joe Perches
On Fri, 2019-02-08 at 15:25 +0100, Linus Walleij wrote: > > +/* > > + * GPIO driver for the AMD G series FCH (eg. GX-412TC) > > + * > > + * Copyright (C) 2018 metux IT consult > > + * Author: Enrico Weigelt > > + * > > + * SPDX-License-Identifier: GPL+ > > + */ > > I think checkpatch will

Re: [PATCH 1/2] x86: gpio: AMD G-Series pch gpio platform driver

2019-02-08 Thread Andy Shevchenko
On Fri, Feb 8, 2019 at 4:26 PM Linus Walleij wrote: > > Hi Enrico! > > Thanks for your patch! I would really like Andy to have a look at it > too, he's more on top of things in the x86 world. Seems that is the same version sent twice. I already gave a long review on it. -- With Best Regards,

Re: [PATCH 1/2] x86: gpio: AMD G-Series pch gpio platform driver

2019-02-08 Thread Linus Walleij
Hi Enrico! Thanks for your patch! I would really like Andy to have a look at it too, he's more on top of things in the x86 world. On Fri, Feb 8, 2019 at 2:16 AM Enrico Weigelt, metux IT consult wrote: > From: "Enrico Weigelt, metux IT consult" > > GPIO platform driver for the AMD G-series PCH

Re: [PATCH 1/2] x86: gpio: AMD G-Series pch gpio platform driver

2019-02-08 Thread Enrico Weigelt, metux IT consult
On 07.02.19 19:06, Andy Shevchenko wrote: Hi, > Overall I have a feeling that this driver can be replaced with> existing > generic one where one register per pin is allocated.> Unfortunately, I didn't look deep into this and hope Linus will help> to figure this out. this also was my first

[PATCH 1/2] x86: gpio: AMD G-Series pch gpio platform driver

2019-02-07 Thread Enrico Weigelt, metux IT consult
From: "Enrico Weigelt, metux IT consult" GPIO platform driver for the AMD G-series PCH (eg. on GX-412TC) This driver doesn't registers itself automatically, as it needs to be provided with platform specific configuration, provided by some board driver setup code. Didn't implement oftree

Re: [PATCH 1/2] x86: gpio: AMD G-Series pch gpio platform driver

2019-02-07 Thread Andy Shevchenko
On Thu, Feb 7, 2019 at 7:14 PM Enrico Weigelt, metux IT consult wrote: > > GPIO platform driver for the AMD G-series PCH (eg. on GX-412TC) > > This driver doesn't registers itself automatically, as it needs to > be provided with platform specific configuration, provided by some > board driver

[PATCH 1/2] x86: gpio: AMD G-Series pch gpio platform driver

2019-02-07 Thread Enrico Weigelt, metux IT consult
GPIO platform driver for the AMD G-series PCH (eg. on GX-412TC) This driver doesn't registers itself automatically, as it needs to be provided with platform specific configuration, provided by some board driver setup code. Didn't implement oftree probing yet, as it's rarely found on x86.