~ubuntu-branches/ubuntu/saucy/libatasmart/saucy

« back to all changes in this revision

Viewing changes to atasmart.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-09-17 22:56:56 UTC
  • Revision ID: james.westby@ubuntu.com-20090917225656-315e8tfztyaukmv4
Tags: 0.14-1ubuntu1
atasmart.c: Blacklist JMicron SATA bridge 152d:2329, since it causes USB
resets when being probed for SMART. Patch cherrypicked from upstream git.
(LP: #387161)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2465
2465
                        goto finish;
2466
2466
                }
2467
2467
 
2468
 
                if ((vid == 0x0c0b && pid == 0xb159) ||
 
2468
                if ((vid == 0x152d && pid == 0x2329)) {
 
2469
                        /* Some JMicron bridges seem to choke on SMART
 
2470
                         * commands, so let's explicitly black list
 
2471
                         * them here.
 
2472
                         *
 
2473
                         * https://bugzilla.redhat.com/show_bug.cgi?id=515881 */
 
2474
                        d->type = SK_DISK_TYPE_NONE;
 
2475
                } else if ((vid == 0x0c0b && pid == 0xb159) ||
2469
2476
                    (vid == 0x04fc && pid == 0x0c25) ||
2470
2477
                    (vid == 0x04fc && pid == 0x0c15))
2471
2478
                        d->type = SK_DISK_TYPE_SUNPLUS;
2472
 
                else if ((vid == 0x152d && pid == 0x2329) ||
2473
 
                    (vid == 0x152d && pid == 0x2336) ||
 
2479
                else if ((vid == 0x152d && pid == 0x2336) ||
2474
2480
                    (vid == 0x152d && pid == 0x2338) ||
2475
2481
                    (vid == 0x152d && pid == 0x2339))
2476
2482
                        d->type = SK_DISK_TYPE_JMICRON;