]> Git Repo - linux.git/log
linux.git
12 years agobfin_gpio: fix bf548-ezkit kernel fail to boot
Steven Miao [Tue, 8 May 2012 05:58:46 +0000 (13:58 +0800)]
bfin_gpio: fix bf548-ezkit kernel fail to boot

Fix bf548-ezkit kernel fail to boot when request peripheral pins.

Signed-off-by: Steven Miao <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
12 years agobfin_dma: fix initcall return error in proc_dma_init()
Steven Miao [Thu, 3 May 2012 07:40:26 +0000 (15:40 +0800)]
bfin_dma: fix initcall return error in proc_dma_init()

Signed-off-by: Steven Miao <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
12 years agoBlackfin: delete fork func
Mike Frysinger [Tue, 1 May 2012 04:48:06 +0000 (00:48 -0400)]
Blackfin: delete fork func

We don't implement fork() since we are no-mmu, so redirect it to the
existing ENOSYS stub rather than adding a custom EINVAL one.

Signed-off-by: Mike Frysinger <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
12 years agoBlackfin: fix unused clk var warning
Mike Frysinger [Tue, 1 May 2012 04:47:37 +0000 (00:47 -0400)]
Blackfin: fix unused clk var warning

This is only used on BF60x code (so this patch should get squashed into
the original one that added it).

Signed-off-by: Mike Frysinger <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: SMP: pda: "next" field of blackfin_pda only used in SMP kernel
Steven Miao [Sat, 28 Apr 2012 07:54:17 +0000 (15:54 +0800)]
blackfin: SMP: pda: "next" field of blackfin_pda only used in SMP kernel

Signed-off-by: Steven Miao <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: GPIO: Implement more GPIO APIs
Sonic Zhang [Fri, 27 Apr 2012 10:25:16 +0000 (18:25 +0800)]
blackfin: GPIO: Implement more GPIO APIs

Implement more GPIO APIs in case GPIOLIB is disabled.

Signed-off-by: Sonic Zhang <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: mach-common: ints-priority: fix compile error
Bob Liu [Fri, 27 Apr 2012 06:13:01 +0000 (14:13 +0800)]
blackfin: mach-common: ints-priority: fix compile error

IRQ_PINT4/PINT5 are not defined on !CONFIG_BF60x, this patch fix it.

Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: bf60x: bfin_uart: Add more LCR bits masks
Sonic Zhang [Thu, 26 Apr 2012 08:51:29 +0000 (16:51 +0800)]
blackfin: bf60x: bfin_uart: Add more LCR bits masks

Signed-off-by: Sonic Zhang <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: license: Change ADI BSD license
Sonic Zhang [Thu, 17 May 2012 06:45:27 +0000 (14:45 +0800)]
blackfin: license: Change ADI BSD license

Change ADI BSD license to standart 3 clause BSD license for some blackfin arch
code requested by ADI Legal.

Signed-off-by: Sonic Zhang <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: bf537-stamp: update board file for platform bfin_sport device
Aaron Wu [Thu, 17 May 2012 06:30:45 +0000 (14:30 +0800)]
blackfin: bf537-stamp: update board file for platform bfin_sport device

Blackfin sport driver has been rewrited update board file according.

Signed-off-by: Aaron Wu <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: bf60x: cleanup mem_map macro
Steven Miao [Mon, 23 Apr 2012 10:13:39 +0000 (18:13 +0800)]
blackfin: bf60x: cleanup mem_map macro

Signed-off-by: Steven Miao <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: bf60x: fix compiling warning
Bob Liu [Thu, 17 May 2012 06:21:22 +0000 (14:21 +0800)]
blackfin: bf60x: fix compiling warning

Fix several compiling warning for bf60x.

Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: bf60x: add power management support
Steven Miao [Wed, 16 May 2012 10:26:10 +0000 (18:26 +0800)]
blackfin: bf60x: add power management support

Add bf60x cpu pm callbacks and change blackfin pm framework to support bf60x.

Signed-off-by: Steven Miao <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: bf60x: add l2 ecc irq handler
Bob Liu [Wed, 16 May 2012 10:18:27 +0000 (18:18 +0800)]
blackfin: bf60x: add l2 ecc irq handler

bf60x support l2 hardware ecc error check, add panic when double bits ecc error
happened.

Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: twi: move twi bit mask macro to twi head file
Sonic Zhang [Thu, 24 Nov 2011 09:40:07 +0000 (17:40 +0800)]
blackfin: twi: move twi bit mask macro to twi head file

Signed-off-by: Sonic Zhang <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: bf60x: enable gptimer clock source
Steven Miao [Wed, 16 May 2012 10:11:10 +0000 (18:11 +0800)]
blackfin: bf60x: enable gptimer clock source

Signed-off-by: Steven Miao <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: add spi/sport3/ppi head file for bf60x
Scott Jiang [Wed, 16 May 2012 10:08:04 +0000 (18:08 +0800)]
blackfin: add spi/sport3/ppi head file for bf60x

Signed-off-by: Scott Jiang <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: cplb: add support for bf60x
Bob Liu [Wed, 16 May 2012 10:03:47 +0000 (18:03 +0800)]
blackfin: cplb: add support for bf60x

Bf60x support big CPLB pages, this commit enable it.

Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: mach-common: add sec support for bf60x
Steven Miao [Wed, 16 May 2012 09:56:51 +0000 (17:56 +0800)]
blackfin: mach-common: add sec support for bf60x

Add system event controller support for bf60x so that interrupt can be
handled.

Signed-off-by: Steven Miao <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: bf60x: add clock support
Steven Miao [Wed, 16 May 2012 09:49:52 +0000 (17:49 +0800)]
blackfin: bf60x: add clock support

Add clock support for bf60x.

Signed-off-by: Steven Miao <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: add bf60x to current framework
Bob Liu [Wed, 16 May 2012 09:37:24 +0000 (17:37 +0800)]
blackfin: add bf60x to current framework

This patch added bf60x to current blackfin kernel framework.

Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: mach-bf609: add machine files
Sonic Zhang [Wed, 16 May 2012 09:24:33 +0000 (17:24 +0800)]
blackfin: mach-bf609: add machine files

Add machine files for bf60x including head files, Kconfig/Makefile and board
file.

Signed-off-by: Sonic Zhang <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: asm: fix blackfin.h broken
Bob Liu [Sat, 28 Apr 2012 09:12:32 +0000 (17:12 +0800)]
blackfin: asm: fix blackfin.h broken

do{...}while makes no sense in __ASSEMBLY__ code paths.  now
kernels fail to build:
arch/blackfin/mach-bf561/atomic.S: Assembler messages:
arch/blackfin/mach-bf561/atomic.S:48: Error: syntax error. Input text
was do.
arch/blackfin/mach-bf561/atomic.S:48: Error:
arch/blackfin/mach-bf561/atomic.S:48: Error: syntax error. Input text
was }.
arch/blackfin/mach-bf561/atomic.S:48: Error:
arch/blackfin/mach-bf561/atomic.S:53: Error: syntax error. Input text
was do.
arch/blackfin/mach-bf561/atomic.S:53: Error:
arch/blackfin/mach-bf561/atomic.S:53: Error: syntax error. Input text
was }.

Signed-off-by: Bob Liu <[email protected]>
12 years agoblackfin: configs: add SMP support back to BF561-EZKIT-SMP_defconfig
Bob Liu [Wed, 11 Apr 2012 03:19:33 +0000 (11:19 +0800)]
blackfin: configs: add SMP support back to BF561-EZKIT-SMP_defconfig

SMP support was removed from BF561-EZKIT-SMP_defconfig in last commit by
mistake, this patch add it back.

Signed-off-by: Bob Liu <[email protected]>
12 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
David S. Miller [Mon, 21 May 2012 01:53:04 +0000 (21:53 -0400)]
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net

12 years agoiscsi-target: Fix iov_count calculation bug in iscsit_allocate_iovecs
Nicholas Bellinger [Mon, 21 May 2012 00:10:29 +0000 (17:10 -0700)]
iscsi-target: Fix iov_count calculation bug in iscsit_allocate_iovecs

This patch fixes a bug in iscsit_allocate_iovecs() where iov_count was
incorrectly calculated using min(1UL, data_length / PAGE_SIZE) instead of
max(1UL, data_length / PAGE_SIZE), that ends up triggering an OOPs for
large block I/O when the SGL <-> iovec mapping exceeds the bogus iov_count
allocation size.

This is a regression introduced during the iscsi-target conversion back
to using core memory allocation here:

commit bfb79eac2026b411df9e253a9c350039b4b04bb7
Author: Andy Grover <[email protected]>
Date:   Tue Apr 3 15:51:29 2012 -0700

    target/iscsi: Go back to core allocating data buffer for cmd

Cc: Andy Grover <[email protected]>
Signed-off-by: Nicholas Bellinger <[email protected]>
12 years agoLinux 3.4 v3.4
Linus Torvalds [Sun, 20 May 2012 22:29:13 +0000 (15:29 -0700)]
Linux 3.4

12 years agoipv6/exthdrs: strict Pad1 and PadN check
Eldad Zack [Sun, 20 May 2012 01:59:33 +0000 (01:59 +0000)]
ipv6/exthdrs: strict Pad1 and PadN check

The following tightens the padding check from commit
c1412fce7eccae62b4de22494f6ab3ff8a90c0c6 :

* Take into account combinations of consecutive Pad1 and PadN.

* Catch the corner case of when only padding is present in the
  header, when the extention header length is 0 (i.e., 8 bytes).
  In this case, the header would have exactly 6 bytes of padding:

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
:  Next Header  : Hdr Ext Len=0 :                               :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
:                        Padding (Pad1 or PadN)                 :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Signed-off-by: Eldad Zack <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agoUSB: qmi_wwan: Add ZTE (Vodafone) K3520-Z
Andrew Bird (Sphere Systems) [Sat, 19 May 2012 22:28:38 +0000 (22:28 +0000)]
USB: qmi_wwan: Add ZTE (Vodafone) K3520-Z

Signed-off-by: Andrew Bird <[email protected]>
Acked-by: Bjørn Mork <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agoUSB: qmi_wwan: Add ZTE (Vodafone) K3765-Z
Andrew Bird (Sphere Systems) [Sat, 19 May 2012 22:28:37 +0000 (22:28 +0000)]
USB: qmi_wwan: Add ZTE (Vodafone) K3765-Z

Add the ZTE (Vodafone) K3765-Z to the whitelist. This requires the
previous patch to make the whitelist with forced interface 4 generic
or the device fails to initialise. After applying this patch and
loading the Option driver without usb-modeswitch's bind all
interfaces trick, a wwan0 net interface and /dev/cdc-wdm0 device
file were created. Using Bjorn Mork's perl connection script a
connection was made to a mobile network using QMI and the network
interface's IPv4 address was configured OK.

Signed-off-by: Andrew Bird <[email protected]>
Acked-by: Bjørn Mork <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agoUSB: qmi_wwan: Make forced int 4 whitelist generic
Andrew Bird (Sphere Systems) [Sat, 19 May 2012 22:28:36 +0000 (22:28 +0000)]
USB: qmi_wwan: Make forced int 4 whitelist generic

Change the forced interface 4 whitelist to use the generic shared
binder instead of the Gobi specific one. Certain ZTE devices
(K3520-Z & K3765-Z) don't work with the Gobi version, but function
quite happily with the generic. This has been tested with the following
devices:
K3520-Z
K3565-Z
K3765-Z
K4505-Z
It hasn't been tested with the ZTE MF820D, which is the only other
device that uses this whitelist at present. Although Bjorn doesn't
expect any problems, any testing with that device would be appreciated.

Signed-off-by: Andrew Bird <[email protected]>
Acked-by: Bjørn Mork <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agosparc32: use flushi when run-time patching in per_cpu_patch
Sam Ravnborg [Sun, 20 May 2012 15:27:53 +0000 (17:27 +0200)]
sparc32: use flushi when run-time patching in per_cpu_patch

Davis S. Miller wrote:
"
The way we do that now is overkill.  We only needed to use the MMU
cache ops when we had sun4c around because sun4c lacked support for
the "flush" instruction.

But all sun4m and later chips have it so we can use it
unconditionally.

So in the per_cpu_patch() code, get rid of the cache ops invocation,
and instead execute a "flush %reg" after each of the instruction patch
assignments, where %reg is set to the address of the instruction that
was stored into.

Perhaps take the flushi() definition from asm/cacheflush_64.h and
place it into asm/cacheflush.h, then you can simply use that.
"

Implemented as per suggestion.
Moved run-time patching before we call paging_init(),
so helper methods in paging_init() may utilise run-time patching too.

Signed-off-by: Sam Ravnborg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agosparc32: fix cpuid_patch run-time patching
Sam Ravnborg [Sun, 20 May 2012 15:24:20 +0000 (17:24 +0200)]
sparc32: fix cpuid_patch run-time patching

We hang forever when trying to do run-time patching of instructions
identified by the cpuid_patch section

Signed-off-by: Sam Ravnborg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agopinctrl: pinctrl-imx: add imx51 pinctrl driver
Dong Aisheng [Tue, 15 May 2012 07:49:03 +0000 (15:49 +0800)]
pinctrl: pinctrl-imx: add imx51 pinctrl driver

ChangeLog v1->v2:
* change PIN_FUNC_ID base in binding doc to 0 from 1.

Acked-by: Shawn Guo <[email protected]>
Acked-by: Stephen Warren <[email protected]>
Signed-off-by: Dong Aisheng <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
12 years agopinctrl: pinctrl-imx: add imx53 pinctrl driver
Dong Aisheng [Tue, 15 May 2012 07:49:02 +0000 (15:49 +0800)]
pinctrl: pinctrl-imx: add imx53 pinctrl driver

ChangeLog v1->v2:
* change PIN_FUNC_ID base in binding doc to 0 from 1.

Acked-by: Shawn Guo <[email protected]>
Acked-by: Stephen Warren <[email protected]>
Signed-off-by: Dong Aisheng <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
12 years agoregulator: tps65910: use of_node of matched regulator being register
Laxman Dewangan [Sun, 20 May 2012 16:18:50 +0000 (21:48 +0530)]
regulator: tps65910: use of_node of matched regulator being register

After getting matched regulators by using of_regulator_match(),
initialize the config.of_node of regulator being register with
of_regulator_match.of_node of that regulator.
This is require for supporting regulator consumers in dt.

Signed-off-by: Laxman Dewangan <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
12 years agoregulator: tps65910: dt: support when "regulators" node found
Laxman Dewangan [Sun, 20 May 2012 16:18:49 +0000 (21:48 +0530)]
regulator: tps65910: dt: support when "regulators" node found

The device tree binding for the tps65910 is described as:
tps65911 {
reg = <0x2d>
:::::::::
regulators {
compatible = "ti,tps65911";
ldo1_reg: ldo1 {
/** regulator entry */
};

ldo2_reg: ldo2 {
/** regulator entry */
};
::::::::::
};
};

Support the regulators functionality only when there is "regulators"
child node available for tps65910.

Signed-off-by: Laxman Dewangan <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
12 years agoregulator: tps65910: add error message in case of failure
Laxman Dewangan [Sun, 20 May 2012 16:18:48 +0000 (21:48 +0530)]
regulator: tps65910: add error message in case of failure

Prints error message whenever there is failure on resource
allocation.
Also used dev_* to print messages instead of pr_*

Signed-off-by: Laxman Dewangan <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
12 years agoregulator: tps62360: dt: initialize of_node param for regulator register.
Laxman Dewangan [Sun, 20 May 2012 16:18:47 +0000 (21:48 +0530)]
regulator: tps62360: dt: initialize of_node param for regulator register.

Initialize config.of_node for regulator before registering.
This is needed for DT based regulator support.
Regulator stores this of_node value in rdev->dev.of_node
and used for lookup when client ask for regulator_get().

Signed-off-by: Laxman Dewangan <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
12 years agom68k: add a defconfig for the M5475EVB ColdFire with MMU board
Greg Ungerer [Mon, 14 May 2012 02:11:23 +0000 (12:11 +1000)]
m68k: add a defconfig for the M5475EVB ColdFire with MMU board

Add a default configuration for the newly supported ColdFire CPUs running
with MMU enabled. This is based on Freescales own M5475EVB demo board.

Signed-off-by: Greg Ungerer <[email protected]>
12 years agom68knommu: unaligned.h fix for M68000 core
Luis Alves [Sun, 13 May 2012 16:39:42 +0000 (17:39 +0100)]
m68knommu: unaligned.h fix for M68000 core

This patch fixes unaligned memory access for the 68000 core based cpu's.

Some time ago, my cpu (68000) was raising address/bus error's when mounting
cifs shares (didn't bother to debug it at the time). After developing the
MMC/SD card driver I was having the same issue when mounting the vfat fs.

I've traced the issue down to the 'unaligned.h' file. (I guess nobody has
ever used unaligned.h back in the 68328 'era'.

Signed-off-by: Luis Alves <[email protected]>
Signed-off-by: Greg Ungerer <[email protected]>
12 years agom68k: merge the MMU and non-MMU versions of the arch dma code
Greg Ungerer [Wed, 2 May 2012 07:06:22 +0000 (17:06 +1000)]
m68k: merge the MMU and non-MMU versions of the arch dma code

The majority of the m68k architecture dma code is the same, so merge the
current separated files dma_no.c and dma_mm.c back into a single dma.c

The main alloc and free routines are a little different, so we keep a
single #ifdef based on CONFIG_MMU for them. All the other support functions
are now identical.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Geert Uytterhoeven <[email protected]>
12 years agom68knommu: reorganize the no-MMU cache flushing to match m68k
Greg Ungerer [Wed, 2 May 2012 07:02:21 +0000 (17:02 +1000)]
m68knommu: reorganize the no-MMU cache flushing to match m68k

Introduce cache_push() and cache_clear() functions for the non-MMU m68k
devices. With these in place we can more easily merge some of the common
m68k arch code.

In particular by reorganizing the __flush_cache_all() code and separating
the cache push and clear functions it becomes trivial to implement the
new cache_push() and cache_clear() functions.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Geert Uytterhoeven <[email protected]>
12 years agom68knommu: move the 54xx platform code into the common ColdFire code directory
Greg Ungerer [Tue, 17 Apr 2012 05:41:02 +0000 (15:41 +1000)]
m68knommu: move the 54xx platform code into the common ColdFire code directory

All these separate directories for each ColdFire CPU SoC varient seems like
overkill. The majority of them only contain a single small config file. Move
these into the common ColdFire code directory.

Signed-off-by: Greg Ungerer <[email protected]>
12 years agom68knommu: move the 532x platform code into the common ColdFire code directory
Greg Ungerer [Tue, 17 Apr 2012 05:38:31 +0000 (15:38 +1000)]
m68knommu: move the 532x platform code into the common ColdFire code directory

All these separate directories for each ColdFire CPU SoC varient seems like
overkill. The majority of them only contain a single small config file. Move
these into the common ColdFire code directory.

Signed-off-by: Greg Ungerer <[email protected]>
12 years agom68knommu: move the 5407 platform code into the common ColdFire code directory
Greg Ungerer [Tue, 17 Apr 2012 05:37:05 +0000 (15:37 +1000)]
m68knommu: move the 5407 platform code into the common ColdFire code directory

All these separate directories for each ColdFire CPU SoC varient seems like
overkill. The majority of them only contain a single small config file. Move
these into the common ColdFire code directory.

Signed-off-by: Greg Ungerer <[email protected]>
12 years agom68knommu: move the 5307 platform code into the common ColdFire code directory
Greg Ungerer [Tue, 17 Apr 2012 05:36:11 +0000 (15:36 +1000)]
m68knommu: move the 5307 platform code into the common ColdFire code directory

All these separate directories for each ColdFire CPU SoC varient seems like
overkill. The majority of them only contain a single small config file. Move
these into the common ColdFire code directory.

Signed-off-by: Greg Ungerer <[email protected]>
12 years agom68knommu: move the 528x platform code into the common ColdFire code directory
Greg Ungerer [Tue, 17 Apr 2012 05:35:01 +0000 (15:35 +1000)]
m68knommu: move the 528x platform code into the common ColdFire code directory

All these separate directories for each ColdFire CPU SoC varient seems like
overkill. The majority of them only contain a single small config file. Move
these into the common ColdFire code directory.

Signed-off-by: Greg Ungerer <[email protected]>
12 years agom68knommu: move the 527x platform code into the common ColdFire code directory
Greg Ungerer [Tue, 17 Apr 2012 05:33:57 +0000 (15:33 +1000)]
m68knommu: move the 527x platform code into the common ColdFire code directory

All these separate directories for each ColdFire CPU SoC varient seems like
overkill. The majority of them only contain a single small config file. Move
these into the common ColdFire code directory.

Signed-off-by: Greg Ungerer <[email protected]>
12 years agom68knommu: move the 5272 platform code into the common ColdFire code directory
Greg Ungerer [Tue, 17 Apr 2012 05:33:13 +0000 (15:33 +1000)]
m68knommu: move the 5272 platform code into the common ColdFire code directory

All these separate directories for each ColdFire CPU SoC varient seems like
overkill. The majority of them only contain a single small config file. Move
these into the common ColdFire code directory.

Signed-off-by: Greg Ungerer <[email protected]>
12 years agom68knommu: move the 5249 platform code into the common ColdFire code directory
Greg Ungerer [Tue, 17 Apr 2012 05:31:48 +0000 (15:31 +1000)]
m68knommu: move the 5249 platform code into the common ColdFire code directory

All these separate directories for each ColdFire CPU SoC varient seems like
overkill. The majority of them only contain a single small config file. Move
these into the common ColdFire code directory.

Signed-off-by: Greg Ungerer <[email protected]>
12 years agom68knommu: move the 523x platform code into the common ColdFire code directory
Greg Ungerer [Tue, 17 Apr 2012 05:29:34 +0000 (15:29 +1000)]
m68knommu: move the 523x platform code into the common ColdFire code directory

All these separate directories for each ColdFire CPU SoC varient seems like
overkill. The majority of them only contain a single small config file. Move
these into the common ColdFire code directory.

Signed-off-by: Greg Ungerer <[email protected]>
12 years agom68knommu: move the 520x platform code into the common ColdFire code directory
Greg Ungerer [Tue, 17 Apr 2012 05:25:44 +0000 (15:25 +1000)]
m68knommu: move the 520x platform code into the common ColdFire code directory

All these separate directories for each ColdFire CPU SoC varient seems like
overkill. The majority of them only contain a single small config file. Move
these into the common ColdFire code directory.

Signed-off-by: Greg Ungerer <[email protected]>
12 years agom68knommu: move the 5206 platform code into the common ColdFire code directory
Greg Ungerer [Tue, 17 Apr 2012 05:21:31 +0000 (15:21 +1000)]
m68knommu: move the 5206 platform code into the common ColdFire code directory

All these separate directories for each ColdFire CPU SoC varient seems like
overkill. The majority of them only contain a single small config file. Move
these into the common ColdFire code directory.

Signed-off-by: Greg Ungerer <[email protected]>
12 years agom68knommu: simplify the ColdFire 5407 GPIO struct setup
Greg Ungerer [Tue, 17 Apr 2012 04:27:45 +0000 (14:27 +1000)]
m68knommu: simplify the ColdFire 5407 GPIO struct setup

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: simplify the ColdFire 532x GPIO struct setup
Greg Ungerer [Tue, 17 Apr 2012 04:25:20 +0000 (14:25 +1000)]
m68knommu: simplify the ColdFire 532x GPIO struct setup

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: simplify the ColdFire 5307 GPIO struct setup
Greg Ungerer [Tue, 17 Apr 2012 04:24:26 +0000 (14:24 +1000)]
m68knommu: simplify the ColdFire 5307 GPIO struct setup

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: simplify the ColdFire 528x GPIO struct setup
Greg Ungerer [Tue, 17 Apr 2012 04:23:41 +0000 (14:23 +1000)]
m68knommu: simplify the ColdFire 528x GPIO struct setup

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: simplify the ColdFire 527x GPIO struct setup
Greg Ungerer [Tue, 17 Apr 2012 04:21:51 +0000 (14:21 +1000)]
m68knommu: simplify the ColdFire 527x GPIO struct setup

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: simplify the ColdFire 5272 GPIO struct setup
Greg Ungerer [Tue, 17 Apr 2012 04:19:11 +0000 (14:19 +1000)]
m68knommu: simplify the ColdFire 5272 GPIO struct setup

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: simplify the ColdFire 5249 GPIO struct setup
Greg Ungerer [Tue, 17 Apr 2012 04:17:04 +0000 (14:17 +1000)]
m68knommu: simplify the ColdFire 5249 GPIO struct setup

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: simplify the ColdFire 523x GPIO struct setup
Greg Ungerer [Tue, 17 Apr 2012 04:16:16 +0000 (14:16 +1000)]
m68knommu: simplify the ColdFire 523x GPIO struct setup

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: simplify the ColdFire 520x GPIO struct setup
Greg Ungerer [Tue, 17 Apr 2012 04:14:51 +0000 (14:14 +1000)]
m68knommu: simplify the ColdFire 520x GPIO struct setup

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: simplify the ColdFire 5206 GPIO struct setup
Greg Ungerer [Tue, 17 Apr 2012 03:57:04 +0000 (13:57 +1000)]
m68knommu: simplify the ColdFire 5206 GPIO struct setup

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: make duplicated ColdFire GPIO init code common for all
Greg Ungerer [Tue, 17 Apr 2012 03:25:38 +0000 (13:25 +1000)]
m68knommu: make duplicated ColdFire GPIO init code common for all

The code that adds each ColdFire platforms GPIO signals is duplicated in
each platforms specific code. Remove it from each platforms code and put
a single version in the existing ColdFire gpio subsystem init code.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: switch to GPIO init macros in ColdFire 532x init code
Greg Ungerer [Mon, 16 Apr 2012 07:03:44 +0000 (17:03 +1000)]
m68knommu: switch to GPIO init macros in ColdFire 532x init code

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: switch to GPIO init macros in ColdFire 5407 init code
Greg Ungerer [Mon, 16 Apr 2012 07:02:05 +0000 (17:02 +1000)]
m68knommu: switch to GPIO init macros in ColdFire 5407 init code

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: switch to GPIO init macros in ColdFire 5307 init code
Greg Ungerer [Mon, 16 Apr 2012 07:01:31 +0000 (17:01 +1000)]
m68knommu: switch to GPIO init macros in ColdFire 5307 init code

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: switch to GPIO init macros in ColdFire 528x init code
Greg Ungerer [Mon, 16 Apr 2012 06:59:37 +0000 (16:59 +1000)]
m68knommu: switch to GPIO init macros in ColdFire 528x init code

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

We also need to rename some of the GPIO registers to be consistent with
all other ColdFire parts (we can't use the new GPIO macros otherwise).

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: switch to GPIO init macros in ColdFire 527x init code
Greg Ungerer [Mon, 16 Apr 2012 06:15:50 +0000 (16:15 +1000)]
m68knommu: switch to GPIO init macros in ColdFire 527x init code

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: switch to GPIO init macros in ColdFire 5272 init code
Greg Ungerer [Mon, 16 Apr 2012 06:12:43 +0000 (16:12 +1000)]
m68knommu: switch to GPIO init macros in ColdFire 5272 init code

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: switch to GPIO init macros in ColdFire 5249 init code
Greg Ungerer [Mon, 16 Apr 2012 06:11:11 +0000 (16:11 +1000)]
m68knommu: switch to GPIO init macros in ColdFire 5249 init code

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: switch to GPIO init macros in ColdFire 523x init code
Greg Ungerer [Mon, 16 Apr 2012 06:09:11 +0000 (16:09 +1000)]
m68knommu: switch to GPIO init macros in ColdFire 523x init code

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: switch to GPIO init macros in ColdFire 520x init code
Greg Ungerer [Mon, 16 Apr 2012 06:07:01 +0000 (16:07 +1000)]
m68knommu: switch to GPIO init macros in ColdFire 520x init code

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: switch to GPIO init macros in ColdFire 5206 init code
Greg Ungerer [Mon, 16 Apr 2012 06:04:06 +0000 (16:04 +1000)]
m68knommu: switch to GPIO init macros in ColdFire 5206 init code

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68knommu: introduce macros to simplify ColdFire GPIO table initialization
Greg Ungerer [Mon, 16 Apr 2012 05:59:29 +0000 (15:59 +1000)]
m68knommu: introduce macros to simplify ColdFire GPIO table initialization

We have very large tables in the ColdFire CPU GPIO setup code that essentially
boil down to 2 distinct types of GPIO pin initiaization. Using 2 macros we can
reduce these large tables to at most a dozen lines of setup code, and in quite
a few cases a single table entry.

Introduce these 2 macros into the existing mcfgpio.h header.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
12 years agom68k: fix compiler warning by properly inlining flat_set_persistent()
Ezequiel Garcia [Sat, 28 Apr 2012 14:13:04 +0000 (11:13 -0300)]
m68k: fix compiler warning by properly inlining flat_set_persistent()

This patch removes the following warning:
fs/binfmt_flat.c:752: warning: unused variable 'persistent'.
There is neither functionality change, nor extra code generated.

Signed-off-by: Ezequiel Garcia <[email protected]>
Signed-off-by: Greg Ungerer <[email protected]>
12 years agom68k: merge the MMU and non-MMU signal.c code
Greg Ungerer [Wed, 14 Mar 2012 03:22:25 +0000 (13:22 +1000)]
m68k: merge the MMU and non-MMU signal.c code

The MMU (signal_mm.c) and non-MMU (signal_no.c) versions of the m68k
architecture signal handling code are very similar. Most of their code is
the same.

Merge the two back into a single signal.c, and move some of the code around
inside the file to minimize the number of #ifdefs required. Specificially
we can group out the CONFIG_FPU and the CONFIG_MMU code. We end up needing
a few other "#ifdef CONFIG_MMU" as well, but not too many.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Geert Uytterhoeven <[email protected]>
12 years agonet/ipv4: replace simple_strtoul with kstrtoul
Eldad Zack [Sat, 19 May 2012 14:13:18 +0000 (14:13 +0000)]
net/ipv4: replace simple_strtoul with kstrtoul

Replace simple_strtoul with kstrtoul in three similar occurrences, all setup
handlers:
* route.c: set_rhash_entries
* tcp.c: set_thash_entries
* udp.c: set_uhash_entries

Also check if the conversion failed.

Signed-off-by: Eldad Zack <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agonet/ipv4/ipconfig: neaten __setup placement
Eldad Zack [Sat, 19 May 2012 14:04:39 +0000 (14:04 +0000)]
net/ipv4/ipconfig: neaten __setup placement

The __setup macro should follow the corresponding setup handler.

Signed-off-by: Eldad Zack <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agosparc32: drop unused inline functions in srmmu.c
Sam Ravnborg [Sat, 19 May 2012 20:02:51 +0000 (20:02 +0000)]
sparc32: drop unused inline functions in srmmu.c

When decelared inline the compiler does not warn
about unused functions.
But they are not used so drop them.

Signed-off-by: Sam Ravnborg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agosparc32: drop unused functions in pgtsrmmu.h
Sam Ravnborg [Sat, 19 May 2012 20:02:50 +0000 (20:02 +0000)]
sparc32: drop unused functions in pgtsrmmu.h

One function was only used by leon - move it to a leon specific file.

Signed-off-by: Sam Ravnborg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agosparc32,leon: move leon mmu functions to leon_mm.c
Sam Ravnborg [Sat, 19 May 2012 20:02:49 +0000 (20:02 +0000)]
sparc32,leon: move leon mmu functions to leon_mm.c

We already have a leaon specific file - so
keep all the laon stuff in one place.

Signed-off-by: Sam Ravnborg <[email protected]>
Cc: Konrad Eisele <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agosparc32,leon: remove duplicate definitions in leon.h
Sam Ravnborg [Sat, 19 May 2012 20:02:48 +0000 (20:02 +0000)]
sparc32,leon: remove duplicate definitions in leon.h

Signed-off-by: Sam Ravnborg <[email protected]>
Cc: Konrad Eisele <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agosparc32,leon: remove duplicate UART register definitions
Sam Ravnborg [Sat, 19 May 2012 20:02:47 +0000 (20:02 +0000)]
sparc32,leon: remove duplicate UART register definitions

The registers are defined in leon_amba too.

Signed-off-by: Sam Ravnborg <[email protected]>
Cc: Konrad Eisele <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agosparc32,leon: move leon ASI definitions to asi.h
Sam Ravnborg [Sat, 19 May 2012 20:02:46 +0000 (20:02 +0000)]
sparc32,leon: move leon ASI definitions to asi.h

Signed-off-by: Sam Ravnborg <[email protected]>
Cc: Konrad Eisele <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agosparc32: move trap table to a separate file
Sam Ravnborg [Sat, 19 May 2012 20:02:45 +0000 (20:02 +0000)]
sparc32: move trap table to a separate file

Signed-off-by: Sam Ravnborg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agosparc64: renamed ttable.S to ttable_64.S
Sam Ravnborg [Sat, 19 May 2012 20:02:44 +0000 (20:02 +0000)]
sparc64: renamed ttable.S to ttable_64.S

To allow us to add ttable_32.S

Signed-off-by: Sam Ravnborg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agosparc32: Remove asm/sysen.h header.
David S. Miller [Sun, 20 May 2012 04:55:49 +0000 (21:55 -0700)]
sparc32: Remove asm/sysen.h header.

Defines a sun4c register, thus completely unused.

Signed-off-by: David S. Miller <[email protected]>
12 years agosparc32: Delete asm/smpprim.h
David S. Miller [Sun, 20 May 2012 04:51:02 +0000 (21:51 -0700)]
sparc32: Delete asm/smpprim.h

Completely unused.

Signed-off-by: David S. Miller <[email protected]>
12 years agosparc32: Remove unused empty_bad_page{,_table} declarations.
David S. Miller [Sun, 20 May 2012 04:45:08 +0000 (21:45 -0700)]
sparc32: Remove unused empty_bad_page{,_table} declarations.

Signed-off-by: David S. Miller <[email protected]>
12 years agosparc32: Kill boot_cpu_id4
David S. Miller [Sun, 20 May 2012 04:40:50 +0000 (21:40 -0700)]
sparc32: Kill boot_cpu_id4

It is written, but never actually read.

Signed-off-by: David S. Miller <[email protected]>
12 years agosparc32: Move GET_PROCESSOR*_ID() out of asm/asmmacro.h
David S. Miller [Sun, 20 May 2012 04:22:11 +0000 (21:22 -0700)]
sparc32: Move GET_PROCESSOR*_ID() out of asm/asmmacro.h

GET_PROCESSOR4D_ID is completely unused, so delete it.

Move GET_PROCESSOR4M_ID to the sun4m specific trap code
which uses it.

We now no longer need to include asm/asi.h

Signed-off-by: David S. Miller <[email protected]>
12 years agosparc32: Remove completely unused code from asm/cache.h
David S. Miller [Sun, 20 May 2012 04:15:37 +0000 (21:15 -0700)]
sparc32: Remove completely unused code from asm/cache.h

Signed-off-by: David S. Miller <[email protected]>
12 years agonet: qmi_wwan: Add Vodafone/Huawei K5005 support
Bjørn Mork [Sat, 19 May 2012 07:20:31 +0000 (07:20 +0000)]
net: qmi_wwan: Add Vodafone/Huawei K5005 support

Tested-by: Thomas Schäfer <[email protected]>
Signed-off-by: Bjørn Mork <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agonet: cdc_ether: Add ZTE WWAN matches before generic Ethernet
Andrew Bird (Sphere Systems) [Sat, 19 May 2012 03:56:07 +0000 (03:56 +0000)]
net: cdc_ether: Add ZTE WWAN matches before generic Ethernet

Some ZTE WWAN devices have generic CDC Ether descriptors. Add those
into the whitelist so that we get FLAG_WWAN on the interface

Signed-off-by: Andrew Bird <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agoipv6: use skb coalescing in reassembly
Eric Dumazet [Sat, 19 May 2012 03:02:35 +0000 (03:02 +0000)]
ipv6: use skb coalescing in reassembly

ip6_frag_reasm() can use skb_try_coalesce() to build optimized skb,
reducing memory used by them (truesize), and reducing number of cache
line misses and overhead for the consumer.

Signed-off-by: Eric Dumazet <[email protected]>
Cc: Alexander Duyck <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agoipv4: use skb coalescing in defragmentation
Eric Dumazet [Sat, 19 May 2012 03:02:20 +0000 (03:02 +0000)]
ipv4: use skb coalescing in defragmentation

ip_frag_reasm() can use skb_try_coalesce() to build optimized skb,
reducing memory used by them (truesize), and reducing number of cache
line misses and overhead for the consumer.

Signed-off-by: Eric Dumazet <[email protected]>
Cc: Alexander Duyck <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agonet: introduce skb_try_coalesce()
Eric Dumazet [Sat, 19 May 2012 03:02:02 +0000 (03:02 +0000)]
net: introduce skb_try_coalesce()

Move tcp_try_coalesce() protocol independent part to
skb_try_coalesce().

skb_try_coalesce() can be used in IPv4 defrag and IPv6 reassembly,
to build optimized skbs (less sk_buff, and possibly less 'headers')

skb_try_coalesce() is zero copy, unless the copy can fit in destination
header (its a rare case)

kfree_skb_partial() is also moved to net/core/skbuff.c and exported,
because IPv6 will need it in patch (ipv6: use skb coalescing in
reassembly).

Signed-off-by: Eric Dumazet <[email protected]>
Cc: Alexander Duyck <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
12 years agonet:ipv6:fixed space issues relating to operators.
Jeffrin Jose [Sat, 19 May 2012 01:59:04 +0000 (01:59 +0000)]
net:ipv6:fixed space issues relating to operators.

Fixed space issues relating to operators found by
checkpatch.pl tool in net/ipv6/udp.c

Signed-off-by: Jeffrin Jose <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This page took 0.128332 seconds and 4 git commands to generate.