Skip to content

Commit 033b114

Browse files
committed
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: net/bluetooth/l2cap_core.c
2 parents f5caadb + e6625fa commit 033b114

76 files changed

Lines changed: 489 additions & 346 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/filesystems/nilfs2.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ Features which NILFS2 does not support yet:
4040
- POSIX ACLs
4141
- quotas
4242
- fsck
43-
- resize
4443
- defragmentation
4544

4645
Mount options

‎arch/arm/mach-davinci/board-dm365-evm.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ static void __init evm_init_cpld(void)
520520
*/
521521
if (have_imager()) {
522522
label = "HD imager";
523-
mux |= 1;
523+
mux |= 2;
524524

525525
/* externally mux MMC1/ENET/AIC33 to imager */
526526
mux |= BIT(6) | BIT(5) | BIT(3);
@@ -540,7 +540,7 @@ static void __init evm_init_cpld(void)
540540
resets &= ~BIT(1);
541541

542542
if (have_tvp7002()) {
543-
mux |= 2;
543+
mux |= 1;
544544
resets &= ~BIT(2);
545545
label = "tvp7002 HD";
546546
} else {

‎arch/arm/mach-davinci/gpio.c‎

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,10 @@ gpio_irq_handler(unsigned irq, struct irq_desc *desc)
254254
{
255255
struct davinci_gpio_regs __iomem *g;
256256
u32 mask = 0xffff;
257+
struct davinci_gpio_controller *d;
257258

258-
g = (__force struct davinci_gpio_regs __iomem *) irq_desc_get_handler_data(desc);
259+
d = (struct davinci_gpio_controller *)irq_desc_get_handler_data(desc);
260+
g = (struct davinci_gpio_regs __iomem *)d->regs;
259261

260262
/* we only care about one bank */
261263
if (irq & 1)
@@ -274,11 +276,14 @@ gpio_irq_handler(unsigned irq, struct irq_desc *desc)
274276
if (!status)
275277
break;
276278
__raw_writel(status, &g->intstat);
277-
if (irq & 1)
278-
status >>= 16;
279279

280280
/* now demux them to the right lowlevel handler */
281-
n = (int)irq_get_handler_data(irq);
281+
n = d->irq_base;
282+
if (irq & 1) {
283+
n += 16;
284+
status >>= 16;
285+
}
286+
282287
while (status) {
283288
res = ffs(status);
284289
n += res;
@@ -424,7 +429,13 @@ static int __init davinci_gpio_irq_setup(void)
424429

425430
/* set up all irqs in this bank */
426431
irq_set_chained_handler(bank_irq, gpio_irq_handler);
427-
irq_set_handler_data(bank_irq, (__force void *)g);
432+
433+
/*
434+
* Each chip handles 32 gpios, and each irq bank consists of 16
435+
* gpio irqs. Pass the irq bank's corresponding controller to
436+
* the chained irq handler.
437+
*/
438+
irq_set_handler_data(bank_irq, &chips[gpio / 32]);
428439

429440
for (i = 0; i < 16 && gpio < ngpio; i++, irq++, gpio++) {
430441
irq_set_chip(irq, &gpio_irqchip);

‎arch/arm/mach-davinci/irq.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ davinci_alloc_gc(void __iomem *base, unsigned int irq_start, unsigned int num)
5252
struct irq_chip_type *ct;
5353

5454
gc = irq_alloc_generic_chip("AINTC", 1, irq_start, base, handle_edge_irq);
55+
if (!gc) {
56+
pr_err("%s: irq_alloc_generic_chip for IRQ %u failed\n",
57+
__func__, irq_start);
58+
return;
59+
}
60+
5561
ct = gc->chip_types;
5662
ct->chip.irq_ack = irq_gc_ack_set_bit;
5763
ct->chip.irq_mask = irq_gc_mask_clr_bit;

‎arch/arm/mach-ixp4xx/common.c‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,14 +419,20 @@ static void notrace ixp4xx_update_sched_clock(void)
419419
/*
420420
* clocksource
421421
*/
422+
423+
static cycle_t ixp4xx_clocksource_read(struct clocksource *c)
424+
{
425+
return *IXP4XX_OSTS;
426+
}
427+
422428
unsigned long ixp4xx_timer_freq = IXP4XX_TIMER_FREQ;
423429
EXPORT_SYMBOL(ixp4xx_timer_freq);
424430
static void __init ixp4xx_clocksource_init(void)
425431
{
426432
init_sched_clock(&cd, ixp4xx_update_sched_clock, 32, ixp4xx_timer_freq);
427433

428-
clocksource_mmio_init(&IXP4XX_OSTS, "OSTS", ixp4xx_timer_freq, 200, 32,
429-
clocksource_mmio_readl_up);
434+
clocksource_mmio_init(NULL, "OSTS", ixp4xx_timer_freq, 200, 32,
435+
ixp4xx_clocksource_read);
430436
}
431437

432438
/*

‎arch/arm/mach-s3c64xx/dma.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static struct s3c2410_dma_chan *s3c64xx_dma_map_channel(unsigned int channel)
113113
return chan;
114114
}
115115

116-
int s3c2410_dma_config(unsigned int channel, int xferunit)
116+
int s3c2410_dma_config(enum dma_ch channel, int xferunit)
117117
{
118118
struct s3c2410_dma_chan *chan = s3c_dma_lookup_channel(channel);
119119

@@ -297,7 +297,7 @@ static int s3c64xx_dma_flush(struct s3c2410_dma_chan *chan)
297297
return 0;
298298
}
299299

300-
int s3c2410_dma_ctrl(unsigned int channel, enum s3c2410_chan_op op)
300+
int s3c2410_dma_ctrl(enum dma_ch channel, enum s3c2410_chan_op op)
301301
{
302302
struct s3c2410_dma_chan *chan = s3c_dma_lookup_channel(channel);
303303

@@ -331,7 +331,7 @@ EXPORT_SYMBOL(s3c2410_dma_ctrl);
331331
*
332332
*/
333333

334-
int s3c2410_dma_enqueue(unsigned int channel, void *id,
334+
int s3c2410_dma_enqueue(enum dma_ch channel, void *id,
335335
dma_addr_t data, int size)
336336
{
337337
struct s3c2410_dma_chan *chan = s3c_dma_lookup_channel(channel);
@@ -415,7 +415,7 @@ int s3c2410_dma_enqueue(unsigned int channel, void *id,
415415
EXPORT_SYMBOL(s3c2410_dma_enqueue);
416416

417417

418-
int s3c2410_dma_devconfig(unsigned int channel,
418+
int s3c2410_dma_devconfig(enum dma_ch channel,
419419
enum s3c2410_dmasrc source,
420420
unsigned long devaddr)
421421
{
@@ -463,7 +463,7 @@ int s3c2410_dma_devconfig(unsigned int channel,
463463
EXPORT_SYMBOL(s3c2410_dma_devconfig);
464464

465465

466-
int s3c2410_dma_getposition(unsigned int channel,
466+
int s3c2410_dma_getposition(enum dma_ch channel,
467467
dma_addr_t *src, dma_addr_t *dst)
468468
{
469469
struct s3c2410_dma_chan *chan = s3c_dma_lookup_channel(channel);
@@ -487,7 +487,7 @@ EXPORT_SYMBOL(s3c2410_dma_getposition);
487487
* get control of an dma channel
488488
*/
489489

490-
int s3c2410_dma_request(unsigned int channel,
490+
int s3c2410_dma_request(enum dma_ch channel,
491491
struct s3c2410_dma_client *client,
492492
void *dev)
493493
{
@@ -533,7 +533,7 @@ EXPORT_SYMBOL(s3c2410_dma_request);
533533
* allowed to go through.
534534
*/
535535

536-
int s3c2410_dma_free(unsigned int channel, struct s3c2410_dma_client *client)
536+
int s3c2410_dma_free(enum dma_ch channel, struct s3c2410_dma_client *client)
537537
{
538538
struct s3c2410_dma_chan *chan = s3c_dma_lookup_channel(channel);
539539
unsigned long flags;

‎arch/arm/plat-s3c24xx/dma.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ static struct s3c2410_dma_chan *s3c2410_dma_map_channel(int channel);
712712
* get control of an dma channel
713713
*/
714714

715-
int s3c2410_dma_request(unsigned int channel,
715+
int s3c2410_dma_request(enum dma_ch channel,
716716
struct s3c2410_dma_client *client,
717717
void *dev)
718718
{
@@ -783,7 +783,7 @@ EXPORT_SYMBOL(s3c2410_dma_request);
783783
* allowed to go through.
784784
*/
785785

786-
int s3c2410_dma_free(unsigned int channel, struct s3c2410_dma_client *client)
786+
int s3c2410_dma_free(enum dma_ch channel, struct s3c2410_dma_client *client)
787787
{
788788
struct s3c2410_dma_chan *chan = s3c_dma_lookup_channel(channel);
789789
unsigned long flags;
@@ -974,7 +974,7 @@ static int s3c2410_dma_started(struct s3c2410_dma_chan *chan)
974974
}
975975

976976
int
977-
s3c2410_dma_ctrl(unsigned int channel, enum s3c2410_chan_op op)
977+
s3c2410_dma_ctrl(enum dma_ch channel, enum s3c2410_chan_op op)
978978
{
979979
struct s3c2410_dma_chan *chan = s3c_dma_lookup_channel(channel);
980980

@@ -1021,7 +1021,7 @@ EXPORT_SYMBOL(s3c2410_dma_ctrl);
10211021
* xfersize: size of unit in bytes (1,2,4)
10221022
*/
10231023

1024-
int s3c2410_dma_config(unsigned int channel,
1024+
int s3c2410_dma_config(enum dma_ch channel,
10251025
int xferunit)
10261026
{
10271027
struct s3c2410_dma_chan *chan = s3c_dma_lookup_channel(channel);
@@ -1100,7 +1100,7 @@ EXPORT_SYMBOL(s3c2410_dma_config);
11001100
* devaddr: physical address of the source
11011101
*/
11021102

1103-
int s3c2410_dma_devconfig(unsigned int channel,
1103+
int s3c2410_dma_devconfig(enum dma_ch channel,
11041104
enum s3c2410_dmasrc source,
11051105
unsigned long devaddr)
11061106
{
@@ -1173,7 +1173,7 @@ EXPORT_SYMBOL(s3c2410_dma_devconfig);
11731173
* returns the current transfer points for the dma source and destination
11741174
*/
11751175

1176-
int s3c2410_dma_getposition(unsigned int channel, dma_addr_t *src, dma_addr_t *dst)
1176+
int s3c2410_dma_getposition(enum dma_ch channel, dma_addr_t *src, dma_addr_t *dst)
11771177
{
11781178
struct s3c2410_dma_chan *chan = s3c_dma_lookup_channel(channel);
11791179

‎arch/arm/plat-samsung/dma.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct s3c2410_dma_chan *s3c_dma_lookup_channel(unsigned int channel)
4141
* irq?
4242
*/
4343

44-
int s3c2410_dma_set_opfn(unsigned int channel, s3c2410_dma_opfn_t rtn)
44+
int s3c2410_dma_set_opfn(enum dma_ch channel, s3c2410_dma_opfn_t rtn)
4545
{
4646
struct s3c2410_dma_chan *chan = s3c_dma_lookup_channel(channel);
4747

@@ -56,7 +56,7 @@ int s3c2410_dma_set_opfn(unsigned int channel, s3c2410_dma_opfn_t rtn)
5656
}
5757
EXPORT_SYMBOL(s3c2410_dma_set_opfn);
5858

59-
int s3c2410_dma_set_buffdone_fn(unsigned int channel, s3c2410_dma_cbfn_t rtn)
59+
int s3c2410_dma_set_buffdone_fn(enum dma_ch channel, s3c2410_dma_cbfn_t rtn)
6060
{
6161
struct s3c2410_dma_chan *chan = s3c_dma_lookup_channel(channel);
6262

@@ -71,7 +71,7 @@ int s3c2410_dma_set_buffdone_fn(unsigned int channel, s3c2410_dma_cbfn_t rtn)
7171
}
7272
EXPORT_SYMBOL(s3c2410_dma_set_buffdone_fn);
7373

74-
int s3c2410_dma_setflags(unsigned int channel, unsigned int flags)
74+
int s3c2410_dma_setflags(enum dma_ch channel, unsigned int flags)
7575
{
7676
struct s3c2410_dma_chan *chan = s3c_dma_lookup_channel(channel);
7777

‎arch/arm/plat-samsung/include/plat/dma.h‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ struct s3c2410_dma_client {
4242
};
4343

4444
struct s3c2410_dma_chan;
45+
enum dma_ch;
4546

4647
/* s3c2410_dma_cbfn_t
4748
*
@@ -62,7 +63,7 @@ typedef int (*s3c2410_dma_opfn_t)(struct s3c2410_dma_chan *,
6263
* request a dma channel exclusivley
6364
*/
6465

65-
extern int s3c2410_dma_request(unsigned int channel,
66+
extern int s3c2410_dma_request(enum dma_ch channel,
6667
struct s3c2410_dma_client *, void *dev);
6768

6869

@@ -71,22 +72,22 @@ extern int s3c2410_dma_request(unsigned int channel,
7172
* change the state of the dma channel
7273
*/
7374

74-
extern int s3c2410_dma_ctrl(unsigned int channel, enum s3c2410_chan_op op);
75+
extern int s3c2410_dma_ctrl(enum dma_ch channel, enum s3c2410_chan_op op);
7576

7677
/* s3c2410_dma_setflags
7778
*
7879
* set the channel's flags to a given state
7980
*/
8081

81-
extern int s3c2410_dma_setflags(unsigned int channel,
82+
extern int s3c2410_dma_setflags(enum dma_ch channel,
8283
unsigned int flags);
8384

8485
/* s3c2410_dma_free
8586
*
8687
* free the dma channel (will also abort any outstanding operations)
8788
*/
8889

89-
extern int s3c2410_dma_free(unsigned int channel, struct s3c2410_dma_client *);
90+
extern int s3c2410_dma_free(enum dma_ch channel, struct s3c2410_dma_client *);
9091

9192
/* s3c2410_dma_enqueue
9293
*
@@ -95,33 +96,33 @@ extern int s3c2410_dma_free(unsigned int channel, struct s3c2410_dma_client *);
9596
* drained before the buffer is given to the DMA system.
9697
*/
9798

98-
extern int s3c2410_dma_enqueue(unsigned int channel, void *id,
99+
extern int s3c2410_dma_enqueue(enum dma_ch channel, void *id,
99100
dma_addr_t data, int size);
100101

101102
/* s3c2410_dma_config
102103
*
103104
* configure the dma channel
104105
*/
105106

106-
extern int s3c2410_dma_config(unsigned int channel, int xferunit);
107+
extern int s3c2410_dma_config(enum dma_ch channel, int xferunit);
107108

108109
/* s3c2410_dma_devconfig
109110
*
110111
* configure the device we're talking to
111112
*/
112113

113-
extern int s3c2410_dma_devconfig(unsigned int channel,
114+
extern int s3c2410_dma_devconfig(enum dma_ch channel,
114115
enum s3c2410_dmasrc source, unsigned long devaddr);
115116

116117
/* s3c2410_dma_getposition
117118
*
118119
* get the position that the dma transfer is currently at
119120
*/
120121

121-
extern int s3c2410_dma_getposition(unsigned int channel,
122+
extern int s3c2410_dma_getposition(enum dma_ch channel,
122123
dma_addr_t *src, dma_addr_t *dest);
123124

124-
extern int s3c2410_dma_set_opfn(unsigned int, s3c2410_dma_opfn_t rtn);
125-
extern int s3c2410_dma_set_buffdone_fn(unsigned int, s3c2410_dma_cbfn_t rtn);
125+
extern int s3c2410_dma_set_opfn(enum dma_ch, s3c2410_dma_opfn_t rtn);
126+
extern int s3c2410_dma_set_buffdone_fn(enum dma_ch, s3c2410_dma_cbfn_t rtn);
126127

127128

‎arch/arm/plat-samsung/irq-uart.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ static void __init s3c_init_uart_irq(struct s3c_uart_irq *uirq)
5454

5555
gc = irq_alloc_generic_chip("s3c-uart", 1, uirq->base_irq, reg_base,
5656
handle_level_irq);
57+
58+
if (!gc) {
59+
pr_err("%s: irq_alloc_generic_chip for IRQ %u failed\n",
60+
__func__, uirq->base_irq);
61+
return;
62+
}
63+
5764
ct = gc->chip_types;
5865
ct->chip.irq_ack = irq_gc_ack_set_bit;
5966
ct->chip.irq_mask = irq_gc_mask_set_bit;

0 commit comments

Comments
 (0)