diff options
author | Noe Rubinstein <nrubinstein@proformatique.com> | 2010-12-17 19:18:50 +0100 |
---|---|---|
committer | Noe Rubinstein <nrubinstein@proformatique.com> | 2010-12-17 19:18:50 +0100 |
commit | 0fba5e27c94f0878965a75ab207a287875fff64e (patch) | |
tree | fa99c4747ee3a3269f74543854ec480820fe6a7f | |
parent | f7ab5801c542a4df58668f3b65473883a4e11a59 (diff) |
fail with error if the XHFC is not a 4SU
-rw-r--r-- | xhfc/base.c | 12 |
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", |