u-boot/disk
Wolfgang Denk af75a45d23 IDE: bail out of dev_print() for unknown device types
Commit 574b319512 introduced a subtle bug by mixing a list of tests
for "dev_desc->type" and "dev_desc->if_type" into one switch(), which
then mostly did not work because "dev_desc->type" cannot take any
"IF_*" type values. A later fix in commit 8ec6e332ea changed the
switch() into testing "dev_desc->if_type", but at this point the
initial test for unknown device types was completely lost, which
resulted in output like that for IDE ports without device attached:

  Device 1: Model:  Firm:  Ser#:
            Type: # 1F #
            Capacity: not available

This patch re-introduces the missing test for unknown device types.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
Tested-by: Stefan Roese <sr@denx.de>
2009-05-15 22:30:13 +02:00
..
Makefile disk: convert part_* files to COBJ-$(CONFIG_XXX) style 2009-02-18 00:50:51 +01:00
part_amiga.c mflash: Initial mflash support 2009-04-03 23:47:06 +02:00
part_amiga.h * Code cleanup: 2003-06-27 21:31:46 +00:00
part_dos.c mflash: Initial mflash support 2009-04-03 23:47:06 +02:00
part_dos.h * Patches by Denis Peter, 9 Sep 2003: 2003-09-10 22:30:53 +00:00
part_efi.c mflash: Initial mflash support 2009-04-03 23:47:06 +02:00
part_efi.h Coding Style cleanup, update CHANGELOG 2008-11-02 16:14:22 +01:00
part_iso.c mflash: Initial mflash support 2009-04-03 23:47:06 +02:00
part_iso.h Big white-space cleanup. 2008-05-21 00:14:08 +02:00
part_mac.c mflash: Initial mflash support 2009-04-03 23:47:06 +02:00
part_mac.h * Code cleanup: 2003-06-27 21:31:46 +00:00
part.c IDE: bail out of dev_print() for unknown device types 2009-05-15 22:30:13 +02:00