mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
pinctrl: disallow map table entries with NULL dev_name field
Hog entries are mapping table entries with .ctrl_dev_name == .dev_name. All other mapping table entries need .dev_name set so that they will match some pinctrl_get() call. All extant PIN_MAP*() macros set .dev_name. So, there is no reason to allow mapping table entries without .dev_name set. Update the code and documentation to disallow this. Signed-off-by: Stephen Warren <[email protected]> Acked-by: Dong Aisheng <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
f7b9006f45
commit
1681f5ae4c
3 changed files with 27 additions and 68 deletions
|
|
@ -494,14 +494,10 @@ Definitions:
|
|||
{"map-i2c0", i2c0, pinctrl0, fi2c0, gi2c0}
|
||||
}
|
||||
|
||||
Every map must be assigned a symbolic name, pin controller and function.
|
||||
The group is not compulsory - if it is omitted the first group presented by
|
||||
the driver as applicable for the function will be selected, which is
|
||||
useful for simple cases.
|
||||
|
||||
The device name is present in map entries tied to specific devices. Maps
|
||||
without device names are referred to as SYSTEM pinmuxes, such as can be taken
|
||||
by the machine implementation on boot and not tied to any specific device.
|
||||
Every map must be assigned a state name, pin controller, device and
|
||||
function. The group is not compulsory - if it is omitted the first group
|
||||
presented by the driver as applicable for the function will be selected,
|
||||
which is useful for simple cases.
|
||||
|
||||
It is possible to map several groups to the same combination of device,
|
||||
pin controller and function. This is for cases where a certain function on
|
||||
|
|
@ -983,8 +979,7 @@ after this you should be able to see this in the debugfs listing of all pins.
|
|||
System pin control hogging
|
||||
==========================
|
||||
|
||||
A system pin control map entry, i.e. a pin control setting that does not have
|
||||
a device associated with it, can be hogged by the core when the pin controller
|
||||
Pin control map entries can be hogged by the core when the pin controller
|
||||
is registered. This means that the core will attempt to call pinctrl_get() and
|
||||
pinctrl_enable() on it immediately after the pin control device has been
|
||||
registered.
|
||||
|
|
|
|||
Loading…
Reference in a new issue