| 291 | | /* Now, we do the remaining detection. */ |
| 292 | | if (fscpos_read_value(new_client, FSCPOS_REG_IDENT_0) != 0x50) |
| 293 | | goto ERROR1; |
| 294 | | if (fscpos_read_value(new_client, FSCPOS_REG_IDENT_1) != 0x45) |
| 295 | | goto ERROR1; |
| 296 | | if (fscpos_read_value(new_client, FSCPOS_REG_IDENT_2) != 0x47) |
| 297 | | goto ERROR1; |
| 298 | | |
| 299 | | /* Determine the chip type - only one kind supported! */ |
| 300 | | if (kind <= 0) |
| 301 | | kind = fscpos; |
| 302 | | |
| 303 | | if (kind == fscpos) { |
| 304 | | type_name = "fscpos"; |
| 305 | | client_name = "fsc poseidon chip"; |
| 306 | | } else { |
| 307 | | #ifdef DEBUG |
| 308 | | printk("fscpos.o: Internal error: unknown kind (%d)?!?", |
| 309 | | kind); |
| 310 | | #endif |
| 311 | | goto ERROR1; |
| 312 | | } |
| | 291 | /* Do the remaining detection unless force or force_fscpos parameter */ |
| | 292 | if (kind < 0) { |
| | 293 | if (fscpos_read_value(new_client, FSCPOS_REG_IDENT_0) != 0x50) |
| | 294 | goto ERROR1; |
| | 295 | if (fscpos_read_value(new_client, FSCPOS_REG_IDENT_1) != 0x45) |
| | 296 | goto ERROR1; |
| | 297 | if (fscpos_read_value(new_client, FSCPOS_REG_IDENT_2) != 0x47) |
| | 298 | goto ERROR1; |
| | 299 | } |
| | 300 | |
| | 301 | kind = fscpos; |
| | 302 | |
| | 303 | type_name = "fscpos"; |
| | 304 | client_name = "fsc poseidon chip"; |