]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: single: Fix probe failure getting register area size
authorVignesh Raghavendra <vigneshr@ti.com>
Fri, 7 May 2021 09:10:34 +0000 (14:40 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 26 May 2021 21:26:07 +0000 (17:26 -0400)
commit1e7879045f6c20f68ce2c6fcce7ec187e8844b51
tree1112527a43741a74bd5d37733e27cc10851e465d
parentf4b2786b80583c8b48245ac5f90fda47328f3a6c
pinctrl: single: Fix probe failure getting register area size

If reg property of pinctrl-single node requires address translation then
probe fails with following message:

single-pinctrl pinctrl@4301c000: failed to get base register size

This is because driver uses dev_read_addr_size() to get size which also
tries to fetch untranslated addr and fails.
Fix this by using dev_read_addr_size_index() which takes care of address
translation and also makes following dev_read_addr() call redundant.

This fixes Ethernet failures on TI's AM654 based EVMs due to lack of
pinmux configuration.

Fixes: 9fd8a430f3 ("pinctrl: single: get register area size by device API")
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
drivers/pinctrl/pinctrl-single.c