]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
17 years agoARM: OMAP: timer32k: fix tick count calculation when reprogramming
Imre Deak [Thu, 6 Jul 2006 16:23:09 +0000 (19:23 +0300)]
ARM: OMAP: timer32k: fix tick count calculation when reprogramming

Reprogramming takes places before putting the CPU into idle mode if
the dynamic tick option is enabled. The timer is then set to expire
at the next pending timer event. Because some time has already passed
since the last reported jiffy we have to wait less than the time
specified in jiffies.

Also make sure we don't set a load value of 0 whose outcome is
unspecified according to the TRM.

Signed-off-by: Imre Deak <imre.deak@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoARM: OMAP: omapfb: screen base should be set for allocated memory regions
Imre Deak [Thu, 6 Jul 2006 16:06:10 +0000 (19:06 +0300)]
ARM: OMAP: omapfb: screen base should be set for allocated memory regions

FB kernel virtual address was left unset causing the FB console crash on
OMAP1.

Signed-off-by: Imre Deak <imre.deak@solidboot.com>
17 years agoLED: Add driver for LEDs connected to OMAP PWM
Juha Yrjola [Mon, 24 Jul 2006 13:46:26 +0000 (16:46 +0300)]
LED: Add driver for LEDs connected to OMAP PWM

The PWM block on the TI OMAP CPU can drive some external GPIOs.  LEDs
can be connected to these GPIOs.

Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoInput: ads7846: leave Vref on during differential measurements optionally
imre.deak@solidboot.com [Mon, 3 Jul 2006 18:40:10 +0000 (21:40 +0300)]
Input: ads7846: leave Vref on during differential measurements optionally

On some LCDs leaving the Vref on provides much better readings.

Signed-off-by: Jarkko Oikarinen <jarkko.oikarinen@nokia.com>
Signed-off-by: Imre Deak <imre.deak@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoInput: ads7846: pluggable filtering logic
imre.deak@solidboot.com [Mon, 3 Jul 2006 18:36:53 +0000 (21:36 +0300)]
Input: ads7846: pluggable filtering logic

Some LCDs like the LS041Y3 require a customized filtering
logic for reliable readings, so make the filtering function
replacable through platform specific hooks.

Signed-off-by: Imre Deak <imre.deak@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoInput: ads7846: switch to hrtimer
imre.deak@solidboot.com [Mon, 3 Jul 2006 18:34:16 +0000 (21:34 +0300)]
Input: ads7846: switch to hrtimer

Use hrtimer instead of the normal timer, since it provides better
sampling resolution. This will:

- avoid a problem where we have a 1 jiffy poll period and dynamic tick on
- utilize high resolution HW clocks when they are added to the hrtimer
  framework

Signed-off-by: Imre Deak <imre.deak@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoInput: ads7846: detect pen up from IRQ state
imre.deak@solidboot.com [Wed, 5 Jul 2006 16:18:32 +0000 (19:18 +0300)]
Input: ads7846: detect pen up from IRQ state

We can't depend on the pressure value to determine when the pen was
lifted, so use the IRQ line state instead.

Signed-off-by: Imre Deak <imre.deak@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoARM: OMAP: DISPC: DMA underflow for high graphics bandwith
Imre Deak [Wed, 12 Jul 2006 11:18:57 +0000 (14:18 +0300)]
ARM: OMAP: DISPC: DMA underflow for high graphics bandwith

DISPC DMA can, in certain conditions, underflow which will trigger an error
condition and halt the graphics pipeline. The only way to recover from
this would be to reset the related HW modules, which would abort the
current transfer and cause unwanted visual side-effects. The problem
arises mainly when enabling multiple planes with higher resolutions.

The arbitration priority of the DISPC DMA cannot be raised higher, thus -
so far - the only workaround is to keep the DMA FIFO full as much as
possible to minimize the risk of it being totally drained. The patch does
this for external LCD controllers connected to RFBI, where the new FIFO
setting doesn't degrade power consumption significantly.

Signed-off-by: Imre Deak <imre.deak@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoIDLETIMER: We shouldn't sleep in the timer routine
Samuel Ortiz [Thu, 13 Jul 2006 12:24:25 +0000 (15:24 +0300)]
IDLETIMER: We shouldn't sleep in the timer routine

Currently, IDLETIMER timer routine calls kobject_uevent, which might sleep.
Since we are in interrupt context, we now schedule a work when the timer
expires. This calls sysfs_notify() for notifying userspace.

Signed-off-by: Samuel Ortiz <samuel.ortiz@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoIDLETIMER: New xt_target prototype
Samuel Ortiz [Thu, 13 Jul 2006 10:04:06 +0000 (13:04 +0300)]
IDLETIMER: New xt_target prototype

In ipt_IDLETIMER.c, we are using an old prototype for xt_target hooks. We need
to pass one additional argument, a pointer to xt_target.
We also need to specify the targetsize value, otherwise registration fails.

Signed-off-by: Samuel Ortiz <samuel.ortiz@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoARM: OMAP: fix RESET_CLOCKS, was broken by gcc4 compile fixes
Kevin Hilman [Wed, 12 Jul 2006 14:14:49 +0000 (07:14 -0700)]
ARM: OMAP: fix RESET_CLOCKS, was broken by gcc4 compile fixes

Signed-off-by: Kevin Hilman <khilman@deeprooted.net>
17 years agoARM: OMAP: Added OMAP24xx camera IRQ definition
Samuel Ortiz [Wed, 5 Jul 2006 16:01:57 +0000 (19:01 +0300)]
ARM: OMAP: Added OMAP24xx camera IRQ definition

Signed-off-by: Samuel Ortiz <samuel.ortiz@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoCBUS: Make Retu RTC and Tahvo USB drivers use sysfs_notify
Juha Yrjola [Thu, 6 Jul 2006 12:04:19 +0000 (15:04 +0300)]
CBUS: Make Retu RTC and Tahvo USB drivers use sysfs_notify

Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoARM: OMAP: Make GPIO switch driver use sysfs_notify
Juha Yrjola [Thu, 6 Jul 2006 12:03:30 +0000 (15:03 +0300)]
ARM: OMAP: Make GPIO switch driver use sysfs_notify

Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoMerge source.mvista.com:/home/git/linux-omap-2.6 v2.6.17-omap1
Tony Lindgren [Tue, 4 Jul 2006 08:50:23 +0000 (01:50 -0700)]
Merge source.mvista.com:/home/git/linux-omap-2.6

17 years agoinput: ads7846: can't disable filtering
Imre Deak [Tue, 4 Jul 2006 08:38:08 +0000 (01:38 -0700)]
input: ads7846: can't disable filtering

When filtering is disabled the driver will ignore all samples and
never detect the pen up event.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
17 years agoUSB: Undefined usb_disconnect
David Brownell [Tue, 4 Jul 2006 08:35:04 +0000 (01:35 -0700)]
USB: Undefined usb_disconnect

Various fixes for the OHCI OMAP glue:

 - Properly use the usbcore HCD lifecycle entry points

 - Remove calls to non-exported usbcore routines.

 - Stop inappropriate export of some bus glue calls

Plus remove some extra whitespace.

17 years agoARM: OMAP: Fix section mismatch warnings
Dirk Behme [Tue, 4 Jul 2006 07:55:42 +0000 (00:55 -0700)]
ARM: OMAP: Fix section mismatch warnings

Fix warnings

WARNING: drivers/pcmcia/omap_cf.o - Section mismatch:
reference to .init.text: from .data between '' (at offset
0x80) and 'omap_cf_ops'

WARNING: sound/arm/omap/snd-omap-alsa-aic23.o - Section
mismatch: reference to .init.text: from .data between ''
(at offset 0x68) and 'aic23_hw_constraints_rates'

Signed-off-by: Dirk Behme <dirk.behme_at_gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoMenelaus: Add function menelaus_get_slot_pin_states
Juha Yrjola [Fri, 30 Jun 2006 16:40:12 +0000 (19:40 +0300)]
Menelaus: Add function menelaus_get_slot_pin_states

Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoMerge 65.200.49.170:linux-omap
Juha Yrjola [Fri, 30 Jun 2006 11:41:35 +0000 (14:41 +0300)]
Merge 65.200.49.170:linux-omap

17 years agoARM: OMAP: Fix GPMC_CS_CONFIG1 writing and typos
Tony Lindgren [Thu, 29 Jun 2006 01:13:16 +0000 (18:13 -0700)]
ARM: OMAP: Fix GPMC_CS_CONFIG1 writing and typos

Fix GPMC_CS_CONFIG1 writing and typos

Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: DMA support for McSPI controller
Samuel Ortiz [Wed, 28 Jun 2006 18:00:56 +0000 (21:00 +0300)]
ARM: OMAP: DMA support for McSPI controller

Signed-off-by: Samuel Ortiz <samuel.ortiz@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoOMAP: McSPI: Start using resources to pass the base address
Samuel Ortiz [Wed, 28 Jun 2006 09:27:05 +0000 (12:27 +0300)]
OMAP: McSPI: Start using resources to pass the base address

Signed-off-by: Samuel Ortiz <samuel.ortiz@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoARM: OMAP: Fix dmtimers and timer32k to compile on OMAP1
Timo Teras [Mon, 26 Jun 2006 15:42:53 +0000 (18:42 +0300)]
ARM: OMAP: Fix dmtimers and timer32k to compile on OMAP1

Fixes compilation errors on OMAP1.

Signed-off-by: Timo Teras <timo.teras@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoARM: OMAP: omapfb: update LCD drivers
Imre Deak [Mon, 26 Jun 2006 15:48:47 +0000 (18:48 +0300)]
ARM: OMAP: omapfb: update LCD drivers

- replace custom debugging stuff with the default kernel one
- pass a pointer to the LCD object instance to member functions
- rename lcd_lph8923 to the more generic lcd_mipid
- use SPI_MODE_1 instead of SPI_MODE_0 in lcd_mipid
- add ESD spike recovery support to lcd_mipid

Signed-off-by: Imre Deak <ext-imre.deak@nokia.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoARM: OMAP: omapfb: main and LCD controller module changes
Imre Deak [Mon, 26 Jun 2006 12:57:29 +0000 (15:57 +0300)]
ARM: OMAP: omapfb: main and LCD controller module changes

- Support for
        - overlays through separate /dev/fbX nodes
        - scaling and color space conversion
        - per-plane memory configuration either in SRAM or SDRAM

- Replace custom debug stuff with the default kernel one

Signed-off-by: Imre Deak <ext-imre.deak@nokia.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoARM: OMAP: omapfb platform file changes
Imre Deak [Mon, 26 Jun 2006 12:52:36 +0000 (15:52 +0300)]
ARM: OMAP: omapfb platform file changes

- OMAP ATAG changes:
        FBMEM - support for per plane memory configurations
        LCD   -  add data_lines, reset GPIO line params

- FB memory configuration:
        Support for per-plane memory configurations with FB location
        either in SRAM or SDRAM.

- DMA consistent memory size:
        Make the ARM DMA consistent memory size overridable. The default
        is 2MB, but for larger frame buffers we may need more. Kconfig
        option is added in the next patch.

Signed-off-by: Imre Deak <ext-imre.deak@nokia.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoMerge branch 'master' of /home/khilman/work/kernel/omap/pristine/
Kevin Hilman [Fri, 23 Jun 2006 22:14:43 +0000 (15:14 -0700)]
Merge branch 'master' of /home/khilman/work/kernel/omap/pristine/

17 years agoMerge source.mvista.com:/home/git/linux-omap-2.6
Tony Lindgren [Wed, 21 Jun 2006 22:27:09 +0000 (15:27 -0700)]
Merge source.mvista.com:/home/git/linux-omap-2.6

17 years agoARM: OMAP: Multiplexing for 24xx GPMC wait pin monitoring
Tony Lindgren [Wed, 21 Jun 2006 22:26:12 +0000 (15:26 -0700)]
ARM: OMAP: Multiplexing for 24xx GPMC wait pin monitoring

Multiplexing for 24xx GPMC wait pin monitoring

Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: fix gcc4 compile errors
Kevin Hilman [Wed, 21 Jun 2006 22:06:29 +0000 (15:06 -0700)]
ARM: OMAP: fix gcc4 compile errors

Signed-off-by: Kevin Hilman <khilman@deeprooted.net>
17 years agoARM: OMAP: MMC: remove stray noisy printk
Kevin Hilman [Wed, 21 Jun 2006 19:04:47 +0000 (12:04 -0700)]
ARM: OMAP: MMC: remove stray noisy printk

Signed-off-by: Kevin Hilman <khilman@deeprooted.net>
17 years agoARM: OMAP: Fix SRAM to use MT_MEMORY instead of MT_DEVICE
Tony Lindgren [Tue, 20 Jun 2006 18:05:17 +0000 (11:05 -0700)]
ARM: OMAP: Fix SRAM to use MT_MEMORY instead of MT_DEVICE

MT_MEMORY is needed in order to execute code in SRAM. Also
need to use section mapping.

Based on a patch by Richard Woodruff.

Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years ago[PATCH] ARM: OMAP: Use gpmc_cs_get_base_addr for H4 smc91x
Komal Shah [Tue, 20 Jun 2006 17:02:56 +0000 (10:02 -0700)]
[PATCH] ARM: OMAP: Use gpmc_cs_get_base_addr for H4 smc91x

Use gpmc_cs_get_base_addr for H4 smc91x

Signed-off-by: Komal Shah <komal_shah802003@yahoo.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years ago[PATCH] ARM: OMAP: Use gpmc_cs_get_base_addr for H4 smc91x
Komal Shah [Tue, 20 Jun 2006 16:44:11 +0000 (09:44 -0700)]
[PATCH] ARM: OMAP: Use gpmc_cs_get_base_addr for H4 smc91x

Use gpmc_cs_get_base_addr for H4 smc91x

Signed-off-by: Komal Shah <komal_shah802003@yahoo.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoMerge with /home/tmlind/src/kernel/linux-2.6
Tony Lindgren [Tue, 20 Jun 2006 16:34:48 +0000 (09:34 -0700)]
Merge with /home/tmlind/src/kernel/linux-2.6

17 years agoARM: OMAP: dmtimers need longer delay when changing source clock
Juha Yrjola [Tue, 20 Jun 2006 13:10:41 +0000 (16:10 +0300)]
ARM: OMAP: dmtimers need longer delay when changing source clock

On OMAP2420, when running MPU at high frequencies, dmtimers need to
have a longer delay for the new functional clock to be active.

Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoARM: OMAP2: McSPI: add debugging for setup and transfer functions
Imre Deak [Mon, 19 Jun 2006 17:31:54 +0000 (20:31 +0300)]
ARM: OMAP2: McSPI: add debugging for setup and transfer functions

Sprinkle dev_dbg's wrapped with VERBOSE to several functions to aid
debugging.

Signed-off-by: Imre Deak <imre.deak@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoARM: OMAP: Update dmtimers
Timo Teras [Mon, 19 Jun 2006 16:37:21 +0000 (19:37 +0300)]
ARM: OMAP: Update dmtimers

- Initialize timer outside of spinlock to reduce the time the spinlock is held
- Do clk_get to the source clocks during initialization to avoid sleeping later
- New function to set counter register

Signed-off-by: Timo Teras <timo.teras@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoOMAP: Make clock variables static
Juha Yrjola [Mon, 19 Jun 2006 15:31:20 +0000 (18:31 +0300)]
OMAP: Make clock variables static

Since the mutex protecting the clock list is static, the list
itself should be too.

Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoOMAP: Fix USB on Nokia 770
Juha Yrjola [Sun, 18 Jun 2006 17:36:06 +0000 (20:36 +0300)]
OMAP: Fix USB on Nokia 770

Also removed unused ochi_omap_host_enable() function.

Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoOMAP: Menelaus cleanups and support for voltages
Juha Yrjola [Sun, 18 Jun 2006 17:15:51 +0000 (20:15 +0300)]
OMAP: Menelaus cleanups and support for voltages

It is now possible to dynamically set VMEM, VIO, VDCDC2 and VDCDC3.

Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
17 years agoLinux v2.6.17 v2.6.17
Linus Torvalds [Sun, 18 Jun 2006 01:49:35 +0000 (18:49 -0700)]
Linux v2.6.17

Being named "Crazed Snow-Weasel" instills a lot of confidence in this
release, so I'm sure this will be one of the better ones.

17 years ago[PATCH] powerpc: enable CPU_FTR_CI_LARGE_PAGE for cell
Arnd Bergmann [Thu, 15 Jun 2006 13:09:16 +0000 (15:09 +0200)]
[PATCH] powerpc: enable CPU_FTR_CI_LARGE_PAGE for cell

Reflect the fact that the Cell Broadband Engine supports 64k
pages by adding the bit to the CPU features.

Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
17 years ago[PATCH] powerpc: Fix 64k pages on non-partitioned machines
Arnd Bergmann [Thu, 15 Jun 2006 11:15:44 +0000 (21:15 +1000)]
[PATCH] powerpc: Fix 64k pages on non-partitioned machines

The page size encoding passed to tlbie is incorrect for new-style
large pages.  This fixes it.  This doesn't affect anything on older
machines because mmu_psize_defs[psize].penc (the page size encoding)
is 0 for 4k and 16M pages (the two are distinguished by a separate "is
a large page" bit).

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
17 years ago[PATCH] arm_timer: remove a racy and obsolete PF_EXITING check
Oleg Nesterov [Thu, 15 Jun 2006 16:12:02 +0000 (20:12 +0400)]
[PATCH] arm_timer: remove a racy and obsolete PF_EXITING check

arm_timer() checks PF_EXITING to prevent BUG_ON(->exit_state)
in run_posix_cpu_timers().

However, for some reason it does so only for CPUCLOCK_PERTHREAD
case (which is imho wrong).

Also, this check is not reliable, PF_EXITING could be set on
another cpu without any locks/barriers just after the check,
so it can't prevent from attaching the timer to the exiting
task.

The previous patch makes this check unneeded.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
17 years ago[PATCH] run_posix_cpu_timers: remove a bogus BUG_ON()
Oleg Nesterov [Thu, 15 Jun 2006 16:11:43 +0000 (20:11 +0400)]
[PATCH] run_posix_cpu_timers: remove a bogus BUG_ON()

do_exit() clears ->it_##clock##_expires, but nothing prevents
another cpu to attach the timer to exiting process after that.
arm_timer() tries to protect against this race, but the check
is racy.

After exit_notify() does 'write_unlock_irq(&tasklist_lock)' and
before do_exit() calls 'schedule() local timer interrupt can find
tsk->exit_state != 0. If that state was EXIT_DEAD (or another cpu
does sys_wait4) interrupted task has ->signal == NULL.

At this moment exiting task has no pending cpu timers, they were
cleanuped in __exit_signal()->posix_cpu_timers_exit{,_group}(),
so we can just return from irq.

John Stultz recently confirmed this bug, see

http://marc.theaimsgroup.com/?l=linux-kernel&m=115015841413687

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
17 years ago[PATCH] check_process_timers: fix possible lockup
Oleg Nesterov [Thu, 15 Jun 2006 16:11:15 +0000 (20:11 +0400)]
[PATCH] check_process_timers: fix possible lockup

If the local timer interrupt happens just after do_exit() sets PF_EXITING
(and before it clears ->it_xxx_expires) run_posix_cpu_timers() will call
check_process_timers() with tasklist_lock + ->siglock held and

check_process_timers:

t = tsk;
do {
....

do {
t = next_thread(t);
} while (unlikely(t->flags & PF_EXITING));
} while (t != tsk);

the outer loop will never stop.

Actually, the window is bigger.  Another process can attach the timer
after ->it_xxx_expires was cleared (see the next commit) and the 'if
(PF_EXITING)' check in arm_timer() is racy (see the one after that).

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
17 years ago[PATCH] sky2: netconsole suspend/resume interaction
Stephen Hemminger [Fri, 16 Jun 2006 19:10:46 +0000 (12:10 -0700)]
[PATCH] sky2: netconsole suspend/resume interaction

A couple of fixes that should prevent crashes when using netconsole and
suspend/resume. First, netconsole poll routine shouldn't run unless the
device is up; second, the NAPI poll should be disabled during suspend.

This is only an issue on sky2, because it has to have one NAPI poll
routine for both ports on dual port boards. Normal drivers use
netif_rx_schedule_prep and that checks for netif_running.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
17 years ago[PATCH] Fix missing ret assignment in __bio_map_user() error path
Jens Axboe [Fri, 16 Jun 2006 11:02:29 +0000 (13:02 +0200)]
[PATCH] Fix missing ret assignment in __bio_map_user() error path

If get_user_pages() returns less pages than what we asked for, we jump
to out_unmap which will return ERR_PTR(ret).  But ret can contain a
positive number just smaller than local_nr_pages, so be sure to set it
to -EFAULT always.

Problem found and diagnosed by Damien Le Moal <damien@sdl.hitachi.co.jp>

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
17 years ago[PATCH] fix cdrom open
Jens Axboe [Fri, 16 Jun 2006 05:46:37 +0000 (07:46 +0200)]
[PATCH] fix cdrom open

Some time ago the cdrom open routine was changed so that we call the
driver's open routine before checking to see if it is read only.  However,
if we discovered that a read write open was not possible and the open
flags required a writable open, we just returned -EROFS without calling
the driver's release routine.   This seems to work for most cdrom drivers,
but breaks the Powerpc iSeries virtual cdrom rather badly.

This just inserts the release call in the error path to balance the call
to "->open()" done by "open_for_data()".

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
17 years agoARM: OMAP: Fix GPMC compilation when DEBUG is defined
Juha Yrjola [Fri, 16 Jun 2006 12:00:47 +0000 (15:00 +0300)]
ARM: OMAP: Fix GPMC compilation when DEBUG is defined

Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
18 years agoARM: OMAP: Mux updates for external DMA and GPIO
Tony Lindgren [Thu, 15 Jun 2006 01:29:21 +0000 (18:29 -0700)]
ARM: OMAP: Mux updates for external DMA and GPIO

Mux updates for external DMA and GPIO. GPIO updates
by Igor Stoppa.

Signed-off-by: Tony Lindgren <tony@atomide.com>
18 years agoFix CONFIG_PRINTK_TIME
Tony Lindgren [Thu, 15 Jun 2006 01:26:39 +0000 (18:26 -0700)]
Fix CONFIG_PRINTK_TIME

Fix CONFIG_PRINTK_TIME hangs on systems where sched_clock() does
not work before timer is initialized.

For example, on OMAP, symptoms of this problem include system
only booting with low level debug enabled when using 32KHz timer.

Signed-off-by: Tony Lindgren <tony@atomide.com>
18 years agoMerge source.mvista.com:/home/git/linux-omap-2.6
Tony Lindgren [Thu, 15 Jun 2006 01:24:25 +0000 (18:24 -0700)]
Merge source.mvista.com:/home/git/linux-omap-2.6

18 years agoOMAP: Clean up MMC driver, part 1
Juha Yrjola [Wed, 14 Jun 2006 20:25:53 +0000 (23:25 +0300)]
OMAP: Clean up MMC driver, part 1

- Move register definitions away from the header file
- Change OMAP_MMC_{READ,WRITE} macros to use the host pointer
- Replace base with virt_base and phys_base
- Implement OMAP2420 initialization workaround
- General code cleanups

Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
18 years agoARM: OMAP: McSPI: handle clock enable / disable in omap2_mcspi
Imre Deak [Wed, 14 Jun 2006 17:42:47 +0000 (20:42 +0300)]
ARM: OMAP: McSPI: handle clock enable / disable in omap2_mcspi

Enable / disable the mcspi_ick and mcspi_fck clocks in omap2_mcspi_probe
and omap2_mcspi_remove respectively.

Drop the ref count on the class device in omap2_mcspi_remove.

Change the clock names for mcspi_ick[123] and mcspi_fck[123] to mcspi_ick
and mcspi_fck, use instead the clk.id field for the bus id.

Signed-off-by: Imre Deak <imre.deak@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
18 years ago[PATCH] cfq-iosched: fix crash in do_div()
Jens Axboe [Wed, 14 Jun 2006 17:11:57 +0000 (19:11 +0200)]
[PATCH] cfq-iosched: fix crash in do_div()

We don't clear the seek stat values in cfq_alloc_io_context(), and if
->seek_mean is unlucky enough to be set to -36 by chance, the first
invocation of cfq_update_io_seektime() will oops with a divide by zero
in do_div().

Just memset the entire cic instead of filling invididual values
independently.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] Return error in case flock_lock_file failure
Kirill Korotaev [Wed, 14 Jun 2006 13:59:35 +0000 (17:59 +0400)]
[PATCH] Return error in case flock_lock_file failure

If flock_lock_file() failed to allocate flock with locks_alloc_lock()
then "error = 0" is returned. Need to return some non-zero.

Signed-off-by: Pavel Emelianov <xemul@openvz.org>
Signed-off-by: Kirill Korotaev <dev@openvz.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years agoOMAP: camera code cleanups and compilation fixes
Samuel Ortiz [Wed, 14 Jun 2006 11:58:12 +0000 (14:58 +0300)]
OMAP: camera code cleanups and compilation fixes

- Fixed the Makefile: camera_core should be compiled only for OMAP1, and in
  conjunction with omap16xxcam.c.
- Fixed the sensor->init() calls and prototype in camera_core.c and
  sensor_ov9640.c.
- Ported the code to the new videobuf code.
- Renamed camera_sensor to omap_camera_sensor since this is an OMAP-specific
  structure.

Signed-off-by: Samuel Ortiz <samuel.ortiz@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
18 years agoARM: OMAP: Add OMAP_TAG_CAMERA_SENSOR
Samuel Ortiz [Wed, 14 Jun 2006 11:25:29 +0000 (14:25 +0300)]
ARM: OMAP: Add OMAP_TAG_CAMERA_SENSOR

Add platform config data for camera sensors.  Since it includes pointers,
it should not be passed from the bootloader.

Signed-off-by: Samuel Ortiz <samuel.ortiz@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
18 years agoOMAP: Clean up Menelaus driver and add VIO and VMEM support
Samuel Ortiz [Wed, 14 Jun 2006 11:14:36 +0000 (14:14 +0300)]
OMAP: Clean up Menelaus driver and add VIO and VMEM support

Add support for enabling/disabling VIO and VMEM. Implement
proper locking. Clean up code.

Signed-off-by: Samuel Ortiz <samuel.ortiz@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
18 years ago[PATCH] ARM: OMAP: Update H4 defconfig
Komal Shah [Tue, 13 Jun 2006 20:20:49 +0000 (13:20 -0700)]
[PATCH] ARM: OMAP: Update H4 defconfig

Update H4 defconfig

Signed-off-by: Komal Shah <komal_shah802003@yahoo.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
18 years ago[PATCH] sky2: stop/start hardware idle timer on suspend/resume
Stephen Hemminger [Tue, 13 Jun 2006 08:17:31 +0000 (17:17 +0900)]
[PATCH] sky2: stop/start hardware idle timer on suspend/resume

The resume bug was caused not by an early interrupt but because the idle
timeout was not being stopped on suspend.  Also disable hardware IRQ's
on suspend.  Will need to revisit this with hotplug?

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] sky2: save/restore base hardware irq during suspend/resume
Stephen Hemminger [Tue, 13 Jun 2006 08:17:30 +0000 (17:17 +0900)]
[PATCH] sky2: save/restore base hardware irq during suspend/resume

The hardware should be fully shut off during suspend, and the base
irq mask restored during resume.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] sky2: fix hotplug detect during poll
Stephen Hemminger [Tue, 13 Jun 2006 08:17:29 +0000 (17:17 +0900)]
[PATCH] sky2: fix hotplug detect during poll

If the poll routine detects no hardware available, it needs to dequeue
it self from the network poll list. Linus didn't understand NAPI.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] sky2: don't hard code number of ports
Stephen Hemminger [Tue, 13 Jun 2006 08:17:28 +0000 (17:17 +0900)]
[PATCH] sky2: don't hard code number of ports

It is cleaner, to not loop over both ports if only one exists.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] sky2: set_power_state should be void
Stephen Hemminger [Tue, 13 Jun 2006 08:17:27 +0000 (17:17 +0900)]
[PATCH] sky2: set_power_state should be void

The set power state function is cleaner if it doesn't return anything.
The only caller that could fail is in suspend() and it can check the argument
there.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years agoARM: OMAP: Add initial 24xx suspend support
Tony Lindgren [Tue, 13 Jun 2006 19:47:01 +0000 (12:47 -0700)]
ARM: OMAP: Add initial 24xx suspend support

This patch adds support for omap24xx power domains and
allows suspend to work.

Please note that for some reason core power domain still
does not seem to idle.

Signed-off-by: Tony Lindgren <tony@atomide.com>
18 years agoARM: Add ARM11 oprofile support
Tony Lindgren [Tue, 13 Jun 2006 18:18:03 +0000 (11:18 -0700)]
ARM: Add ARM11 oprofile support

This patch adds oprofile support for ARM11.

Signed-off-by: Tony Lindgren <tony@atomide.com>
18 years agoARM: OMAP: Update cpufreq support for 24xx
Tony Lindgren [Tue, 13 Jun 2006 18:13:44 +0000 (11:13 -0700)]
ARM: OMAP: Update cpufreq support for 24xx

Update cpufreq support for 24xx

Signed-off-by: Tony Lindgren <tony@atomide.com>
18 years agoMerge with /home/tmlind/src/kernel/linux-2.6
Tony Lindgren [Tue, 13 Jun 2006 17:21:48 +0000 (10:21 -0700)]
Merge with /home/tmlind/src/kernel/linux-2.6

18 years ago[PATCH] alpha: generic hweight build fix
Randy Dunlap [Mon, 12 Jun 2006 22:13:40 +0000 (15:13 -0700)]
[PATCH] alpha: generic hweight build fix

From: Randy Dunlap <rdunlap@xenotime.net>

According to include/asm-alpha/bitops.h, only ALPHA_EV67 has hardware
hweight support, so ALPHA_EV6 needs to use GENERIC_HWEIGHT.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Ernst Herzberg <earny@net4u.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years agoARM: OMAP: Add GPMC support for OMAP2
Juha Yrjola [Mon, 12 Jun 2006 21:31:50 +0000 (00:31 +0300)]
ARM: OMAP: Add GPMC support for OMAP2

Implement basic support for General-Purpose Memory Controller
as found on OMAP2420.

Dynamic CS address space allocation still needs to be done.

Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
18 years ago[PATCH] tmpfs: Decrement i_nlink correctly in shmem_rmdir()
Sergey Vlasov [Mon, 12 Jun 2006 20:53:23 +0000 (21:53 +0100)]
[PATCH] tmpfs: Decrement i_nlink correctly in shmem_rmdir()

shmem_rmdir() must undo the increment of i_nlink done in
shmem_get_inode() for directories, otherwise at least
IN_DELETE_SELF inotify event generation is broken.

Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years agoARM: OMAP: Additional 24xx DMA fixes and functions
Tony Lindgren [Mon, 12 Jun 2006 21:03:30 +0000 (14:03 -0700)]
ARM: OMAP: Additional 24xx DMA fixes and functions

- DMA priority is set for each channel on 24xx, not for each port

- Add support for setting 24xx DMA write mode

- Add support for changing dma callback function and data

Signed-off-by: Tony Lindgren <tony@atomide.com>
18 years ago[PATCH] tmpfs: time granularity fix for [acm]time going backwards
Robin H. Johnson [Mon, 12 Jun 2006 20:50:25 +0000 (21:50 +0100)]
[PATCH] tmpfs: time granularity fix for [acm]time going backwards

I noticed a strange behavior in a tmpfs file system the other day, while
building packages - occasionally, and seemingly at random, make decided to
rebuild a target. However, only on tmpfs.

A file would be created, and if checked, it had a sub-second timestamp.
However, after an utimes related call where sub-seconds should be set, they
were zeroed instead. In the case that a file was created, and utimes(...,NULL)
was used on it in the same second, the timestamp on the file moved backwards.

After some digging, I found that this was being caused by tmpfs not having a
time granularity set, thus inheriting the default 1 second granularity.

Hugh adds: yes, we missed tmpfs when the s_time_gran mods went into 2.6.11.
Unfortunately, the granularity of CURRENT_TIME, often used in filesystems,
does not match the default granularity set by alloc_super.  A few more such
discrepancies have been found, but this is the most important to fix now.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Acked-by: Andi Kleen <ak@suse.de>
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years agoMerge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6
Linus Torvalds [Mon, 12 Jun 2006 20:46:43 +0000 (13:46 -0700)]
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6

* master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
  [SPARC64]: Do not double-export sys_close() when CONFIG_SOLARIS_EMUL_MODULE

18 years agoMerge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Linus Torvalds [Mon, 12 Jun 2006 20:46:27 +0000 (13:46 -0700)]
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6

* master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
  [IPV4]: Increment ipInHdrErrors when TTL expires.
  [TCP]: continued: reno sacked_out count fix
  [DCCP] Ackvec: fix soft lockup in ackvec handling code

18 years agoMerge master.kernel.org:/home/rmk/linux-2.6-arm
Linus Torvalds [Mon, 12 Jun 2006 20:45:41 +0000 (13:45 -0700)]
Merge master.kernel.org:/home/rmk/linux-2.6-arm

* master.kernel.org:/home/rmk/linux-2.6-arm:
  [ARM] Fix Integrator and Versatile interrupt initialisation
  [ARM] 3546/1: PATCH: subtle lost interrupts bug on i.MX
  [ARM] 3547/1: PXA-OHCI: Allow platforms to specify a power budget
  [ARM] Fix Neponset IRQ handling

18 years agoARM: OMAP: Fix DMA channel irq handling for omap24xx
Tony Lindgren [Mon, 12 Jun 2006 20:15:46 +0000 (13:15 -0700)]
ARM: OMAP: Fix DMA channel irq handling for omap24xx

- DMA CSR register is cleared by reading on omap1, but on
  omap2 it is cleard by writing to it.

- DMA TOUT interrupt does not exist on omap24xx, rename it

- Add SECURE and MISALIGNED errors by default for omap24xx

- Add defines for external DMA request lines

Signed-off-by: Tony Lindgren <tony@atomide.com>
18 years ago[IPV4]: Increment ipInHdrErrors when TTL expires.
Weidong [Mon, 12 Jun 2006 20:09:59 +0000 (13:09 -0700)]
[IPV4]: Increment ipInHdrErrors when TTL expires.

Signed-off-by: Weidong <weid@nanjing-fnst.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[sky2] Fix sky2 network driver suspend/resume
Linus Torvalds [Mon, 12 Jun 2006 19:53:27 +0000 (12:53 -0700)]
[sky2] Fix sky2 network driver suspend/resume

This fixes two independent problems: it would not save the PCI state on
suspend (and thus try to resume a nonexistent state on resume), and
while shut off, if an interrupt happened on the same shared irq, the irq
handler would react very badly to the interrupt status being an invalid
all-ones state.

Acked-by: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] ARM: OMAP: OMAP2 DMA burst support
Kyungmin Park [Mon, 12 Jun 2006 19:17:49 +0000 (12:17 -0700)]
[PATCH] ARM: OMAP: OMAP2 DMA burst support

OMAP2 DMA burst setting support

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
18 years agoARM: OMAP: omap_uwire: use arm_xor clock as functional clock
Imre Deak [Mon, 12 Jun 2006 17:20:27 +0000 (20:20 +0300)]
ARM: OMAP: omap_uwire: use arm_xor clock as functional clock

- the uwire module uses the arm_xor as functional clock, not the arm_per clock
- fix word size sanity check

Signed-off-by: Imre Deak <imre.deak@nokia.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
18 years agoARM: OMAP: omap_uwire: wait for tx complete before starting the next one
Imre Deak [Fri, 9 Jun 2006 15:17:50 +0000 (18:17 +0300)]
ARM: OMAP: omap_uwire: wait for tx complete before starting the next one

The TDR register shouldn't be written when the CSRB flag is set. The fix
solves the problem where one SPI transfer includes multiple 8 or 16 bit
tx elements and the current transfer can be corrupted by accessing the
TDR too early.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
18 years agoARM: OMAP: SoSSI: fix write / read cycle to tw1 mapping
Imre Deak [Mon, 12 Jun 2006 15:17:33 +0000 (18:17 +0300)]
ARM: OMAP: SoSSI: fix write / read cycle to tw1 mapping

A read / write cycle is defined by tw0 + tw1. It was wrongly assumed that
the 1 cycle long CS active edge to read / write active edge is part of
each cycle, thus we ended up with too low tw1 value -> too short cycle
time.

Signed-off-by: Imre Deak <imre.deak@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
18 years agoMerge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik...
Linus Torvalds [Mon, 12 Jun 2006 14:47:04 +0000 (07:47 -0700)]
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev

* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev:
  [PATCH] sata_mv: grab host lock inside eng_timeout

18 years ago[TCP]: continued: reno sacked_out count fix
Aki M Nyrhinen [Mon, 12 Jun 2006 04:18:56 +0000 (21:18 -0700)]
[TCP]: continued: reno sacked_out count fix

From: Aki M Nyrhinen <anyrhine@cs.helsinki.fi>

IMHO the current fix to the problem (in_flight underflow in reno)
is incorrect.  it treats the symptons but ignores the problem. the
problem is timing out packets other than the head packet when we
don't have sack. i try to explain (sorry if explaining the obvious).

with sack, scanning the retransmit queue for timed out packets is
fine because we know which packets in our retransmit queue have been
acked by the receiver.

without sack, we know only how many packets in our retransmit queue the
receiver has acknowledged, but no idea which packets.

think of a "typical" slow-start overshoot case, where for example
every third packet in a window get lost because a router buffer gets
full.

with sack, we check for timeouts on those every third packet (as the
rest have been sacked). the packet counting works out and if there
is no reordering, we'll retransmit exactly the packets that were
lost.

without sack, however, we check for timeout on every packet and end up
retransmitting consecutive packets in the retransmit queue. in our
slow-start example, 2/3 of those retransmissions are unnecessary. these
unnecessary retransmissions eat the congestion window and evetually
prevent fast recovery from continuing, if enough packets were lost.

Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[DCCP] Ackvec: fix soft lockup in ackvec handling code
Andrea Bittau [Mon, 12 Jun 2006 03:58:33 +0000 (20:58 -0700)]
[DCCP] Ackvec: fix soft lockup in ackvec handling code

A soft lockup existed in the handling of ack vector records.
Specifically, when a tail of the list of ack vector records was
removed, it was possible to end up iterating infinitely on an element
of the tail.

Signed-off-by: Andrea Bittau <a.bittau@cs.ucl.ac.uk>
Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[SPARC64]: Do not double-export sys_close() when CONFIG_SOLARIS_EMUL_MODULE
David S. Miller [Mon, 12 Jun 2006 04:00:46 +0000 (21:00 -0700)]
[SPARC64]: Do not double-export sys_close() when CONFIG_SOLARIS_EMUL_MODULE

It is already exported by fs/open.c

Noticed by Ben Collins.

Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[PATCH] Fix for the PPTP hangs that have been reported
Paul Mackerras [Mon, 12 Jun 2006 02:16:26 +0000 (12:16 +1000)]
[PATCH] Fix for the PPTP hangs that have been reported

People have been reporting that PPP connections over ptys, such as
used with PPTP, will hang randomly when transferring large amounts of
data, for instance in http://bugzilla.kernel.org/show_bug.cgi?id=6530.
I have managed to reproduce the problem, and the patch below fixes the
actual cause.

The problem is not in fact in ppp_async.c but in n_tty.c.  What
happens is that when pptp reads from the pty, we call read_chan() in
drivers/char/n_tty.c on the master side of the pty.  That copies all
the characters out of its buffer to userspace and then calls
check_unthrottle(), which calls the pty unthrottle routine, which
calls tty_wakeup on the slave side, which calls ppp_asynctty_wakeup,
which calls tasklet_schedule.  So far so good.  Since we are in
process context, the tasklet runs immediately and calls
ppp_async_process(), which calls ppp_async_push, which calls the
tty->driver->write function to send some more output.

However, tty->driver->write() returns zero, because the master
tty->receive_room is still zero.  We haven't returned from
check_unthrottle() yet, and read_chan() only updates tty->receive_room
_after_ calling check_unthrottle.  That means that the driver->write
call in ppp_async_process() returns 0.  That would be fine if we were
going to get a subsequent wakeup call, but we aren't (we just had it,
and the buffer is now empty).

The solution is for n_tty.c to update tty->receive_room _before_
calling the driver unthrottle routine.  The patch below does this.
With this patch I was able to transfer a 900MB file over a PPTP
connection (taking about 25 minutes), whereas without the patch the
connection would always stall in under a minute.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] sata_mv: grab host lock inside eng_timeout
Mark Lord [Wed, 7 Jun 2006 16:53:29 +0000 (12:53 -0400)]
[PATCH] sata_mv: grab host lock inside eng_timeout

Bug fix:  mv_eng_timeout() calls mv_err_intr() without first grabbing the host lock,
which can lead to all sorts of interesting scenarios.

This whole error-handling portion of sata_mv is nasty (and will get fixed for
the new EH stuff), but for now this patch will help keep it on life-support.

Signed-off-by: Mark Lord <liml@rtr.ca>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
18 years agoMerge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6
Linus Torvalds [Sun, 11 Jun 2006 22:28:04 +0000 (15:28 -0700)]
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6

* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6:
  [PATCH] PCI: reverse pci config space restore order
  [PATCH] PCI: Improve PCI config space writeback
  [PATCH] PCI: Error handling on PCI device resume
  [PATCH] PCI: fix pciehp compile issue when CONFIG_ACPI is not enabled

18 years ago[PATCH] typo in vmscan.c
Christoph Lameter [Sun, 11 Jun 2006 22:22:26 +0000 (15:22 -0700)]
[PATCH] typo in vmscan.c

From: Christoph Lameter <clameter@sgi.com>

Looks like a comma was left from the conversion from a struct to an
assignment.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
18 years ago[PATCH] PCI: reverse pci config space restore order
Yu, Luming [Tue, 25 Apr 2006 07:00:34 +0000 (00:00 -0700)]
[PATCH] PCI: reverse pci config space restore order

According to Intel ICH spec, there are several rules that Base Address
should be programmed before IOSE  (PCICMD register ) enabled.

For example ICH7:

12.1.3  SATA : the base address register for the bus master register
               should be programmed before this bit is set.

11.1.3:  PCICMD (USB): The base address register for USB should be
                       programmed before this bit is set.
....

To make sure kernel code follow this rule , and prevent unnecessary
confusion. I proposal this patch.

Signed-off-by: Luming Yu <luming.yu@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years ago[PATCH] PCI: Improve PCI config space writeback
Dave Jones [Wed, 19 Apr 2006 04:06:51 +0000 (21:06 -0700)]
[PATCH] PCI: Improve PCI config space writeback

At least one laptop blew up on resume from suspend with a black screen due
to a lack of this patch.  By only writing back config space that is
different, we minimise the possibility of accidents like this.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years ago[PATCH] PCI: Error handling on PCI device resume
Jean Delvare [Tue, 18 Apr 2006 12:49:56 +0000 (14:49 +0200)]
[PATCH] PCI: Error handling on PCI device resume

We currently don't handle errors properly when resuming a PCI device:
* In pci_default_resume() we capture the error code returned by
  pci_enable_device() but don't pass it up to the caller.
  Introduced by commit 95a629657dbe28e44a312c47815b3dc3f1ce0970
* In pci_resume_device(), the errors possibly returned by the driver's
  .resume method or by the generic pci_default_resume() function are
  ignored.

This patch fixes both issues.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years ago[PATCH] PCI: fix pciehp compile issue when CONFIG_ACPI is not enabled
akpm@osdl.org [Sat, 13 May 2006 15:30:52 +0000 (08:30 -0700)]
[PATCH] PCI: fix pciehp compile issue when CONFIG_ACPI is not enabled

Fix build error when CONFIG_ACPI not defined

Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18 years ago[SPARC]: Migration cost tune up in sparc smp.
Krzysztof Helt [Sun, 11 Jun 2006 05:03:43 +0000 (22:03 -0700)]
[SPARC]: Migration cost tune up in sparc smp.

This patch sets the max_cache_size value required to tune up
scheduler in SMP systems. Otherwise, the calculated
migration_cost is too high and task scheduling may lock up.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>