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

« back to all changes in this revision

Viewing changes to drivers/mfd/wm8994-irq.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:
182
182
        mutex_unlock(&wm8994->irq_lock);
183
183
}
184
184
 
185
 
static void wm8994_irq_unmask(struct irq_data *data)
 
185
static void wm8994_irq_enable(struct irq_data *data)
186
186
{
187
187
        struct wm8994 *wm8994 = irq_data_get_irq_chip_data(data);
188
188
        struct wm8994_irq_data *irq_data = irq_to_wm8994_irq(wm8994,
191
191
        wm8994->irq_masks_cur[irq_data->reg - 1] &= ~irq_data->mask;
192
192
}
193
193
 
194
 
static void wm8994_irq_mask(struct irq_data *data)
 
194
static void wm8994_irq_disable(struct irq_data *data)
195
195
{
196
196
        struct wm8994 *wm8994 = irq_data_get_irq_chip_data(data);
197
197
        struct wm8994_irq_data *irq_data = irq_to_wm8994_irq(wm8994,
204
204
        .name                   = "wm8994",
205
205
        .irq_bus_lock           = wm8994_irq_lock,
206
206
        .irq_bus_sync_unlock    = wm8994_irq_sync_unlock,
207
 
        .irq_mask               = wm8994_irq_mask,
208
 
        .irq_unmask             = wm8994_irq_unmask,
 
207
        .irq_disable            = wm8994_irq_disable,
 
208
        .irq_enable             = wm8994_irq_enable,
209
209
};
210
210
 
211
211
/* The processing of the primary interrupt occurs in a thread so that
225
225
                return IRQ_NONE;
226
226
        }
227
227
 
228
 
        /* Apply masking */
229
 
        for (i = 0; i < WM8994_NUM_IRQ_REGS; i++)
 
228
        /* Bit swap and apply masking */
 
229
        for (i = 0; i < WM8994_NUM_IRQ_REGS; i++) {
 
230
                status[i] = be16_to_cpu(status[i]);
230
231
                status[i] &= ~wm8994->irq_masks_cur[i];
 
232
        }
231
233
 
232
234
        /* Report */
233
235
        for (i = 0; i < ARRAY_SIZE(wm8994_irqs); i++) {
276
278
        for (cur_irq = wm8994->irq_base;
277
279
             cur_irq < ARRAY_SIZE(wm8994_irqs) + wm8994->irq_base;
278
280
             cur_irq++) {
279
 
                set_irq_chip_data(cur_irq, wm8994);
280
 
                set_irq_chip_and_handler(cur_irq, &wm8994_irq_chip,
 
281
                irq_set_chip_data(cur_irq, wm8994);
 
282
                irq_set_chip_and_handler(cur_irq, &wm8994_irq_chip,
281
283
                                         handle_edge_irq);
282
 
                set_irq_nested_thread(cur_irq, 1);
 
284
                irq_set_nested_thread(cur_irq, 1);
283
285
 
284
286
                /* ARM needs us to explicitly flag the IRQ as valid
285
287
                 * and will set them noprobe when we do so. */
286
288
#ifdef CONFIG_ARM
287
289
                set_irq_flags(cur_irq, IRQF_VALID);
288
290
#else
289
 
                set_irq_noprobe(cur_irq);
 
291
                irq_set_noprobe(cur_irq);
290
292
#endif
291
293
        }
292
294