mtd: cfi: Allow per-mapping CFI device endianness
This patch allows each CFI device map to use its own endianness. The globally defined CFI endianness (CONFIG_MTD_CFI_NOSWAP, CONFIG_MTD_CFI_BE_BYTE_SWAP or CONFIG_MTD_CFI_LE_BYTE_SWAP) becomes the default value which can be overridden by a driver for a particular device. Signed-off-by: Aaron Sierra <asierra@xes-inc.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
这个提交包含在:
@@ -139,8 +139,9 @@ struct mtd_info *cfi_cmdset_0020(struct map_info *map, int primary)
|
||||
}
|
||||
|
||||
/* Do some byteswapping if necessary */
|
||||
extp->FeatureSupport = cfi32_to_cpu(extp->FeatureSupport);
|
||||
extp->BlkStatusRegMask = cfi32_to_cpu(extp->BlkStatusRegMask);
|
||||
extp->FeatureSupport = cfi32_to_cpu(map, extp->FeatureSupport);
|
||||
extp->BlkStatusRegMask = cfi32_to_cpu(map,
|
||||
extp->BlkStatusRegMask);
|
||||
|
||||
#ifdef DEBUG_CFI_FEATURES
|
||||
/* Tell the user about it in lots of lovely detail */
|
||||
|
在新工单中引用
屏蔽一个用户