usb_psy: Fix CURRENT_MAX updates

Report the max of actual current limit and DCP current limit to
allow reporting actual values when PD charger is connected.
PD negotiation might complete before BC1.2 and it makes sense
to report the actual negotiated value in this case once the
negotiation completes.

Bug: 294875522
Test: dumpsys battery reports 9V/2A for the 18W charger
Change-Id: I3f2aef252ac2538a5513a0dec5d291af68d061e7
Signed-off-by: Badhri Jagan Sridharan <[email protected]>
1 file changed
tree: c0e2e15a0111bb4af709ae1c0ee54a18fb6c385f
  1. arch/
  2. Documentation/
  3. drivers/
  4. include/
  5. .clang-format
  6. .gitignore
  7. bazel.WORKSPACE
  8. BUILD.bazel
  9. build.config.gs101
  10. build.config.slider
  11. build.config.slider.blktest
  12. build.config.slider.debug_api
  13. build.config.slider.debug_kmemleak
  14. build.config.slider.debug_locking
  15. build.config.slider.debug_memory
  16. build.config.slider.debug_memory_accounting
  17. build.config.slider.kasan
  18. build.config.slider.khwasan
  19. build.config.zuma
  20. build.config.zuma.gki.fragment
  21. build.config.zuma_emulator
  22. build.config.zuma_hybrid
  23. build_slider.sh
  24. build_zuma_zebu.sh
  25. device.bazelrc
  26. device_build_configs.bzl
  27. Kbuild
  28. Kconfig.ext
  29. Kconfig.ext_modules
  30. Makefile
  31. Makefile.include
  32. Makefile.preinstall
  33. merge-from-pixel-5.10.sh
  34. README.md
  35. system_dlkm.props.zuma
  36. update_symbol_list.sh
  37. vendor_boot_modules.slider
  38. vendor_dlkm.blocklist.slider
  39. vendor_dlkm.blocklist.zuma
  40. vendor_dlkm.props.slider
  41. vendor_dlkm.props.zuma
  42. vendor_dlkm_modules.slider
  43. vendor_dlkm_modules.zuma
  44. vendor_kernel_boot_modules.zuma
  45. vendor_kernel_boot_modules.zuma_zebu
README.md

Building with Bazel (recommended)

# Files are copied to out/{branch}/dist
$ tools/bazel run //private/google-modules/soc/gs:slider_dist

See build/kernel/kleaf/README.md for details.

Disable LTO

Note: This only works on raviole-mainline branch.

# Files are copied to out/{branch}/dist
$ tools/bazel run --lto=none //private/google-modules/soc/gs:slider_dist

ABI monitoring with Bazel (recommended)

Note: ABI monitoring is not supported on raviole-mainline branch.

# Compare ABI and build files for distribution
$ tools/bazel build //private/google-modules/soc/gs:slider_abi

# Update symbol list common/android/abi_gki_aarch64_pixel
$ tools/bazel run //private/google-modules/soc/gs:slider_abi_update_symbol_list

# Update ABI common/android/abi_gki_aarch64.xml
$ tools/bazel run //common:kernel_aarch64_abi_update

# Copy files to distribution
$ tools/bazel run //private/google-modules/soc/gs:slider_abi_dist

Building with build_slider.sh (legacy)

$ build/build_slider.sh

Disable LTO

Note: This only works on raviole-mainline branch.

$ LTO=none build/build_slider.sh