lkml.org 
[lkml]   [2021]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 02/12] ASoC: amd: add Vangogh ACP PCI driver
From
Date
On 7/7/21 9:47 PM, Mark Brown wrote:
> On Wed, Jul 07, 2021 at 11:26:13AM +0530, Vijendar Mukunda wrote:
>
>> +static inline u32 acp_readl(void __iomem *base_addr)
>> +{
>> + return readl(base_addr - ACP5x_PHY_BASE_ADDRESS);
>> +}
>
> I see this was the same for Renoir but it's weird that the read and
> write functions are substracting rather than adding the base address
> here. A comment might be good.
>
We can modify code by providing relative offset from base address which
adds base address in readl and writel functions.
To make this change, we have to modify original header file.
To have sync with our HW team and Firmware teams, we are using same
common header file.

We will add comment in the code.


\
 
 \ /
  Last update: 2021-07-08 15:52    [W:0.055 / U:2.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site