Re: [RFC PATCH 09/13] scsi: ufshpb: Add response API

2020-05-15 Thread Bart Van Assche
On 2020-05-15 03:30, Avri Altman wrote: > +#define RSP_DATA_SEG_LEN (sizeof(struct ufshpb_sense_data)) The name of this macro is almost as long as the expression it replaces. It may make the code easier to read by dropping this macro and using the sizeof() expression directly. > + struct task

[RFC PATCH 09/13] scsi: ufshpb: Add response API

2020-05-15 Thread Avri Altman
Here we've arrived to the second duty of the ufshpb module which mainly concern the HPB cache management. Once a HPB response is detected, the information encapsulated within needs to be transferred to the cache management engine in the scsi device handler. Those upiu responses needs to be decode