Hello Ye Li,

Am 10.06.2020 um 05:29 schrieb Ye Li:
Current driver calls the devfdt_get_addr to get the base address
of lpi2c controller in each sub-functions. Since the devfdt_get_addr
accesses the DTB and translate the address, it introduces much
overhead.
Improve the codes to use private variable which has recorded the
base address from probe.

Signed-off-by: Ye Li <[email protected]>
Reviewed-by: Peng Fan <[email protected]>
---
  drivers/i2c/imx_lpi2c.c | 22 +++++++++++-----------
  1 file changed, 11 insertions(+), 11 deletions(-)

Applied to u-boot-i2c.git master

Thanks!

bye,
Heiko

--
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: [email protected]

Reply via email to