]> pilppa.com Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
17 years agoSRAM patcher: convert omap2_set_prcm to use runtime SRAM patcher
Paul Walmsley [Wed, 14 Nov 2007 08:30:15 +0000 (01:30 -0700)]
SRAM patcher: convert omap2_set_prcm to use runtime SRAM patcher

Use the runtime SRAM patcher to set register addresses in
omap2_set_prcm.  The long symbol names are intended to help
disambiguate the symbols, now that they are global.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoSRAM patcher: convert sram_reprogram_sdrc to use runtime SRAM patcher
Paul Walmsley [Wed, 14 Nov 2007 08:30:14 +0000 (01:30 -0700)]
SRAM patcher: convert sram_reprogram_sdrc to use runtime SRAM patcher

Use the runtime SRAM patcher to set register addresses in
sram_reprogram_sdrc.  The long symbol names are intended to help
disambiguate the symbols, now that they are global.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoSRAM patcher: convert sram_ddr_init to use runtime SRAM patcher
Paul Walmsley [Wed, 14 Nov 2007 08:30:13 +0000 (01:30 -0700)]
SRAM patcher: convert sram_ddr_init to use runtime SRAM patcher

Use the runtime SRAM patcher to set register addresses in
sram_ddr_init.  The long symbol names are intended to help
disambiguate the symbols, now that they are global.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoSRAM patcher: convert omap24xx_sram_suspend to use runtime SRAM patcher
Paul Walmsley [Wed, 14 Nov 2007 08:30:12 +0000 (01:30 -0700)]
SRAM patcher: convert omap24xx_sram_suspend to use runtime SRAM patcher

Use the runtime SRAM patcher to set register addresses in
omap24xx_sram_suspend.  The long symbol names are intended to help
disambiguate the symbols, now that they are global.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoSRAM patcher: add SRAM virtual address patcher
Paul Walmsley [Wed, 14 Nov 2007 08:30:11 +0000 (01:30 -0700)]
SRAM patcher: add SRAM virtual address patcher

Add omap_sram_patch_va(), which patches a virtual address into SRAM
code at runtime.  This will be used in a future patch series to implement
part of multiboot support for OMAP2/3.

If CONFIG_OMAP_DEBUG_SRAM_PATCH is defined (the default), the code
will be very careful to ensure that the target location to patch is
valid.  It will only overwrite a location if the location contains a
32-bit magic number, defined as SRAM_VA_MAGIC.  Also, defining DEBUG
at the top of the file and enabling CONFIG_DEBUG_LL will log patch
locations and data via printk.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoTwl4030- Keypad support on OMAP 3430
Girish [Fri, 2 Nov 2007 15:25:02 +0000 (20:55 +0530)]
Twl4030- Keypad support on OMAP 3430

This patch supports Keypad on 3430

Signed-off-by: Girish S G <girishsg@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoTouch Screen: support on OMAP 3430
Girish [Fri, 2 Nov 2007 15:24:55 +0000 (20:54 +0530)]
Touch Screen: support on OMAP 3430

This patch supports Touchscreen on 3430
Signed-off-by: Girish S G <girishsg@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoI2C and TWL4030 suport on 34xx
Chandra shekhar [Fri, 16 Nov 2007 13:48:26 +0000 (19:18 +0530)]
I2C and TWL4030 suport on 34xx

TWL4030 core support for 3430

Signed-off-by: chandra shekhar <x0044955@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoI2C and TWL4030 suport on 34xx
Chandra shekhar [Fri, 16 Nov 2007 13:46:52 +0000 (19:16 +0530)]
I2C and TWL4030 suport on 34xx

Resubmitting the I2C patch for 3430, after Jarkko's I2C registration helper changes.

Signed-off-by: chandra shekhar <x0044955@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years ago3430: Make IO mapping names consistent
Amit Kucheria [Wed, 3 Oct 2007 13:54:33 +0000 (16:54 +0300)]
3430: Make IO mapping names consistent

Signed-off-by: Amit Kucheria <amit.kucheria@verdurent.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years ago3430 clock: add emulation clocks
Paul Walmsley [Mon, 12 Nov 2007 10:57:28 +0000 (03:57 -0700)]
3430 clock: add emulation clocks

Add clocks for the EMU domain for OMAP3430.  Richard Woodruff mentions that
documentation for these clocks, beyond the register bit settings found
in the main 3430 TRM, can be found in several other documents: the 3430
Emulation TRM; also SPRU893 and SPRU928; and some documents from
ARM Ltd including CoreSight, ETM, and ARM debug v5 architecture.
Some information is also available in the ARM Cortex-A8 TRM, section 10.1.

Also, rename existing emul_* clocks to emu_* to conform with recent TRMs.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years ago3430 clock: revise SmartReflex clocks
Paul Walmsley [Mon, 12 Nov 2007 10:57:27 +0000 (03:57 -0700)]
3430 clock: revise SmartReflex clocks

The two SmartReflex voltage controllers on OMAP3430 have one
functional clock each.  These clocks appear to be independent of each
other.  Encode them appropriately, replacing the previous 'sr_alwon_fck'
clock.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: N800: Use I2C bus registration helper
Jarkko Nikula [Wed, 7 Nov 2007 10:54:33 +0000 (12:54 +0200)]
ARM: OMAP: N800: Use I2C bus registration helper

Use 400 kHz bus clock for both busses since board components are rated
for it.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: Use I2C bus registration helper
Jarkko Nikula [Wed, 7 Nov 2007 10:54:32 +0000 (12:54 +0200)]
ARM: OMAP: Use I2C bus registration helper

This patch starts using introduced I2C bus registration helper by cleaning
up registration currently done in various places and by doing necessary
board file modifications.

Patch modifies those board files that are merged upstream. Most of the
boards except osk and 2430sdp are configured to use 100 kHz I2C clock
until they are verified for higher clock.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: Add helper module for board specific I2C bus registration
Jarkko Nikula [Wed, 7 Nov 2007 10:54:31 +0000 (12:54 +0200)]
ARM: OMAP: Add helper module for board specific I2C bus registration

This helper module simplifies I2C bus registration for different OMAP
platforms by doing registration in one place only and to allow board
specific bus configuration like clock rate and number of busses configured.

Helper should cover OMAP processors from first to third generation.

This patch just adds the feature and current implementation cleanup and
board file modifications will be done in following patches.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCBUS: Do not BUG_ON in retu-headset in case of spurious release event
Jarkko Nikula [Tue, 13 Nov 2007 13:53:14 +0000 (15:53 +0200)]
CBUS: Do not BUG_ON in retu-headset in case of spurious release event

There is a small chance that retu_headset_detect_timer can run twice
and pressed flag being zero in second run. Do nothing in that case instead
of throwing BUG_ON.

Double run can happen under very busy system assuming following scenario

1. Hook interrupt (run in softirq context, pressed flag = 1)
2. First retu_headset_enable_timer call
3. Busy system, retu raises an interrupt but cannot run hook interrupt for
   300-350 ms
4. Second hook interrupt
5. First retu_headset_detect_timer call (pressed flag = 0)
6. Second retu_headset_enable_timer
7. Second retu_headset_detect_timer
   -> pressed flag == 0 => BUG_ON

Patch also removes two debug messages since they are not needed very much
and removal cleans up code a bit.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoV4L/DVB: Make Philips TEA5761 driver to compile
Jarkko Nikula [Tue, 13 Nov 2007 13:46:18 +0000 (15:46 +0200)]
V4L/DVB: Make Philips TEA5761 driver to compile

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: Warm reset functionality for 34xx
Choraria, Rohit [Thu, 15 Nov 2007 21:27:03 +0000 (13:27 -0800)]
ARM: OMAP: Warm reset functionality for 34xx

This patch adds the implementation for warm reset functionality for OMAP3.

Signed-off-by: Rohit Choraria <rohitkc@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: Export more mcbsp functions
Luís Cargnini [Thu, 15 Nov 2007 21:24:13 +0000 (13:24 -0800)]
ARM: OMAP: Export more mcbsp functions

this patch only export two more functions to been used externally, for read
and write in polled mode.without the need of irqs.

Signed-off-by: Luis Vitorio Cargnini <lvcargnini@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoOMAP: Fix the BYTEBLOCK capability removal
Francisco Alecrim [Mon, 5 Nov 2007 14:54:21 +0000 (10:54 -0400)]
OMAP: Fix the BYTEBLOCK capability removal

According with commit 255d01af9a990fd5166f04ed0cc0b30b7b67e81e
from Linux-OMAP tree, the BYTEBLOCK capability was removed by Pierre Ossman.
MMC_CAP_BYTEBLOCK is not defined causing the compile error:

drivers/mmc/host/omap.c: In function `mmc_omap_probe':
drivers/mmc/host/omap.c:1077: error: `MMC_CAP_BYTEBLOCK' undeclared (first use in this function)
drivers/mmc/host/omap.c:1077: error: (Each undeclared identifier is reported only once
drivers/mmc/host/omap.c:1077: error: for each function it appears in.)

Signed-off-by: Francisco Alecrim <francisco.alecrim@indt.org.br>
Signed-off-by: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agomach:omap: some correction in Clock 34XX
Chandra shekhar [Mon, 12 Nov 2007 13:46:23 +0000 (19:16 +0530)]
mach:omap: some correction in Clock 34XX

Resumbmitting the patch earlier sent by girish, after fixing review comments given by paul.

This patch modifies the I2C clock nodes as per LDM, corrects usage of DPLL mask and updates the flags of 96M clock nodes

Signed-off-by: Chandra Shekhar <x0044955@ti.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: clk_disable_unused: init section mismatch
Kevin Hilman [Fri, 2 Nov 2007 00:12:02 +0000 (17:12 -0700)]
ARM: OMAP: clk_disable_unused: init section mismatch

Fix the following warning when OMAP_RESET_CLOCKS is enabled:

WARNING: vmlinux.o(.data+0x33a0): Section mismatch: reference to .init.text:omap2_clk_disable_unused (between 'omap2_clk_functions' and 'osc_ck')

omap2_clk_disable_unused cannot be declared __init as it part of a
struct where the rest of the functions are not __init.

Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoRevert "ARM: OMAP: clk_disable_unused: init section mismatch"
Tony Lindgren [Thu, 15 Nov 2007 20:54:09 +0000 (12:54 -0800)]
Revert "ARM: OMAP: clk_disable_unused: init section mismatch"

This reverts commit 669bbebe52d3c3733deb3f1b1d4e3d77e859ce5b.

Using Kevin's resent patch instead.

Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agofix NULL pointer with MUSB and DMA on ISO ep
Hunyue Yau [Thu, 1 Nov 2007 22:40:49 +0000 (15:40 -0700)]
fix NULL pointer with MUSB and DMA on ISO ep

For the case of an isochonous endpoint, musb_write_fifo may be
called with a NULL buffer from musb_host_tx if DMA is enabled.
Remove DMA check and always supply a valid buffer as long as
the URB contains a valid buffer.

Signed-off-by: Hunyue Yau <hyau@mvista.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
17 years agoARM: OMAP: 2430: add serial console ATAG
Kevin Hilman [Thu, 1 Nov 2007 18:11:34 +0000 (11:11 -0700)]
ARM: OMAP: 2430: add serial console ATAG

Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: clk_disable_unused: init section mismatch
Kevin Hilman [Thu, 1 Nov 2007 17:18:14 +0000 (10:18 -0700)]
ARM: OMAP: clk_disable_unused: init section mismatch

Fix the following warning when OMAP_RESET_CLOCKS is enabled:

WARNING: vmlinux.o(.data+0x33a0): Section mismatch: reference to .init.text:omap2_clk_disable_unused (between 'omap2_clk_functions' and 'osc_ck')

omap2_clk_disable_unused cannot be declared __init as it part of a
struct where the rest of the functions are not __init.

Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: Fix usb gadget related compile error
Tony Lindgren [Thu, 15 Nov 2007 20:39:27 +0000 (12:39 -0800)]
ARM: OMAP: Fix usb gadget related compile error

As noted by Dirk Behme.

Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agosilicon revision check for OMAP2/3
Girish [Mon, 5 Nov 2007 11:12:32 +0000 (16:42 +0530)]
silicon revision check for OMAP2/3

This patch adds macro for identifying 3430 cpu type and silicon revision of OMAP2/3 processors as well.

Signed-off-by: Girish S G <girishsg@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCPU identification support for 3430
Girish [Fri, 2 Nov 2007 14:43:33 +0000 (20:13 +0530)]
CPU identification support for 3430

This patch add cpu identification support for 3430 and some code clean up.

Signed-off-by: Girish S G <girishsg@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoLED: OMAP PWM: Use work queue for brightness
Daniel Stone [Tue, 30 Oct 2007 09:37:32 +0000 (11:37 +0200)]
LED: OMAP PWM: Use work queue for brightness

It isn't safe to schedule from a LED brightness_set handler, so use a work queue.

Signed-off-by: Daniel Stone <daniel.stone@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoOMAP1: CAMERA: Remove unecessary files from Makefile and Kconfig.
Eduardo Valentin [Tue, 9 Oct 2007 12:52:33 +0000 (08:52 -0400)]
OMAP1: CAMERA: Remove unecessary files from Makefile and Kconfig.

- Once ov9640 is implemented using v4l2-int-device API,
this patch removes unecessary files from Makefile and Kconfig.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoOMAP1: CAMERA: Changed camera_core.c to the coding style standard
Eduardo Valentin [Tue, 9 Oct 2007 12:52:32 +0000 (08:52 -0400)]
OMAP1: CAMERA: Changed camera_core.c to the coding style standard

- Executed Lindent on camera_core.c
- Removed extra blank spaces
- Lines with more than 80 columns were broken

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoOMAP1: CAMERA: Convert camera_core.c to use v4l2-int-device API
Eduardo Valentin [Tue, 9 Oct 2007 12:52:31 +0000 (08:52 -0400)]
OMAP1: CAMERA: Convert camera_core.c to use v4l2-int-device API

This patch converts camera_core.c to use v4l2-int-device API.
Only read method was tested with success. MMAP method still needs
re-work and tests.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoOMAP: Update gpio expander code to the corret i2c adapter id
Eduardo Valentin [Tue, 9 Oct 2007 12:52:30 +0000 (08:52 -0400)]
OMAP: Update gpio expander code to the corret i2c adapter id

- Update gpio expander code to the corret i2c adapter id
- Due to changes on i2c binding style, the i2c adapter is 1
and not 0. (as configured on i2c_register_board_info)

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoOMAP: Update ov9640 ifparm for H3 board.
Eduardo Valentin [Wed, 10 Oct 2007 14:06:18 +0000 (10:06 -0400)]
OMAP: Update ov9640 ifparm for H3 board.

This code is based on board-h4.c and drivers/media/video/omap/h3_sensor_power.c codes.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoOMAP1: CAMERA: Changed omap16xxcam.c to the coding style standard
Eduardo Valentin [Tue, 9 Oct 2007 12:52:28 +0000 (08:52 -0400)]
OMAP1: CAMERA: Changed omap16xxcam.c to the coding style standard

- Executed Lindent on omap16xxcam.c
- Removed extra blank spaces
- Lines with more than 80 columns were broken
- Added KERN_* flags on printk calls

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoWATCHDOG: Remove obsolete drivers/char/watchdog
Tony Lindgren [Wed, 14 Nov 2007 01:40:53 +0000 (17:40 -0800)]
WATCHDOG: Remove obsolete drivers/char/watchdog

Remove obsolete drivers/char/watchdog as noted by Iqbal.

Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoWork around OMAP2_CTRL_BASE warnings in 3430 build
Paul Walmsley [Tue, 6 Nov 2007 12:55:27 +0000 (04:55 -0800)]
Work around OMAP2_CTRL_BASE warnings in 3430 build

Work around OMAP2_CTRL_BASE redefinition warnings for OMAP3430 builds.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: IRQ numbers updated for 24xx and 34xx
Choraria, Rohit [Fri, 26 Oct 2007 12:31:46 +0000 (18:01 +0530)]
ARM: OMAP: IRQ numbers updated for 24xx and 34xx

This patch adds some of the missing IRQ entries for 24XX and 34XX and
reorders some of the entries.

Signed-off-by: Rohit Choraria <rohitkc@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: Update PRCM rate-table entries for 2430
Kevin Hilman [Tue, 30 Oct 2007 11:34:49 +0000 (04:34 -0700)]
ARM: OMAP: Update PRCM rate-table entries for 2430

[resend with minor build fix and updated description]

Follow the lead of the TI kernels by removing PRCM #2 and adding PRCM
#3 and #4 to the rate-table entries.  According to TI, having #2 and
#3 together is known to be a bad combination.

Also, change the default divider values for the PRCM #5a setting to
match those of the TI kernel.  Using the smallest divider possible can
give significant power savings when using the data-driven idle modes.

Signed-off-by: Kevin Hilman <khilman@mvista.com>
Acked-by: Richard Woodruff <r-woodruff2@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCBUS: Fix reentrant issues in retu-headset driver
Jarkko Nikula [Wed, 31 Oct 2007 12:04:42 +0000 (14:04 +0200)]
CBUS: Fix reentrant issues in retu-headset driver

- Make headset bias and headset button detection enable/disable functions
  reentrant. Protect also suspend/resume callbacks since they call
  retu_headset_set_bias directly.
- Don't define flag variables as bit fields since bit operations may not be
  atomic and we access one of them from interrupt. Now other flags don't
  need any additional locking since they are not accessed from interrupt
  context.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCBUS: Manage bias voltage in retu-headset suspend/resume code
Jarkko Nikula [Wed, 31 Oct 2007 12:04:41 +0000 (14:04 +0200)]
CBUS: Manage bias voltage in retu-headset suspend/resume code

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCBUS: Cleanup retu-headset driver
Jarkko Nikula [Wed, 31 Oct 2007 12:04:40 +0000 (14:04 +0200)]
CBUS: Cleanup retu-headset driver

Few cleanups, coding style fixes and unused stuff removal.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoomap_udc build fix
David Brownell [Thu, 1 Nov 2007 09:00:06 +0000 (02:00 -0700)]
omap_udc build fix

This fixes some build errors ... unclear how this got past earlier tests.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
17 years agoARM: OMAP: compile-fixes for PM debug
Kevin Hilman [Tue, 30 Oct 2007 11:40:40 +0000 (04:40 -0700)]
ARM: OMAP: compile-fixes for PM debug

Fix compile problems in omap2_pm_debug()

Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: Fix compile for omap1
Tony Lindgren [Thu, 1 Nov 2007 08:28:54 +0000 (01:28 -0700)]
ARM: OMAP: Fix compile for omap1

Based on an earlier patch by Luís Vitório Cargnini, add a dummy define
for OMAP2_CTRL_BASE. Eventually this will get fixed by setting a base
address during boot.

Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: DMA: Fix compile for DMA chaining
Kevin Hilman [Thu, 1 Nov 2007 07:51:36 +0000 (00:51 -0700)]
ARM: OMAP: DMA: Fix compile for DMA chaining

FYI... without PATCH 1/1 the new DMA stuff doesn't compile on OMAP2.
While waiting for that fix, at least this is required to build in
current git

Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoOMAP: DMA: Added support for DMA chaining
Anand Gadiyar [Wed, 24 Oct 2007 07:10:21 +0000 (12:40 +0530)]
OMAP: DMA: Added support for DMA chaining

Added support for DMA chaining.
This patch depends on patches [1-3]
"OMAP: DMA: Cleanup of DMA Request Lines",
"OMAP: DMA: Added support for OMAP3" and
"OMAP: DMA: Added utility APIs for setting DMA global parameters".

Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoDMA: Added utility APIs for setting DMA global parameters
Anand Gadiyar [Wed, 24 Oct 2007 07:08:51 +0000 (12:38 +0530)]
DMA: Added utility APIs for setting DMA global parameters

Added DMA utility APIs for setting FIFO depth, arbitration rate and channel priority.
This patch depends on patch [2/4] "OMAP: DMA: Added support for OMAP3".

Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoOMAP: DMA: Added support for OMAP3
Anand Gadiyar [Wed, 24 Oct 2007 07:07:11 +0000 (12:37 +0530)]
OMAP: DMA: Added support for OMAP3

Added DMA support for OMAP3.

Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoFix FB_OMAP dependencies so that the OMAP FB driver options are
Randy Dunlap [Wed, 31 Oct 2007 12:56:25 +0000 (05:56 -0700)]
Fix FB_OMAP dependencies so that the OMAP FB driver options are
presented correctly.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: unlock flash device during boot
Kevin Hilman [Wed, 17 Oct 2007 22:25:26 +0000 (15:25 -0700)]
ARM: OMAP: unlock flash device during boot

The bootloader may lock the flash device upon booting.  This requires
the use of 'flash_unlock' on each partition before using them.

However, when booting from flash the MTD driver is unable to "mark
space as dirty" since the device is locked.  This results lots of boot
warnings from the MTD layer.

The MTD driver for OMAP needs to unlock the device during init so
booting from flash can work without errors.

Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP2: Camera: Fix v4l2 int device detach
Sakari Ailus [Tue, 16 Oct 2007 15:08:28 +0000 (18:08 +0300)]
ARM: OMAP2: Camera: Fix v4l2 int device detach

omap24xxcam_device_unregister expected the argument to be its own
device structure but it's actually that of its slave.

Also get master from slave's structure in omap24xxcam_device_register.

Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoV4L: Int if: Set slave's master before attach, remove master argument
Sakari Ailus [Tue, 16 Oct 2007 15:08:27 +0000 (18:08 +0300)]
V4L: Int if: Set slave's master before attach, remove master argument

Set slave's master before master's attach call.

The master also now gets its own pointer from slave's structure.

Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoRE: [PATCH] Add WDT support for OMAP3430
Madhusudhan Chikkature Rajashekar [Wed, 31 Oct 2007 12:40:50 +0000 (05:40 -0700)]
RE: [PATCH] Add WDT support for OMAP3430

Add watchdog timer support for TI OMAP3430.

Fix clk_put functions mismatch in the release fn which would crash the kernel if
the WDT test is run multiple times with "CONFIG_WATCHDOG_NOWAYOUT" disabled.

Fix the shutdown function.Check for wdt users before calling disable.

Signed-off-by: Madhusudhan Chikkature <madhu.cr@ti.com>
Updated for path change to drivers/watchdog.

Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoDefault config file for Mistral's OMAP2430 OSK
Syed Mohammed, Khasim [Wed, 31 Oct 2007 12:16:22 +0000 (05:16 -0700)]
Default config file for Mistral's OMAP2430 OSK

Adds default config file for MISTRAL's OMAP2430 OSK Board

All Credit and Thanks to Mistral's 2430 OSK Team

Signed-off-by: Syed Mohammed Khasim <x0khasim@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoTo add basic support for Mistral's OMAP2430 OSK
Syed Mohammed Khasim [Wed, 31 Oct 2007 12:12:53 +0000 (05:12 -0700)]
To add basic support for Mistral's OMAP2430 OSK

Adds minimal booting support for MISTRAL's OMAP2430 OSK

All Credit and Thanks to Mistral's 2430 OSK Team

Signed-off-by: Syed Mohammed Khasim <x0khasim@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agomusb_hdrc: Trivial compile fixes for gadget after updating kernel
Tony Lindgren [Wed, 31 Oct 2007 09:05:21 +0000 (02:05 -0700)]
musb_hdrc: Trivial compile fixes for gadget after updating kernel

Host fixes to follow.

Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: Misc compile fixes after updating to current mainline tree
Tony Lindgren [Mon, 29 Oct 2007 14:14:58 +0000 (07:14 -0700)]
ARM: OMAP: Misc compile fixes after updating to current mainline tree

Misc compile fixes after updating to current mainline tree

Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoMerge current mainline tree into linux-omap tree
Tony Lindgren [Mon, 29 Oct 2007 11:50:40 +0000 (04:50 -0700)]
Merge current mainline tree into linux-omap tree

Merge branches 'master' and 'linus'

Conflicts:

arch/arm/configs/omap_h2_1610_defconfig
arch/arm/configs/omap_osk_5912_defconfig
arch/arm/mach-omap1/board-h2.c
arch/arm/mach-omap1/board-h3.c
arch/arm/mach-omap1/board-nokia770.c
arch/arm/mach-omap1/board-palmte.c
arch/arm/mach-omap1/board-palmtt.c
arch/arm/mach-omap1/board-palmz71.c
arch/arm/mach-omap1/board-sx1.c
arch/arm/mach-omap2/Kconfig
arch/arm/mach-omap2/Makefile
arch/arm/mach-omap2/board-2430sdp.c
arch/arm/mach-omap2/board-apollon.c
arch/arm/mach-omap2/board-h4.c
arch/arm/mach-omap2/devices.c
arch/arm/mach-omap2/gpmc.c
arch/arm/mach-omap2/id.c
arch/arm/mach-omap2/io.c
arch/arm/mach-omap2/irq.c
arch/arm/mach-omap2/memory.c
arch/arm/mach-omap2/mux.c
arch/arm/mach-omap2/pm.c
arch/arm/nwfpe/entry.S
arch/arm/plat-omap/Makefile
drivers/char/watchdog/omap_wdt.c
drivers/char/watchdog/omap_wdt.h
drivers/i2c/busses/i2c-omap.c
drivers/i2c/chips/menelaus.c
drivers/input/keyboard/Kconfig
drivers/input/keyboard/Makefile
drivers/media/video/Kconfig
drivers/media/video/Makefile
drivers/media/video/tcm825x.c
drivers/media/video/v4l2-int-device.c
drivers/mtd/onenand/onenand_base.c
drivers/usb/gadget/Kconfig
drivers/video/Makefile
include/asm-arm/arch-omap/board-2430sdp.h
include/asm-arm/arch-omap/hardware.h
include/asm-arm/arch-omap/io.h
include/asm-arm/arch-omap/omap24xx.h
include/linux/connector.h

17 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland...
Linus Torvalds [Tue, 23 Oct 2007 16:56:11 +0000 (09:56 -0700)]
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
  mlx4_core: Increase command timeout for INIT_HCA to 10 seconds
  IPoIB/cm: Use common CQ for CM send completions
  IB/uverbs: Fix checking of userspace object ownership
  IB/mlx4: Sanity check userspace send queue sizes
  IPoIB: Rewrite "if (!likely(...))" as "if (unlikely(!(...)))"
  IB/ehca: Enable large page MRs by default
  IB/ehca: Change meaning of hca_cap_mr_pgsize
  IB/ehca: Fix ehca_encode_hwpage_size() and alloc_fmr()
  IB/ehca: Fix masking error in {,re}reg_phys_mr()
  IB/ehca: Supply QP token for SRQ base QPs
  IPoIB: Use round_jiffies() for ah_reap_task
  RDMA/cma: Fix deadlock destroying listen requests
  RDMA/cma: Add locking around QP accesses
  IB/mthca: Avoid alignment traps when writing doorbells
  mlx4_core: Kill mlx4_write64_raw()

17 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-lguest
Linus Torvalds [Tue, 23 Oct 2007 16:03:07 +0000 (09:03 -0700)]
Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-lguest

* git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-lguest: (45 commits)
  Use "struct boot_params" in example launcher
  Loading bzImage directly.
  Revert lguest magic and use hook in head.S
  Update lguest documentation to reflect the new virtual block device name.
  generalize lgread_u32/lgwrite_u32.
  Example launcher handle guests not being ready for input
  Update example launcher for virtio
  Lguest support for Virtio
  Remove old lguest I/O infrrasructure.
  Remove old lguest bus and drivers.
  Virtio helper routines for a descriptor ringbuffer implementation
  Module autoprobing support for virtio drivers.
  Virtio console driver
  Block driver using virtio.
  Net driver using virtio
  Virtio interface
  Boot with virtual == physical to get closer to native Linux.
  Allow guest to specify syscall vector to use.
  Rename "cr3" to "gpgdir" to avoid x86-specific naming.
  Pagetables to use normal kernel types
  ...

17 years agoFix synchronize_irq races with IRQ handler
Herbert Xu [Tue, 23 Oct 2007 03:26:25 +0000 (11:26 +0800)]
Fix synchronize_irq races with IRQ handler

As it is some callers of synchronize_irq rely on memory barriers
to provide synchronisation against the IRQ handlers.  For example,
the tg3 driver does

tp->irq_sync = 1;
smp_mb();
synchronize_irq();

and then in the IRQ handler:

if (!tp->irq_sync)
netif_rx_schedule(dev, &tp->napi);

Unfortunately memory barriers only work well when they come in
pairs.  Because we don't actually have memory barriers on the
IRQ path, the memory barrier before the synchronize_irq() doesn't
actually protect us.

In particular, synchronize_irq() may return followed by the
result of netif_rx_schedule being made visible.

This patch (mostly written by Linus) fixes this by using spin
locks instead of memory barries on the synchronize_irq() path.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris...
Linus Torvalds [Tue, 23 Oct 2007 15:59:46 +0000 (08:59 -0700)]
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6:
  SELinux: always check SIGCHLD in selinux_task_wait

17 years agoMerge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
Linus Torvalds [Tue, 23 Oct 2007 15:57:35 +0000 (08:57 -0700)]
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc

* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
  [POWERPC] Add Vitaly Bordug as PPC8xx maintainer
  [POWERPC] 4xx: Enable EMAC on Bamboo board
  [POWERPC] 4xx: Enable EMAC for PPC405 Walnut board
  [POWERPC] 4xx: Fix timebase clock selection on Walnut
  [POWERPC] 4xx: Enable EMAC on the PPC 440GP Ebony board
  [POWERPC] 4xx: Split early debug output and early boot console for 44x
  [POWERPC] 4xx: Enable NEW EMAC support for Sequoia 440EPx.
  [POWERPC] 4xx: Add RGMII support for Sequoia 440EPx

17 years agoMerge git://git.infradead.org/mtd-2.6
Linus Torvalds [Tue, 23 Oct 2007 15:56:50 +0000 (08:56 -0700)]
Merge git://git.infradead.org/mtd-2.6

* git://git.infradead.org/mtd-2.6:
  [MTD] [NOR] Fix deadlock in Intel chip driver caused by get_chip recursion
  [JFFS2] Fix return value from jffs2_write_end()
  [MTD] [OneNAND] Fix wrong free the static address in onenand_sim
  [MTD] [NAND] Replace -1 with -EBADMSG in nand error correction code
  [RSLIB] BUG() when passing illegal parameters to decode_rs8() or decode_rs16()
  [MTD] [NAND] treat any negative return value from correct() as an error
  [MTD] [NAND] nandsim: bugfix in initialization
  [MTD] Fix typo in Alauda config option help text.
  [MTD] [NAND] add s3c2440-specific read_buf/write_buf
  [MTD] [OneNAND] onenand-sim: fix kernel-doc and typos
  [JFFS2] Tidy up fix for ACL/permissions problem.

17 years agoMerge branch 'for-linus' of ssh://master.kernel.org/pub/scm/linux/kernel/git/hskinnem...
Linus Torvalds [Tue, 23 Oct 2007 15:55:56 +0000 (08:55 -0700)]
Merge branch 'for-linus' of ssh://master.kernel.org/pub/scm/linux/kernel/git/hskinnemoen/avr32-2.6

* 'for-linus' of ssh://master.kernel.org/pub/scm/linux/kernel/git/hskinnemoen/avr32-2.6:
  [AVR32] ARRAY_SIZE() cleanup
  [AVR32] Implement at32_add_device_cf()
  [AVR32] Implement more at32_add_device_foo() functions
  [AVR32] Fix a couple of sparse warnings
  [AVR32] Wire up AT73C213 sound driver on ATSTK1000 board
  [AVR32] Platform code for pata_at32

17 years agoMerge branch 'sg' of git://git.kernel.dk/linux-2.6-block
Linus Torvalds [Tue, 23 Oct 2007 15:53:41 +0000 (08:53 -0700)]
Merge branch 'sg' of git://git.kernel.dk/linux-2.6-block

* 'sg' of git://git.kernel.dk/linux-2.6-block:
  sparc64: zero out dma_length
  fvr32: fixup dma-mapping for new sg layout
  sh/sh64: fixup dma-mapping for new sg layout
  Fix sctp compile
  m68knommu: remove sg_address()
  frv: update comment in scatterlist to reflect new setup
  blackfin: remove sg_address()
  arm: sg fallout
  mips: sg_page() fallout
  alpha: sg_virt() fallout
  intel-iommu: fix sg_page()
  parisc: fix sg_page() fallout
  ide: build fix
  net: fix xfrm build - missing scatterlist.h include
  [BLOCK] blk_rq_map_sg: force clear termination bit
  [BLOCK] Don't clear sg_dma_len/addr() in blk_rq_map_sg()
  s390 zfcp: sg fixups
  powerpc: Fix fallout from sg_page() changes
  IB/ehca: Fix sg_page() fallout
  arm: build fix

17 years agoMerge branch 'linus' of master.kernel.org:/pub/scm/linux/kernel/git/perex/alsa
Linus Torvalds [Tue, 23 Oct 2007 15:37:23 +0000 (08:37 -0700)]
Merge branch 'linus' of master.kernel.org:/pub/scm/linux/kernel/git/perex/alsa

* 'linus' of master.kernel.org:/pub/scm/linux/kernel/git/perex/alsa:
  [ALSA] version 1.0.15
  [ALSA] hda-codec - Fix possible array overflow
  [ALSA] sound/core/control.c: hard-irq-safe -> hard-irq-unsafe lock warning
  [ALSA] usb-audio: Another USB mic quirk for Logitech Communicator webcam
  [ALSA] hda-codec - Fix build without CONFIG_SND_HDA_GENERIC
  [ALSA] hda-codec - Fix Conexant 5045 volumes
  [ALSA] hda-codec - Fix conflict of Master volume in STAC92xx codec
  [ALSA] snd-bt87x: Make the load_all option work correctly
  [ALSA] protect Dreamcast PCM driver (AICA) from G2 bus effects
  [ALSA] bt87x - Fix section mismatch
  [ALSA] hda-codec - Fix AD1986A Lenovo auto-mute
  [ALSA] This simplifies and fixes waiting loops of the mce_down()

17 years agom68knommu: cleanup m68knommu timer code
Greg Ungerer [Tue, 23 Oct 2007 04:37:54 +0000 (14:37 +1000)]
m68knommu: cleanup m68knommu timer code

Reduce the function pointer mess of the m68knommu timer code by calling
directly to the local hardware's timer setup, and expose the local
common timer interrupt handler to the lower level hardware timer.

Ultimately this will save definitions of all these functions across all
the platform code to setup the function pointers (which for any given
m68knommu CPU family member can be only one set of hardware timer
functions).

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agom68knommu: new style ColdFire UART driver
Greg Ungerer [Tue, 23 Oct 2007 04:37:54 +0000 (14:37 +1000)]
m68knommu: new style ColdFire UART driver

A new style serial driver for the Freescale ColdFire UART to replace
the old style one currently in the tree (drivers/serial/mcfserial.c).

Currently this UART is only found in the ColdFire CPU family of parts
(thus I prefixed this patch [M68KNOMMU]).

This has been around for a long while now, tested on all available
platforms.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agom68knommu: fix make archclean
Greg Ungerer [Tue, 23 Oct 2007 04:37:54 +0000 (14:37 +1000)]
m68knommu: fix make archclean

Remove build reference to arch/m68knommu/boot directory, it doesn't
exist.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agom68knommu: remove use of undefined symbols in setup.c
Greg Ungerer [Tue, 23 Oct 2007 04:37:54 +0000 (14:37 +1000)]
m68knommu: remove use of undefined symbols in setup.c

Remove use of undefined symbols CONFIG_TELOS, CONFIG_M68EZ328ADS
and CONFIG_ALMA_ANS.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agom68knommu: improve mii_do_cmd code in FEC driver
Philippe De Muyter [Tue, 23 Oct 2007 04:37:54 +0000 (14:37 +1000)]
m68knommu: improve mii_do_cmd code in FEC driver

Improve the readability of mii_do_cmd().

Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agom68knommu: fix syscall restart handling
Greg Ungerer [Tue, 23 Oct 2007 04:37:54 +0000 (14:37 +1000)]
m68knommu: fix syscall restart handling

Fix system call restart handling. We can call directly to the
restart handler, no need to back track through trap that isn't
even implemented on m68knommu.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agom68knommu: add make support for Savant/Rosie1 board
Wilson Callan [Tue, 23 Oct 2007 04:37:54 +0000 (14:37 +1000)]
m68knommu: add make support for Savant/Rosie1 board

Add make support for the Savant/Rosie1 board.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agom68knommu: no separate stack region to report at startup
Greg Ungerer [Tue, 23 Oct 2007 04:37:54 +0000 (14:37 +1000)]
m68knommu: no separate stack region to report at startup

There is no separate stack region addresses to print at startup time,
so remove it from the debug listing

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agom68knommu: add config support for Savant/Rosie1 board
Wilson Callan [Tue, 23 Oct 2007 04:37:54 +0000 (14:37 +1000)]
m68knommu: add config support for Savant/Rosie1 board

Add configure support for the Savant/Rosie1 board.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agom68knommu: updated defconfig
Greg Ungerer [Tue, 23 Oct 2007 04:37:54 +0000 (14:37 +1000)]
m68knommu: updated defconfig

Updated defconfig with new options for m68knommu.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agom68knommu: local module/elf definitions
Greg Ungerer [Tue, 23 Oct 2007 04:37:54 +0000 (14:37 +1000)]
m68knommu: local module/elf definitions

Up to now m68knommu has been using the asm-m68k/module.h instead of
defining its own. There are recent changes there that we don't need
(fixups specifically). We don't need much support here so it makes
sense to have an m68knommu specific one now.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agom68knommu: define __clear_user macro
Matt Waddel [Tue, 23 Oct 2007 04:37:54 +0000 (14:37 +1000)]
m68knommu: define __clear_user macro

Define __clear_user macro, consistent with other architectures.
fs/signalfd.c won't compile without it.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agom68knommu: fix syscall tracing
Matt Waddel [Tue, 23 Oct 2007 04:37:54 +0000 (14:37 +1000)]
m68knommu: fix syscall tracing

Fix the system call code for handling syscall tracing, so strace
and gdbserver work properly.

This fix originally developed by Philippe De Muyter and Stuart Hughes.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agom68knommu: improve code formating FEC driver
Philippe De Muyter [Tue, 23 Oct 2007 04:37:54 +0000 (14:37 +1000)]
m68knommu: improve code formating FEC driver

Indent all the `else' the same way.
Remove some unecesary white space.

Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agoChar: cyclades, fix potential NULL dereference
Jiri Slaby [Tue, 23 Oct 2007 03:45:13 +0000 (20:45 -0700)]
Char: cyclades, fix potential NULL dereference

ztxdone is jumped to even if tty is NULL and tty_wakeup placed after
this label doesn't expect NULLed parameter, so this will cause an oops
in some situations (why they scheduled a wakeup there before remove
bottom half processing patch?).

wakeup only in the case when we have non-null tty struct.

Spotted by Adrian Bunk.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agofix mprotect vma_wants_writenotify prot
Hugh Dickins [Tue, 23 Oct 2007 03:45:12 +0000 (20:45 -0700)]
fix mprotect vma_wants_writenotify prot

Fix mprotect bug in recent commit 3ed75eb8f1cd89565966599c4f77d2edb086d5b0
(setup vma->vm_page_prot by vm_get_page_prot()): the vma_wants_writenotify
case was setting the same prot as when not.

Nothing wrong with the use of protection_map[] in mmap_region(),
but use vm_get_page_prot() there too in the same ~VM_SHARED way.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: Coly Li <coyli@suse.de>
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agomd: raid5: fix clearing of biofill operations
Dan Williams [Tue, 23 Oct 2007 03:45:11 +0000 (20:45 -0700)]
md: raid5: fix clearing of biofill operations

ops_complete_biofill() runs outside of spin_lock(&sh->lock) and clears the
'pending' and 'ack' bits.  Since the test_and_ack_op() macro only checks
against 'complete' it can get an inconsistent snapshot of pending work.

Move the clearing of these bits to handle_stripe5(), under the lock.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Tested-by: Joel Bertrand <joel.bertrand@systella.fr>
Signed-off-by: Neil Brown <neilb@suse.de>
Cc: Stable <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agomd: fix an unsigned compare to allow creation of bitmaps with v1.0 metadata
NeilBrown [Tue, 23 Oct 2007 03:45:11 +0000 (20:45 -0700)]
md: fix an unsigned compare to allow creation of bitmaps with v1.0 metadata

As page->index is unsigned, this all becomes an unsigned comparison,
which almost always returns an error.

Signed-off-by: Neil Brown <neilb@suse.de>
Cc: Stable <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agoMerge branch 'for-2.6.24' of master.kernel.org:/pub/scm/linux/kernel/git/jwboyer...
Paul Mackerras [Tue, 23 Oct 2007 12:20:51 +0000 (22:20 +1000)]
Merge branch 'for-2.6.24' of master.kernel.org:/pub/scm/linux/kernel/git/jwboyer/powerpc-4xx into merge

17 years ago[MTD] [NOR] Fix deadlock in Intel chip driver caused by get_chip recursion
Alexey Korolev [Mon, 22 Oct 2007 16:55:20 +0000 (17:55 +0100)]
[MTD] [NOR] Fix deadlock in Intel chip driver caused by get_chip recursion

This patch solves kernel deadlock issue seen on JFFF2 simultaneous
operations. Detailed investigation of the issue showed that the kernel
deadlock is caused by tons of recursive get_chip calls.

Signed-off-by: Alexey Korolev <akorolev@infradead.org>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agosparc64: zero out dma_length
FUJITA Tomonori [Tue, 23 Oct 2007 10:58:39 +0000 (12:58 +0200)]
sparc64: zero out dma_length

zero out dma_length in the entry immediately following the last mapped
entry for unmap_sg.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
17 years agofvr32: fixup dma-mapping for new sg layout
Jens Axboe [Tue, 23 Oct 2007 10:54:14 +0000 (12:54 +0200)]
fvr32: fixup dma-mapping for new sg layout

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
17 years agosh/sh64: fixup dma-mapping for new sg layout
Jens Axboe [Tue, 23 Oct 2007 10:52:48 +0000 (12:52 +0200)]
sh/sh64: fixup dma-mapping for new sg layout

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
17 years agoFix sctp compile
Christian Borntraeger [Tue, 23 Oct 2007 10:46:32 +0000 (12:46 +0200)]
Fix sctp compile

sctp fails to compile with
net/sctp/sm_make_chunk.c: In function 'sctp_pack_cookie':
net/sctp/sm_make_chunk.c:1516: error: implicit declaration of function 'sg_init_table'
net/sctp/sm_make_chunk.c:1517: error: implicit declaration of function 'sg_set_page'

use the proper include file.

SCTP maintainers Vlad Yasevich and Sridhar Samudrala  are CCed.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
17 years agom68knommu: remove sg_address()
Jens Axboe [Tue, 23 Oct 2007 10:41:57 +0000 (12:41 +0200)]
m68knommu: remove sg_address()

I would have replaced it with sg_virt(), but it doesn't appear to be
used at all.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
17 years agofrv: update comment in scatterlist to reflect new setup
Jens Axboe [Tue, 23 Oct 2007 10:39:41 +0000 (12:39 +0200)]
frv: update comment in scatterlist to reflect new setup

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
17 years agoblackfin: remove sg_address()
Jens Axboe [Tue, 23 Oct 2007 10:42:44 +0000 (12:42 +0200)]
blackfin: remove sg_address()

I would have replaced it with sg_virt(), but it doesn't appear to be
used at all.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
17 years agoarm: sg fallout
Jens Axboe [Tue, 23 Oct 2007 10:37:59 +0000 (12:37 +0200)]
arm: sg fallout

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
17 years agomips: sg_page() fallout
Jens Axboe [Tue, 23 Oct 2007 10:32:34 +0000 (12:32 +0200)]
mips: sg_page() fallout

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
17 years agoalpha: sg_virt() fallout
Jens Axboe [Tue, 23 Oct 2007 10:31:05 +0000 (12:31 +0200)]
alpha: sg_virt() fallout

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
17 years ago[AVR32] ARRAY_SIZE() cleanup
Alejandro Martinez Ruiz [Mon, 22 Oct 2007 19:18:24 +0000 (21:18 +0200)]
[AVR32] ARRAY_SIZE() cleanup

Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>