mbox series

[v2,0/2] MHI MMIO register write updates

Message ID 1629393354-20769-1-git-send-email-bbhatt@codeaurora.org
Headers show
Series MHI MMIO register write updates | expand

Message

Bhaumik Bhatt Aug. 19, 2021, 5:15 p.m. UTC
In case of MHI MMIO writes, the register field write function needs to do reads
before writes are performed. Propagate read failures such that callers are made
aware of those and can take appropriate action instead of running blind.

Optimizing the MMIO initialization function to use mhi_write_reg() in most cases
should also be done to improve design.

These patches were tested on X86_64 architecture with Ubuntu 18.04 and SDX65
attach.

v2:
-Fix testbot reported missing set of changes from pm.c

Bhaumik Bhatt (2):
  bus: mhi: core: Bail on writing register fields if read fails
  bus: mhi: core: Optimize and update MMIO register write method

 drivers/bus/mhi/core/boot.c     | 25 ++++++++++-----
 drivers/bus/mhi/core/init.c     | 70 +++++++++++++++++++++++------------------
 drivers/bus/mhi/core/internal.h |  7 +++--
 drivers/bus/mhi/core/main.c     |  9 ++++--
 drivers/bus/mhi/core/pm.c       | 18 ++++++++---
 5 files changed, 80 insertions(+), 49 deletions(-)