~ubuntu-branches/ubuntu/trusty/libatasmart/trusty

« back to all changes in this revision

Viewing changes to atasmart.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2009-09-29 06:25:13 UTC
  • mfrom: (1.2.3 upstream) (1.5.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090929062513-znsd74uqna3xordk
Tags: 0.16-1
* New upstream release.
  - Blacklist some more JMicron bridges. This includes the changes from
    0.15-3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2474
2474
                        goto finish;
2475
2475
                }
2476
2476
 
2477
 
                if ((vid == 0x152d && (pid == 0x2329 || pid == 0x2338 || pid == 0x2339))) {
 
2477
                if ((vid == 0x152d && pid == 0x2329) ||
 
2478
                    (vid == 0x152d && pid == 0x2338) ||
 
2479
                    (vid == 0x152d && pid == 0x2339))
2478
2480
                        /* Some JMicron bridges seem to choke on SMART
2479
2481
                         * commands, so let's explicitly black list
2480
2482
                         * them here.
2481
2483
                         *
2482
 
                         * https://bugzilla.redhat.com/show_bug.cgi?id=515881 */
 
2484
                         * https://bugzilla.redhat.com/show_bug.cgi?id=515881
 
2485
                         *
 
2486
                         * At least some of the JMicron bridges with
 
2487
                         * these vids/pids choke on the jmicron access
 
2488
                         * mode. To make sure we don't break things
 
2489
                         * for people we now disable this by
 
2490
                         * default.*/
2483
2491
                        d->type = SK_DISK_TYPE_NONE;
2484
 
                } else if ((vid == 0x0c0b && pid == 0xb159) ||
 
2492
                else if ((vid == 0x152d && pid == 0x2336))
 
2493
                        /* This JMicron bridge seems to always work
 
2494
                         * with SMART commands send with the jmicron
 
2495
                         * access mode. */
 
2496
                        d->type = SK_DISK_TYPE_JMICRON;
 
2497
                else if ((vid == 0x0c0b && pid == 0xb159) ||
2485
2498
                    (vid == 0x04fc && pid == 0x0c25) ||
2486
2499
                    (vid == 0x04fc && pid == 0x0c15))
2487
2500
                        d->type = SK_DISK_TYPE_SUNPLUS;
2488
 
                else if ((vid == 0x152d && pid == 0x2336) ||
2489
 
                    (vid == 0x152d && pid == 0x2338) ||
2490
 
                    (vid == 0x152d && pid == 0x2339))
2491
 
                        d->type = SK_DISK_TYPE_JMICRON;
2492
2501
                else
2493
2502
                        d->type = SK_DISK_TYPE_ATA_PASSTHROUGH_12;
2494
2503