RE: [PATCH v6 5/7] scsi: ufs: Add API to execute raw upiu commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > +
> > +/**
> > + * 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.




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux