You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
staging: wilc1000: handle power sequence when pins are not in DT
In case pins are not present in DT bindings for WILC devices the
driver had some default pins: GPIO_NUM_RESET, GPIO_NUM_CHIP_EN.
In case power pins were not located in device tree on WILC node
the driver tried to request the default pins. But these pins were
general and valid only on SAMA5D4 Xplained board. The patch changed
this approach as follows:
1/ driver is checking if power seqeunce driver is used: if yes then
it will not request DT pins and power up/down would be handled by
MMC subsystem via pwrseq driver, using pm_runtime_* calls in
wilc_sdio_init(), wilc_sdio_deinit() functions. In case power
sequence driver is not used the wilc_wlan_power() is called.
2/ if power sequence driver is not present the driver will scan
for power pins in device tree on its node. If it doens't locate
any new pins and it is running on SAMA5D4 Xplained the SAMA5D4
Xplained specific pins are used. This is necessary for backward
compatibility with old DTs that doesn't provide these pins.
3/ If none of the above are true the driver probe will fail.
The code in netdev.c under KERNEL_VERSION(3, 13, 0) should not be
necessary anymore as the replacements done in wilc_of_parse_power_pins()
and wilc_wlan_power() should guarantee backward compatibility.
0 commit comments