Skip to content
Commit f23f1516 authored by Shiraz Hashim's avatar Shiraz Hashim Committed by Linus Walleij
Browse files

gpiolib: provide provision to register pin ranges

pinctrl subsystem needs gpio chip base to prepare set of gpio
pin ranges, which a given pinctrl driver can handle. This is
important to handle pinctrl gpio request calls in order to
program a given pin properly for gpio operation.

As gpio base is allocated dynamically during gpiochip
registration, presently there exists no clean way to pass this
information to the pinctrl subsystem.

After few discussions from [1], it was concluded that may be
gpio controller reporting the pin range it supports, is a
better way than pinctrl subsystem directly registering it.

[1] http://comments.gmane.org/gmane.linux.ports.arm.kernel/184816



Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarShiraz Hashim <shiraz.hashim@st.com>
[Edited documentation a bit]
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 7e10ee68
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment