Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169178
b: refs/heads/master
c: 7e71c55
h: refs/heads/master
v: v3
  • Loading branch information
Steven Whitehouse committed Dec 3, 2009
1 parent 480fa4c commit 3b84ae2
Show file tree
Hide file tree
Showing 173 changed files with 6,778 additions and 4,167 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 83fdbfbfe6e7e8906e3a3f8f6bc074d887e92109
refs/heads/master: 7e71c55ee73988d0cb61045660b899eaac23bf8f
3 changes: 0 additions & 3 deletions trunk/Documentation/dontdiff
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ aicdb.h*
asm-offsets.h
asm_offsets.h
autoconf.h*
av_permissions.h
bbootsect
bin2c
binkernel.spec
Expand Down Expand Up @@ -96,14 +95,12 @@ docproc
elf2ecoff
elfconfig.h*
fixdep
flask.h
fore200e_mkfirm
fore200e_pca_fw.c*
gconf
gen-devlist
gen_crc32table
gen_init_cpio
genheaders
genksyms
*_gray256.c
ihex2fw
Expand Down
10 changes: 10 additions & 0 deletions trunk/Documentation/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ parameter is applicable:
PPT Parallel port support is enabled.
PS2 Appropriate PS/2 support is enabled.
RAM RAM disk support is enabled.
ROOTPLUG The example Root Plug LSM is enabled.
S390 S390 architecture is enabled.
SCSI Appropriate SCSI support is enabled.
A lot of drivers has their options described inside of
Expand Down Expand Up @@ -2163,6 +2164,15 @@ and is between 256 and 4096 characters. It is defined in the file
Useful for devices that are detected asynchronously
(e.g. USB and MMC devices).

root_plug.vendor_id=
[ROOTPLUG] Override the default vendor ID

root_plug.product_id=
[ROOTPLUG] Override the default product ID

root_plug.debug=
[ROOTPLUG] Enable debugging output

rw [KNL] Mount root device read-write on boot

S [KNL] Run init in single mode
Expand Down
12 changes: 0 additions & 12 deletions trunk/Documentation/pcmcia/driver-changes.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
This file details changes in 2.6 which affect PCMCIA card driver authors:

* no cs_error / CS_CHECK / CONFIG_PCMCIA_DEBUG (as of 2.6.33)
Instead of the cs_error() callback or the CS_CHECK() macro, please use
Linux-style checking of return values, and -- if necessary -- debug
messages using "dev_dbg()" or "pr_debug()".

* New CIS tuple access (as of 2.6.33)
Instead of pcmcia_get_{first,next}_tuple(), pcmcia_get_tuple_data() and
pcmcia_parse_tuple(), a driver shall use "pcmcia_get_tuple()" if it is
only interested in one (raw) tuple, or "pcmcia_loop_tuple()" if it is
interested in all tuples of one type. To decode the MAC from CISTPL_FUNCE,
a new helper "pcmcia_get_mac_from_cis()" was added.

* New configuration loop helper (as of 2.6.28)
By calling pcmcia_loop_config(), a driver can iterate over all available
configuration options. During a driver's probe() phase, one doesn't need
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/avr32/include/asm/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
#define BUG() \
do { \
_BUG_OR_WARN(0); \
unreachable(); \
for (;;); \
} while (0)

#define WARN_ON(condition) \
Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/mips/include/asm/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
static inline void __noreturn BUG(void)
{
__asm__ __volatile__("break %0" : : "i" (BRK_BUG));
unreachable();
/* Fool GCC into thinking the function doesn't return. */
while (1)
;
}

#define HAVE_ARCH_BUG
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/s390/include/asm/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

#define BUG() do { \
__EMIT_BUG(0); \
unreachable(); \
for (;;); \
} while (0)

#define WARN_ON(x) ({ \
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86/include/asm/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ do { \
".popsection" \
: : "i" (__FILE__), "i" (__LINE__), \
"i" (sizeof(struct bug_entry))); \
unreachable(); \
for (;;) ; \
} while (0)

#else
#define BUG() \
do { \
asm volatile("ud2"); \
unreachable(); \
for (;;) ; \
} while (0)
#endif

Expand Down
17 changes: 9 additions & 8 deletions trunk/drivers/ata/pata_pcmcia.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ static struct ata_port_operations pcmcia_8bit_port_ops = {
.drain_fifo = pcmcia_8bit_drain_fifo,
};

#define CS_CHECK(fn, ret) \
do { last_fn = (fn); if ((last_ret = (ret)) != 0) goto cs_failed; } while (0)


struct pcmcia_config_check {
unsigned long ctl_base;
Expand Down Expand Up @@ -249,7 +252,7 @@ static int pcmcia_init_one(struct pcmcia_device *pdev)
struct ata_port *ap;
struct ata_pcmcia_info *info;
struct pcmcia_config_check *stk = NULL;
int is_kme = 0, ret = -ENOMEM, p;
int last_ret = 0, last_fn = 0, is_kme = 0, ret = -ENOMEM, p;
unsigned long io_base, ctl_base;
void __iomem *io_addr, *ctl_addr;
int n_ports = 1;
Expand All @@ -268,6 +271,7 @@ static int pcmcia_init_one(struct pcmcia_device *pdev)
pdev->io.Attributes2 = IO_DATA_PATH_WIDTH_8;
pdev->io.IOAddrLines = 3;
pdev->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING;
pdev->irq.IRQInfo1 = IRQ_LEVEL_ID;
pdev->conf.Attributes = CONF_ENABLE_IRQ;
pdev->conf.IntType = INT_MEMORY_AND_IO;

Expand All @@ -292,13 +296,8 @@ static int pcmcia_init_one(struct pcmcia_device *pdev)
}
io_base = pdev->io.BasePort1;
ctl_base = stk->ctl_base;
ret = pcmcia_request_irq(pdev, &pdev->irq);
if (ret)
goto failed;

ret = pcmcia_request_configuration(pdev, &pdev->conf);
if (ret)
goto failed;
CS_CHECK(RequestIRQ, pcmcia_request_irq(pdev, &pdev->irq));
CS_CHECK(RequestConfiguration, pcmcia_request_configuration(pdev, &pdev->conf));

/* iomap */
ret = -ENOMEM;
Expand Down Expand Up @@ -352,6 +351,8 @@ static int pcmcia_init_one(struct pcmcia_device *pdev)
kfree(stk);
return 0;

cs_failed:
cs_error(pdev, last_fn, last_ret);
failed:
kfree(stk);
info->ndev = 0;
Expand Down
16 changes: 12 additions & 4 deletions trunk/drivers/bluetooth/bluecard_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -867,9 +867,11 @@ static int bluecard_probe(struct pcmcia_device *link)

link->io.Attributes1 = IO_DATA_PATH_WIDTH_8;
link->io.NumPorts1 = 8;
link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING;
link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING | IRQ_HANDLE_PRESENT;
link->irq.IRQInfo1 = IRQ_LEVEL_ID;

link->irq.Handler = bluecard_interrupt;
link->irq.Instance = info;

link->conf.Attributes = CONF_ENABLE_IRQ;
link->conf.IntType = INT_MEMORY_AND_IO;
Expand Down Expand Up @@ -903,16 +905,22 @@ static int bluecard_config(struct pcmcia_device *link)
break;
}

if (i != 0)
if (i != 0) {
cs_error(link, RequestIO, i);
goto failed;
}

i = pcmcia_request_irq(link, &link->irq);
if (i != 0)
if (i != 0) {
cs_error(link, RequestIRQ, i);
link->irq.AssignedIRQ = 0;
}

i = pcmcia_request_configuration(link, &link->conf);
if (i != 0)
if (i != 0) {
cs_error(link, RequestConfiguration, i);
goto failed;
}

if (bluecard_open(info) != 0)
goto failed;
Expand Down
13 changes: 10 additions & 3 deletions trunk/drivers/bluetooth/bt3c_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,9 +659,11 @@ static int bt3c_probe(struct pcmcia_device *link)

link->io.Attributes1 = IO_DATA_PATH_WIDTH_8;
link->io.NumPorts1 = 8;
link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING;
link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING | IRQ_HANDLE_PRESENT;
link->irq.IRQInfo1 = IRQ_LEVEL_ID;

link->irq.Handler = bt3c_interrupt;
link->irq.Instance = info;

link->conf.Attributes = CONF_ENABLE_IRQ;
link->conf.IntType = INT_MEMORY_AND_IO;
Expand Down Expand Up @@ -738,16 +740,21 @@ static int bt3c_config(struct pcmcia_device *link)
goto found_port;

BT_ERR("No usable port range found");
cs_error(link, RequestIO, -ENODEV);
goto failed;

found_port:
i = pcmcia_request_irq(link, &link->irq);
if (i != 0)
if (i != 0) {
cs_error(link, RequestIRQ, i);
link->irq.AssignedIRQ = 0;
}

i = pcmcia_request_configuration(link, &link->conf);
if (i != 0)
if (i != 0) {
cs_error(link, RequestConfiguration, i);
goto failed;
}

if (bt3c_open(info) != 0)
goto failed;
Expand Down
13 changes: 10 additions & 3 deletions trunk/drivers/bluetooth/btuart_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,11 @@ static int btuart_probe(struct pcmcia_device *link)

link->io.Attributes1 = IO_DATA_PATH_WIDTH_8;
link->io.NumPorts1 = 8;
link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING;
link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING | IRQ_HANDLE_PRESENT;
link->irq.IRQInfo1 = IRQ_LEVEL_ID;

link->irq.Handler = btuart_interrupt;
link->irq.Instance = info;

link->conf.Attributes = CONF_ENABLE_IRQ;
link->conf.IntType = INT_MEMORY_AND_IO;
Expand Down Expand Up @@ -667,16 +669,21 @@ static int btuart_config(struct pcmcia_device *link)
goto found_port;

BT_ERR("No usable port range found");
cs_error(link, RequestIO, -ENODEV);
goto failed;

found_port:
i = pcmcia_request_irq(link, &link->irq);
if (i != 0)
if (i != 0) {
cs_error(link, RequestIRQ, i);
link->irq.AssignedIRQ = 0;
}

i = pcmcia_request_configuration(link, &link->conf);
if (i != 0)
if (i != 0) {
cs_error(link, RequestConfiguration, i);
goto failed;
}

if (btuart_open(info) != 0)
goto failed;
Expand Down
12 changes: 9 additions & 3 deletions trunk/drivers/bluetooth/dtl1_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,9 +573,11 @@ static int dtl1_probe(struct pcmcia_device *link)

link->io.Attributes1 = IO_DATA_PATH_WIDTH_8;
link->io.NumPorts1 = 8;
link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING;
link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING | IRQ_HANDLE_PRESENT;
link->irq.IRQInfo1 = IRQ_LEVEL_ID;

link->irq.Handler = dtl1_interrupt;
link->irq.Instance = info;

link->conf.Attributes = CONF_ENABLE_IRQ;
link->conf.IntType = INT_MEMORY_AND_IO;
Expand Down Expand Up @@ -620,12 +622,16 @@ static int dtl1_config(struct pcmcia_device *link)
goto failed;

i = pcmcia_request_irq(link, &link->irq);
if (i != 0)
if (i != 0) {
cs_error(link, RequestIRQ, i);
link->irq.AssignedIRQ = 0;
}

i = pcmcia_request_configuration(link, &link->conf);
if (i != 0)
if (i != 0) {
cs_error(link, RequestConfiguration, i);
goto failed;
}

if (dtl1_open(info) != 0)
goto failed;
Expand Down
Loading

0 comments on commit 3b84ae2

Please sign in to comment.