summaryrefslogtreecommitdiff
path: root/xhfc/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'xhfc/base.c')
-rw-r--r--xhfc/base.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/xhfc/base.c b/xhfc/base.c
index 3b1fcab..072298b 100644
--- a/xhfc/base.c
+++ b/xhfc/base.c
@@ -699,13 +699,19 @@ int xhfc_collect_chip_id(struct xhfc * xhfc)
{
u8 chip_id = read_xhfc(xhfc, R_CHIP_ID);
switch (chip_id) {
- case CHIP_ID_1SU:
- case CHIP_ID_2SU:
- case CHIP_ID_2S4U:
case CHIP_ID_4SU:
printk(KERN_INFO "%s ChipID: 0x%x\n",
xhfc->name, chip_id);
return 0;
+ case CHIP_ID_1SU:
+ case CHIP_ID_2SU:
+ case CHIP_ID_2S4U:
+ printk(KERN_ERR "%s %s: unsupported device XHFC-%s\n",
+ xhfc->name, __func__,
+ chip_id == CHIP_ID_1SU ? "1SU" :
+ chip_id == CHIP_ID_2SU ? "2SU" :
+ "2S4U");
+ return -EIO;
}
printk(KERN_ERR "%s %s: unkown Chip ID 0x%x\n",