> > +
> > +/**
> > + * ufshcd_exec_raw_upiu_cmd - API function for sending raw upiu
> commands
> > + * @hba:   per-adapter instance
> > + * @req_upiu:      upiu request
> > + * @rsp_upiu:      upiu reply - only 8 DW as we do not support scsi
> commands
> > + * @msgcode:       message code, one of UPIU Transaction Codes Initiator
> to Target
> > + * @desc_buff:     pointer to descriptor buffer, NULL if NA
> > + * @buff_len:      descriptor size, 0 if NA
> > + * @rw:            either READ or WRITE
> 
> Actually, this isn't a normal READ vs WRITE, but it is read/write or
> none.  Either we should move this to a enum dma_data_direction,
> or still apply an arbitrary read vs write and check for a 0 buff_len
> instead of passing the magic UFS_BSG_NOP later in this series.
Done.

Reply via email to