Re: [PATCH 3/4] pinctrl: remove slew-rate parameter from tz1090

2013-06-25 Thread James Hogan
On 25/06/13 14:22, Linus Walleij wrote: > Can't we just try to come up with a patch that nails down the meaning of > slew rate in some meaningful manner then? > > So according to: > http://en.wikipedia.org/wiki/Slew_rate > a proper expression for slew rate would be dV/dt i.e. > something like micr

Re: [PATCH 15/32] metag: delete __cpuinit usage from all metag files

2013-06-25 Thread James Hogan
> This removes all the arch/metag uses of the __cpuinit macros from > all C files. Currently metag does not have any __CPUINIT used in > assembly files. > > [1] https://lkml.org/lkml/2013/5/20/589 > > Cc: James Hogan > Signed-off-by: Paul Gortmaker Acked-by: James Hoga

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

2013-06-25 Thread James Hogan
On 25 June 2013 22:40, Andrew Morton wrote: > On Mon, 24 Jun 2013 10:10:08 +0100 James Hogan wrote: > >> On 22/06/13 20:09, Oleg Nesterov wrote: >> > On 06/21, David Daney wrote: >> >> I am proposing that we just reduce the number of usable signals such >>

Re: [PATCH] perf: add const qualifier to perf_pmu_register's 'name' arg

2013-06-12 Thread James Hogan
On 04/06/13 12:18, Peter Zijlstra wrote: > On Tue, Jun 04, 2013 at 04:39:05PM +0530, Vineet Gupta wrote: >> On 06/04/2013 04:33 PM, Peter Zijlstra wrote: >>> Simlar 'complaint' for the ARC stuff really, only marketing speak :-) >> >> You mean lack of prefix in this case (as opposed to MetaG). > >

[PATCH 1/5] metag: use clear_tasks_mm_cpumask()

2013-07-01 Thread James Hogan
ock held). clear_tasks_mm_cpumask() was introduced in v3.5-rc1 to fix this issue, so let's use it for metag too. Signed-off-by: James Hogan Cc: "Srivatsa S. Bhat" Cc: Thomas Gleixner Cc: Oleg Nesterov Cc: Anton Vorontsov --- arch/metag/kernel/smp.c | 8 +--- 1 file changed, 1 in

[PATCH 5/5] metag: cpu hotplug: route_irq: preserve irq mask

2013-07-01 Thread James Hogan
-enables IRQs. This appears to have been causing occasional hits of the BUG_ON(!irqs_disabled()) in __irq_work_run() during CPU hotplug soak testing: BUG: failure at kernel/irq_work.c:122/__irq_work_run()! Signed-off-by: James Hogan --- arch/metag/kernel/irq.c | 5 +++-- 1 file changed, 3 insertions

[PATCH 0/5] metag: smp/hotplug fixes

2013-07-01 Thread James Hogan
give them a glance over in case I've misunderstood anything. James Hogan (5): metag: use clear_tasks_mm_cpumask() metag: smp: enable irqs after set_cpu_online metag: smp: don't spin waiting for CPU to start metag: kick: prevent nested kick handlers metag: cpu hotplug: route_ir

[PATCH 3/5] metag: smp: don't spin waiting for CPU to start

2013-07-01 Thread James Hogan
completion prevents the bogomips of the secondary CPU from being drastically skewed every time by the execution of the tight in-cache udelay loop on the other CPU. Signed-off-by: James Hogan Cc: "Srivatsa S. Bhat" Cc: Thomas Gleixner --- arch/metag/kernel/smp.c | 16 ++-

[PATCH 2/5] metag: smp: enable irqs after set_cpu_online

2013-07-01 Thread James Hogan
by: Kirill Tkhai Signed-off-by: James Hogan Cc: Kirill Tkhai Cc: "Srivatsa S. Bhat" Cc: Thomas Gleixner --- arch/metag/kernel/smp.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/metag/kernel/smp.c b/arch/metag/kernel/smp.c index b813515..09979

[PATCH 4/5] metag: kick: prevent nested kick handlers

2013-07-01 Thread James Hogan
kick_handlers_lock is released. Signed-off-by: James Hogan --- arch/metag/kernel/kick.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/metag/kernel/kick.c b/arch/metag/kernel/kick.c index 50fcbec..beb3776 100644 --- a/arch/metag/kernel/kick.c +++ b/arch/metag/kernel/kick.c @@ -26,6 +26,8

Re: [PATCH 3/5] metag: smp: don't spin waiting for CPU to start

2013-07-01 Thread James Hogan
On 1 July 2013 22:46, Thomas Gleixner wrote: > On Mon, 1 Jul 2013, James Hogan wrote: >> Use a completion to block until a secondary CPU has started up, like ARM >> do, instead of a loop of udelays. >> >> On Meta, SMP is really SMT, with each "CPU" being a dif

Re: [PATCH 4/5] metag: kick: prevent nested kick handlers

2013-07-01 Thread James Hogan
On 1 July 2013 22:51, Thomas Gleixner wrote: > On Mon, 1 Jul 2013, James Hogan wrote: > >> The main kick trigger handler iterates a list of kick handlers and calls >> each one. This is done with the kick_handlers_lock spin lock held, but >> this causes a problem on SMP wh

Re: [PATCH 4/5] metag: kick: prevent nested kick handlers

2013-07-01 Thread James Hogan
Thomas Gleixner wrote: >On Mon, 1 Jul 2013, James Hogan wrote: >> On 1 July 2013 22:51, Thomas Gleixner wrote: >> > On Mon, 1 Jul 2013, James Hogan wrote: >> > >> >> The main kick trigger handler iterates a list of kick handlers and >c

[PATCH v2] metag: kick: add missing irq_enter/exit to kick_handler()

2013-07-02 Thread James Hogan
reach 0 until after the spin lock has been released. Ideally the spin lock protected handler list will also be replaced by a lockless RCU protected list since it is certainly mostly read. That can be done in a later change though. Signed-off-by: James Hogan Cc: Thomas Gleixner --- Changes in v2

Re: [PATCH 5/5] metag: cpu hotplug: route_irq: preserve irq mask

2013-07-02 Thread James Hogan
On 02/07/13 07:16, Srivatsa S. Bhat wrote: > On 07/01/2013 09:34 PM, James Hogan wrote: >> The route_irq() function needs to preserve the irq mask by using the >> _irqsave/irqrestore variants of raw spin lock functions instead of the >> _irq variants. This is beca

[PATCH] metag: move EXPORT_SYMBOLs in libs to metag_ksyms.c

2013-07-02 Thread James Hogan
caused the following error: ERROR: "csum_partial" [fs/reiserfs/reiserfs.ko] undefined! Signed-off-by: James Hogan Cc: Rusty Russell --- Unless there are any objections I'll apply this patch for v3.11. I'm assuming *_ksyms.c is the way that this problem is normally work

Re: [PATCH] metag: move EXPORT_SYMBOLs in libs to metag_ksyms.c

2013-07-03 Thread James Hogan
(cc'ing linux-arch and linux-kbuild) On 03/07/13 01:45, Rusty Russell wrote: > James Hogan writes: >> Move all EXPORT_SYMBOLs in libs-y directories (arch/metag/{lib,tbx}) >> into metag_ksyms.c so that they don't get omitted by the static linker >> if they'

Re: [PATCH] metag: move EXPORT_SYMBOLs in libs to metag_ksyms.c

2013-07-03 Thread James Hogan
On 03/07/13 09:50, Geert Uytterhoeven wrote: > On Wed, Jul 3, 2013 at 10:44 AM, James Hogan wrote: >> (cc'ing linux-arch and linux-kbuild) >> >> On 03/07/13 01:45, Rusty Russell wrote: >>> James Hogan writes: >>>> Move all EXPORT_SYMBOLs in libs

[PATCH] MIPS: use generic-y where possible

2013-07-03 Thread James Hogan
kvm_para.h to header-y. Signed-off-by: James Hogan Cc: Ralf Baechle Cc: Christoph Lameter Cc: Tejun Heo Cc: Dave Jones Cc: David Howells Cc: David Sharp Cc: "Paul E. McKenney" Cc: Thomas Gleixner Cc: linux-m...@linux-mips.org --- arch/mips/include/asm/Kbuild | 13

[GIT PULL] metag architecture changes for v3.11

2013-07-05 Thread James Hogan
merged via pinctrl tree). - Panic on boot instead of just warning if cache aliasing possible. - Various SMP/hotplug fixes. - Various other randconfig/sparse fixes. James Hogan (16): metag: of_platform_populate from arch generic

Re: [RFC] clk: add flags to distinguish xtal clocks

2013-07-05 Thread James Hogan
On 4 July 2013 22:05, Luciano Coelho wrote: > Add a flag that indicate whether the clock is a crystal or not. Since > no clocks set this flag right now, include an additional flag that > indicates whether the type is set or not. If the CLK_IS_TYPE_DEFINED > flag is not set, the value of the CLK_

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

2013-06-26 Thread James Hogan
On 25/06/13 23:13, James Hogan wrote: > On 25 June 2013 22:40, Andrew Morton wrote: >> Meanwhile, unprivileged users can make a MIPS kernel go BUG. >> >> How much of a problem is this? Obviously less of a problem with MIPS >> than it would be with some other CPU types,

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

2013-06-28 Thread James Hogan
On 26/06/13 18:15, Oleg Nesterov wrote: > On 06/26, Ralf Baechle wrote: >> >> On Wed, Jun 26, 2013 at 06:14:52PM +0200, Oleg Nesterov wrote: >> >>> Or simply remove the BUG_ON(), this can equally confuse wait(status). >>> 128 & 0x7f == 0. >>> >>> Still I think it would be better to change _NSIG on

[PATCH v4] MIPS: Reduce _NSIG from 128 to 127 to avoid BUG_ON

2013-06-28 Thread James Hogan
le program would ever need to use 96 RT signals: "programs should never refer to real-time signals using hard-coded numbers, but instead should always refer to real-time signals using the notation SIGRTMIN+n, and include suitable (run-time) checks that SIGRTMIN+n does not exceed SIGRTMAX.&q

Re: [PATCH v2] MIPS: Reduce _NSIG from 128 to 127 to avoid BUG_ON

2013-06-28 Thread James Hogan
On 28 June 2013 20:28, Denys Vlasenko wrote: > On Monday 17 June 2013 12:36, James Hogan wrote: >> On 14/06/13 17:03, James Hogan wrote: >> > MIPS has 128 signals, the highest of which has the number 128 (they >> > start from 1). The following command causes get_signa

Re: [patch 03/34] idle: Implement set/clr functions for need_resched poll

2013-03-22 Thread James Hogan
On 21/03/13 21:52, Thomas Gleixner wrote: > Implement set/clear functions for the idle need_resched poll > implementation. > > Signed-off-by: Thomas Gleixner > --- > include/linux/sched.h | 23 ++- > 1 file changed, 22 insertions(+), 1 deletion(-) > > Index: linux-2.6/incl

Re: [patch 20/34] metag: Use generic idle loop

2013-03-22 Thread James Hogan
On 21/03/13 21:53, Thomas Gleixner wrote: > Signed-off-by: Thomas Gleixner > Cc: James Hogan > --- > arch/metag/Kconfig |1 + > arch/metag/kernel/process.c | 32 +++- > arch/metag/kernel/smp.c |2 +- > 3 files changed

[RFC PATCH v1 1/3] clk: abstract parent cache

2013-03-22 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

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

2013-03-22 Thread James Hogan
a struct clk member to mark that the parent should change (it's all within mutex protected code after all). Comments anyone? James Hogan (3): clk: abstract parent cache clk: add support for clock remuxing clk: clk-mux: implement remuxing drivers/clk/clk-mux.c| 47

[RFC PATCH v1 2/3] clk: add support for clock remuxing

2013-03-22 Thread James Hogan
that the clock can have it's parent changed automatically in response to a set_rate. It isn't used yet, but will be used within clock mux drivers. Signed-off-by: James Hogan --- drivers/clk/clk.c| 94 +++- include/linux/clk-provider.h |

[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

[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

[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 v6 0/5] clk: implement remuxing during set_rate

2013-07-29 Thread James Hogan
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 reparent on set_rate

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

2013-07-29 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 v6 2/5] clk: move some parent related functions upwards

2013-07-29 Thread James Hogan
to ease readability of that patch. Signed-off-by: James Hogan Reviewed-by: Stephen Boyd Cc: Mike Turquette Cc: linux-arm-ker...@lists.infradead.org --- Changes in v5: * Rebased on latest clk-next ("clk: tegra: Use common of_clk_init function") Changes in v4: * new patch (patch 2)

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

2013-07-29 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 Reviewed-by: Stephen Boyd Cc: Mike Turquette Cc: linux-arm-ker...@lists.infradead.org --- Changes in v4: * never pass NULL to determin

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

2013-07-29 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 Reviewed-by: Stephen Boyd Cc: Mike Turquette Cc: linux-arm-ker...@lists.infradead.org --- Changes in v5:

[PATCH v4] irq-imgpdc: add ImgTec PDC irqchip driver

2013-07-29 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: Thomas Gleixner Cc: Grant Likely Cc: Rob Herring Cc: Rob Landley Cc: linux-me...@vger.kernel.org Cc: linux-...@vger.kernel.org Cc: devicetree-disc

Re: [PATCH 1/3] mips/kvm: Improve code formatting in arch/mips/kvm/kvm_locore.S

2013-08-05 Thread James Hogan
ld have it's indentation fixed too Otherwise, for all 3 patches: Reviewed-by: James Hogan Thanks James -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/ma

Re: [PATCH v4 3/3] gpio-tz1090: convert to use generic irqchip

2013-07-20 Thread James Hogan
On 20 July 2013 18:07, Linus Walleij wrote: > On Tue, Jun 25, 2013 at 4:27 PM, James Hogan wrote: > >> Convert gpio-tz1090 driver to use generic irqchips. This allows the >> irq_ack, irq_mask, and irq_unmask callbacks and associated helper >> functions to be remov

Re: Linux 3.11-rc2

2013-07-21 Thread James Hogan
On 21 July 2013 20:53, Linus Torvalds wrote: > (b) we had a late change to how ACPI backlight handling is done on > certain machines, and while this kind of thing really shouldn't be > done outside the merge window, I ended up pulling it anyway. But I'd > *really* like to have people test this th

[PATCH] MAINTAINERS: add linux-metag mailing list

2013-07-22 Thread James Hogan
Add the new linux-me...@vger.kernel.org mailing list to METAG ARCHITECTURE entry in MAINTAINERS. Signed-off-by: James Hogan Cc: linux-me...@vger.kernel.org --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index bf61e04..a195098 100644 --- a

Re: Linux 3.11-rc2

2013-07-22 Thread James Hogan
On 22 July 2013 14:02, Rafael J. Wysocki wrote: > On Monday, July 22, 2013 12:08:40 AM James Hogan wrote: >> On 21 July 2013 20:53, Linus Torvalds wrote: >> > (b) we had a late change to how ACPI backlight handling is done on >> > certain machines, and while this kin

Re: Linux 3.11-rc2 (acpi backlight)

2013-07-23 Thread James Hogan
e (that on -rc2 doesn't exist). > > Also, can you all please send me (a) the output of dmidecode and (b) the > contents of /proc/cpuinfo from your systems? attached -- James Hogan processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 58 model name

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

2013-07-25 Thread James Hogan
On 24/07/13 19:39, Stephen Boyd wrote: > On 06/21, James Hogan wrote: >> On 21 June 2013 18:04, Mike Turquette wrote: >>> Quoting James Hogan (2013-06-13 09:05:57) >>>> This patchset adds support for automatic selection of the best parent >>>> for a clo

Re: [PATCH v5 4/5] clk: add CLK_SET_RATE_NO_REPARENT flag

2013-07-25 Thread James Hogan
Hi Sylwester On 25/07/13 13:34, Sylwester Nawrocki wrote: > On 06/13/2013 06:06 PM, James Hogan wrote: >> Add a CLK_SET_RATE_NO_REPARENT clock flag, which will prevent muxes >> being reparented during clk_set_rate. >> >> To avoid breaking existing platforms, all

[PATCH 1/1] rcu: select IRQ_WORK from TREE_PREEMPT_RCU

2013-07-25 Thread James Hogan
ce to `irq_work_queue' Select IRQ_WORK from TREE_PREEMPT_RCU too to fix this. Signed-off-by: James Hogan Cc: Steven Rostedt Cc: Paul E. McKenney Cc: Dipankar Sarma --- init/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/init/Kconfig b/init/Kconfig index 247084b..c08a549 10

Re: Linux 3.11-rc2 (acpi backlight, revert)

2013-07-25 Thread James Hogan
On 25 July 2013 14:00, Rafael J. Wysocki wrote: > On Monday, July 22, 2013 09:54:21 PM Rafael J. Wysocki wrote: >> On Monday, July 22, 2013 11:11:54 AM Linus Torvalds wrote: >> > On Mon, Jul 22, 2013 at 6:02 AM, Rafael J. Wysocki wrote: >> > > >> > > Linus, do you want me to send a pull request r

[PATCH] usb: xhci: add missing dma-mapping.h includes

2013-07-26 Thread James Hogan
;dma_free_coherent' drivers/usb/host/xhci-mem.c In function 'xhci_alloc_stream_ctx': drivers/usb/host/xhci-mem.c +463 : error: implicit declaration of function 'dma_alloc_coherent' Signed-off-by: James Hogan Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org Cc: S

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

2013-07-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 Cc: linux-fsde...@vger.kernel.org --- v9: * updated dafs_readdir to use iterate

Re: [PATCH v1 04/14] clk: Add set_rate_and_parent() op

2013-08-09 Thread James Hogan
e clock framework determines > that both the parent and the rate are going to change during > clk_set_rate() it will call the .set_rate_and_parent() op if > available and fall back to calling .set_parent() followed by > .set_rate() otherwise. > > Cc: James Hogan > Signed-off-by: S

[GIT PULL] late arch/metag fixes for v3.9-rc1

2013-03-01 Thread James Hogan
* provide dma_get_sgtable() as added recently for other arches * remove CONFIG_GENERIC_SIGALTSTACK * remove CONFIG_HAVE_IRQ_WORK * remove CONFIG_EXPERIMENTAL from defconfigs * remove SET_PERSONALITY() Signed-off-by: James Hogan -------- James

Re: [GIT PULL] late arch/metag fixes for v3.9-rc1

2013-03-01 Thread James Hogan
On 01/03/13 18:03, Linus Torvalds wrote: > On Fri, Mar 1, 2013 at 8:55 AM, James Hogan wrote: >> >> Please pull the following changes in addition to my previous arch/metag >> pull request. See the tag (below) for details. The shortlog is a bit >> inflated unfortunately

Re: [GIT PULL] late arch/metag fixes for v3.9-rc1

2013-03-02 Thread James Hogan
On 01/03/13 18:54, James Hogan wrote: > On 01/03/13 18:03, Linus Torvalds wrote: >> On Fri, Mar 1, 2013 at 8:55 AM, James Hogan wrote: >>> >>> Please pull the following changes in addition to my previous arch/metag >>> pull request. See the tag (below

Re: [GIT PULL] late arch/metag fixes for v3.9-rc1

2013-03-02 Thread James Hogan
Hi Stephen, On 2 March 2013 15:48, Stephen Rothwell wrote: > On Sat, 2 Mar 2013 10:22:40 +0000 James Hogan wrote: >> >> Okay, I've rebased the arch/metag tree onto mainline to make all the >> back-merges unnecessary and applied those simple fixes into "Build

Re: [GIT PULL] late arch/metag fixes for v3.9-rc1

2013-03-02 Thread James Hogan
On 02/03/13 16:28, Linus Torvalds wrote: > You are the > architecture maintainer, and your job is not integration, it's to make > sure that *your* work is as stable and unsurprising as possible. Right, make sense. This is what it comes down to. > See why I hate rebasing and back-merges so much?

Re: [GIT PULL] late arch/metag fixes for v3.9-rc1

2013-03-02 Thread James Hogan
missing exports - Convert hugetlb to use vm_unmapped_area() - Copy device tree to non-init memory - Provide dma_get_sgtable() Signed-off-by: James Hogan ---- James Hogan (61): asm-generic/io.h: check CONFIG_VIRT_TO_BUS asm

Re: linux-next: manual merge of the signal tree with Linus' tree

2013-03-04 Thread James Hogan
On 04/03/13 02:03, Stephen Rothwell wrote: > Hi Al, > > Today's linux-next merge of the signal tree got a conflict in > include/asm-generic/unistd.h between commit 4dd3c95940b8 > ("asm-generic/unistd.h: handle symbol prefixes in cond_syscall") from > Linus' tree and commit 24a2641326f1 ("consolida

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 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 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 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 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-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 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

[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

[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

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

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 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 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: 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 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: [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

[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 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

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

[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 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.

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

[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

[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 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 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:

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

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] 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 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+=

[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 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 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 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

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 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 -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 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 &

<    1   2   3   4   5   6   7   8   9   10   >