allwinner: Clean up PMIC-related error handling
- Check the return value from sunxi_init_platform_r_twi().
- Print the PMIC banner before doing anything that might fail.
- Remove double prefixes in error messages.
- Consistently omit the trailing period.
- No need to print the unknown SoC's ID, since we already did that
  earlier in bl31_platform_setup().
- On the other hand, do print the ID of the unknown PMIC.
- Try to keep the messages concise, as the large string size in these
  files was causing the firmware to spill into the next page.
- Downgrade the banner from NOTICE to INFO. It's purely informational,
  and people should be using debug builds on untested hardware anyway.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Change-Id: Ib909408a5fdaebe05470fbce48d245dd0bf040eb
1 parent c0e109f commit 4538c4983b2f64160afcbe7a4d36b0810b1c430c
@Samuel Holland Samuel Holland authored on 20 Oct 2019
Showing 2 changed files
View
plat/allwinner/sun50i_a64/sunxi_power.c
View
plat/allwinner/sun50i_h6/sunxi_power.c