linux-2.6.git
11 years agoBlackfin: add support for the on-chip MAC status interrupts
Michael Hennerich [Fri, 19 Feb 2010 15:09:10 +0000 (15:09 +0000)]
Blackfin: add support for the on-chip MAC status interrupts

This patch provides infrastructure for MAC Wake-On-Lan and PHYINT use in
phylib.  New Interrupts added:

IRQ_MAC_PHYINT   /* PHY_INT Interrupt */
IRQ_MAC_MMCINT   /* MMC Counter Interrupt */
IRQ_MAC_RXFSINT  /* RX Frame-Status Interrupt */
IRQ_MAC_TXFSINT  /* TX Frame-Status Interrupt */
IRQ_MAC_WAKEDET  /* Wake-Up Interrupt */
IRQ_MAC_RXDMAERR /* RX DMA Direction Error Interrupt */
IRQ_MAC_TXDMAERR /* TX DMA Direction Error Interrupt */
IRQ_MAC_STMDONE  /* Station Mgt. Transfer Done Interrupt */

On BF537/6 the implementation is not straight forward since there are now
two chained chained_handlers.  A cleaner approach would have been to add
latter IRQs to the demux of IRQ_GENERIC_ERROR.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: asm/page.h: pull in asm-generic headers
Mike Frysinger [Tue, 16 Feb 2010 09:03:10 +0000 (04:03 -0500)]
Blackfin: asm/page.h: pull in asm-generic headers

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: mark gpio lib functions static
Joachim Eastwood [Thu, 11 Feb 2010 11:41:11 +0000 (12:41 +0100)]
Blackfin: mark gpio lib functions static

Signed-off-by: Joachim Eastwood <joachim.eastwood@jotron.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: bf537-stamp: add example ADAU1361 resources
Cliff Cai [Thu, 11 Feb 2010 09:27:18 +0000 (09:27 +0000)]
Blackfin: bf537-stamp: add example ADAU1361 resources

Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: GPIO: implement to_irq handler
Joachim Eastwood [Wed, 10 Feb 2010 11:31:41 +0000 (12:31 +0100)]
Blackfin: GPIO: implement to_irq handler

This makes it possible to support IRQs coming from off-chip GPIO
controllers.

Signed-off-by: Joachim Eastwood <joachim.eastwood@jotron.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: bf537-stamp: add example ADP122/ADP150 power regulator resources
Sonic Zhang [Wed, 10 Feb 2010 09:09:05 +0000 (09:09 +0000)]
Blackfin: bf537-stamp: add example ADP122/ADP150 power regulator resources

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: bf537-stamp: add example AD2S90 resources
Graf Yang [Wed, 10 Feb 2010 07:15:59 +0000 (07:15 +0000)]
Blackfin: bf537-stamp: add example AD2S90 resources

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: bf537-stamp: add example AD5398 power regulator resources
Sonic Zhang [Tue, 9 Feb 2010 02:47:09 +0000 (02:47 +0000)]
Blackfin: bf537-stamp: add example AD5398 power regulator resources

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: remove trailing space in messages
Frans Pop [Sat, 6 Feb 2010 17:47:18 +0000 (18:47 +0100)]
Blackfin: remove trailing space in messages

Signed-off-by: Frans Pop <elendil@planet.nl>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: bf537-stamp: add example ADS7846 touchscreen resources
Michael Hennerich [Thu, 4 Feb 2010 14:41:39 +0000 (14:41 +0000)]
Blackfin: bf537-stamp: add example ADS7846 touchscreen resources

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: add support for restart_syscall()
Mike Frysinger [Fri, 29 Jan 2010 01:33:54 +0000 (01:33 +0000)]
Blackfin: add support for restart_syscall()

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: check for bad syscalls after tracing it
Mike Frysinger [Fri, 12 Feb 2010 07:24:34 +0000 (07:24 +0000)]
Blackfin: check for bad syscalls after tracing it

We want to report all system calls (even invalid ones) to the tracing
layers, so check the NR only after we've notified.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: fix single stepping over system calls
Mike Frysinger [Wed, 17 Feb 2010 10:44:22 +0000 (10:44 +0000)]
Blackfin: fix single stepping over system calls

On Blackfin systems, the hardware single step exception triggers before
the system call exception, so we need to save this info to process it
later on.  Otherwise, single stepping in userspace misses a few insns
right after the system call.

This is based a bit on the SuperH code added in commit 4b505db9c4c72dbd.

Reported-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: initial tracehook support
Mike Frysinger [Tue, 26 Jan 2010 07:33:53 +0000 (07:33 +0000)]
Blackfin: initial tracehook support

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: initial regset support
Mike Frysinger [Sun, 14 Feb 2010 22:58:02 +0000 (22:58 +0000)]
Blackfin: initial regset support

We don't support core dumps (yet?), but this should make things easier.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: simplify PTRACE_{PEEK,POKE}USR in preperation for regset support
Mike Frysinger [Sun, 14 Feb 2010 22:56:24 +0000 (22:56 +0000)]
Blackfin: simplify PTRACE_{PEEK,POKE}USR in preperation for regset support

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: simplify SYSCFG code a bit and ignore attempts to change it
Mike Frysinger [Sun, 14 Feb 2010 22:49:59 +0000 (22:49 +0000)]
Blackfin: simplify SYSCFG code a bit and ignore attempts to change it

We don't want to let user space modify the SYSCFG register arbitrarily as
the settings are system wide (SNEN/CNEN) and can cause misbehavior.  The
only other bit here (SSSTEP) has proper controls via PTRACE_SINGLESTEP.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: use generic ptrace_resume code
Christoph Hellwig [Wed, 3 Feb 2010 09:15:57 +0000 (09:15 +0000)]
Blackfin: use generic ptrace_resume code

Use the generic ptrace_resume code for PTRACE_SYSCALL, PTRACE_CONT,
PTRACE_KILL and PTRACE_SINGLESTEP.  This implies defining
arch_has_single_step in <asm/ptrace.h> and implementing the
user_enable_single_step and user_disable_single_step functions, which
also causes the breakpoint information to be cleared on fork, which
could be considered a bug fix.

Also the TIF_SYSCALL_TRACE thread flag is now cleared on PTRACE_KILL
which it previously wasn't which is consistent with all architectures
using the modern ptrace code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: bf537-stamp: add example AD715{0,2}/AD774{5,6,7} IIO resources
Barry Song [Wed, 3 Feb 2010 09:15:31 +0000 (09:15 +0000)]
Blackfin: bf537-stamp: add example AD715{0,2}/AD774{5,6,7} IIO resources

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: rewrite resync_core_{i,d}cache() SMP logic to avoid per_cpu data
Graf Yang [Mon, 1 Feb 2010 06:07:50 +0000 (06:07 +0000)]
Blackfin: rewrite resync_core_{i,d}cache() SMP logic to avoid per_cpu data

This functions are implicitly called by core functions like cpu_relax(),
and since those functions may be called early on before common code has
initialized the per-cpu data area, we need to tweak the stats gathering.
Now the statistics are maintained in common bss which makes these funcs
safe to use as soon as the C runtime env is setup.

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: add support for cpufreq on SMP systems
Graf Yang [Wed, 27 Jan 2010 11:16:32 +0000 (11:16 +0000)]
Blackfin: add support for cpufreq on SMP systems

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: rename AD1938 to AD193X in board files
Barry Song [Wed, 27 Jan 2010 09:01:36 +0000 (09:01 +0000)]
Blackfin: rename AD1938 to AD193X in board files

The ASoC codec driver was generalized and renamed, so update the board
resources accordingly.

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: add CALLER_ADDR ftrace macros
Yi Li [Tue, 26 Jan 2010 04:02:44 +0000 (04:02 +0000)]
Blackfin: add CALLER_ADDR ftrace macros

Since GCC doesn't support __builtin_frame_address(n) where n!=0, add our
own function to walk the stack frame pointers.

Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: move KGDB selection to the way other arches do it
Mike Frysinger [Mon, 25 Jan 2010 22:12:32 +0000 (22:12 +0000)]
Blackfin: move KGDB selection to the way other arches do it

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: split watchdog definitions into a dedicated header file
Graf Yang [Mon, 25 Jan 2010 03:47:43 +0000 (03:47 +0000)]
Blackfin: split watchdog definitions into a dedicated header file

This allows things to be shared between the different watchdog sources.

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: add dma_disable_irq_nosync() API for irq handlers
Barry Song [Fri, 22 Jan 2010 10:07:30 +0000 (10:07 +0000)]
Blackfin: add dma_disable_irq_nosync() API for irq handlers

Some IRQ handlers need to disable a DMA channel without waiting.

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: fix whitespace damage in thread_info.h
Mike Frysinger [Fri, 22 Jan 2010 14:11:20 +0000 (09:11 -0500)]
Blackfin: fix whitespace damage in thread_info.h

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: support new ftrace frame pointer semantics
Mike Frysinger [Fri, 22 Jan 2010 12:59:32 +0000 (07:59 -0500)]
Blackfin: support new ftrace frame pointer semantics

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: implement ftrace mcount test
Mike Frysinger [Fri, 22 Jan 2010 12:35:20 +0000 (07:35 -0500)]
Blackfin: implement ftrace mcount test

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: implement ndelay()
Barry Song [Thu, 21 Jan 2010 07:20:44 +0000 (07:20 +0000)]
Blackfin: implement ndelay()

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: implement nmi_watchdog for SMP on BF561
Graf Yang [Wed, 20 Jan 2010 10:56:24 +0000 (10:56 +0000)]
Blackfin: implement nmi_watchdog for SMP on BF561

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: respect the L1 kconfig optimization in the MPU code
Barry Song [Wed, 20 Jan 2010 07:25:31 +0000 (07:25 +0000)]
Blackfin: respect the L1 kconfig optimization in the MPU code

Restore support for CONFIG_EXCPT_IRQ_SYSC_L1 in the MPU CPLB manager.

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: bf537-stamp/bf527-ezkit: move ASoC SPORT resources to boards file
Barry Song [Tue, 13 Oct 2009 09:19:18 +0000 (09:19 +0000)]
Blackfin: bf537-stamp/bf527-ezkit: move ASoC SPORT resources to boards file

Rather than declaring pin resources in the drivers, do it in the board.

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: bf548-ezkit: add ASoC CPU DAI resources
Barry Song [Fri, 13 Nov 2009 02:41:07 +0000 (02:41 +0000)]
Blackfin: bf548-ezkit: add ASoC CPU DAI resources

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: increase NR_IRQS beyond NR on-chip IRQs
Michael Hennerich [Tue, 19 Jan 2010 14:45:38 +0000 (14:45 +0000)]
Blackfin: increase NR_IRQS beyond NR on-chip IRQs

This makes room for off-chip IRQ controllers.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: fill out the signal si_addr when sending a SIGBUS/SIGSEGV
Barry Song [Tue, 19 Jan 2010 11:01:08 +0000 (11:01 +0000)]
Blackfin: fill out the signal si_addr when sending a SIGBUS/SIGSEGV

Some userspace applications use this member in diagnosing crashes.  It
also makes some LTP tests pass (i.e. the Blackfin arch behaves more like
everyone else).

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: bf537-stamp: move ADF7021 MAC storage into platform resources
Mike Frysinger [Tue, 19 Jan 2010 07:04:29 +0000 (07:04 +0000)]
Blackfin: bf537-stamp: move ADF7021 MAC storage into platform resources

Just generate a random MAC on the demo board since the ADF702x lacks
dedicated storage for such things.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: add support for irqflags tracing
Yi Li [Tue, 19 Jan 2010 04:35:28 +0000 (04:35 +0000)]
Blackfin: add support for irqflags tracing

Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: tcm-bf518: new board port
Harald Krapfenbauer [Fri, 15 Jan 2010 09:25:11 +0000 (09:25 +0000)]
Blackfin: tcm-bf518: new board port

Signed-off-by: Harald Krapfenbauer <harald.krapfenbauer@bluetechnix.at>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: bf537-stamp: declare parallel flash as ROM with XIP kernel
Barry Song [Fri, 15 Jan 2010 03:24:39 +0000 (03:24 +0000)]
Blackfin: bf537-stamp: declare parallel flash as ROM with XIP kernel

When the kernel is executing out of parallel flash (XIP), we can't have
the flash go into an erase/programming cycle, otherwise the instruction
fetching steps fail and everything crashes.

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: bf527-ezkit/bf537-stamp: add example SSM2602 I2C resources
Cliff Cai [Thu, 14 Jan 2010 08:28:38 +0000 (08:28 +0000)]
Blackfin: bf527-ezkit/bf537-stamp: add example SSM2602 I2C resources

Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: fix up mm locking in address dumping
Graf Yang [Wed, 13 Jan 2010 06:09:34 +0000 (06:09 +0000)]
Blackfin: fix up mm locking in address dumping

The locking code in the address dumper needs to grab the mm's mmap_sem
so that other CPUs do not get an inconsistent view.  On UP systems this
really wasn't a problem, but it is easy to trigger a race on SMP systems
when another CPU removes a mapping.

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: bf533-{ezkit,stamp}: add sound platform devices
Barry Song [Tue, 12 Jan 2010 03:59:18 +0000 (03:59 +0000)]
Blackfin: bf533-{ezkit,stamp}: add sound platform devices

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: kgdb: mark all local funcs/structs static
Mike Frysinger [Sat, 9 Jan 2010 00:48:01 +0000 (00:48 +0000)]
Blackfin: kgdb: mark all local funcs/structs static

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: fix decoding of opcodes 41-47 in decode_instruction()
Roel Kluin [Fri, 8 Jan 2010 19:06:22 +0000 (20:06 +0100)]
Blackfin: fix decoding of opcodes 41-47 in decode_instruction()

This condition allowed only decoding of opcode 0x0040

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: initial XIP support
Barry Song [Thu, 7 Jan 2010 04:11:17 +0000 (04:11 +0000)]
Blackfin: initial XIP support

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: fix initial stack pointer setup
Barry Song [Tue, 5 Jan 2010 07:25:24 +0000 (07:25 +0000)]
Blackfin: fix initial stack pointer setup

During very early init, the stack pointer is given a slightly incorrect
value (&init_thread_union).  The value is later adjusted to the right one
during early init (&init_thread_union + THREAD_SIZE), but it is used a few
times in between.  While the few functions used don't actually put things
onto the stack (due to optimization), it's best if we simply use the right
value from the start.

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: fix the section name of init_thread_union
Barry Song [Tue, 5 Jan 2010 07:16:32 +0000 (07:16 +0000)]
Blackfin: fix the section name of init_thread_union

Use the common attribute rather than setting the section name directly.
The common linker script defines expect the newer naming.

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: replace harcoded define with proper THREAD_SIZE macro
Barry Song [Tue, 5 Jan 2010 07:05:50 +0000 (07:05 +0000)]
Blackfin: replace harcoded define with proper THREAD_SIZE macro

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: fix relocation errors with large initramfs images
Jie Zhang [Tue, 5 Jan 2010 04:22:33 +0000 (04:22 +0000)]
Blackfin: fix relocation errors with large initramfs images

Since we are now discarding .exit.text at runtime instead of link time, we
need to place all .text sections ahead of the .data sections.  Otherwise,
a really large attached initramfs may cause link errors as it pushes the
PC relative relocations behind the limits of the Blackfin ISA (~16meg).
The instructions in the .exit.text are unable to call back into the .text
sections leading to a link failure.

Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: try to simplify interrupt ifdef ugliness
Yi Li [Wed, 30 Dec 2009 07:12:50 +0000 (07:12 +0000)]
Blackfin: try to simplify interrupt ifdef ugliness

Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: simplify SMP handling in SRAM code
Yi Li [Wed, 30 Dec 2009 04:04:07 +0000 (04:04 +0000)]
Blackfin: simplify SMP handling in SRAM code

There is no need to use {get,put}_cpu() when we already have a spinlock to
protect against multiple processors running simultaneously.

Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: SMP: add PM/CPU hotplug support
Graf Yang [Mon, 28 Dec 2009 11:13:51 +0000 (11:13 +0000)]
Blackfin: SMP: add PM/CPU hotplug support

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: SMP: make core timers per-cpu clock events for HRT
Yi Li [Mon, 28 Dec 2009 10:21:49 +0000 (10:21 +0000)]
Blackfin: SMP: make core timers per-cpu clock events for HRT

SMP systems require per-cpu local clock event devices in order to enable
HRT support.  One a BF561, we can use local core timer for this purpose.
Originally, there was one global core-timer clock event device set up for
core A.

To accomplish this feat, we need to split the gptimer0/core timer logic
so that each is a standalone clock event.  There is no requirement that
we only have one clock event source anyways.  Once we have this, we just
define per-cpu clock event devices for each local core timer.

Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: drop cpu_callin_map on SMP systems
Graf Yang [Mon, 28 Dec 2009 09:27:27 +0000 (09:27 +0000)]
Blackfin: drop cpu_callin_map on SMP systems

Common API already provides functions for managing online CPUs.

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: SMP: add support for IRQ affinity
Sonic Zhang [Mon, 28 Dec 2009 07:29:57 +0000 (07:29 +0000)]
Blackfin: SMP: add support for IRQ affinity

Now that the Blackfin IRQ controller supports this, drivers get the normal
functionality of controlling which CPU to bind IRQs to.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: unify MMR helpers
Mike Frysinger [Fri, 25 Dec 2009 21:06:06 +0000 (21:06 +0000)]
Blackfin: unify MMR helpers

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: isram: add unlikely to sanity checks
Mike Frysinger [Fri, 25 Dec 2009 15:34:08 +0000 (15:34 +0000)]
Blackfin: isram: add unlikely to sanity checks

Don't want the compiler assuming the rare sanity checks are the norm and
optimize for those paths.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: update defconfigs
Sonic Zhang [Wed, 23 Dec 2009 07:01:43 +0000 (07:01 +0000)]
Blackfin: update defconfigs

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: add optimized version of Hamming Weight functions
Michael Hennerich [Tue, 22 Dec 2009 11:32:06 +0000 (11:32 +0000)]
Blackfin: add optimized version of Hamming Weight functions

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: bf561-acvilon: save the smsc911x mac address
Valentin Yakovenkov [Tue, 22 Dec 2009 09:02:10 +0000 (09:02 +0000)]
Blackfin: bf561-acvilon: save the smsc911x mac address

Signed-off-by: Valentin Yakovenkov <yakovenkov@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: bf537-stamp: unify duplicated ADP5588 headers
Sonic Zhang [Tue, 22 Dec 2009 04:47:04 +0000 (04:47 +0000)]
Blackfin: bf537-stamp: unify duplicated ADP5588 headers

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: bf537-stamp: change CONFIG_USB_SL811_BFIN_IRQ to IRQ_PF4
Mike Frysinger [Mon, 21 Dec 2009 15:07:43 +0000 (15:07 +0000)]
Blackfin: bf537-stamp: change CONFIG_USB_SL811_BFIN_IRQ to IRQ_PF4

The Kconfig option was never mainlined, so replace the define with the
actual pin that it is hooked up to by default.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: drop unused SL811 platform resources from bf527/pnav boards
Mike Frysinger [Mon, 21 Dec 2009 15:04:03 +0000 (15:04 +0000)]
Blackfin: drop unused SL811 platform resources from bf527/pnav boards

These platforms don't hook up to this USB controller, so no point in
declaring resources for it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: BF51x: fix L1 Instruction SRAM size
Michael Hennerich [Fri, 18 Dec 2009 12:30:04 +0000 (12:30 +0000)]
Blackfin: BF51x: fix L1 Instruction SRAM size

The BF51x's Instruction SRAM is 32kB, not 48kB.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: update AD7879 resources to match the new gpiolib driver support
Michael Hennerich [Fri, 18 Dec 2009 09:29:39 +0000 (09:29 +0000)]
Blackfin: update AD7879 resources to match the new gpiolib driver support

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: gpio: use shorter name
Michael Hennerich [Wed, 16 Dec 2009 08:45:17 +0000 (08:45 +0000)]
Blackfin: gpio: use shorter name

The gpio label size is 16 char, but the current code uses a longer name
resulting in chopped display.  So use a shorter name.

Reported-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: pull in asm/bfin_can.h for interrupt masks
Michael Hennerich [Wed, 16 Dec 2009 08:39:58 +0000 (08:39 +0000)]
Blackfin: pull in asm/bfin_can.h for interrupt masks

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: dma-mapping: fix thinko in constant optimization
Sonic Zhang [Wed, 16 Dec 2009 07:52:52 +0000 (07:52 +0000)]
Blackfin: dma-mapping: fix thinko in constant optimization

Make sure the non-constant version of the dma_sync functions actually
complete instead of recursively calling itself forever.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: drop duplicate HOTPLUG Kconfig option
Mike Frysinger [Tue, 15 Dec 2009 20:57:43 +0000 (20:57 +0000)]
Blackfin: drop duplicate HOTPLUG Kconfig option

The option already exists for everyone in init/Kconfig.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: merge common CAN defines into one headers
Mike Frysinger [Tue, 15 Dec 2009 13:33:19 +0000 (13:33 +0000)]
Blackfin: merge common CAN defines into one headers

Rather than copy and paste the MMR defines and register layout,
consolidate everything in one place.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: wire up the various memory related syscalls
Mike Frysinger [Tue, 15 Dec 2009 05:08:36 +0000 (05:08 +0000)]
Blackfin: wire up the various memory related syscalls

These all just go to the stub syscall at the moment, so this is largely
future proofing.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: SMP: enable HAVE_LEGACY_PER_CPU_AREA
Graf Yang [Mon, 14 Dec 2009 08:01:08 +0000 (08:01 +0000)]
Blackfin: SMP: enable HAVE_LEGACY_PER_CPU_AREA

The current Blackfin SMP code relies on the legacy cpu area code, so
select it until we port things to the newer code.

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: MPU: handle caches for reserved memory
Sonic Zhang [Wed, 9 Dec 2009 07:01:50 +0000 (07:01 +0000)]
Blackfin: MPU: handle caches for reserved memory

We weren't handling the user-specified cache behavior for the reserved
memory regions (via mem=/max_mem=).  The no-MPU code already takes care
of this, so add support to the MPU code as well.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: extend bfin-lq035q1-fb resources to include PPI mode
Michael Hennerich [Tue, 8 Dec 2009 11:45:55 +0000 (11:45 +0000)]
Blackfin: extend bfin-lq035q1-fb resources to include PPI mode

This lets us support the new BF527-EZKIT V2.1 via platform resources
tweaks only.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: bf527-ezkit: add support for V2.1 boards
Michael Hennerich [Mon, 7 Dec 2009 13:41:28 +0000 (13:41 +0000)]
Blackfin: bf527-ezkit: add support for V2.1 boards

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: fix MPU page permission masks overflow when dealing with async memory
Barry Song [Mon, 7 Dec 2009 10:05:58 +0000 (10:05 +0000)]
Blackfin: fix MPU page permission masks overflow when dealing with async memory

Attempting to use the MPU while doing XIP out of parallel flash hooked up
to the async memory bus would often result in random crashes as the MPU
slowly corrupted memory.

The fallout here is that the async banks gain MPU protection from user
space too.  So any accesses have to go through the mmap() interface rather
than just using hardcoded pointers.

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: flush caches on SMP when one core calls another via IPI
Yi Li [Fri, 4 Dec 2009 06:56:21 +0000 (06:56 +0000)]
Blackfin: flush caches on SMP when one core calls another via IPI

Sometimes a SMP system will randomly panic at boot.  This is due to caches
being out of sync when one core tries to signal the other.  So when one
core calls another via IPI, flush the data caches.

Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: bfin_sport: unify & standardize SPORT masks
Mike Frysinger [Tue, 17 Nov 2009 04:26:22 +0000 (04:26 +0000)]
Blackfin: bfin_sport: unify & standardize SPORT masks

Rather than have every SPORT driver copy & paste things, declare the C
structure and MMR bitmasks in one place for everyone to use.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: add UART/SPORT early platform resources
Sonic Zhang [Wed, 23 Sep 2009 09:37:46 +0000 (09:37 +0000)]
Blackfin: add UART/SPORT early platform resources

This lets people easily select the UART/SPORT consoles for early printk
while leveraging the pins declared in the boards file.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: allow boards to register early devices
Sonic Zhang [Wed, 23 Sep 2009 08:06:25 +0000 (08:06 +0000)]
Blackfin: allow boards to register early devices

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: move SPORT UART resources to boards files
Sonic Zhang [Wed, 23 Sep 2009 05:01:56 +0000 (05:01 +0000)]
Blackfin: move SPORT UART resources to boards files

Rather than keeping the pins in the actual driver and worrying about a
mess of Kconfig options, declare all the desired pin resources in the
boards file.  This lets people easily select the specific pins/ports for
the normal emulated UART as well as GPIOs for CTS/RTS.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: bf537-stamp: ad1938: switch to GPIO CS
Barry Song [Fri, 18 Sep 2009 09:14:38 +0000 (09:14 +0000)]
Blackfin: bf537-stamp: ad1938: switch to GPIO CS

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoBlackfin: move on-chip UART resources to boards files
Sonic Zhang [Wed, 9 Sep 2009 10:46:19 +0000 (10:46 +0000)]
Blackfin: move on-chip UART resources to boards files

Rather than keeping the pins in the actual driver and worrying about a
mess of Kconfig options, declare all the desired pin resources in the
boards file.  This lets people easily select the specific pins/ports for
the normal UART as well as GPIOs for CTS/RTS.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoLinux 2.6.34-rc1
Linus Torvalds [Mon, 8 Mar 2010 18:45:44 +0000 (10:45 -0800)]
Linux 2.6.34-rc1

11 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
Linus Torvalds [Mon, 8 Mar 2010 18:17:20 +0000 (10:17 -0800)]
Merge git://git./linux/kernel/git/gregkh/driver-core-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: (62 commits)
  msi-laptop: depends on RFKILL
  msi-laptop: Detect 3G device exists by standard ec command
  msi-laptop: Add resume method for set the SCM load again
  msi-laptop: Support some MSI 3G netbook that is need load SCM
  msi-laptop: Add threeg sysfs file for support query 3G state by standard 66/62 ec command
  msi-laptop: Support standard ec 66/62 command on MSI notebook and nebook
  Driver core: create lock/unlock functions for struct device
  sysfs: fix for thinko with sysfs_bin_attr_init()
  sysfs: Kill unused sysfs_sb variable.
  sysfs: Pass super_block to sysfs_get_inode
  driver core: Use sysfs_rename_link in device_rename
  sysfs: Implement sysfs_rename_link
  sysfs: Pack sysfs_dirent more tightly.
  sysfs: Serialize updates to the vfs inode
  sysfs: windfarm: init sysfs attributes
  sysfs: Use sysfs_attr_init and sysfs_bin_attr_init on module dynamic attributes
  sysfs: Document sysfs_attr_init and sysfs_bin_attr_init
  sysfs: Use sysfs_attr_init and sysfs_bin_attr_init on dynamic attributes
  sysfs: Use one lockdep class per sysfs attribute.
  sysfs: Only take active references on attributes.
  ...

11 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog
Linus Torvalds [Mon, 8 Mar 2010 15:35:30 +0000 (07:35 -0800)]
Merge git://git./linux/kernel/git/wim/linux-2.6-watchdog

* git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog:
  [WATCHDOG] i6300esb.c: change platform_driver to pci_driver
  [WATCHDOG] i6300esb: fix unlock register with
  [WATCHDOG] drivers/watchdog/wdt.c:wdt_ioctl(): make `ident' non-static
  [WATCHDOG] change reboot_notifier to platform-shutdown method.
  [WATCHDOG] watchdog_info constify
  [WATCHDOG] gef_wdt: Author corrections following split of GE Fanuc joint venture
  [WATCHDOG] iTCO_wdt: clean up probe(), modify err msg
  [WATCHDOG] ep93xx: watchdog timer driver for TS-72xx SBCs cleanup
  [WATCHDOG] support for max63xx watchdog timer chips
  [WATCHDOG] ep93xx: added platform side support for TS-72xx WDT driver
  [WATCHDOG] ep93xx: implemented watchdog timer driver for TS-72xx SBCs

11 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
Linus Torvalds [Mon, 8 Mar 2010 15:34:26 +0000 (07:34 -0800)]
Merge branch 'for-linus' of git://git./linux/kernel/git/tiwai/sound-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: (26 commits)
  ALSA: hdmi - show debug message on changing audio infoframe
  ALSA: hdmi - merge common code for intelhdmi and nvhdmi
  ALSA: hda - Add ASRock mobo to MSI blacklist
  ALSA: hda: uninitialized variable fix
  ALSA: hda: Use LPIB for a Biostar Microtech board
  ALSA: usb/audio.h: Fix field order
  ALSA: fix jazz16 compile (udelay)
  ALSA: hda: Use LPIB for Dell Latitude 131L
  ALSA: hda - Build hda_eld into snd-hda-codec module
  ALSA: hda - Support NVIDIA MCP89 and GT21x hdmi audio
  ALSA: hda - Support max codecs to 8 for nvidia hda controller
  ALSA: riptide: clean up while loop
  ALSA: usbaudio - remove debug "SAMPLE BYTES" printk line
  ALSA: timer - pass real event in snd_timer_notify1() to instance callback
  ALSA: oxygen: change || to &&
  ALSA: opti92x: use PnP data to select Master Control port
  ASoC: fix ak4104 register array access
  ASoC: soc_pcm_open: Add missing bailout tag
  ALSA: usbaudio: Fix wrong bitrate for Creative Creative VF0470 Live Cam
  ALSA: ua101: removing debugging code
  ...

11 years agoMerge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6
Linus Torvalds [Mon, 8 Mar 2010 15:33:46 +0000 (07:33 -0800)]
Merge branch 'for-linus' of git://git390.marist.edu/linux-2.6

* 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6:
  [S390] smsgiucv_app: deliver z/VM CP special messages (SMSG) as uevents
  [S390] smsgiucv: declare char pointers as "const"
  [S390] dasd: automatic recognition of read-only devices
  [S390] remove unused qdio flags in zfcp and qeth
  [S390] Cleanup xtime usage
  [S390] qdio: add missing bracket
  [S390] cio: fix init_count in case of recognition after steal lock
  [S390] dasd: security and PSF update patch for EMC CKD ioctl
  [S390] hvc_iucv: allocate memory buffers for IUCV in zone DMA
  [S390] uaccess: make sure copy_from_user_overflow is builtin

11 years agoFS-Cache: Remove the EXPERIMENTAL flag
Christian Kujau [Mon, 8 Mar 2010 15:03:09 +0000 (15:03 +0000)]
FS-Cache: Remove the EXPERIMENTAL flag

Remove the EXPERIMENTAL flag from FS-Cache so that Ubuntu can make use of the
facility.

Signed-off-by: Christian Kujau <lists@nerdbynature.de>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
11 years ago[WATCHDOG] i6300esb.c: change platform_driver to pci_driver
Wim Van Sebroeck [Mon, 8 Mar 2010 13:48:01 +0000 (13:48 +0000)]
[WATCHDOG] i6300esb.c: change platform_driver to pci_driver

Since the intel 6300esb platform uses a dedicated PCI ID for
it's watchdog timer (00:1d.4), it's better and easier to have
this as a pci_driver.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
11 years ago[S390] smsgiucv_app: deliver z/VM CP special messages (SMSG) as uevents
Hendrik Brueckner [Mon, 8 Mar 2010 11:26:26 +0000 (12:26 +0100)]
[S390] smsgiucv_app: deliver z/VM CP special messages (SMSG) as uevents

The smsgiucv_app driver registers a callback with the smsgiucv driver
to receive z/VM CP special messages (SMSG) starting with "APP".

When the callback is called for special messages, the driver creates
an uevent for the received message.  The uevent consists of additional
environment data containing the message prefix ("APP"), message sender,
and message content.

udev rules can be used to trigger application specific actions through
matching the content or sender of the special message.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
11 years ago[S390] smsgiucv: declare char pointers as "const"
Hendrik Brueckner [Mon, 8 Mar 2010 11:26:25 +0000 (12:26 +0100)]
[S390] smsgiucv: declare char pointers as "const"

Declare the smsgiucv prefix char pointer as "const" and use
use const char pointers in callback functions.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
11 years ago[S390] dasd: automatic recognition of read-only devices
Stefan Weinhuber [Mon, 8 Mar 2010 11:26:24 +0000 (12:26 +0100)]
[S390] dasd: automatic recognition of read-only devices

In z/VM it is possible to attach a device as read-only. To prevent
unintentional write requests and subsequent I/O errors, we can detect
this configuration using the z/VM DIAG 210 interface and set the
respective linux block device to read-only as well.

Signed-off-by: Stefan Weinhuber <wein@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
11 years ago[S390] remove unused qdio flags in zfcp and qeth
Ursula Braun [Mon, 8 Mar 2010 11:25:20 +0000 (12:25 +0100)]
[S390] remove unused qdio flags in zfcp and qeth

zfcp and qeth are setting flags for the qdio-layer, but these flags
are not used in qdio. Patch removes the flag definitions from qdio
and their settings in zfcp and qeth.

Cc: Jan Glauber <jang@linux.vnet.ibm.com>
Cc: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
11 years ago[S390] Cleanup xtime usage
John Stultz [Mon, 8 Mar 2010 11:25:19 +0000 (12:25 +0100)]
[S390] Cleanup xtime usage

This replaces direct xtime usage in the s390 arch with timekeeping accessors,
so we can further clean up the timekeeping core.

Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
11 years ago[S390] qdio: add missing bracket
Ursula Braun [Mon, 8 Mar 2010 11:25:18 +0000 (12:25 +0100)]
[S390] qdio: add missing bracket

Add a missing bracket to only log the outbound handler event in the
appropriate case.

Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
11 years ago[S390] cio: fix init_count in case of recognition after steal lock
Sebastian Ott [Mon, 8 Mar 2010 11:25:17 +0000 (12:25 +0100)]
[S390] cio: fix init_count in case of recognition after steal lock

After we try to steal a lock on a ccw device in boxed state,
we have to restart device recognition and potentially reprobing.

In this case ccw_device_init_count was erroneously decreased
twice. This patch fixes the issue.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
11 years ago[S390] dasd: security and PSF update patch for EMC CKD ioctl
Nigel Hislop [Mon, 8 Mar 2010 11:25:16 +0000 (12:25 +0100)]
[S390] dasd: security and PSF update patch for EMC CKD ioctl

Remove the PSF order/suborder check from the Symmetrix CKD dasd ioctl.
In exchange restrict the ioctl to CAP_SYS_ADMIN and CAP_SYS_RAWIO.

Signed-off-by: Nigel Hislop <hislop_nigel@emc.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
11 years ago[S390] hvc_iucv: allocate memory buffers for IUCV in zone DMA
Hendrik Brueckner [Mon, 8 Mar 2010 11:25:15 +0000 (12:25 +0100)]
[S390] hvc_iucv: allocate memory buffers for IUCV in zone DMA

The device driver must allocate memory for IUCV buffers with GFP_DMA,
because IUCV cannot address memory above 2GB (31bit addresses only).

Because the IUCV ignores the higher bits of the address, sending and
receiving IUCV data with this driver might cause memory corruptions.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>