[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <65f95b01-8d2d-4e03-88a2-c501379f21ea@acm.org>
Date: Tue, 17 Dec 2024 07:46:15 -0800
From: Bart Van Assche <bvanassche@....org>
To: Ram Kumar Dwivedi <quic_rdwivedi@...cinc.com>,
manivannan.sadhasivam@...aro.org, James.Bottomley@...senPartnership.com,
martin.petersen@...cle.com, andersson@...nel.org
Cc: linux-arm-msm@...r.kernel.org, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org,
Naveen Kumar Goud Arepalli <quic_narepall@...cinc.com>,
Nitin Rawat <quic_nitirawa@...cinc.com>
Subject: Re: [PATCH V3] scsi: ufs: qcom: Enable UFS Shared ICE Feature
On 12/17/24 6:40 AM, Ram Kumar Dwivedi wrote:
> + unsigned int val[4] = { NUM_RX_R1W0, NUM_TX_R0W1, NUM_RX_R1W1, NUM_TX_R1W1 };
> + unsigned int config;
> +
> + if (!is_ice_config_supported(host))
> + return;
> +
> + config = val[0] | (val[1] << 8) | (val[2] << 16) | (val[3] << 24);
Has it been considered to change the data type of val[] from unsigned
int into u8 or uint8_t? That would allow to use get_unaligned_le32()
instead of the above bit-shift expression. Additionally, why has
'config' been declared as 'int' instead of 'u32'?
Thanks,
Bart.
Powered by blists - more mailing lists