[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOZdJXU=p0kz0PNhP8KwCQ0o7TuM=z2SvEz4b60_KveCrT7zPA@mail.gmail.com>
Date: Fri, 5 Oct 2018 11:54:03 -0500
From: Timur Tabi <timur@...nel.org>
To: Jeffrey Hugo <jhugo@...eaurora.org>
Cc: Ricardo Ribalda Delgado <ricardo.ribalda@...il.com>,
Linus <linus.walleij@...aro.org>, Timur Tabi <timur@...nel.org>,
Stephen Boyd <swboyd@...omium.org>,
linux-gpio <linux-gpio@...r.kernel.org>,
lkml <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v5 3/3] gpiolib: Show correct direction from the beginning
On 10/05/2018 11:17 AM, Jeffrey Hugo wrote:>
> Looks like the driver is initing just fine to me. Is setting up the
> jumpers and running gpio-test warranted?
Well, that test only makes sure that input/output is actually working
on the hardware level, but it also makes sure that the GPIOs are
numbered correctly.
If you want, just put a printk(... offset) in msm_gpio_get() and read
from a GPIO that you know you have access to, and make sure the
'offset' is correct.
Then try reading from a GPIO that you don't have access to, and make
sure you get a failure before msm_gpio_get() is called.
Powered by blists - more mailing lists