Re: [PATCH v2 9/9] gpio-tz1090-pdc: add TZ1090 PDC gpio driver

2013-05-31 Thread James Hogan
On 29/05/13 17:12, James Hogan wrote: > On 29/05/13 16:38, Linus Walleij wrote: >> On Fri, May 24, 2013 at 6:21 PM, James Hogan wrote: >>> +Optional properties: >>> +- gpio-ranges: Mapping to pin controller pins >>> + >>> +- interrupts: Individual sys

Re: [RFC PATCH] kernel/signal.c: avoid BUG_ON with SIG128 (MIPS)

2013-05-29 Thread James Hogan
On 29 May 2013 18:36, Oleg Nesterov wrote: > On 05/29, David Daney wrote: >> >> On 05/29/2013 10:01 AM, James Hogan wrote: >>> MIPS has 128 signals, the highest of which has the number 128. The >> >> I wonder if we should change the ABI and reduce the number

[RFC PATCH] kernel/signal.c: avoid BUG_ON with SIG128 (MIPS)

2013-05-29 Thread James Hogan
no, so that this highest of signal numbers get rounded down to 127. This makes the exit code technically incorrect, but it's better than killing the whole kernel. Signed-off-by: James Hogan Cc: Ralf Baechle Cc: Al Viro Cc: Andrew Morton Cc: Oleg Nesterov Cc: Kees Cook --- This is based on

Re: [PATCH v2 9/9] gpio-tz1090-pdc: add TZ1090 PDC gpio driver

2013-05-29 Thread James Hogan
On 29/05/13 16:38, Linus Walleij wrote: > On Fri, May 24, 2013 at 6:21 PM, James Hogan wrote: >> +Optional properties: >> +- gpio-ranges: Mapping to pin controller pins >> + >> +- interrupts: Individual syswake interrupts (other GPIOs cannot inter

Re: [PATCH v2 7/9] gpio-tz1090: add TZ1090 gpio driver

2013-05-29 Thread James Hogan
On 29/05/13 16:32, Linus Walleij wrote: > On Fri, May 24, 2013 at 6:21 PM, James Hogan wrote: > >> Add a GPIO driver for the main GPIOs found in the TZ1090 (Comet) SoC. >> This doesn't include low-power GPIOs as they're controlled separately >> via the Po

[PATCH] Documentation/pinctrl.txt: fix typo "with with"

2013-05-28 Thread James Hogan
Fix typo in "communicate directly with with the pinctrl subsystem". Signed-off-by: James Hogan Cc: Linus Walleij Cc: Rob Landley --- Documentation/pinctrl.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/pinctrl.txt b/Documentation/pinctrl

[PATCH v2 1/9] metag: of_platform_populate from arch generic code

2013-05-24 Thread James Hogan
If no init_machine callback is provided, call of_platform_populate() instead. This allows a board/SoC that only needs to call of_platform_populate to omit the callback altogether. Signed-off-by: James Hogan Cc: Grant Likely Cc: Rob Herring Cc: Arnd Bergmann Cc: devicetree-disc

[PATCH v2 7/9] gpio-tz1090: add TZ1090 gpio driver

2013-05-24 Thread James Hogan
Add a GPIO driver for the main GPIOs found in the TZ1090 (Comet) SoC. This doesn't include low-power GPIOs as they're controlled separately via the Powerdown Controller (PDC) registers. The driver is instantiated by device tree and supports interrupts for all GPIOs. Signed-off-by: J

[PATCH v2 0/9] Add some TZ1090 SoC infrastructure

2013-05-24 Thread James Hogan
linux-...@vger.kernel.org James Hogan (9): metag: of_platform_populate from arch generic code metag: minimal TZ1090 (Comet) SoC infrastructure irq-imgpdc: add ImgTec PDC irqchip driver pinconf-generic: add drive strength to debugfs output pinconf-generic: add BIAS_BUS_HOLD pinconf pinctrl-t

[PATCH v2 3/9] irq-imgpdc: add ImgTec PDC irqchip driver

2013-05-24 Thread James Hogan
. It also handles the set_wake interrupt operation to enable/disable the appropriate wake event bits. Signed-off-by: James Hogan Cc: Grant Likely Cc: Rob Herring Cc: Rob Landley Cc: Thomas Gleixner Cc: linux-...@vger.kernel.org Cc: devicetree-disc...@lists.ozlabs.org --- Changes in v2: - irq

[PATCH v2 8/9] pinctrl-tz1090-pdc: add TZ1090 PDC pinctrl driver

2013-05-24 Thread James Hogan
muxed onto the ir_mod_stable_out and ir_mod_power_out functions respectively. If no function is set they remain in GPIO mode. These muxes can be overridden by requesting them as GPIOs. Signed-off-by: James Hogan Cc: Grant Likely Cc: Rob Herring Cc: Rob Landley Cc: Linus Walleij Cc:

[PATCH v2 9/9] gpio-tz1090-pdc: add TZ1090 PDC gpio driver

2013-05-24 Thread James Hogan
Add a GPIO driver for the low-power Powerdown Controller GPIOs in the TZ1090 SoC. The driver is instantiated by device tree and supports interrupts for the SysWake GPIOs only. Signed-off-by: James Hogan Cc: Grant Likely Cc: Rob Herring Cc: Rob Landley Cc: Linus Walleij Cc: linux

[PATCH v2 2/9] metag: minimal TZ1090 (Comet) SoC infrastructure

2013-05-24 Thread James Hogan
boards and digital radios, such as the Minimorph Development Platform. Signed-off-by: James Hogan Cc: Grant Likely Cc: Rob Herring Cc: Rob Landley Cc: Arnd Bergmann Cc: linux-...@vger.kernel.org Cc: devicetree-disc...@lists.ozlabs.org --- Changes in v2: - removed arch/metag/soc/ directory

[PATCH v2 4/9] pinconf-generic: add drive strength to debugfs output

2013-05-24 Thread James Hogan
Add the drive strength pinconf to debugfs output (with the unit "mA"). Signed-off-by: James Hogan Cc: Linus Walleij --- Changes in v2: - add drive strength to generic pinconf debugfs output (patch 4) drivers/pinctrl/pinconf-generic.c | 1 + 1 file changed, 1 insertion(+) di

[PATCH v2 5/9] pinconf-generic: add BIAS_BUS_HOLD pinconf

2013-05-24 Thread James Hogan
the pin. Signed-off-by: James Hogan Cc: Linus Walleij --- Changes in v2: - add BIAS_BUS_HOLD generic pinconf (patch 5) drivers/pinctrl/pinconf-generic.c | 1 + include/linux/pinctrl/pinconf-generic.h | 6 ++ 2 files changed, 7 insertions(+) diff --git a/drivers/pinctrl/pinconf

Re: [PATCH v3] pinctrl: move subsystem mutex to pinctrl_dev struct

2013-05-24 Thread James Hogan
On 26 April 2013 16:08, Linus Walleij wrote: > @@ -608,7 +610,7 @@ static int pinconf_dbg_config_print(struct seq_file *s, > void *d) > bool found = false; > unsigned long config; > > - mutex_lock(&pinctrl_mutex); > + mutex_lock(&pctldev->mutex); > > /* Parse t

[PATCH 1/1] KVM: add kvm_para_available to asm-generic/kvm_para.h

2013-05-22 Thread James Hogan
According to include/uapi/linux/kvm_para.h architectures should define kvm_para_available, so add an implementation to asm-generic/kvm_para.h which just returns false. Signed-off-by: James Hogan Cc: Marcelo Tosatti Cc: Gleb Natapov Cc: Arnd Bergmann --- include/asm-generic/kvm_para.h | 5

Re: [PATCH v4 3/5] clk: add support for clock reparent on set_rate

2013-05-22 Thread James Hogan
On 21/05/13 06:10, Saravana Kannan wrote: > On 05/20/2013 06:28 AM, James Hogan wrote: >> diff --git a/include/linux/clk-private.h b/include/linux/clk-private.h >> index dd7adff..8138c94 100644 >> --- a/include/linux/clk-private.h >> +++ b/include/linux/clk-private.h &

[PATCH v4 3/5] clk: add support for clock reparent on set_rate

2013-05-20 Thread James Hogan
_rate() is called, determine_rate() is checked first and called in preference. This restructures a few of the call sites to simplify the logic into if/else blocks. Signed-off-by: James Hogan Cc: Mike Turquette Cc: linux-arm-ker...@lists.infradead.org --- Changes in v4: * (not included Stephen Boyd&

[PATCH v4 1/5] clk: abstract parent cache

2013-05-20 Thread James Hogan
Abstract access to the clock parent cache by defining clk_get_parent_by_index(clk, index). This allows access to parent clocks from clock drivers. Signed-off-by: James Hogan Reviewed-by: Stephen Boyd Cc: Mike Turquette Cc: linux-arm-ker...@lists.infradead.org --- Changes in v3: * remove

[PATCH v4 5/5] clk: clk-mux: implement remuxing on set_rate

2013-05-20 Thread James Hogan
te op is implemented as a core helper function so that it can be easily used by more complex clocks which incorporate muxes. Signed-off-by: James Hogan Cc: Mike Turquette Cc: linux-arm-ker...@lists.infradead.org --- Changes in v4: * never pass NULL to determine_rate's best_parent_clk parame

[PATCH v4 0/5] clk: implement remuxing during set_rate

2013-05-20 Thread James Hogan
ent, and in a way that should ensure correct notifications without duplicates, and I think should be safe in the event of a notification failing. * various tidy ups and fixes. James Hogan (5): clk: abstract parent cache clk: move some parent related functions upwards clk: add support for clock

[PATCH v4 2/5] clk: move some parent related functions upwards

2013-05-20 Thread James Hogan
to ease readability of that patch. Signed-off-by: James Hogan Cc: Mike Turquette Cc: linux-arm-ker...@lists.infradead.org --- Changes in v4: * new patch (patch 2) split out of patch 3 to avoid having to declare static __clk_set_parent() at the top of clk.c, and to ease readability of patch 3

Re: [PATCH RFC 0/2] clk: add metag specific gate/mux clocks

2013-05-17 Thread James Hogan
On 16/05/13 23:22, Stephen Boyd wrote: > On 05/16/13 02:56, James Hogan wrote: >> On 15/05/13 23:31, Stephen Boyd wrote: >>> Can you please Cc the devicetree mailing list when proposing new bindings? >> Erm, I think it was on Cc (devicetree-disc...@lists.ozlabs.org yeh?)

Re: [PATCH RFC 0/2] clk: add metag specific gate/mux clocks

2013-05-16 Thread James Hogan
On 15/05/13 23:31, Stephen Boyd wrote: > On 05/10/13 08:02, James Hogan wrote: >> This adds a metag architecture specific clk-gate and clk-mux which >> extends the generic ones to use global lock2 to protect the register >> fields. It is common with metag to have an RTOS r

Re: [PATCH v2 0/3] clk: implement remuxing during set_rate

2013-05-16 Thread James Hogan
On 16/05/13 05:11, Saravana Kannan wrote: > I really want to review this because I solved the same problem in our > internal clock framework and want to make sure upstream doesn't go > through the same mistakes. But haven't had the time. Hopefully, I'll go > it before this gets accepted by Mike. I'

Re: [PATCH 5/8] pinctrl-tz1090: add TZ1090 pinctrl driver

2013-05-16 Thread James Hogan
Hi Linus, On 15/05/13 20:07, Linus Walleij wrote: > On Tue, May 14, 2013 at 2:22 PM, James Hogan wrote: > >> I think that's the other way around, i.e. that's talking about mapping >> several pingroups to the same function. The next paragraph is closer to >>

Re: [PATCH v2 0/3] clk: implement remuxing during set_rate

2013-05-14 Thread James Hogan
Hi Mike, On 14/05/13 17:59, Mike Turquette wrote: > Quoting James Hogan (2013-05-13 14:30:46) >> On 13 May 2013 20:57, Mike Turquette wrote: >>> One reason for this is the difficulty some have had with setting flags >>> from DT bindings. >> >> Could you el

Re: [PATCH v2 2/3] clk: add support for clock reparent on set_rate

2013-05-14 Thread James Hogan
On 14 May 2013 19:13, Mike Turquette wrote: > Quoting James Hogan (2013-04-19 09:28:23) >> Add core support to allow clock implementations to select the best >> parent clock when rounding a rate, e.g. the one which can provide the >> closest clock rate to that requested. Thi

Re: [PATCH 5/8] pinctrl-tz1090: add TZ1090 pinctrl driver

2013-05-14 Thread James Hogan
On 14/05/13 12:52, Linus Walleij wrote: > On Fri, May 3, 2013 at 5:06 PM, James Hogan wrote: >> [me] >>> Thus this part of the problem (poking that "select" bit) >>> should be handled by the pinmux part of the driver. >>> >>> The pinconf

Re: [PATCH v2 0/3] clk: implement remuxing during set_rate

2013-05-13 Thread James Hogan
On 13 May 2013 20:57, Mike Turquette wrote: > Quoting James Hogan (2013-04-19 09:28:21) >> This patchset adds support for automatic selection of the best parent >> for a clock mux, i.e. the one which can provide the closest clock rate >> to that requested. It can b

Re: [PATCH RFC 0/2] clk: add metag specific gate/mux clocks

2013-05-10 Thread James Hogan
On 10/05/13 16:02, James Hogan wrote: > This adds a metag architecture specific clk-gate and clk-mux which > extends the generic ones to use global lock2 to protect the register > fields. It is common with metag to have an RTOS running on a different > thread or core with access to di

[PATCH RFC 0/2] clk: add metag specific gate/mux clocks

2013-05-10 Thread James Hogan
es to the generic clock components for when a global or callback function based lock is desired instead of a spinlock, but I wasn't sure if that sort of hack would really be appreciated in the generic drivers. Comments? James Hogan (2): clk: metag/clk-gate: add metag specific clock gate clk:

[PATCH RFC 0/2] clk: add metag specific gate/mux clocks

2013-05-10 Thread James Hogan
es to the generic clock components for when a global or callback function based lock is desired instead of a spinlock, but I wasn't sure if that sort of hack would really be appreciated in the generic drivers. Comments? James Hogan (2): clk: metag/clk-gate: add metag specific clock gate clk:

[PATCH RFC 1/2] clk: metag/clk-gate: add metag specific clock gate

2013-05-10 Thread James Hogan
clocks). Access to such registers must be serialised with a global lock such as the one provided by the metag architecture port in Signed-off-by: James Hogan Cc: Mike Turquette --- .../bindings/clock/img,meta-gate-clock.txt | 28 drivers/clk/Makefile

[PATCH RFC 1/2] clk: metag/clk-gate: add metag specific clock gate

2013-05-10 Thread James Hogan
clocks). Access to such registers must be serialised with a global lock such as the one provided by the metag architecture port in Signed-off-by: James Hogan Cc: Mike Turquette --- .../bindings/clock/img,meta-gate-clock.txt | 28 drivers/clk/Makefile

[PATCH RFC 2/2] clk: metag/clk-mux: add metag specific clk-mux

2013-05-10 Thread James Hogan
clocks). Access to such registers must be serialised with a global lock such as the one provided by the metag architecture port in Signed-off-by: James Hogan Cc: Mike Turquette --- .../bindings/clock/img,meta-mux-clock.txt | 33 drivers/clk/metag/Makefile

[PATCH RFC 2/2] clk: metag/clk-mux: add metag specific clk-mux

2013-05-10 Thread James Hogan
clocks). Access to such registers must be serialised with a global lock such as the one provided by the metag architecture port in Signed-off-by: James Hogan Cc: Mike Turquette --- .../bindings/clock/img,meta-mux-clock.txt | 33 drivers/clk/metag/Makefile

[PATCH] clk: add specified-rate clock

2013-05-10 Thread James Hogan
indings to handle this. It behaves similar to a fixed rate clock (read-only), except it needs information about a register field (reg, shift, width), and the clock-frequency is a mapping from register field values to clock frequencies. Signed-off-by: James Hogan Cc: Mike Turquette Cc: Grant

Re: [PATCH v2 0/3] clk: implement remuxing during set_rate

2013-05-10 Thread James Hogan
On 09/05/13 20:48, Stephen Boyd wrote: > On 05/09/13 02:02, James Hogan wrote: >> On 09/05/13 00:36, Stephen Boyd wrote: >>> Which tree is this based on? I get failures with git am on patch 2. >>> >> It was based on v3.9-rc4. >> > > Thanks. Would i

Re: [PATCH v2 2/3] clk: add support for clock reparent on set_rate

2013-05-10 Thread James Hogan
On 09/05/13 21:01, Stephen Boyd wrote: > I believe we'll need to update the check in __clk_init() to allow you to > have either a .round_rate or a .determine_rate op if you have a > .recalc_rate op. Right now it fails to register the clock and then > oopses later on while setting up clock debugfs.

[PATCH v8] fs: imgdafs: Add IMG DAFS filesystem for metag

2013-05-09 Thread James Hogan
Add the IMG Debug Adapter File System (DAFS) for metag, which uses SWITCH operations to communicate with a file server on a host computer via a JTAG debug adapter. Signed-off-by: James Hogan Cc: Alexander Viro --- v8: * enabled building as a module (commit e605ff8 merged during v3.10

Re: [PATCH] serial: 8250_dw: set clock rate

2013-05-09 Thread James Hogan
On 09/05/13 11:29, James Hogan wrote: > If the uart clock provided to the 8250_dw driver is adjustable it may > not be set to the desired rate. Therefore if both a uart clock and a > clock frequency is specified (e.g. via device tree), try and update the > clock to match t

Re: [PATCH 12/21] metag: delay: remove inline marking of EXPORT_SYMBOL functions

2013-05-09 Thread James Hogan
On 09/05/13 11:36, Denis Efremov wrote: > EXPORT_SYMBOL and inline directives are contradictory to each other. > The patch fixes this inconsistency. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Denis Efremov > --- > arch/metag/lib/delay.c | 2 +- > 1 fil

[PATCH] serial: 8250_dw: set clock rate

2013-05-09 Thread James Hogan
(which is the default behaviour of the generic clk-divider), the 8250 core won't allow the highest baud rate to be used, so if an explicit frequency is specified we always report that to the 8250 core. The device tree bindings document is also updated accordingly. Signed-off-by: James Hoga

Re: [PATCH v2 0/3] clk: implement remuxing during set_rate

2013-05-09 Thread James Hogan
On 09/05/13 00:36, Stephen Boyd wrote: > On 04/19/13 09:28, James Hogan wrote: >> This patchset adds support for automatic selection of the best parent >> for a clock mux, i.e. the one which can provide the closest clock rate >> to that requested. It can be controlled by a n

Re: [PATCH 1/7] consolidate per-arch stack overflow debugging options

2013-05-07 Thread James Hogan
able a Kconfig > boolean, and then use that boolean in the generic Kconfig.debug > to present the actual menu option. This removes a bunch of > duplication and adds consistency across arches. > > Signed-off-by: Dave Hansen > Reviewed-by: H. Peter Anvin > Reviewed-by: Jame

Re: h8300 SYMBOL_NAME() breakage

2013-05-07 Thread James Hogan
On 06/05/13 13:31, Geert Uytterhoeven wrote: > Commit e1b5bb6d1236d4ad2084c53aa83dde7cdf6f8eea ("consolidate cond_syscall > and SYSCALL_ALIAS declarations") broke the h8300 build because it removed > the duplicate SYMBOL_NAME from arch/h8300/include/asm/linkage.h, and all > the h8300 asm files incl

Re: [PATCH 5/8] pinctrl-tz1090: add TZ1090 pinctrl driver

2013-05-03 Thread James Hogan
Hi Linus, On 03/05/13 14:03, Linus Walleij wrote: > On Fri, May 3, 2013 at 2:23 PM, James Hogan wrote: >> [Me] >>> If what you need is to set the pin into "GPIO mode" to drive it >>> to some default state then from pinconf-generic.h you should use

Re: [PATCH 5/8] pinctrl-tz1090: add TZ1090 pinctrl driver

2013-05-03 Thread James Hogan
Hi Linus, On 03/05/13 10:13, Linus Walleij wrote: > On Fri, Apr 26, 2013 at 1:54 PM, James Hogan wrote: >> On 25/04/13 23:39, Linus Walleij wrote: >>> On Tue, Apr 23, 2013 at 4:33 PM, James Hogan wrote: >>>> +static const struct cfg_param { >>>> +

Re: [PATCH 6/8] gpio-tz1090: add TZ1090 gpio driver

2013-05-03 Thread James Hogan
Hi Linus, On 03/05/13 09:49, Linus Walleij wrote: > On Fri, Apr 26, 2013 at 11:22 AM, James Hogan wrote: >> So basically a bunch of global registers (e.g. pinctrl and gpio) are >> shared between all 3 cores (up to 4 OSes). The __global_lock2 should do >> all that is require

Re: [PATCH] linkage.h: fix build breakage due to symbol prefix handling

2013-05-01 Thread James Hogan
On 1 May 2013 22:43, Al Viro wrote: > On Wed, May 01, 2013 at 10:04:17PM +0100, James Hogan wrote: >> Al's commit e1b5bb6d1236d4ad2084c53aa83dde7cdf6f8eea ("consolidate >> cond_syscall and SYSCALL_ALIAS declarations") broke the build on >> blackfin

[PATCH] linkage.h: fix build breakage due to symbol prefix handling

2013-05-01 Thread James Hogan
n't used and is incorrect when CONFIG_SYMBOL_PREFIX is defined as CONFIG_SYMBOL_PREFIX is a quoted string literal, so define __SYMBOL_NAME directly depending on CONFIG_SYMBOL_PREFIX. Signed-off-by: James Hogan Cc: Al Viro Cc: Rusty Russell Cc: Mike Frysinger Cc: uclinux-dist-de...@blackfin.uclin

[GIT PULL] arch/metag changes for v3.10

2013-04-30 Thread James Hogan
ODE_MAP again (touches microblaze too). - Add TLS pointer regset to metag ptrace api. - Add exported metag DSP extended context handling header . - Increase defconfig log buffer size to 128KiB. - Various fixes, typos, missing exports. ---- Ja

Re: [PATCH -next] ia64, metag: Do not export min_low_pfn in arch-specific code

2013-04-28 Thread James Hogan
27; exported twice. Previous export was in vmlinux > > Signed-off-by: Geert Uytterhoeven This has been pointed out several times and needs fixing in the mips tree where the warning was introduced. Acked-by: James Hogan Cheers James -- To unsubscribe from this list: send the line &q

Re: [PATCH 5/8] pinctrl-tz1090: add TZ1090 pinctrl driver

2013-04-26 Thread James Hogan
Hi Linus, On 25/04/13 23:39, Linus Walleij wrote: > On Tue, Apr 23, 2013 at 4:33 PM, James Hogan wrote: > >> Add a pin control driver for the main pins on the TZ1090 SoC. This >> doesn't include the low-power pins as they're controlled separately via >> the Po

Re: [PATCH 6/8] gpio-tz1090: add TZ1090 gpio driver

2013-04-26 Thread James Hogan
Hi Linus, Thanks for reviewing these patches. On 26/04/13 00:01, Linus Walleij wrote: > On Tue, Apr 23, 2013 at 4:33 PM, James Hogan wrote: > >> Add a GPIO driver for the main GPIOs found in the TZ1090 (Comet) SoC. >> This doesn't include low-power GPIOs as they're

Re: [PATCH 2/8] metag: minimal TZ1090 (Comet) SoC infrastructure

2013-04-25 Thread James Hogan
On 24/04/13 15:51, James Hogan wrote: > On 24/04/13 14:26, Catalin Marinas wrote: >> On 23 April 2013 17:06, James Hogan wrote: >>> It's certainly heading in that direction a lot. For this patchset I >>> could get away with dropping arch/metag/soc/*, and de

[PATCH 1/1] metag: defconfigs: increase log buffer 8KiB => 128KiB

2013-04-25 Thread James Hogan
witch all the defconfigs to use the default size of 128KiB. Signed-off-by: James Hogan --- arch/metag/configs/meta1_defconfig | 1 - arch/metag/configs/meta2_defconfig | 1 - arch/metag/configs/meta2_smp_defconfig | 1 - 3 files changed, 3 deletions(-) diff --git a/arch/metag/co

Re: [PATCH 3/8] irq-imgpdc: add ImgTec PDC irqchip driver

2013-04-25 Thread James Hogan
Hi Thomas, On 23/04/13 16:09, Thomas Gleixner wrote: > On Tue, 23 Apr 2013, James Hogan wrote: >> +pdc_write(priv, PDC_IRQ_ROUTE, irq_route); > >> +spin_unlock_irqrestore(&priv->lock, flags); >> +} >> + >> +static void perip_irq_unmask(

[PATCH v2] modpost: fix unwanted VMLINUX_SYMBOL_STR expansion

2013-04-25 Thread James Hogan
R instead which doesn't expand the argument. Reported-by: Tetsuo Handa Reported-by: Andy Shevchenko Signed-off-by: James Hogan Cc: Rusty Russell Cc: H. Peter Anvin Tested-by: Tetsuo Handa Tested-by: Andy Shevchenko --- I've corrected commit message tags for Rusty's conve

Re: [PATCH 2/8] metag: minimal TZ1090 (Comet) SoC infrastructure

2013-04-24 Thread James Hogan
On 24/04/13 14:26, Catalin Marinas wrote: > On 23 April 2013 17:06, James Hogan wrote: >> On 23/04/13 16:25, Arnd Bergmann wrote: >>> On Tuesday 23 April 2013, James Hogan wrote: >>> >>>> @@ -46,6 +46,12 @@ core-y+=

Re: [PATCH] x86_32: Fix module version table mismatch.

2013-04-24 Thread James Hogan
to __builtin_memcmp which is expanded by VMLINUX_SYMBOL_STR. Use __VMLINUX_SYMBOL_STR instead which doesn't expand the argument. Reported-by: Tetsuo Handa Signed-off-by: James Hogan Cc: Rusty Russell Cc: Andy Shevchenko Cc: H. Peter Anvin --- scripts/mod/modpost.c | 2 +- 1 file change

Re: [PATCH 3/8] irq-imgpdc: add ImgTec PDC irqchip driver

2013-04-24 Thread James Hogan
Thanks for the review Thomas! On 23/04/13 16:09, Thomas Gleixner wrote: > On Tue, 23 Apr 2013, James Hogan wrote: >> +/** >> + * struct pdc_intc_priv - private pdc interrupt data. >> + * @nr_perips: Number of peripheral interrupt signals. >> + * @nr_sys

Re: [PATCH 2/8] metag: minimal TZ1090 (Comet) SoC infrastructure

2013-04-23 Thread James Hogan
Thanks for reviewing Arnd. On 23/04/13 16:25, Arnd Bergmann wrote: > On Tuesday 23 April 2013, James Hogan wrote: > >> @@ -46,6 +46,12 @@ core-y+= >> arch/metag/boot/dts/ >> core-y += arch/

[PATCH 0/8] Add some TZ1090 SoC infrastructure

2013-04-23 Thread James Hogan
0 (at least the first two patches) so all review is very much appreciated. Cc: Arnd Bergmann Cc: Thomas Gleixner James Hogan (8): metag: of_platform_populate from arch generic code metag: minimal TZ1090 (Comet) SoC infrastructure irq-imgpdc: add ImgTec PDC irqchip driver metag: tz1090

[PATCH 8/8] gpio-tz1090pdc: add TZ1090 PDC gpio driver

2013-04-23 Thread James Hogan
Add a GPIO driver for the low-power Powerdown Controller GPIOs in the TZ1090 SoC. The driver is instantiated by device tree and supports interrupts for the SysWake GPIOs only. Signed-off-by: James Hogan Cc: Grant Likely Cc: Rob Herring Cc: Rob Landley Cc: Linus Walleij Cc: linux

[PATCH 1/8] metag: of_platform_populate from arch generic code

2013-04-23 Thread James Hogan
If no init_machine callback is provided, call of_platform_populate() instead. This allows a board/SoC that only needs to call of_platform_populate to omit the callback altogether. Signed-off-by: James Hogan Cc: Grant Likely Cc: Rob Herring Cc: Arnd Bergmann --- arch/metag/kernel/setup.c | 4

[PATCH 4/8] metag: tz1090: add

2013-04-23 Thread James Hogan
Add with definitions to number all the GPIOs available on-chip. This is for use by the pinctrl and GPIO drivers. Signed-off-by: James Hogan --- arch/metag/include/asm/soc-tz1090/gpio.h | 121 +++ 1 file changed, 121 insertions(+) create mode 100644 arch/metag

[PATCH 3/8] irq-imgpdc: add ImgTec PDC irqchip driver

2013-04-23 Thread James Hogan
. It also handles the set_wake interrupt operation to enable/disable the appropriate wake event bits. Signed-off-by: James Hogan Cc: Grant Likely Cc: Rob Herring Cc: Rob Landley Cc: Thomas Gleixner Cc: linux-...@vger.kernel.org --- .../devicetree/bindings/metag/pdc-intc.txt | 112

[PATCH 2/8] metag: minimal TZ1090 (Comet) SoC infrastructure

2013-04-23 Thread James Hogan
number of development boards and digital radios, such as the Minimorph Development Platform. Signed-off-by: James Hogan Cc: Grant Likely Cc: Rob Herring Cc: Rob Landley Cc: Arnd Bergmann Cc: linux-...@vger.kernel.org --- .../devicetree/bindings/vendor-prefixes.txt| 1 + arch/metag

[PATCH 6/8] gpio-tz1090: add TZ1090 gpio driver

2013-04-23 Thread James Hogan
Add a GPIO driver for the main GPIOs found in the TZ1090 (Comet) SoC. This doesn't include low-power GPIOs as they're controlled separately via the Powerdown Controller (PDC) registers. The driver is instantiated by device tree and supports interrupts for all GPIOs. Signed-off-by: J

[PATCH 7/8] pinctrl-tz1090-pdc: add TZ1090 PDC pinctrl driver

2013-04-23 Thread James Hogan
muxed onto the ir_mod_stable_out and ir_mod_power_out functions respectively. If no function is set they remain in GPIO mode. These muxes can be overridden by requesting them as GPIOs. Signed-off-by: James Hogan Cc: Grant Likely Cc: Rob Herring Cc: Rob Landley Cc: Linus Walleij Cc:

[PATCH 1/1] Makefile.lib: align DTB quiet_cmd

2013-04-22 Thread James Hogan
filename aligns with all the others. Signed-off-by: James Hogan Cc: Michal Marek Cc: Dirk Brandewie Cc: Grant Likely --- scripts/Makefile.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 07125e6..e13fff1 100644 --- a

Re: [RFC PATCH v1 0/3] clk: implement remuxing during set_rate

2013-04-19 Thread James Hogan
Hi Mike, On 03/04/13 22:34, Mike Turquette wrote: > diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h > index 9fdfae7..1a19186 100644 > --- a/include/linux/clk-provider.h > +++ b/include/linux/clk-provider.h > @@ -126,6 +126,9 @@ struct clk_ops { >

[PATCH v2 2/3] clk: add support for clock reparent on set_rate

2013-04-19 Thread James Hogan
similar to clk_set_parent() but without calling __clk_recalc_rates(). This is for clk_change_rate() to use, where rate recalculation and notifications are already handled. Signed-off-by: James Hogan --- Documentation/clk.txt| 4 ++ drivers/clk/clk.c

[PATCH v2 3/3] clk: clk-mux: implement remuxing on set_rate

2013-04-19 Thread James Hogan
hoose the best one (like clk-divider this chooses the parent which provides the fastest rate <= the requested rate). The determine_rate op is implemented as a core helper function so that it can be easily used by more complex clocks which incorporate muxes. Signed-off-by: James Hogan --- drivers

[PATCH v2 1/3] clk: abstract parent cache

2013-04-19 Thread James Hogan
Abstract access to the clock parent cache by defining __clk_get_parent_by_index(clk, index). This allows access to parent clocks from clock drivers. Signed-off-by: James Hogan --- drivers/clk/clk.c| 21 ++--- include/linux/clk-provider.h | 1 + 2 files changed, 15

[PATCH v2 0/3] clk: implement remuxing during set_rate

2013-04-19 Thread James Hogan
he PRE notifications have been sent, and in a way that should ensure correct notifications without duplicates, and I think should be safe in the event of a notification failing. * various tidy ups and fixes. James Hogan (3): clk: abstract parent cache clk: add support for clock reparent on s

Re: [PATCH v7] fs: imgdafs: Add IMG DAFS filesystem for metag

2013-04-17 Thread James Hogan
Hi Al, On 27/03/13 11:07, James Hogan wrote: > Add the IMG Debug Adapter File System (DAFS) for metag, which uses > SWITCH operations to communicate with a file server on a host computer > via a JTAG debug adapter. > > Signed-off-by: James Hogan > Cc: Alexander Viro >

[PATCH 1/1] metag: avoid unnecessary builtin dtb rebuilds

2013-04-17 Thread James Hogan
y in dtb-y (e.g. imported into the tree and specified in CONFIG_METAG_BUILTIN_DTB_NAME) it too will be treated as an intermediate and deleted automatically (again causing it to be regenerated on every build), so add it to dtb-y so it gets added to targets and the dtbs target. Signed-off-by: James

Re: [PATCH] Kbuild: Avoid DTB rebuilds if source files are untouched

2013-04-17 Thread James Hogan
On 17/04/13 05:13, Vineet Gupta wrote: > Hi James, > > On 04/16/2013 09:23 PM, James Hogan wrote: >> On 12/04/13 22:52, Stephen Warren wrote: >>> +.SECONDARY: $(obj)/$(builtindtb-y).dtb.S >> Note, this may not work if you're using CONFIG_ARC_BUILTIN_DTB_NAME, &

Re: [PATCH] Kbuild: Avoid DTB rebuilds if source files are untouched

2013-04-16 Thread James Hogan
On 16/04/13 16:53, James Hogan wrote: > On 12/04/13 22:52, Stephen Warren wrote: >> +.SECONDARY: $(obj)/$(builtindtb-y).dtb.S > > Note, this may not work if you're using CONFIG_ARC_BUILTIN_DTB_NAME, > since it'll have quotes around it, so you may instead need: >

Re: [PATCH] Kbuild: Avoid DTB rebuilds if source files are untouched

2013-04-16 Thread James Hogan
On 12/04/13 22:52, Stephen Warren wrote: > +.SECONDARY: $(obj)/$(builtindtb-y).dtb.S Note, this may not work if you're using CONFIG_ARC_BUILTIN_DTB_NAME, since it'll have quotes around it, so you may instead need: .SECONDARY: $(obj)/$(patsubst "%",%,$(builtindtb-y)).dtb.S (at least that's what's

Re: [PATCH v2 5/5] dump_stack: unify debug information printed by show_regs()

2013-04-16 Thread James Hogan
400 > Stack: > 88007c861ef8 81000312 82446608 88007c85e650 > 0003 88007c861f38 82335e5d > 88007c862080 8223d8c0 88007c862080 81c47730 > Call Trace: > [] do_one_initcall+0x1

Re: [PATCH 3/5] dump_stack: consolidate dump_stack() implementations and unify their behaviors

2013-04-16 Thread James Hogan
] dump_stack+0x19/0x1b > [] warn_slowpath_common+0x7f/0xc0 > [] warn_slowpath_null+0x1a/0x20 > [] init_workqueues+0x35/0x505 > ... > > Signed-off-by: Tejun Heo > Cc: Martin Schwidefsky > Cc: Heiko Carstens > Cc: linux-s...@vger.kernel.org > Cc: Mike Frysinger &

Re: [RFC PATCH v1 0/3] clk: implement remuxing during set_rate

2013-04-03 Thread James Hogan
On 3 April 2013 03:06, Stephen Boyd wrote: > > On 03/22/13 08:43, James Hogan wrote: > > This patchset adds support for automatic selection of the best parent > > for a clock mux, i.e. the one which can provide the closest clock rate > > to that requested. It ca

[PATCH 1/3] metag: ptrace: Implement NT_METAG_TLS

2013-03-27 Thread James Hogan
From: Paul Clothier Implement functionality to get the TLS pointer for the metag architecture using regsets. This provides multi-threaded debug support for GDB. Signed-off-by: Paul Clothier --- arch/metag/kernel/ptrace.c | 34 ++ include/uapi/linux/elf.h | 1

[PATCH 2/3] metag: export _metag_da_present and cpu_2_hwthread_id

2013-03-27 Thread James Hogan
Export the symbols _metag_da_present and cpu_2_hwthread_id to modules (GPL only) to allow the imgdafs file system to be built as a module. Signed-off-by: James Hogan --- arch/metag/kernel/da.c| 2 ++ arch/metag/kernel/setup.c | 1 + 2 files changed, 3 insertions(+) diff --git a/arch/metag

[PATCH 3/3] metag: add exported for extended context handling

2013-03-27 Thread James Hogan
compatible between Linux and non-Linux operating systems. Signed-off-by: James Hogan --- arch/metag/include/uapi/asm/Kbuild | 1 + arch/metag/include/uapi/asm/ech.h | 15 +++ 2 files changed, 16 insertions(+) create mode 100644 arch/metag/include/uapi/asm/ech.h diff --git a/arch/metag

[PATCH 0/3] metag: misc improvements

2013-03-27 Thread James Hogan
A few more misc arch/metag/ improvements for v3.10. James Hogan (2): metag: export _metag_da_present and cpu_2_hwthread_id metag: add exported for extended context handling Paul Clothier (1): metag: ptrace: Implement NT_METAG_TLS arch/metag/include/uapi/asm/Kbuild | 1 + arch/metag

[PATCH v7] fs: imgdafs: Add IMG DAFS filesystem for metag

2013-03-27 Thread James Hogan
Add the IMG Debug Adapter File System (DAFS) for metag, which uses SWITCH operations to communicate with a file server on a host computer via a JTAG debug adapter. Signed-off-by: James Hogan Cc: Alexander Viro --- v7: * use explicit sized types in da_stat and da_finddata (Al Viro) * move

[PATCH 0/3] hostfs: tweaks from imgdafs review

2013-03-27 Thread James Hogan
This patchset contains some tweaks to hostfs, based on imgdafs review comments from Al Viro which also apply to hostfs. James Hogan (3): hostfs: remove "will unlock" comment hostfs: move HOSTFS_SUPER_MAGIC to hostfs: use kmalloc instead of kzalloc fs/hostfs/hostfs_ker

[PATCH 2/3] hostfs: move HOSTFS_SUPER_MAGIC to

2013-03-27 Thread James Hogan
Move HOSTFS_SUPER_MAGIC to to be with it's magical friends from other file systems. Reported-by: Al Viro Signed-off-by: James Hogan --- fs/hostfs/hostfs_kern.c| 3 +-- include/uapi/linux/magic.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/hostfs/hostfs_k

[PATCH 3/3] hostfs: use kmalloc instead of kzalloc

2013-03-27 Thread James Hogan
The inode info structure is zeroed at allocation with kzalloc, and then all but one of the fields (including the largest, vfs_inode) are initialised explicitly. Switch to using kmalloc and initialise the remaining field too. Reported-by: Al Viro Signed-off-by: James Hogan --- fs/hostfs

[PATCH 1/3] hostfs: remove "will unlock" comment

2013-03-27 Thread James Hogan
wing commit: Commit ec2447c278ee973d35f38e53ca16ba7f965ae33d ("hostfs: simplify locking"). Since the comment is no longer applicable, remove it. Reported-by: Al Viro Signed-off-by: James Hogan Cc: Nick Piggin --- fs/hostfs/hostfs_kern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v6] fs: imgdafs: Add IMG DAFS filesystem for metag

2013-03-26 Thread James Hogan
Thanks for reviewing Al... On 26 March 2013 19:18, Al Viro wrote: > On Tue, Mar 26, 2013 at 03:19:29PM +0000, James Hogan wrote: >> +struct da_finddata { >> + unsigned long size; >> + unsigned long attrib; >> + char name[260]; >> +}; > > ... esp

[PATCH v6] fs: imgdafs: Add IMG DAFS filesystem for metag

2013-03-26 Thread James Hogan
Add the IMG Debug Adapter File System (DAFS) for metag, which uses SWITCH operations to communicate with a file server on a host computer via a JTAG debug adapter. Signed-off-by: James Hogan Cc: Alexander Viro --- v6: * use file_inode() helper introduced in v3.9-rc1 * remove dafs_iops as it

[PATCH 1/1] clk: fix clk_mux::flags kerneldoc

2013-03-25 Thread James Hogan
The kerneldoc comment for struct clk_mux documented the non-existent num_clks instead of flags. Correct this. Signed-off-by: James Hogan --- include/linux/clk-provider.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/clk-provider.h b/include/linux/clk

[RFC PATCH v1 3/3] clk: clk-mux: implement remuxing

2013-03-22 Thread James Hogan
Implement clk-mux remuxing if the CLK_SET_RATE_REMUX flag is set. This implements round_rate for clk-mux to propagate the round_rate to each parent and to choose the best one. Signed-off-by: James Hogan --- drivers/clk/clk-mux.c | 47 +++ 1 file

<    5   6   7   8   9   10   11   12   13   14   >