linux-2.6
16 years ago[MIPS] WRPPMC: Fix build.
Ralf Baechle [Tue, 10 Jul 2007 15:56:33 +0000 (16:56 +0100)] 
[MIPS] WRPPMC: Fix build.

Using another systems defines is a safe way to get your code broken by
accident when that system is removed.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Yosemite: Fix modpost warnings.
Ralf Baechle [Tue, 10 Jul 2007 15:31:19 +0000 (16:31 +0100)] 
[MIPS] Yosemite: Fix modpost warnings.

  MODPOST vmlinux
WARNING: arch/mips/pmc-sierra/yosemite/built-in.o(.text+0x974): Section mismatch: reference to .init.data: (between 'prom_boot_secondary' and 'prom_cpus_done')
WARNING: arch/mips/pmc-sierra/yosemite/built-in.o(.text+0x980): Section mismatch: reference to .init.data: (between 'prom_boot_secondary' and 'prom_cpus_done')
WARNING: arch/mips/pmc-sierra/yosemite/built-in.o(.text+0x978): Section mismatch: reference to .init.data: (between 'prom_boot_secondary' and 'prom_cpus_done')
WARNING: arch/mips/pmc-sierra/yosemite/built-in.o(.text+0x984): Section mismatch: reference to .init.data: (between 'prom_boot_secondary' and 'prom_cpus_done')
WARNING: arch/mips/pmc-sierra/yosemite/built-in.o(.text+0x98c): Section mismatch: reference to .init.data: (between 'prom_boot_secondary' and 'prom_cpus_done')
WARNING: arch/mips/pmc-sierra/yosemite/built-in.o(.text+0x990): Section mismatch: reference to .init.data: (between 'prom_boot_secondary' and 'prom_cpus_done')

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Change names of local variables to silence sparse
Atsushi Nemoto [Tue, 10 Jul 2007 15:24:14 +0000 (00:24 +0900)] 
[MIPS] Change names of local variables to silence sparse

This patch is an workaround for these sparse warnings:

linux/include/linux/calc64.h:25:17: warning: symbol '__quot' shadows an earlier one
linux/include/linux/calc64.h:25:17: originally declared here
linux/include/linux/calc64.h:25:17: warning: symbol '__mod' shadows an earlier one
linux/include/linux/calc64.h:25:17: originally declared here

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] SB1: Fix modpost warning.
Ralf Baechle [Tue, 10 Jul 2007 15:10:56 +0000 (16:10 +0100)] 
[MIPS] SB1: Fix modpost warning.

  MODPOST vmlinux
WARNING: arch/mips/mm/built-in.o(.text+0x1978): Section mismatch: reference to .init.text:except_vec2_sb1 (between 'sb1_cache_init' and 'sb1_flush_cache_sigtramp')
WARNING: arch/mips/mm/built-in.o(.text+0x1988): Section mismatch: reference to .init.text:except_vec2_sb1 (between 'sb1_cache_init' and 'sb1_flush_cache_sigtramp')

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] PNX: Fix modpost warnings.
Ralf Baechle [Tue, 10 Jul 2007 14:04:06 +0000 (15:04 +0100)] 
[MIPS] PNX: Fix modpost warnings.

  MODPOST vmlinux
WARNING: arch/mips/philips/pnx8550/common/built-in.o(.text+0xd40): Section mismatch: reference to .init.data: (after 'pnx8550_platform_init')
WARNING: arch/mips/philips/pnx8550/common/built-in.o(.text+0xd44): Section mismatch: reference to .init.data: (after 'pnx8550_platform_init')

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Alchemy: Fix modpost warnings.
Ralf Baechle [Tue, 10 Jul 2007 08:35:12 +0000 (09:35 +0100)] 
[MIPS] Alchemy: Fix modpost warnings.

  MODPOST vmlinux
WARNING: arch/mips/au1000/common/built-in.o(.text+0x1750): Section mismatch: reference to .init.data: (between 'au1xxx_platform_init' and '__fixup_bigphys_addr')
WARNING: arch/mips/au1000/common/built-in.o(.text+0x1754): Section mismatch: reference to .init.data: (between 'au1xxx_platform_init' and '__fixup_bigphys_addr')

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Non-FPAFF: Fix warning.
Ralf Baechle [Tue, 10 Jul 2007 07:59:17 +0000 (08:59 +0100)] 
[MIPS] Non-FPAFF: Fix warning.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] DEC: Fix modpost warning.
Ralf Baechle [Tue, 10 Jul 2007 07:14:15 +0000 (08:14 +0100)] 
[MIPS] DEC: Fix modpost warning.

  LD      vmlinux
  SYSMAP  System.map
  SYSMAP  .tmp_System.map
  MODPOST vmlinux
WARNING: drivers/built-in.o(.data+0x2480): Section mismatch: reference to .init.text: (between 'sercons' and 'ds_parms')

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] MIPSsim: Enable MIPSsim virtual network driver.
Ralf Baechle [Mon, 9 Jul 2007 18:20:20 +0000 (19:20 +0100)] 
[MIPS] MIPSsim: Enable MIPSsim virtual network driver.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Delete Ocelot 3 support.
Ralf Baechle [Mon, 9 Jul 2007 15:29:16 +0000 (16:29 +0100)] 
[MIPS] Delete Ocelot 3 support.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] remove LASAT Networks platforms support
Yoichi Yuasa [Mon, 9 Jul 2007 04:10:55 +0000 (13:10 +0900)] 
[MIPS] remove LASAT Networks platforms support

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Early check for SMTC kernel on non-MT processor
Chris Dearman [Fri, 6 Jul 2007 16:11:20 +0000 (17:11 +0100)] 
[MIPS] Early check for SMTC kernel on non-MT processor

Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Add debugfs files to show fpuemu statistics
Atsushi Nemoto [Sat, 7 Jul 2007 14:21:49 +0000 (23:21 +0900)] 
[MIPS] Add debugfs files to show fpuemu statistics

Export contents of struct mips_fpu_emulator_stats via debugfs.

There is no way to read these statistics for now but they (at least
the "emulated" count) might be sometimes useful for performance tuning
on FPU-less CPUs.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Add some debugfs files to debug unaligned accesses
Atsushi Nemoto [Fri, 29 Jun 2007 15:55:48 +0000 (00:55 +0900)] 
[MIPS] Add some debugfs files to debug unaligned accesses

Currently a number of unaligned instructions is counted but not used.
Add /debug/mips/unaligned_instructions file to show the value.

And add /debug/mips/unaligned_action to control behavior upon an
unaligned access.  Possible actions are:

0: silently fixup the unaligned access.
1: send SIGBUS.
2: dump registers, process name, etc. and fixup.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] rbtx4938: Fix secondary PCIC and glue internal NICs
Atsushi Nemoto [Mon, 2 Jul 2007 13:43:06 +0000 (22:43 +0900)] 
[MIPS] rbtx4938: Fix secondary PCIC and glue internal NICs

* Fix pci ops for secondary PCIC
* Do not reserve 1MB for PCI MEM region (leave PCIBIOS_MIN_MEM zero)
* Use platform_device to provide ethernet addresses for internal NICs.
  (background: TX49XX SoCs include PCI NIC (TC35815 compatible)
  connected via its internal PCI bus, but the NIC's PROM interface is
  not connected to SEEPROM.  So we must provide its ethernet address
  by another way.)
* Check return value of early_read_config_word()

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] tc35815: Load MAC address via platform_device
Atsushi Nemoto [Fri, 29 Jun 2007 13:34:53 +0000 (22:34 +0900)] 
[MIPS] tc35815: Load MAC address via platform_device

TX49XX SoCs include PCI NIC (TC35815 compatible) connected via its
internal PCI bus, but the NIC's PROM interface is not connected to
SEEPROM.  So we must provide its ethernet address by another way.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Acked-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Move FPU affinity code into separate file.
Ralf Baechle [Tue, 3 Jul 2007 13:37:43 +0000 (14:37 +0100)] 
[MIPS] Move FPU affinity code into separate file.

Gets rid of some of the CONFIG_MIPS_MT_FPAFF #ifdefery.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Make ioremap() work on TX39/49 special unmapped segment
Atsushi Nemoto [Mon, 25 Jun 2007 16:14:01 +0000 (01:14 +0900)] 
[MIPS] Make ioremap() work on TX39/49 special unmapped segment

TX39XX and TX49XX have "reserved" segment in CKSEG3 area.
0xff000000-0xff3fffff on TX49XX and 0xff000000-0xfffeffff on TX39XX
are reserved (unmapped, uncached).  Controllers on these SoCs are
placed in this segment.

This patch add plat_ioremap() and plat_iounmap() to override default
behavior and implement these hooks for TX39/TX49.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] rbtx4938: Update and minimize defconfig
Atsushi Nemoto [Fri, 22 Jun 2007 14:22:29 +0000 (23:22 +0900)] 
[MIPS] rbtx4938: Update and minimize defconfig

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] rbtx4938: Convert SPI codes to use generic SPI drivers
Atsushi Nemoto [Fri, 22 Jun 2007 14:22:06 +0000 (23:22 +0900)] 
[MIPS] rbtx4938: Convert SPI codes to use generic SPI drivers

Use rtc-rs5c348 and at25 spi protocol driver and spi_txx9 spi
controller driver instead of platform dependent codes.

This patch also removes dependencies to old RTC interfaces such as
rtc_mips_get_time, etc.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] rbtx4938: Add generic GPIO support
Atsushi Nemoto [Fri, 22 Jun 2007 14:21:55 +0000 (23:21 +0900)] 
[MIPS] rbtx4938: Add generic GPIO support

GPIO 0..15 are for TX4938 PIO pins, GPIO 16..18 are for FPGA-driven
chipselect signals for SPI devices.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] SNI RM updates
Thomas Bogendoerfer [Wed, 20 Jun 2007 21:36:47 +0000 (23:36 +0200)] 
[MIPS] SNI RM updates

- use RTC_CLASS instead of GEN_RTC
- get rid of ds1216 in favour of a RTC_CLASS driver
- use correct console device for older RM400
- use physical addresses for 82596 device
- use 128 byte L1 cache line size (this is needed because most of the
  SNI caches are using 128 L2 cache lines)

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] PMC MSP71xx default configuration
Marc St-Jean [Thu, 14 Jun 2007 21:57:11 +0000 (15:57 -0600)] 
[MIPS] PMC MSP71xx default configuration

Patch to add default configuration for the PMC-Sierra
MSP71xx devices.

Signed-off-by: Marc St-Jean <Marc_St-Jean@pmc-sierra.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] PMC MSP71xx PCI support
Marc St-Jean [Thu, 14 Jun 2007 21:56:23 +0000 (15:56 -0600)] 
[MIPS] PMC MSP71xx PCI support

Patch to add PCI support for the PMC-Sierra MSP71xx devices.

Signed-off-by: Marc St-Jean <Marc_St-Jean@pmc-sierra.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] PMC MSP71xx mips common
Marc St-Jean [Thu, 14 Jun 2007 21:55:31 +0000 (15:55 -0600)] 
[MIPS] PMC MSP71xx mips common

Patch to add mips common support for the PMC-Sierra MSP71xx devices.

Signed-off-by: Marc St-Jean <Marc_St-Jean@pmc-sierra.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] PMC MSP71xx core platform
Marc St-Jean [Thu, 14 Jun 2007 21:54:47 +0000 (15:54 -0600)] 
[MIPS] PMC MSP71xx core platform

Patch to add core platform support for the PMC-Sierra MSP71xx devices.

Signed-off-by: Marc St-Jean <Marc_St-Jean@pmc-sierra.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Removes the few leftovers of the MOMENCO_JAGUAR_ATX removal.
Adrian Bunk [Tue, 19 Jun 2007 20:27:04 +0000 (22:27 +0200)] 
[MIPS] Removes the few leftovers of the MOMENCO_JAGUAR_ATX removal.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] New files for lemote fulong mini-PC support
Songmao Tian [Wed, 6 Jun 2007 06:52:38 +0000 (14:52 +0800)] 
[MIPS] New files for lemote fulong mini-PC support

Signed-off-by: Fuxin Zhang <zhangfx@lemote.com>
Signed-off-by: Songmao Tian <tiansm@lemote.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] define Hit_Invalidate_I to Index_Invalidate_I for loongson2
Fuxin Zhang [Wed, 6 Jun 2007 06:52:43 +0000 (14:52 +0800)] 
[MIPS] define Hit_Invalidate_I to Index_Invalidate_I for loongson2

Signed-off-by: Fuxin Zhang <zhangfx@lemote.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Convert init_thread initialization to ISO C initializers.
Ralf Baechle [Tue, 10 Jul 2007 16:33:02 +0000 (17:33 +0100)] 
[MIPS] Convert init_thread initialization to ISO C initializers.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Enable support for the userlocal hardware register
Ralf Baechle [Tue, 10 Jul 2007 16:33:02 +0000 (17:33 +0100)] 
[MIPS] Enable support for the userlocal hardware register

Which will cut down the cost of RDHWR $29 which is used to obtain the
TLS pointer and so far being emulated in software down to a single cycle
operation.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] FP affinity: Coding style cleanups
Ralf Baechle [Tue, 10 Jul 2007 16:33:02 +0000 (17:33 +0100)] 
[MIPS] FP affinity: Coding style cleanups

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Put an end to <asm/serial.h>'s long and annyoing existence
Ralf Baechle [Tue, 10 Jul 2007 16:33:01 +0000 (17:33 +0100)] 
[MIPS] Put an end to <asm/serial.h>'s long and annyoing existence

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Remove Momenco Ocelot C support
Franck Bui-Huu [Mon, 11 Jun 2007 13:08:55 +0000 (15:08 +0200)] 
[MIPS] Remove Momenco Ocelot C support

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
 delete mode 100644 arch/mips/configs/ocelot_c_defconfig
 delete mode 100644 arch/mips/momentum/ocelot_c/Makefile
 delete mode 100644 arch/mips/momentum/ocelot_c/cpci-irq.c
 delete mode 100644 arch/mips/momentum/ocelot_c/dbg_io.c
 delete mode 100644 arch/mips/momentum/ocelot_c/irq.c
 delete mode 100644 arch/mips/momentum/ocelot_c/ocelot_c_fpga.h
 delete mode 100644 arch/mips/momentum/ocelot_c/platform.c
 delete mode 100644 arch/mips/momentum/ocelot_c/prom.c
 delete mode 100644 arch/mips/momentum/ocelot_c/reset.c
 delete mode 100644 arch/mips/momentum/ocelot_c/setup.c
 delete mode 100644 arch/mips/momentum/ocelot_c/uart-irq.c
 delete mode 100644 arch/mips/pci/fixup-ocelot-c.c
 delete mode 100644 arch/mips/pci/pci-ocelot-c.c

16 years ago[MIPS] IP32: Remove experimental tag from kconfig.
Ralf Baechle [Tue, 10 Jul 2007 16:33:00 +0000 (17:33 +0100)] 
[MIPS] IP32: Remove experimental tag from kconfig.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] PCI: Make dev pointer argument of pcibios_map_irq const.
Ralf Baechle [Tue, 10 Jul 2007 16:33:00 +0000 (17:33 +0100)] 
[MIPS] PCI: Make dev pointer argument of pcibios_map_irq const.

This is to break the code of people who think they are supposed to scribble
into the pci device structure - it's off limits.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] EV64120: Remove support
Yoichi Yuasa [Thu, 21 Jun 2007 06:06:21 +0000 (15:06 +0900)] 
[MIPS] EV64120: Remove support

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] DECstation: Optimised early printk()
Maciej W. Rozycki [Tue, 5 Jun 2007 10:45:07 +0000 (11:45 +0100)] 
[MIPS] DECstation: Optimised early printk()

 This is an optimised implementation of early printk() for the DECstation.
After the recent conversion to a MIPS-specific generic routine using a
character-by-character output the performance dropped significantly.
This change reverts to the previous speed -- even at 9600 bps of the
serial console the difference is visible with a naked eye; I presume for a
framebuffer it is even worse (it may depend on exactly which one is used
though).

 Additionally the change includes a fix for a problem that the old
implementation had -- the format used would not actually limit the length
of the string output.  This new implementation uses a local buffer to deal
with it -- even with this additional copying it is much faster than the
generic function.

 Plus this driver is registered much earlier than the generic one,
allowing one to see critical messages, such as one about an incorrect CPU
setting used, that are produced beforehand. :-)

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] No I/O ports on the DECstation
Maciej W. Rozycki [Tue, 29 May 2007 14:08:07 +0000 (15:08 +0100)] 
[MIPS] No I/O ports on the DECstation

 There are no I/O ports on the DECstation whatsoever in any configuration
as neither the CPU nor the peripheral buses used have a concept of such.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Remove unused watchpoint support and arch/mips/lib-{32,64}
Atsushi Nemoto [Mon, 4 Jun 2007 16:28:07 +0000 (01:28 +0900)] 
[MIPS] Remove unused watchpoint support and arch/mips/lib-{32,64}

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] update cobalt_defconfig
Yoichi Yuasa [Fri, 1 Jun 2007 17:12:41 +0000 (02:12 +0900)] 
[MIPS] update cobalt_defconfig

Enable Cobalt button support and change ATA driver from BLK_DEV_VIA82CXXX
to PATA_VIA..

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Fix PHYS_OFFSET for 64-bits kernels with 32-bits symbols
Franck Bui-Huu [Mon, 4 Jun 2007 15:46:35 +0000 (17:46 +0200)] 
[MIPS] Fix PHYS_OFFSET for 64-bits kernels with 32-bits symbols

The current implementation of __pa() for 64-bits kernels with 32-bits
symbols is broken. In this configuration, we need 2 values for
PAGE_OFFSET, one in XKPHYS and the other in CKSEG0 space.

When the value in CKSEG0 space is used, it doesn't take into account
of PHYS_OFFSET. Even worse we can't redefine this value.

The patch restores CPHYSADDR() but in __pa()'s implementation because
it removes the need of 2 PAGE_OFFSET.

OTOH, CPHYSADDR() is quite bad when dealing with mapped kernels. So
this patch assumes there's no need to deal with such kernel in 64-bits
world.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Move PHY_OFFSET definition in spaces.h
Franck Bui-Huu [Mon, 4 Jun 2007 15:46:34 +0000 (17:46 +0200)] 
[MIPS] Move PHY_OFFSET definition in spaces.h

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Make PAGE_OFFSET aware of PHYS_OFFSET
Franck Bui-Huu [Mon, 4 Jun 2007 15:46:33 +0000 (17:46 +0200)] 
[MIPS] Make PAGE_OFFSET aware of PHYS_OFFSET

For platforms that use PHYS_OFFSET and do not use a mapped kernel,
this patch automatically adds PHYS_OFFSET into PAGE_OFFSET.
Therefore there are no more needs for them to redefine PAGE_OFFSET.

For mapped kernel, they need to redefine PAGE_OFFSET anyways.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Clean up asm-mips/mach-generic/spaces.h
Franck Bui-Huu [Mon, 4 Jun 2007 15:46:32 +0000 (17:46 +0200)] 
[MIPS] Clean up asm-mips/mach-generic/spaces.h

PAGE_OFFSET definition is now using CAC_BASE by default.

This patch also reorder some macros to make them appear
in the same order for both 32 and 64 bits configs.

It also makes use of const.h generic header file to
annotate constants.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Allow generic spaces.h to be included by platform specific ones
Franck Bui-Huu [Mon, 4 Jun 2007 15:46:31 +0000 (17:46 +0200)] 
[MIPS] Allow generic spaces.h to be included by platform specific ones

Before this patch, when a platform needed to customize one constant in
spaces.h, they need to redefine all of them.

Now they can just redefine one constant and include the generic file
header at the end:

#include <asm/mach-generic/spaces.h>

This patch doesn't allow to redefine CAC_BASE, IO_BASE and UNCAC_BASE
for 32 bits platforms because there's no need to do so.

This will avoid some macro duplications. It's important specially if
we'll add complex macros.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
 delete mode 100644 include/asm-mips/mach-ip32/spaces.h

16 years ago[MIPS] Remove unused dump_tlb functions
Atsushi Nemoto [Fri, 1 Jun 2007 15:30:25 +0000 (00:30 +0900)] 
[MIPS] Remove unused dump_tlb functions

Remove unused dump_tlb functions and cleanup some includes.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Unify dump_tlb
Atsushi Nemoto [Fri, 1 Jun 2007 15:21:30 +0000 (00:21 +0900)] 
[MIPS] Unify dump_tlb

Unify lib-{32,64}/dump_tlb.c into lib/dump_tlb.c and move
lib-32/r3k_dump_tlb.c to lib directory.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] MIPSsim: Move code away from the other MIPS Inc. BSP code.
Ralf Baechle [Tue, 10 Jul 2007 16:32:56 +0000 (17:32 +0100)] 
[MIPS] MIPSsim: Move code away from the other MIPS Inc. BSP code.

It shares no code at all.  While at it also fix up the beginning bitrot.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Hook for platforms to define cachability of /dev/mem regions
Ralf Baechle [Tue, 10 Jul 2007 16:32:56 +0000 (17:32 +0100)] 
[MIPS] Hook for platforms to define cachability of /dev/mem regions

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Cleanup TO_PHYS_MASK definition
Ralf Baechle [Tue, 10 Jul 2007 16:32:56 +0000 (17:32 +0100)] 
[MIPS] Cleanup TO_PHYS_MASK definition

No point in adding yet another #ifdef for Loongson since all this mask is
being used for is converting an XKPHYS address into a physical address
anyway.  So replace all definitions by one with the highest architectural
possible value.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Transform old-style macros to newer "__noreturn"
Robert P. J. Day [Fri, 25 May 2007 18:32:28 +0000 (14:32 -0400)] 
[MIPS] Transform old-style macros to newer "__noreturn"

Convert old/obsolete NORET_TYPE and ATTRIB_NORET macros to use the
newer standard of "__noreturn" as defined in compiler-gcc.h.

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] SMTC: Use current_cpu_data instead of cpu_data[smp_processor_id]
Ralf Baechle [Tue, 10 Jul 2007 16:32:56 +0000 (17:32 +0100)] 
[MIPS] SMTC: Use current_cpu_data instead of cpu_data[smp_processor_id]

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Add generic GPIO to Au1x00
Florian Fainelli [Tue, 22 May 2007 19:44:42 +0000 (21:44 +0200)] 
[MIPS] Add generic GPIO to Au1x00

This patch adds support for the generic GPIO API to Au1x00 boards. It requires
the generic GPIO patch for MIPS boards by Yoichi Yuasa. Now there is a MIPS
target using it, can you queue these patchset for 2.6.22 ? Thank you very
much in advance.

Signed-off-by: Florian Fainelli <florian.fainelli@telecomint.eu>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Create fallback gpio.h
Atsushi Nemoto [Fri, 22 Jun 2007 14:20:23 +0000 (23:20 +0900)] 
[MIPS] Create fallback gpio.h

Create fallback gpio.h which only contains prototypes for gpio API.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Add generic GPIO support
Yoichi Yuasa [Mon, 21 May 2007 15:05:58 +0000 (00:05 +0900)] 
[MIPS] Add generic GPIO support

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Remove unused cpu_callout_map and num_booting_cpus()
Adrian Bunk [Sat, 7 Jul 2007 01:03:27 +0000 (03:03 +0200)] 
[MIPS] Remove unused cpu_callout_map and num_booting_cpus()

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] "extern inline" -> "static inline"
Adrian Bunk [Sat, 7 Jul 2007 01:03:30 +0000 (03:03 +0200)] 
[MIPS] "extern inline" -> "static inline"

"extern inline" will have different semantics with gcc 4.3, and
"static inline" is correct here.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Simplify missing-syscalls for N32 and O32
Atsushi Nemoto [Tue, 29 May 2007 15:38:07 +0000 (00:38 +0900)] 
[MIPS] Simplify missing-syscalls for N32 and O32

Use standard missing-syscalls with EXTRA_CFLAGS instead of duplicating
the command.  And move the archprepare rule before the archclean rule.
Suggested by Franck Bui-Huu.  Also add "echo" to show the target ABI.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] Remove unused config entries
Yoichi Yuasa [Mon, 28 May 2007 13:56:35 +0000 (22:56 +0900)] 
[MIPS] Remove unused config entries

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years ago[MIPS] remove unused definitions for Cobalt
Yoichi Yuasa [Mon, 21 May 2007 14:00:38 +0000 (23:00 +0900)] 
[MIPS] remove unused definitions for Cobalt

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years agoIOC3: Switch to pci refcounting safe APIs
Alan Cox [Tue, 10 Jul 2007 16:05:16 +0000 (17:05 +0100)] 
IOC3: Switch to pci refcounting safe APIs

Convert the IOC3 driver to use ref counting pci interfaces so that we can
obsolete the (usually unsafe) pci_find_{slot/device} interfaces and avoid
future authors writing hotplug-unsafe device drivers.

Signed-off-by: Alan Cox <alan@redhat.com>
Build fixes:
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agoe100: Fix Tyan motherboard e100 not receiving IPMI commands
David Graham [Tue, 10 Jul 2007 15:45:11 +0000 (08:45 -0700)] 
e100: Fix Tyan motherboard e100 not receiving IPMI commands

The 82550 & 51 parts have an extended configuration block that
includes a bit "GMRC", required to enable the expected TCO behavior,
in config byte offset 22d.  The config block sent by the failing driver
does include the extension area, but this bit is not initialised,
and the downlaod only specifies 0x16 bytes to be sent to the NIC
(thaht's bytes 00..21d). By initializing the GMRC bit, and extending
the download size for D102+ MACs, the problem is resolved.

Signed-off-by: David Graham <david.graham@intel.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agoQE Ethernet driver writes to wrong register to mask interrupts
Timur Tabi [Tue, 10 Jul 2007 12:51:11 +0000 (07:51 -0500)] 
QE Ethernet driver writes to wrong register to mask interrupts

The QE Ethernet driver was writing to the wrong register to mask interrupts.
In ucc_geth_stop(), it was clearing UCCE instead of UCCM.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agorrunner.c:rr_init() must be __devinit
Adrian Bunk [Tue, 10 Jul 2007 12:44:47 +0000 (14:44 +0200)] 
rrunner.c:rr_init() must be __devinit

This patch fixes the following section mismatch:

<--  snip  -->

...
  MODPOST vmlinux
WARNING: drivers/built-in.o(.text+0x26e3f2): Section mismatch: reference to .init.text:rr_init (between 'rr_init_one' and 'rr_remove_one')
...

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agotokenring/3c359.c:xl_init() must be __devinit
Adrian Bunk [Tue, 10 Jul 2007 12:44:37 +0000 (14:44 +0200)] 
tokenring/3c359.c:xl_init() must be __devinit

This patch fixes the following section mismatch:

<--  snip  -->

...
  MODPOST vmlinux
WARNING: drivers/built-in.o(.text+0x361ef1): Section mismatch: reference to .init.text:xl_init (between 'xl_probe' and 'xl_hw_reset')
...

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agosis900_mii_probe() must be __devinit
Adrian Bunk [Tue, 10 Jul 2007 12:44:35 +0000 (14:44 +0200)] 
sis900_mii_probe() must be __devinit

This patch fixes the following section mismatch:

<--  snip  -->

...
  MODPOST vmlinux
WARNING: drivers/built-in.o(.text+0x298170): Section mismatch: reference to .init.text:sis900_mii_probe (between 'sis900_probe' and 'sis900_default_phy')
...

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agoFix typo in drivers/net/s2io.c
Rolf Eike Beer [Tue, 10 Jul 2007 09:58:02 +0000 (11:58 +0200)] 
Fix typo in drivers/net/s2io.c

Introduced in d796fdb708fc5b10112934cba43e832c36ce4923.

Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agoPCMCIA: add Socket Ethernet card into pcnet_cs
Marcin Juszkiewicz [Tue, 10 Jul 2007 09:40:28 +0000 (11:40 +0200)] 
PCMCIA: add Socket Ethernet card into pcnet_cs

One card submitted by Ångström user.

Signed-off-by: Marcin Juszkiewicz <openembedded@hrw.one.pl>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agospidernet: improve interrupt handling
Ishizaki Kou [Mon, 9 Jul 2007 23:17:42 +0000 (18:17 -0500)] 
spidernet: improve interrupt handling

We intend this patch to improve spidernet interrupt handling to be
more strict.  We had following problem and this patch solves it.

 -when CONFIG_DEBUG_SHIRQ=y, request_irq() calls handler().
 -when spider_net_open() is called, it calls request_irq() which calls
  spider_net_interrupt().
 -if some specific interrupt bit is set at this timing, it calls
  netif_rx_schedule() and spider_net_poll() is scheduled.
 -spider_net_open() calls netif_poll_enable() which clears the bit
  __LINK_STATE_RX_SCHED.
 -when spider_net_poll() is called, it calls netif_rx_complete() which
  causes BUG_ON() because __LINK_STATE_RX_SCHED is not set.

Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years ago3cSOHO100-TX needs EXTRA_PREAMBLE
Steffen Klassert [Mon, 9 Jul 2007 18:50:23 +0000 (11:50 -0700)] 
3cSOHO100-TX needs EXTRA_PREAMBLE

The 3cSOHO100-TX needs a mdio_sync() before mdio_read() to read the MII
transceiver registers properly.  Adding EXTRA_PREAMBLE to drv_flags of the
3cSOHO100-TX will force this.

This problem exists already for years (I checked back to 2.6.8).
Setting duplex for the 3cSOHO100-TX was more or less a random process.
Till 2.6.15 it was more likely that the diver ends up in half
duplex mode, after the code change in 2.6.16 it was more likely
to end up in full duplex mode. I wonder why nobody noticed this earier.

Hopefully addresses

Bug 7454 3c59x (3cSOHO100-TX Hurricane) slow network bug
http://bugzilla.kernel.org/show_bug.cgi?id=7454

and

Bug 3654 3cSOHO100-TX: No MII transceiver present
http://bugzilla.kernel.org/show_bug.cgi?id=3654

Cc: Jonas Sandberg <jonassa@gmail.com>
Cc: Jon Sanchez <bugs@niluje.net>
Signed-off-by: Steffen Klassert <klassert@mathematik.tu-chemnitz.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agoUse is_power_of_2() in myri10ge/myri10ge.c
vignesh babu [Mon, 9 Jul 2007 18:50:22 +0000 (11:50 -0700)] 
Use is_power_of_2() in myri10ge/myri10ge.c

Replace (n & (n-1)) with is_power_of_2()

Signed-off-by: vignesh babu <vignesh.babu@wipro.com>
Cc: Brice Goglin <brice@myri.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agouse is_power_of_2() in cxgb3/cxgb3_main.c
vignesh babu [Mon, 9 Jul 2007 18:50:22 +0000 (11:50 -0700)] 
use is_power_of_2() in cxgb3/cxgb3_main.c

Replace (n & (n-1)) with is_power_of_2()

Signed-off-by: vignesh babu <vignesh.babu@wipro.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agoatari_pamsnet.c: old declaration ritchie style fix
Yoann Padioleau [Mon, 9 Jul 2007 18:50:20 +0000 (11:50 -0700)] 
atari_pamsnet.c: old declaration ritchie style fix

Use consistent function declaration style.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agosky2: 1.16 version
Stephen Hemminger [Mon, 9 Jul 2007 22:33:44 +0000 (15:33 -0700)] 
sky2: 1.16 version

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agosky2: remove some leftover debug messages
Stephen Hemminger [Mon, 9 Jul 2007 22:33:43 +0000 (15:33 -0700)] 
sky2: remove some leftover debug messages

Eliminate extra debug messages

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agosky2: use upper_32_bits() macro
Stephen Hemminger [Mon, 9 Jul 2007 22:33:42 +0000 (15:33 -0700)] 
sky2: use upper_32_bits() macro

Use upper_32_bits() inline

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agosky2: use roundup() macro
Stephen Hemminger [Mon, 9 Jul 2007 22:33:41 +0000 (15:33 -0700)] 
sky2: use roundup() macro

Use roundup() macro to size receive buffer.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agosky2: check drop truncated packets
Stephen Hemminger [Mon, 9 Jul 2007 22:33:40 +0000 (15:33 -0700)] 
sky2: check drop truncated packets

If packet larger than MTU is received, the driver uses hardware to
truncate the packet. Use the status registers to catch/drop them.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agosky2: add support for read/write of EEPROM
Stephen Hemminger [Mon, 9 Jul 2007 22:33:39 +0000 (15:33 -0700)] 
sky2: add support for read/write of EEPROM

Add get/set eeprom support for sky2.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agosky2: unmark as EXPERIMENTAL
Stephen Hemminger [Mon, 9 Jul 2007 22:33:38 +0000 (15:33 -0700)] 
sky2: unmark as EXPERIMENTAL

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agosky2: receive fill
Stephen Hemminger [Mon, 9 Jul 2007 22:33:37 +0000 (15:33 -0700)] 
sky2: receive fill

Simplify receive buffer refill logic. Rather than trying to update
incrementally; do receive ring refill at end of receive processing.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agosky2: check for more work before leaving NAPI
Stephen Hemminger [Mon, 9 Jul 2007 22:33:36 +0000 (15:33 -0700)] 
sky2: check for more work before leaving NAPI

This patch avoids generating another IRQ if more packets
arrive while in the NAPI poll routine. Before marking device as
finished, it rechecks that the status ring is empty.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agosky2: debug interface
Stephen Hemminger [Mon, 9 Jul 2007 22:33:35 +0000 (15:33 -0700)] 
sky2: debug interface

Add an optional debug interface for displaying state of transmit/receive
rings. Creates a file debugfs/sky2/ethX for each device that is up.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agosky2: carrier management
Stephen Hemminger [Mon, 9 Jul 2007 22:33:34 +0000 (15:33 -0700)] 
sky2: carrier management

Make sky2 handle carrier similar to other drivers,
eliminate some possible races in carrier state transistions.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agosky2: restore workarounds for lost interrupts
Stephen Hemminger [Mon, 9 Jul 2007 22:33:33 +0000 (15:33 -0700)] 
sky2: restore workarounds for lost interrupts

This patch restores a couple of workarounds from 2.6.16:
 * restart transmit moderation timer in case it expires during IRQ routine
 * default to having 10 HZ watchdog timer.
At this point it more important not to hang than to worry about the
power cost.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
16 years agoDocumentation/block/barrier.txt is not in sync with the actual code: - blk_queue_orde...
Geert Uytterhoeven [Tue, 10 Jul 2007 10:26:29 +0000 (12:26 +0200)] 
Documentation/block/barrier.txt is not in sync with the actual code: - blk_queue_ordered() no longer has a gfp_mask parameter - blk_queue_ordered_locked() no longer exists - sd_prepare_flush() looks slightly different

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Acked-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
16 years agoUse list_for_each_entry() instead of list_for_each() in the block device
Matthias Kaehlcke [Tue, 10 Jul 2007 10:26:24 +0000 (12:26 +0200)] 
Use list_for_each_entry() instead of list_for_each() in the block device

elevator

Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
16 years agoMake a "menuconfig" out of the Kconfig objects "menu, ..., endmenu",
Jan Engelhardt [Tue, 10 Jul 2007 10:26:06 +0000 (12:26 +0200)] 
Make a "menuconfig" out of the Kconfig objects "menu, ..., endmenu",

so that the user can disable all the options in that menu at once
instead of having to disable each option separately.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
16 years agoblock/Kconfig already has its own "menuconfig" so remove these
Jan Engelhardt [Tue, 10 Jul 2007 10:24:17 +0000 (12:24 +0200)] 
block/Kconfig already has its own "menuconfig" so remove these

"menu, endmenu" that did not get cleaned up in the block patch
[ http://lkml.org/lkml/2007/4/10/251 ]

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
16 years agoUse menuconfigs instead of menus, so the whole menu can be disabled at once
Jan Engelhardt [Tue, 10 Jul 2007 10:24:11 +0000 (12:24 +0200)] 
Use menuconfigs instead of menus, so the whole menu can be disabled at once

instead of going through all options.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
16 years agocfq-iosched: fix async queue behaviour
Jens Axboe [Tue, 10 Jul 2007 11:43:25 +0000 (13:43 +0200)] 
cfq-iosched: fix async queue behaviour

With the cfq_queue hash removal, we inadvertently got rid of the
async queue sharing. This was not intentional, in fact CFQ purposely
shares the async queue per priority level to get good merging for
async writes.

So put some logic in cfq_get_queue() to track the shared queues.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
16 years ago[GFS2] Accept old format NFS filehandles
Steven Whitehouse [Tue, 10 Jul 2007 11:28:27 +0000 (12:28 +0100)] 
[GFS2] Accept old format NFS filehandles

On Tue, 2007-07-10 at 10:06 +0100, Christoph Hellwig wrote:
> > -#define GFS2_LARGE_FH_SIZE 10
> > -
> > -struct gfs2_fh_obj {
> > -   struct gfs2_inum_host this;
> > -   u32 imode;
> > -};
> > +#define GFS2_LARGE_FH_SIZE 8
>
> Because gfs2_decode_fh only accepts file handles with GFS2_LARGE_FH_SIZE
> or GFS2_LARGE_FH_SIZE you don't accept filehandles sent out by and older
> gfs version anymore.  Stale filehandles because of a new kernel version
> are a big no-no, so please add back code to handle the old filehandles
> on the decode side.
>

This should fix that problem I think since its only relating to end of
the fh we can just ignore that field in order to accept the older
format.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Wendy Cheng <wcheng@redhat.com>
16 years ago[BATTERY] ds2760 W1 slave
Anton Vorontsov [Wed, 11 Apr 2007 21:03:55 +0000 (01:03 +0400)] 
[BATTERY] ds2760 W1 slave

This is W1 slave for ds2760 chip, found inside almost every HP iPaq and
HTC PDAs/phones.

Signed-off-by: Anton Vorontsov <cbou@mail.ru>
Acked-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
16 years ago[BATTERY] One Laptop Per Child power/battery driver
David Woodhouse [Thu, 3 May 2007 20:51:18 +0000 (00:51 +0400)] 
[BATTERY] One Laptop Per Child power/battery driver

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Anton Vorontsov <cbou@mail.ru>
16 years ago[BATTERY] Apple PMU driver
David Woodhouse [Thu, 3 May 2007 20:47:40 +0000 (00:47 +0400)] 
[BATTERY] Apple PMU driver

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Anton Vorontsov <cbou@mail.ru>
16 years ago[BATTERY] 1-Wire ds2760 chip battery driver
Anton Vorontsov [Thu, 3 May 2007 20:45:39 +0000 (00:45 +0400)] 
[BATTERY] 1-Wire ds2760 chip battery driver

This is driver for batteries with ds2760 chip inside, found inside
almost every HP iPaq and HTC PDAs/phones.

Signed-off-by: Anton Vorontsov <cbou@mail.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
16 years ago[BATTERY] APM emulation driver for class batteries
Anton Vorontsov [Thu, 3 May 2007 20:43:24 +0000 (00:43 +0400)] 
[BATTERY] APM emulation driver for class batteries

Signed-off-by: Eugeny Boger <eugenyboger@dgap.mipt.ru>
Signed-off-by: Anton Vorontsov <cbou@mail.ru>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
16 years ago[BATTERY] pda_power platform driver
Anton Vorontsov [Thu, 3 May 2007 20:32:17 +0000 (00:32 +0400)] 
[BATTERY] pda_power platform driver

Common power driver for PDAs and phones with one or two external
power supplies (AC/USB) connected to main and backup batteries,
and optional builtin charger.

It's used to stop logic duplication through different embedded
devices. So, power supply *logic* is here. pda_power register
power supplies, and will take care about notifying batteries
about power changes through external power interface.

Currently, power consumption legal limits (including USB power
consumption) should be handled by platform code, inside set_charge
function.

Signed-off-by: Anton Vorontsov <cbou@mail.ru>
Signed-off-by: Roman Moravcik <roman.moravcik@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
16 years ago[BATTERY] Universal power supply class (was: battery class)
Anton Vorontsov [Thu, 3 May 2007 20:27:45 +0000 (00:27 +0400)] 
[BATTERY] Universal power supply class (was: battery class)

This class is result of "external power" and "battery" classes merge,
as suggested by David Woodhouse. He also implemented uevent support.

Here how userspace seeing it now:

     # ls /sys/class/power\ supply/
     ac  main-battery  usb

     # cat /sys/class/power\ supply/ac/type
     AC

     # cat /sys/class/power\ supply/usb/type
     USB

     # cat /sys/class/power\ supply/main-battery/type
     Battery

     # cat /sys/class/power\ supply/ac/online
     1

     # cat /sys/class/power\ supply/usb/online
     0

     # cat /sys/class/power\ supply/main-battery/status
     Charging

     # cat /sys/class/leds/h5400\:red-left/trigger
     none h5400-radio timer hwtimer ac-online usb-online
     main-battery-charging-or-full [main-battery-charging]
     main-battery-full

Signed-off-by: Anton Vorontsov <cbou@mail.ru>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>