Re: [PATCH 3/4] mvsas: Set Hardware Bit for TMF

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

 



On Fri, 2009-05-08 at 14:17 +0800, Ying Chu wrote:
> -	hdr->flags = cpu_to_le32(flags |
> -				 (tei->n_elem << MCH_PRD_LEN_SHIFT) |
> -				 (MCH_SSP_FR_CMD << MCH_SSP_FR_TYPE_SHIFT));
> +	if (is_tmf)
> +		flags |= (MCH_SSP_FR_TASK << MCH_SSP_FR_TYPE_SHIFT);
> +	hdr->flags = cpu_to_le32(flags | (tei->n_elem << MCH_PRD_LEN_SHIFT));

If is_tmf isn't set, shouldn't we be setting the command frame
indicator, like the old code was? (I know it's sort of irrelevant
because MCH_SSP_FR_CMD is defined to be zero, so if you're just dumping
the definition MCH_SSP_FR_CMD, that's fine too).

James


--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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