Skip to contentSkip to conversation

fs/fat: handle FAT on SATA

PATCH New Mike Frysinger 2 participants 2 messages Dec 10, 2008 VFAT/FAT/msdos filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/fat: handle FAT on SATA

From: Sonic Zhang <[email protected]>

The FAT file system driver should also handle FAT on SATA devices.

---
 fs/fat/fat.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
fs/fat/fat.c +3 -0
index 06eabc3..a9dde7d 100644
@@ -84,6 +84,7 @@ fat_register_device(block_dev_desc_t *dev_desc, int part_no)
 		return -1;
 	}
 #if (defined(CONFIG_CMD_IDE) || \
+     defined(CONFIG_CMD_SATA) || \
      defined(CONFIG_CMD_SCSI) || \
      defined(CONFIG_CMD_USB) || \
      defined(CONFIG_MMC) || \
@@ -980,12 +981,14 @@ file_fat_detectfs(void)
 		return 1;
 	}
 #if defined(CONFIG_CMD_IDE) || \
+    defined(CONFIG_CMD_SATA) || \
     defined(CONFIG_CMD_SCSI) || \
     defined(CONFIG_CMD_USB) || \
     defined(CONFIG_MMC)
 	printf("Interface:  ");
 	switch(cur_dev->if_type) {
 		case IF_TYPE_IDE :	printf("IDE"); break;
+		case IF_TYPE_SATA :	printf("SATA"); break;
 		case IF_TYPE_SCSI :	printf("SCSI"); break;
 		case IF_TYPE_ATAPI :	printf("ATAPI"); break;
 		case IF_TYPE_USB :	printf("USB"); break;
Signature · 1 line
1.6.0.4
#1 lore raw

PATCH 1/1 fs/fat: handle FAT on SATA

Dear Mike Frysinger,

Quoted 9 lines · In message <[email protected]> you wrote:

From: Sonic Zhang <[email protected]>

The FAT file system driver should also handle FAT on SATA devices.

---
 fs/fat/fat.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Q:  Why do mountain climbers rope themselves together?
A:  To prevent the sensible ones from going home.