lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VebBcLf5X9TVVdydVZD2wzeNgU=uQ+JLnKD1g4XwjWbAg@mail.gmail.com>
Date:   Fri, 19 Mar 2021 12:32:18 +0200
From:   Andy Shevchenko <andy.shevchenko@...il.com>
To:     Ran Wang <ran.wang_1@....com>
Cc:     Linus Walleij <linus.walleij@...aro.org>,
        Bartosz Golaszewski <bgolaszewski@...libre.com>,
        Michael Walle <michael@...le.cc>,
        "open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3] gpio: mpc8xxx: Add ACPI support

On Fri, Mar 19, 2021 at 10:10 AM Ran Wang <ran.wang_1@....com> wrote:
>
> Current implementation only supports DT, now add ACPI support.

Thanks for an update, my comments below.

...

> +#include <linux/acpi.h>

Missed
property.h
mod_devicetable.h.

...

> -       mpc8xxx_gc->regs = of_iomap(np, 0);
> +       mpc8xxx_gc->regs = devm_platform_ioremap_resource(pdev, 0);

>         if (!mpc8xxx_gc->regs)

This is wrong now.

>                 return -ENOMEM;

This too.

...

> +       fwnode = dev_fwnode(&pdev->dev);
>         if (of_device_is_compatible(np, "fsl,qoriq-gpio") ||
>             of_device_is_compatible(np, "fsl,ls1028a-gpio") ||
> -           of_device_is_compatible(np, "fsl,ls1088a-gpio"))
> +           of_device_is_compatible(np, "fsl,ls1088a-gpio") ||

> +           !(IS_ERR_OR_NULL(fwnode) || is_of_node(fwnode)))

Since you left acpi.h inclusion, you may switch this to

is_acpi_node(fwnode)

or drop fwnode and use

has_acpi_companion(&pdev->dev)

>                 gc->write_reg(mpc8xxx_gc->regs + GPIO_IBE, 0xffffffff);


-- 
With Best Regards,
Andy Shevchenko

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ