Re: [PATCH v2] scsi: ufs: Use pre-calculated offsets in ufshcd_init_lrb

From: Bart Van Assche
Date: Wed Sep 11 2024 - 18:33:08 EST


On 9/9/24 9:45 PM, Avri Altman wrote:
Replace manual offset calculations for response_upiu and prd_table in
ufshcd_init_lrb() with pre-calculated offsets already stored in the
utp_transfer_req_desc structure. The pre-calculated offsets are set
differently in ufshcd_host_memory_configure() based on the
UFSHCD_QUIRK_PRDT_BYTE_GRAN quirk, ensuring correct alignment and
access.

With which host controllers has this patch been tested?

Thanks,

Bart.