[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VdFJUNOtRyCNEGnvoOCZYoPvyhjC15_iC72JD-1sOavwA@mail.gmail.com>
Date: Mon, 18 May 2020 17:55:51 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Jonathan Albrieux <jonathan.albrieux@...il.com>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@...r.kernel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Hartmut Knaack <knaack.h@....de>,
Jonathan Cameron <Jonathan.Cameron@...wei.com>,
Lars-Peter Clausen <lars@...afoo.de>,
Linus Walleij <linus.walleij@...aro.org>,
"open list:IIO SUBSYSTEM AND DRIVERS" <linux-iio@...r.kernel.org>,
Peter Meerwald-Stadler <pmeerw@...erw.net>,
Steve Winslow <swinslow@...il.com>,
Thomas Gleixner <tglx@...utronix.de>,
Jonathan Cameron <jic23@...nel.org>
Subject: Re: [PATCH 3/3] iio: magnetometer: ak8975: Add gpio reset support
On Mon, May 18, 2020 at 4:38 PM Jonathan Albrieux
<jonathan.albrieux@...il.com> wrote:
> + gpiod_set_value_cansleep(data->reset_gpiod, 1);
(1)
...
> + /*
> + * If reset pin is provided then will be set to high on power on
> + * and to low on power off according to AK09911 datasheet
> + */
Wording is confusing, perhaps you have to use 'asserted / deasserted'.
Btw, in (1) it's also "high" (asserted). I barely understand how it's
supposed to work in all cases?
> + reset_gpiod = devm_gpiod_get_optional(&client->dev,
> + "reset", GPIOD_OUT_HIGH);
> + if (IS_ERR(reset_gpiod))
> + return PTR_ERR(reset_gpiod);
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists