Re: [PATCH mfd-n 2/2] mfd: rsmu: support 32-bit address space

From: Jakub Kicinski
Date: Thu Mar 23 2023 - 12:57:46 EST


On Thu, 23 Mar 2023 12:15:18 -0400 Min Li wrote:
> - u8 cmd[256] = {0};
> - u8 rsp[256] = {0};
> + u8 cmd[RSMU_MAX_READ_COUNT + 1] = {0};
> + u8 rsp[RSMU_MAX_READ_COUNT + 1] = {0};
> int ret;
>
> + if (bytes > RSMU_MAX_READ_COUNT)
> + return -EINVAL;

Why is defining the constant to MAX_READ and checking the requested
size part of this patch, the commit message only talks about addresses
operation size is not mentioned in any way...