Re: [PATCH v1 2/2] bus: mhi: core: Optimize and update MMIO register write method

From: Hemant Kumar
Date: Wed Aug 18 2021 - 21:41:15 EST




On 8/18/2021 4:50 PM, Bhaumik Bhatt wrote:
As of now, MMIO writes done after ready state transition use the
mhi_write_reg_field() API even though the whole register is being
written in most cases. Optimize this process by using mhi_write_reg()
API instead for those writes and use the mhi_write_reg_field()
API for MHI config registers only.

Signed-off-by: Bhaumik Bhatt <bbhatt@xxxxxxxxxxxxxx>
Reviewed-by: Hemant Kumar <hemantk@xxxxxxxxxxxxxx>

--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project