Skip to contentSkip to conversation

ftide020: fix incorrect information display format

PATCH Superseded Macpaul Lin 2 participants 5 messages Nov 11, 2011 – Nov 18, 2011 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ftide020: fix incorrect information display format

Fix incorrect information display format when probing the device.

---
 drivers/block/ftide020.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/block/ftide020.c +1 -2
index 4a7a07f..befb34d 100644
@@ -316,8 +316,7 @@ int ide_preinit(void)
 
 	/* auto-detect IDE controller */
 	if (ftide_controller_probe()) {
-		printf("Faraday %s driver version %s\n", FTIDE_IP_NAME,
-		FTIDE_DRIVER_VERSION);
+		printf("Faraday FTIDE020_S driver\n");
 	} else {
 		printf("Faraday ATA controller not found.\n");
 		return API_ENODEV;
Signature · 1 line
1.7.3.5
#1 lore raw

PATCH 2/2 nds32: enhance io.h for compatibility with periphals

Enhance io.h for periphals origin design on x86 systems. For example, pci, ide, etc.

---
 arch/nds32/include/asm/io.h |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
arch/nds32/include/asm/io.h +18 -0
index 2c105f7..39c3dc8 100644
@@ -165,6 +165,24 @@ static inline unsigned int readl(unsigned int *addr)
 #define __raw_base_readw(base, off)	__arch_base_getw(base, off)
 #define __raw_base_readl(base, off)	__arch_base_getl(base, off)
 
+#define out_arch(type, endian, a, v)	__raw_write##type(cpu_to_##endian(v), a)
+#define in_arch(type, endian, a)	endian##_to_cpu(__raw_read##type(a))
+
+#define out_le32(a, v)			out_arch(l, le32, a, v)
+#define out_le16(a, v)			out_arch(w, le16, a, v)
+
+#define in_le32(a)			in_arch(l, le32, a)
+#define in_le16(a)			in_arch(w, le16, a)
+
+#define out_be32(a, v)			out_arch(l, be32, a, v)
+#define out_be16(a, v)			out_arch(w, be16, a, v)
+
+#define in_be32(a)			in_arch(l, be32, a)
+#define in_be16(a)			in_arch(w, be16, a)
+
+#define out_8(a, v)			__raw_writeb(v, a)
+#define in_8(a)				__raw_readb(a)
+
 /*
  * Now, pick up the machine-defined IO definitions
  * #include <asm/arch/io.h>
Signature · 1 line
1.7.3.5
#2 lore raw

PATCH 2/2 nds32: enhance io.h for compatibility with periphals

Hi Macpaul,

2011/11/11 Macpaul Lin <[email protected]>:

Quoted 4 lines

Enhance io.h for periphals origin design on x86 systems. For example, pci, ide, etc.

Applied to u-boot-nds32/master.
Thanks.

Signature · 2 lines
Best regards,
Macpaul Lin
#3 lore raw

PATCH v2 1/1 ftide020: fix incorrect information display format

In reply to Macpaul Lin

Fix incorrect information display format when probing the device.

---
Changes for v2:
- Replace the display format of device name.

 drivers/block/ftide020.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
drivers/block/ftide020.c +2 -3
index 4a7a07f..ad8fdad 100644
@@ -316,10 +316,9 @@ int ide_preinit(void)
 
 	/* auto-detect IDE controller */
 	if (ftide_controller_probe()) {
-		printf("Faraday %s driver version %s\n", FTIDE_IP_NAME,
-		FTIDE_DRIVER_VERSION);
+		printf("FTIDE020_S\n");
 	} else {
-		printf("Faraday ATA controller not found.\n");
+		printf("FTIDE020_S ATA controller not found.\n");
 		return API_ENODEV;
 	}
 
Signature · 1 line
1.7.3.5
#4 lore raw

PATCH v2 1/1 ftide020: fix incorrect information display format

Hi Macpaul,

2011/11/18 Macpaul Lin <[email protected]>:

Quoted 6 lines

Fix incorrect information display format when probing the device.

---
Changes for v2:
?- Replace the display format of device name.

Applied to u-boot-nds32/master.
Thanks.

Signature · 2 lines
Best regards,
Macpaul Lin