[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VdKpa6uybM3njYO=qZZDC5oj4kbajPPdGqXcVKyZKUWcQ@mail.gmail.com>
Date: Tue, 10 Apr 2018 17:38:52 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: "H. Nikolaus Schaller" <hns@...delico.com>
Cc: Kumar Gala <galak@...eaurora.org>,
Rob Herring <robh+dt@...nel.org>,
Pawel Moll <pawel.moll@....com>,
Mark Rutland <mark.rutland@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Linus Walleij <linus.walleij@...aro.org>,
Alexandre Courbot <gnurou@...il.com>,
devicetree <devicetree@...r.kernel.org>,
"open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Discussions about the Letux Kernel
<letux-kernel@...nphoenux.org>, kernel@...a-handheld.com
Subject: Re: [PATCH v2 1/5] gpio: pca953x: set the PCA_PCAL flag also when
matching by DT
On Wed, Apr 4, 2018 at 10:00 PM, H. Nikolaus Schaller <hns@...delico.com> wrote:
> The of_device_table is missing the PCA_PCAL flag so the
> pcal6524 would be operated in tca6424 compatibility mode which
> does not handle the new interrupt mask registers.
>
Reported-by or Suggested-by?
> Signed-off-by: H. Nikolaus Schaller <hns@...delico.com>
> ---
> drivers/gpio/gpio-pca953x.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c
> index d2ead4b1cf61..4a075619b93e 100644
> --- a/drivers/gpio/gpio-pca953x.c
> +++ b/drivers/gpio/gpio-pca953x.c
> @@ -936,8 +936,10 @@ static const struct of_device_id pca953x_dt_ids[] = {
> { .compatible = "nxp,pca9575", .data = OF_957X(16, PCA_INT), },
> { .compatible = "nxp,pca9698", .data = OF_953X(40, 0), },
>
> - { .compatible = "nxp,pcal6524", .data = OF_953X(24, PCA_INT), },
> - { .compatible = "nxp,pcal9555a", .data = OF_953X(16, PCA_INT), },
> + { .compatible = "nxp,pcal6524", .data = OF_953X(24, PCA_INT |
> + PCA_PCAL), },
> + { .compatible = "nxp,pcal9555a", .data = OF_953X(16, PCA_INT |
> + PCA_PCAL), },
>
> { .compatible = "maxim,max7310", .data = OF_953X( 8, 0), },
> { .compatible = "maxim,max7312", .data = OF_953X(16, PCA_INT), },
> --
> 2.12.2
>
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists