RE: [PATCH v3 1/7] scsi: ufs: Add ufs-bsg module

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

 




> > + */
> > +#ifndef SCSI_BSG_UFS_H
> > +#define SCSI_BSG_UFS_H
> > +
> > +/*
> > + * This file intended to be included by both kernel and user space
> > + */
> > +
> > +
> > +/**
> > + * struct ufs_bsg_upiu - upiu transaction structure
> > + *
> > + * @header: upiu header
> > + * @tsf: Transaction Specific Fields
> > + * @data: payload pointer
> > + *
> > + * This structure supports all ufs transaction types per JEDEC
> > UFSv2.1
> > + * paragraph 10.7
> > + */
> > +struct ufs_bsg_upiu {
> > + uint32_t header[3];
> > + uint32_t tsf[5];
> > + uint8_t data[0];
> > +};
> 
> 
> In addition to Christoph's comments: is this a redefinition of an
> existing data structure (struct utp_upiu_header)? Please do not
> introduce variants of existing data structures but instead proceed as
> follows:
> - Move the relevant existing data structures (utp_upiu_header,
> utp_upiu_query, ...) from drivers/scsi/ufs/ufs.h into a header file
> under include/uapi.
> - Add a new patch at the beginning of this series that does nothing
> else than moving these data structures.
> - Use the existing data structures instead of introducing struct ufs_bsg_upiu.
Actually those are leftovers of scsi transport that I forgot to omit.
Sorry about that.
ufs-bsg is doing nothing with those, so it can be just left out.

Thanks,
Avri

> 
> Thanks,
> 
> Bart.




[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