~ubuntu-branches/debian/wheezy/linux-2.6/wheezy

« back to all changes in this revision

Viewing changes to drivers/ata/libata-sff.c

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno
  • Date: 2011-06-07 12:14:05 UTC
  • mfrom: (43.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20110607121405-i3h1rd7nrnd2b73h
Tags: 2.6.39-2
[ Ben Hutchings ]
* [x86] Enable BACKLIGHT_APPLE, replacing BACKLIGHT_MBP_NVIDIA
  (Closes: #627492)
* cgroups: Disable memory resource controller by default. Allow it
  to be enabled using kernel parameter 'cgroup_enable=memory'.
* rt2800usb: Enable support for more USB devices including
  Linksys WUSB600N (Closes: #596626) (this change was accidentally
  omitted from 2.6.39-1)
* [x86] Remove Celeron from list of processors supporting PAE. Most
  'Celeron M' models do not.
* Update debconf template translations:
  - Swedish (Martin Bagge) (Closes: #628932)
  - French (David Prévot) (Closes: #628191)
* aufs: Update for 2.6.39 (Closes: #627837)
* Add stable 2.6.39.1, including:
  - ext4: dont set PageUptodate in ext4_end_bio()
  - pata_cmd64x: fix boot crash on parisc (Closes: #622997, #622745)
  - ext3: Fix fs corruption when make_indexed_dir() fails
  - netfilter: nf_ct_sip: validate Content-Length in TCP SIP messages
  - sctp: fix race between sctp_bind_addr_free() and
    sctp_bind_addr_conflict()
  - sctp: fix memory leak of the ASCONF queue when free asoc
  - md/bitmap: fix saving of events_cleared and other state
  - cdc_acm: Fix oops when Droids MuIn LCD is connected
  - cx88: Fix conversion from BKL to fine-grained locks (Closes: #619827)
  - keys: Set cred->user_ns in key_replace_session_keyring (CVE-2011-2184)
  - tmpfs: fix race between truncate and writepage
  - nfs41: Correct offset for LAYOUTCOMMIT
  - xen/mmu: fix a race window causing leave_mm BUG()
  - ext4: fix possible use-after-free in ext4_remove_li_request()
  For the complete list of changes, see:
   http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.39.1
* Bump ABI to 2
* netfilter: Enable IP_SET, IP_SET_BITMAP_IP, IP_SET_BITMAP_IPMAC,
  IP_SET_BITMAP_PORT, IP_SET_HASH_IP, IP_SET_HASH_IPPORT,
  IP_SET_HASH_IPPORTIP, IP_SET_HASH_IPPORTNET, IP_SET_HASH_NET,
  IP_SET_HASH_NETPORT, IP_SET_LIST_SET, NETFILTER_XT_SET as modules
  (Closes: #629401)

[ Aurelien Jarno ]
* [mipsel/loongson-2f] Disable_SCSI_LPFC to workaround GCC ICE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1302
1302
}
1303
1303
EXPORT_SYMBOL_GPL(ata_sff_hsm_move);
1304
1304
 
 
1305
void ata_sff_queue_work(struct work_struct *work)
 
1306
{
 
1307
        queue_work(ata_sff_wq, work);
 
1308
}
 
1309
EXPORT_SYMBOL_GPL(ata_sff_queue_work);
 
1310
 
 
1311
void ata_sff_queue_delayed_work(struct delayed_work *dwork, unsigned long delay)
 
1312
{
 
1313
        queue_delayed_work(ata_sff_wq, dwork, delay);
 
1314
}
 
1315
EXPORT_SYMBOL_GPL(ata_sff_queue_delayed_work);
 
1316
 
1305
1317
void ata_sff_queue_pio_task(struct ata_link *link, unsigned long delay)
1306
1318
{
1307
1319
        struct ata_port *ap = link->ap;
1311
1323
        ap->sff_pio_task_link = link;
1312
1324
 
1313
1325
        /* may fail if ata_sff_flush_pio_task() in progress */
1314
 
        queue_delayed_work(ata_sff_wq, &ap->sff_pio_task,
1315
 
                           msecs_to_jiffies(delay));
 
1326
        ata_sff_queue_delayed_work(&ap->sff_pio_task, msecs_to_jiffies(delay));
1316
1327
}
1317
1328
EXPORT_SYMBOL_GPL(ata_sff_queue_pio_task);
1318
1329
 
1336
1347
        u8 status;
1337
1348
        int poll_next;
1338
1349
 
1339
 
        BUG_ON(ap->sff_pio_task_link == NULL); 
 
1350
        BUG_ON(ap->sff_pio_task_link == NULL);
1340
1351
        /* qc can be NULL if timeout occurred */
1341
1352
        qc = ata_qc_from_tag(ap, link->active_tag);
1342
1353
        if (!qc) {
2828
2839
                bmdma_stopped = true;
2829
2840
 
2830
2841
                if (unlikely(host_stat & ATA_DMA_ERR)) {
2831
 
                        /* error when transfering data to/from memory */
 
2842
                        /* error when transferring data to/from memory */
2832
2843
                        qc->err_mask |= AC_ERR_HOST_BUS;
2833
2844
                        ap->hsm_task_state = HSM_ST_ERR;
2834
2845
                }
3021
3032
         * Or maybe I'm just being paranoid.
3022
3033
         *
3023
3034
         * FIXME: The posting of this write means I/O starts are
3024
 
         * unneccessarily delayed for MMIO
 
3035
         * unnecessarily delayed for MMIO
3025
3036
         */
3026
3037
}
3027
3038
EXPORT_SYMBOL_GPL(ata_bmdma_start);