Skip to contentSkip to conversation

fsl_sata: Move the snoop bit to another place

PATCH New Dave Liu 2 participants 2 messages Apr 12, 2010 – Apr 13, 2010 Block layer

lore
Share & tools
lore

Dave Liu

author
#0 lore raw

PATCH v3 2/2 fsl_sata: Move the snoop bit to another place

For P1022 SATA host controller, the data snoop bit of DW3 in PRDT is moved to bit28.

---
* address Wolfgang's comments

 drivers/block/fsl_sata.h |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
drivers/block/fsl_sata.h +6 -2
index 18e88fa..576efaf 100644
@@ -243,8 +243,12 @@ typedef struct prd_entry {
 
 /* ext_c_ddc
 */
-#define PRD_ENTRY_EXT		0x80000000 /* extension flag or called indirect descriptor flag */
-#define PRD_ENTRY_DATA_SNOOP	0x00400000 /* Snoop enable for all data associated with the PRD entry */
+#define PRD_ENTRY_EXT		0x80000000 /* extension flag */
+#ifdef CONFIG_FSL_SATA_V2
+#define PRD_ENTRY_DATA_SNOOP	0x10000000 /* Data snoop enable */
+#else
+#define PRD_ENTRY_DATA_SNOOP	0x00400000 /* Data snoop enable */
+#endif
 #define PRD_ENTRY_LEN_MASK	0x003fffff /* Data word count */
 
 #define PRD_ENTRY_MAX_XFER_SZ	(PRD_ENTRY_LEN_MASK + 1)
Signature · 1 line
1.6.4
Applied
#1 lore raw

PATCH v3 2/2 fsl_sata: Move the snoop bit to another place

Quoted 9 lines · Dave Liu

For P1022 SATA host controller, the data snoop bit of DW3 in PRDT is moved to bit28.

---
* address Wolfgang's comments

drivers/block/fsl_sata.h | 8 ++++++--

1 files changed, 6 insertions(+), 2 deletions(-)

I think these versions look good ;)

applied to 85xx

- k