Re: spi_mpc8xxx.c: chip select polarity problem

2009-11-26 Thread Anton Vorontsov
s for non-broken hw/fw. So I think it should be applied. Thanks, -- Anton Vorontsov email: cbouatmai...@gmail.com irc://irc.freenode.net/bd2 ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: spi_mpc8xxx.c: chip select polarity problem

2009-11-26 Thread Anton Vorontsov
On Thu, Nov 26, 2009 at 11:50:05AM -0700, Grant Likely wrote: > On Thu, Nov 26, 2009 at 11:41 AM, Anton Vorontsov > wrote: > > On Thu, Nov 26, 2009 at 11:16:34AM -0700, Grant Likely wrote: > > [...] > >> The spi-cs-high property is defined in > >> Documentat

[PATCH 0/8 userland!] systemtap: Add initial support for ppc32

2009-11-27 Thread Anton Vorontsov
d fix missing things (if any). But so far I'm interested in the feedback on this initial support. Thanks! p.s. I though it would be a good idea to cc linuxppc-dev. At least kexec-tools guys tend to do it as well. -- Anton Vorontsov email: cbouatmai...@gmail.com i

[PATCH 1/8] Rename uprobes_ppc64.c to uprobes_ppc.c, use it for ppc32

2009-11-27 Thread Anton Vorontsov
The code *looks* generic enough, so I think it can be used for ppc32 without modifications. Signed-off-by: Anton Vorontsov --- runtime/uprobes/uprobes_arch.c |4 +- runtime/uprobes/uprobes_arch.h |4 +- runtime/uprobes/uprobes_ppc.c | 147

[PATCH 2/8] Rename stack-ppc64.c to stack-ppc.c

2009-11-27 Thread Anton Vorontsov
There should be no functional changes in this patch. Signed-off-by: Anton Vorontsov --- runtime/stack-ppc.c | 62 + runtime/stack-ppc64.c | 62 - runtime/stack.c |2 +- 3 files

[PATCH 3/8] stack-ppc: Adjust for ppc32

2009-11-27 Thread Anton Vorontsov
Get rid of magic numbers, use appropriate defines from ptrace.h. >From now on stack-ppc.c should be suitable for ppc32. Signed-off-by: Anton Vorontsov --- runtime/stack-ppc.c |4 ++-- runtime/stack.c |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runt

[PATCH 4/8] Implement ppc32 variant of __is_user_regs

2009-11-27 Thread Anton Vorontsov
* tapset/nd_syscalls.stp: Implement ppc32 variant of __is_user_regs. * tapset/syscalls.stp: Ditto. Signed-off-by: Anton Vorontsov --- tapset/nd_syscalls.stp |3 +++ tapset/syscalls.stp|3 +++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/tapset/nd_syscalls.stp b

[PATCH 5/8] Share ppc64 and ppc32 code where possible

2009-11-27 Thread Anton Vorontsov
* runtime/copy.c: Can use ppc64's code. * runtime/regs.h: Ditto. * runtime/string.h: Ditto. * tapset/context.stp: Ditto. * tapset/errno.stp: Ditto. Signed-off-by: Anton Vorontsov --- runtime/copy.c |2 +- runtime/regs.h |2 +- runtime/string.h |6 +++--- tapset/contex

[PATCH 6/8] Use proper types for do_div

2009-11-27 Thread Anton Vorontsov
generated code... A fix for time.c is special, on ppc32 cycles_t is 32-bit, so technically we don't need do_div, but since the whole _stp_gettimeofday_ns() operates on 64-bit types we'd better be safe and use uint64_t for the math. Signed-off-by: Anton Vorontsov --- runtime/stat-com

[PATCH 7/8] Implement _div64 and _mod64 for ppc32

2009-11-27 Thread Anton Vorontsov
_div64 and _mod64 arch-specific details were taken from gcc/longlong.h, just as it was done for i386. Signed-off-by: Anton Vorontsov --- runtime/arith.c | 42 +++--- 1 files changed, 39 insertions(+), 3 deletions(-) diff --git a/runtime/arith.c b/runtime

[PATCH 8/8] Change KERNEL_RELOC_SYMBOL to "_stext" on ppc32

2009-11-27 Thread Anton Vorontsov
Currently staprun fails at send_relocation_kernel(), this is because ppc32 doesn't have ".__start" symbol. I think we should use _stext, just as other arches. Signed-off-by: Anton Vorontsov --- runtime/staprun/staprun.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-

[PATCH 0/4] systemtap: Some more powerpc patches

2009-12-03 Thread Anton Vorontsov
x27;m currently investigating this. ..I need set up a bit faster machine to run the whole testsuite (just one test takes ages to complete on a diskless 300 MHz board ;-), and when I set it up I'll post the results. Thanks! -- Anton Vorontsov email: cbouatmai...@gmail.com irc://irc.freeno

[PATCH 1/4] powerpc: Fix thinko in _stp_arg()

2009-12-03 Thread Anton Vorontsov
he beginning of _stp_arg(), let's make it just 'else'. Signed-off-by: Anton Vorontsov --- tapset/powerpc/registers.stp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tapset/powerpc/registers.stp b/tapset/powerpc/registers.stp index c8713e5..7f66d36 1

[PATCH 2/4] powerpc: Fix longlong args handling

2009-12-03 Thread Anton Vorontsov
<< 32) | r3, which is obviously incorrect. And to restore arg2 it will do (r5 << 32) | r4, which doesn't look right as well. This patch fixes the issue. Signed-off-by: Anton Vorontsov --- tapset/powerpc/registers.stp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-

[PATCH 3/4] powerpc: Adjust registers.stp for ppc32

2009-12-03 Thread Anton Vorontsov
registers.stp is missing a few small bits when running on ppc32: * Divide register offsets by 2; * There is 'mq' register instead of 'softe'; * long_arg() should sign-extend the result on ppc32. Suggested-by: Jim Keniston Signed-off-by: Anton Vorontsov --- tapset/powerpc/

[PATCH 4/4] powerpc: Improve backtrace output for ppc32

2009-12-03 Thread Anton Vorontsov
d the third columns are dups, this is because _stp_symbol_print(ip) also prints ip. Though, for now I wouldn't touch this since I'm not sure if anybody depends on the current columns count or "[]" around addresses. Signed-off-by: Anton Vorontsov --- runtime/stack-ppc.c |9

Re: [PATCH] powerpc: mpc8xxx_gpio: Add ability to mask off unused GPIO pins

2009-12-05 Thread Anton Vorontsov
x27;s a bug in the device tree and should be fixed (or workarounded in the platform code). If a user fiddles with unknown gpios via sysfs interface, then it's user's problem. FWIW, we don't have any masks for reserved IRQs. Thanks, -- Anton Vorontsov email: cbouatmai...@gmail.com

Re: [PATCH] powerpc: mpc8xxx_gpio: Add ability to mask off unused GPIO pins

2009-12-05 Thread Anton Vorontsov
d in the device-tree. That way you can automatically exclude not-existent gpios. And if some gpios are just headers on the board, you can still describe them in the device tree via "gpio-header" nodes. Still, a lot of efforts for no real gain... -- Anton Vorontsov email: cbouatmai...@gmail.com irc://irc.freenode.net/bd2 ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH] powerpc/fsl_pci: Fix P2P bridge handling for MPC83xx PCIe controllers

2009-12-07 Thread Anton Vorontsov
ly for 83xx PCIe controllers. Signed-off-by: Anton Vorontsov --- This fixes the issue similar to http://www.pubbs.net/linuxppc/200908/22024/ i.e. lspci reports: :00:00.0 Power PC: Freescale Semiconductor Inc Device 00b4 (rev 11) 0002:02:00.0 PCI bridge: Freescale Semiconductor Inc Device 00b4

Re: [PATCH] powerpc: mpc8xxx_gpio: Add ability to mask off unused GPIO pins

2009-12-07 Thread Anton Vorontsov
o solve "dangerous" GPIOs problem, then I'd say chosen { linux,dangerous-gpios = <&pio1 0 0 &pio1 1 0 &pio2 4 0 &pio1 5 0>; }; And then you can have a generic driver that

[PATCH] gianfar: Fix build with CONFIG_NET_POLL_CONTROLLER=y

2009-12-09 Thread Anton Vorontsov
nitializer element is not constant ggianfar.c:3042: error: initializer element is not constant ggianfar.c:3042: warning: ISO C90 forbids mixed declarations and code ggianfar.c:3042: error: expected declaration or statement at end of input make[1]: *** [ggianfar.o] Error 1 This patch fixes the issue. Repo

Re: [PATCH 6/8] Use proper types for do_div

2009-12-09 Thread Anton Vorontsov
On Wed, Dec 09, 2009 at 04:56:34PM +0100, Mark Wielaard wrote: > On Sat, 2009-11-28 at 01:33 +0300, Anton Vorontsov wrote: > > do_div accepts unsigned 64-bit integer type for dividend, signed types > > would cause do_div's typecheck fail: > > > > stat-com

Re: [PATCH] powerpc/fsl_pci: Fix P2P bridge handling for MPC83xx PCIe controllers

2009-12-09 Thread Anton Vorontsov
On Tue, Dec 08, 2009 at 01:54:35AM +0300, Anton Vorontsov wrote: > It appears that we wrongly calculate dev_base for type1 config cycles. > The thing is: we shouldn't subtract hose->first_busno because PCI core > sets PCI primary, secondary and subordinate bus numbers, and

Re: [RFC PATCH 2/5] mcu_mpc8349emitx: port to new of gpio interface

2009-12-09 Thread Anton Vorontsov
, 5 insertions(+), 6 deletions(-) > > Minding reviewing for me. The whole approach was reviewed, and rejected. http://lists.ozlabs.org/pipermail/devicetree-discuss/2009-November/001330.html and http://lists.ozlabs.org/pipermail/devicetree-discuss/2009-November/001328.html Thanks,

Re: [PATCH v2] cpm2_pic: Allow correct flow_types for port C interrupts

2009-12-09 Thread Anton Vorontsov
errors at all. For internal interrupts we don't print them anyway, i.e. the current code has just return (flow_type & IRQ_TYPE_LEVEL_LOW) ? 0 : -EINVAL; Thanks, -- Anton Vorontsov email: cbouatmai...@gmail.com irc://irc.freenode.net/bd2 ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: ucc_geth: Fix the wrong the Rx/Tx FIFO size

2009-12-09 Thread Anton Vorontsov
.20.167 > $ ifconfig eth2 10.193.20.168 > then > $ ifconfig eth3 10.193.20.169 > > The fourth ethernet will cause all of interface broken, > you cann't ping successfully any more. > The patch fix this issue for MPC8569 Rev1.0 and Rev2.0 > > Signed-off-by: Dave Liu

Re: [PATCH v3] cpm2_pic: Allow correct flow_types for port C interrupts

2009-12-10 Thread Anton Vorontsov
--- > > 1 files changed, 21 insertions(+), 7 deletions(-) > > Scott, Anton do you want to add an Ack to this version? Acked-by: Anton Vorontsov Thanks! -- Anton Vorontsov email: cbouatmai...@gmail.com irc://irc.freenode.net/bd2 ___ Li

[PATCH v2 0/3] powerpc/83xx: Sleep and deep sleep support for MPC8315E-RDB

2009-12-10 Thread Anton Vorontsov
Hi all, This is quite late resend, sorry. Only the third patch has changed, i.e. I got rid of sleep-nexus stuff per Scott and Benjamin suggestions. Thanks, -- Anton Vorontsov email: cbouatmai...@gmail.com irc://irc.freenode.net/bd2 ___ Linuxppc-dev

[PATCH 1/3] powerpc/83xx/suspend: Clear deep_sleeping after devices resume

2009-12-10 Thread Anton Vorontsov
tpone clearing the deep_sleeping variable, i.e. move it into finish() callback. Signed-off-by: Anton Vorontsov Acked-by: Scott Wood --- arch/powerpc/platforms/83xx/suspend.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/83xx/suspend.c b/arch/po

[PATCH 2/3] powerpc/83xx/suspend: Save and restore SICRL, SICRH and SCCR

2009-12-10 Thread Anton Vorontsov
We need to save SICRL, SICRH and SCCR registers on suspend, and restore them on resume. Otherwise, we lose IO and clocks setup on MPC8315E-RDB boards when ULPI USB PHY is used (non-POR setup). Signed-off-by: Anton Vorontsov --- arch/powerpc/platforms/83xx/suspend.c | 48

[PATCH 3/3] powerpc/83xx: Add power management support for MPC8315E-RDB boards

2009-12-10 Thread Anton Vorontsov
- Add nodes for PMC and GTM controllers. GTM4 can be used as a wakeup source; - Add fsl,magic-packet properties to eTSEC nodes, i.e. wake-on-lan support. Unlike MPC8313 processors, MPC8315 can resume from deep sleep upon magic packet reception. Signed-off-by: Anton Vorontsov --- arch

Re: [PATCH] add gpio to mpc837X rdb

2009-01-29 Thread Anton Vorontsov
. [...] > --- a/arch/powerpc/boot/dts/mpc8379_rdb.dts > +++ b/arch/powerpc/boot/dts/mpc8379_rdb.dts > @@ -107,6 +107,24 @@ > reg = <0x200 0x100>; > }; > > + gpio1: gpio-control...@c00 { > + #gpio-

2.6.28-rt on PowerPC

2009-01-29 Thread Anton Vorontsov
G_SCHED_DEBUG=y CONFIG_DEBUG_RT_MUTEXES=y CONFIG_DEBUG_PI_LIST=y CONFIG_DEBUG_SPINLOCK=y CONFIG_DEBUG_SPINLOCK_SLEEP=y CONFIG_DEBUG_BUGVERBOSE=y CONFIG_SLAB=y CONFIG_SLABINFO=y # CONFIG_HIGHMEM is not set Thanks, p.s. Btw, having the convert-back script in scripts/ woul

Re: 2.6.28-rt on PowerPC

2009-01-29 Thread Anton Vorontsov
aded. Just as primary handlers, chained handlers don't run in threads, thus spinlocks should be used, not sleeping locks. -- Anton Vorontsov email: cbouatmai...@gmail.com irc://irc.freenode.net/bd2 ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: 2.6.28-rt on PowerPC

2009-01-30 Thread Anton Vorontsov
x4c .[] .. ( <= schedule+0x98/0x380) And keeps popping up every 120 seconds, though both kernel and userspace stay alive. Thanks, -- Anton Vorontsov email: cbouatmai...@gmail.com irc://irc.freenode.net/bd2 ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

[PATCH] ftrace: On PowerPC we don't need frame pointers for CALLER_ADDRs

2009-01-31 Thread Anton Vorontsov
; [000] 1740:120:R mvtsd Signed-off-by: Anton Vorontsov --- Btw, on PowerPC tracing is also broken w/o "ring-buffer: fix alignment problem" patch (currently collecting dust in the -tip tree, commit 082605de5f82eb692cc90f7fda071cc01bb5ac34). Any chance the fix go into Linus' tre

[PATCH -rt] powerpc/tracing: Add support for "PREEMPT_TRACE" tracer

2009-01-31 Thread Anton Vorontsov
The support is pretty straightforward: issue print_preempt_trace() just after the call trace. Without CONFIG_PREEMPT_TRACE=y the print_preempt_trace() call turns into no-op. Signed-off-by: Anton Vorontsov --- On Fri, Jan 30, 2009 at 12:57:01PM -0500, Steven Rostedt wrote: [...] > > >

Re: [PATCH 0/6] USB: Fixes for fsl_qe_udc driver

2009-02-02 Thread Anton Vorontsov
On Tue, Jan 13, 2009 at 08:40:01AM -0800, Greg KH wrote: > On Tue, Jan 13, 2009 at 09:49:39AM -0600, Kumar Gala wrote: > > On Jan 6, 2009, at 10:53 PM, Greg KH wrote: > >> On Tue, Jan 06, 2009 at 10:44:13PM -0600, Kumar Gala wrote: > >>> On Dec 25, 2008, at

Re: [PATCH v2] ftrace: On PowerPC we don't need frame pointers for CALLER_ADDRs

2009-02-03 Thread Anton Vorontsov
On Tue, Feb 03, 2009 at 05:06:45PM +0100, Ingo Molnar wrote: > > * Anton Vorontsov wrote: > > > According to this discussion: > > > > http://lkml.org/lkml/2008/7/25/338 > > http://lkml.org/lkml/2008/7/26/72 > > > > Frame pointers do nothing usef

[PATCH v2] ftrace: On PowerPC we don't need frame pointers for CALLER_ADDRs

2009-02-03 Thread Anton Vorontsov
-0 0X..3 87us : cpu_idle (__got2_end) -0 0X..3 89us : 0:140:R ==> [000] 1740:120:R mvtsd Signed-off-by: Anton Vorontsov --- On Mon, Feb 02, 2009 at 09:04:15AM -0500, Steven Rostedt wrote: [...] > > > -#ifdef CONFIG_FRAME_POINTER > > > +#if defined(CONFIG_F

Re: [PATCH v2] ftrace: On PowerPC we don't need frame pointers for CALLER_ADDRs

2009-02-03 Thread Anton Vorontsov
On Tue, Feb 03, 2009 at 11:32:18AM -0500, Steven Rostedt wrote: > > On Tue, 2009-02-03 at 19:19 +0300, Anton Vorontsov wrote: > > On Tue, Feb 03, 2009 at 05:06:45PM +0100, Ingo Molnar wrote: > > > [1] Btw, why exactly do we need the -fno-omit-frame-pointer for > > &

Re: [PATCH v2] ftrace: On PowerPC we don't need frame pointers for CALLER_ADDRs

2009-02-04 Thread Anton Vorontsov
On Tue, Feb 03, 2009 at 07:19:55PM +0300, Anton Vorontsov wrote: > On Tue, Feb 03, 2009 at 05:06:45PM +0100, Ingo Molnar wrote: > > > > * Anton Vorontsov wrote: > > > > > According to this discussion: > > > > > > http://lkml.org/lkml/2008/

[PATCH 1/3] Makefile: Include arch Makefiles as late as possible

2009-02-04 Thread Anton Vorontsov
This patch gives arches more freedom on overwriting CFLAGS, specifically on PowerPC we want to remove -fno-omit-frame-pointer flag. Signed-off-by: Anton Vorontsov --- Makefile |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7715b2c..d1ba93f

[PATCH 2/3] powerpc: Make it possible to safely select CONFIG_FRAME_POINTER

2009-02-04 Thread Anton Vorontsov
Remove -fno-omit-frame-pointer flag from CFLAGS. Remove -fno-omit-frame-pointer workarounds. Signed-off-by: Anton Vorontsov --- arch/powerpc/Makefile| 10 ++ arch/powerpc/kernel/Makefile | 10 +- arch/powerpc/platforms/powermac/Makefile |2

[PATCH 3/3] tracing: Tracers that use CALLER_ADDR macros should select FRAME_POINTER

2009-02-04 Thread Anton Vorontsov
Irqsoff, switch and preempt tracers use CALLER_ADDR macros, so they should select FRAME_POINTER. Otherwise traces are meaningless. Signed-off-by: Anton Vorontsov --- kernel/trace/Kconfig |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/kernel/trace/Kconfig b/kernel

Re: [PATCH 3/3] tracing: Tracers that use CALLER_ADDR macros should select FRAME_POINTER

2009-02-04 Thread Anton Vorontsov
s it would only work with the first caller builtin_return_address(0) It depends on the architecture. On PowerPC we always have frame pointers, thus __builtin_return_address(1..) will always work. On x86 it won't work that way. Thanks, -- Anton Vorontsov email: cbouatmai...@gmail.com irc://

Re: [PATCH 2/3] powerpc: Make it possible to safely select CONFIG_FRAME_POINTER

2009-02-04 Thread Anton Vorontsov
On Wed, Feb 04, 2009 at 07:35:54PM -0500, Steven Rostedt wrote: > > On Thu, 2009-02-05 at 11:31 +1100, Benjamin Herrenschmidt wrote: > > On Wed, 2009-02-04 at 18:08 +0300, Anton Vorontsov wrote: > > > Remove -fno-omit-frame-pointer flag from CFLAGS. > > >

Re: [PATCH 2/3] powerpc: Make it possible to safely select CONFIG_FRAME_POINTER

2009-02-04 Thread Anton Vorontsov
On Thu, Feb 05, 2009 at 12:15:31PM +1100, Benjamin Herrenschmidt wrote: > On Wed, 2009-02-04 at 19:35 -0500, Steven Rostedt wrote: > > On Thu, 2009-02-05 at 11:31 +1100, Benjamin Herrenschmidt wrote: > > > On Wed, 2009-02-04 at 18:08 +0300, Anton Vorontsov wrote: > > &g

Re: [PATCH 2/3] powerpc: Make it possible to safely select CONFIG_FRAME_POINTER

2009-02-05 Thread Anton Vorontsov
On Thu, Feb 05, 2009 at 04:30:23AM +0300, Anton Vorontsov wrote: [...] > > > > > Remove -fno-omit-frame-pointer flag from CFLAGS. > > > > > Remove -fno-omit-frame-pointer workarounds. > > > > > > > > But what about -pg -requires -fno-omit-

FSL eSDHC bindings update

2009-02-05 Thread Anton Vorontsov
On Thu, Jan 22, 2009 at 01:15:01PM -0600, Kumar Gala wrote: > On Jan 21, 2009, at 8:00 PM, Anton Vorontsov wrote: >> This patch adds a new driver: sdhci-of. The driver is similar to >> the sdhci-pci, it contains common probe code, and controller-specific >> ops and quirks. &

[PATCH 1/3] powerpc: Document FSL eSDHC bindings

2009-02-05 Thread Anton Vorontsov
This patch documents OF bindings for the Freescale Enhanced Secure Digital Host Controller. Signed-off-by: Anton Vorontsov --- Documentation/powerpc/dts-bindings/fsl/esdhc.txt | 24 ++ 1 files changed, 24 insertions(+), 0 deletions(-) create mode 100644 Documentation

[PATCH 2/3] powerpc/83xx: Convert existing sdhc nodes to new bindings

2009-02-05 Thread Anton Vorontsov
- sdhc node renamed to sdhci ("sdhc" name is confusing since SDHC is used to name Secure Digital High Capacity cards, while SDHCI is an interface). - Get rid of "fsl,esdhc" compatible entry, it's replaced by the "fsl,-esdhc" scheme; - Get rid of `mod

[PATCH 3/3] powerpc/83xx: Add FSL eSDHC support for MPC837x-RDB boards

2009-02-05 Thread Anton Vorontsov
Simply add appropriate sdhci nodes. Note that U-Boot should configure pin multiplexing for eSDHC prior to Linux could use it. U-Boot should also fill-in the clock-frequency property (eSDHC clock depends on board-specific SCCR[ESDHCCM] bits). Signed-off-by: Anton Vorontsov --- arch/powerpc/boot

[PATCH 1/2] powerpc/83xx: Fix missing #{address,size}-cells in mpc8313erdb.dts

2009-02-05 Thread Anton Vorontsov
ether...@25000/m...@25520 Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc8...@e000/ether...@25000/m...@25520 Signed-off-by: Anton Vorontsov --- arch/powerpc/boot/dts/mpc8313erdb.dts |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/po

[PATCH 2/2] powerpc/83xx: Fix TSEC0 workability on MPC8313E-RDB boards

2009-02-05 Thread Anton Vorontsov
open eth0 Signed-off-by: Anton Vorontsov --- arch/powerpc/boot/dts/mpc8313erdb.dts |9 ++--- arch/powerpc/configs/83xx/mpc8313_rdb_defconfig |2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/arch/powerpc/boot/dts/mpc8313erdb.dts b/arch/powerpc/boo

Re: FSL eSDHC bindings update

2009-02-06 Thread Anton Vorontsov
On Thu, Feb 05, 2009 at 08:52:56PM -0600, Kumar Gala wrote: > On Feb 5, 2009, at 1:04 PM, Anton Vorontsov wrote: >> On Thu, Jan 22, 2009 at 01:15:01PM -0600, Kumar Gala wrote: >>> On Jan 21, 2009, at 8:00 PM, Anton Vorontsov wrote: >>>> This patch adds a new driver: s

[PATCH RFC 0/11] FSL eSDHC support: second call for comments

2009-02-06 Thread Anton Vorontsov
ry accessors" That's all, for now. Pierre, what do you think about memory accessors, what is your preference regarding mem ops? Some options were discussed here: http://lkml.org/lkml/2009/1/22/261 Thanks! -- Anton Vorontsov email: cbouatmai...@g

[PATCH 01/11] sdhci: Add quirk for controllers with no end-of-busy IRQ

2009-02-06 Thread Anton Vorontsov
. Signed-off-by: Ben Dooks Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c |5 - drivers/mmc/host/sdhci.h |2 ++ 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 6b2d1f9..0a1f5c5 100644 --- a/drivers/mmc

[PATCH 02/11] sdhci: Add support for bus-specific IO memory accessors

2009-02-06 Thread Anton Vorontsov
bit width, with big-endian addressing. That is, readb(0x2f) should turn into readb(0x2c), and readw(0x2c) should be translated to le16_to_cpu(readw(0x2e)). Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci-pci.c |4 +- drivers/mmc/host/sdhci.c | 205 +--

[PATCH 03/11] sdhci: Add type checking for IO memory accessors

2009-02-06 Thread Anton Vorontsov
i.c:614:44: warning: incorrect type in argument 3 (different base types) sdhci.c:614:44:expected restricted int [usertype] reg sdhci.c:614:44:got unsigned char [unsigned] [assigned] [usertype] count Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c | 32 +++-- drivers/

[PATCH 04/11] sdhci: Add support for card-detection polling

2009-02-06 Thread Anton Vorontsov
ng to "debounce" card-detection IRQs by reading present state and disabling particular interrupts. But with this debouncing scheme I noticed that sometimes we miss card insertion/removal events. Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c |6 ++ drivers/mmc/host

[PATCH 05/11] sdhci: Add support for hosts reporting inverted write-protect state

2009-02-06 Thread Anton Vorontsov
This patch adds SDHCI_QUIRK_INVERTED_WRITE_PROTECT quirk. When specified, the sdhci driver will invert WP state. p.s. Actually, the quirk is more board-specific than controller-specific. Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c |2 ++ drivers/mmc/host/sdhci.h |2

[PATCH 06/11] sdhci: Add support for hosts with strict 32 bit addressing

2009-02-06 Thread Anton Vorontsov
tion. Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c | 19 ++- drivers/mmc/host/sdhci.h |4 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 85f3780..9b43588 100644 --- a/drivers/mm

[PATCH 07/11] sdhci: Add quirk to suppress PIO interrupts during DMA transfers

2009-02-06 Thread Anton Vorontsov
-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c | 32 drivers/mmc/host/sdhci.h |3 +++ 2 files changed, 35 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 9b43588..ede3790 100644 --- a/drivers/mmc/host

[PATCH 09/11] sdhci: Add set_clock callback

2009-02-06 Thread Anton Vorontsov
bits that makes the patch difficult to reuse. [1] http://lkml.org/lkml/2008/12/2/160 Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c |5 + drivers/mmc/host/sdhci.h |2 ++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc

[PATCH 08/11] sdhci: Add support for hosts that don't specify clocks in the cap. register

2009-02-06 Thread Anton Vorontsov
clocks are static. [1] http://lkml.org/lkml/2008/12/2/157 Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index ede3790..0293

[PATCH 10/11] sdhci: Add quirk for Freescale eSDHC controllers

2009-02-06 Thread Anton Vorontsov
interrupt storm, and writing corrupts data. The first guess would be that we must wait for some bit in some register, but I didn't find any reliable bits that changes before and after the delay. Though, more investigation on this is in my todo list. Signed-off-by: Anton Voro

[PATCH 11/11] mmc: Add OpenFirmware bindings for SDHCI driver

2009-02-06 Thread Anton Vorontsov
This patch adds a new driver: sdhci-of. The driver is similar to the sdhci-pci, it contains common probe code, and controller-specific ops and quirks. So far there are only Freescale eSDHC ops and quirks. Signed-off-by: Anton Vorontsov Acked-by: Arnd Bergmann --- drivers/mmc/host/Kconfig

[PATCH] powerpc/83xx: Revive Marvell PHY option on MPC8313E-RDB rev. C boards

2009-02-10 Thread Anton Vorontsov
arvell PHY, which is a normal PHY on MDIO bus. So far U-Boot does not fix up TSEC0 nodes for MPC8313E-RDB boards, so we'd better include two device-tree files: one that specify Vitesse PHY and another for boards with Marvell PHY option. Reported-by: Li Yang Signed-off-by: Anton Vorontsov ---

Re: [PATCH] powerpc/83xx: Revive Marvell PHY option on MPC8313E-RDB rev. C boards

2009-02-12 Thread Anton Vorontsov
marvell_phy_option yes/no), i.e. like I did for MPC8315E-RDB's ULPI/TSEC1 options: http://lists.denx.de/pipermail/u-boot/2008-July/036553.html Makes sense? If not, I'll readily respin this patch with the PHY address change. Thanks, -- Anton Vorontsov email: cbouatmai...@gmail.com irc://irc.freenode.net/bd2 ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH 02/11] sdhci: Add support for bus-specific IO memory accessors

2009-02-13 Thread Anton Vorontsov
On Sun, Feb 08, 2009 at 09:50:20PM +0100, Pierre Ossman wrote: > On Fri, 6 Feb 2009 21:06:45 +0300 > Anton Vorontsov wrote: > > Currently the SDHCI driver works with PCI accessors (write{l,b,w} and > > read{l,b,w}). > > > > With this patch drivers may change me

Re: [PATCH 10/11] sdhci: Add quirk for Freescale eSDHC controllers

2009-02-13 Thread Anton Vorontsov
On Sun, Feb 08, 2009 at 10:12:09PM +0100, Pierre Ossman wrote: > On Fri, 6 Feb 2009 21:07:01 +0300 > Anton Vorontsov wrote: > > > This patch adds SDHCI_QUIRK_FSL quirk. The quirk is used to instruct > > the sdhci driver about various FSL eSDHC host incompatibilities: >

[PATCH RFC 0/13] FSL eSDHC support

2009-02-13 Thread Anton Vorontsov
dhci_init() now clears SDHCI_PIO_DISABLED flag, otherwise we won't disable PIO interrupts after suspend. - New patch: "sdhci: Add type checking for IO memory accessors" Thanks, -- Anton Vorontsov email: cbouatmai...@gmail.com irc://irc.freenode.net/bd2 __

[PATCH 01/13] sdhci: Add quirk for controllers with no end-of-busy IRQ

2009-02-13 Thread Anton Vorontsov
. Signed-off-by: Ben Dooks Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c |5 - drivers/mmc/host/sdhci.h |2 ++ 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 6b2d1f9..0a1f5c5 100644 --- a/drivers/mmc

[PATCH 02/13] sdhci: Add support for bus-specific IO memory accessors

2009-02-13 Thread Anton Vorontsov
bit width, with big-endian addressing. That is, readb(0x2f) should turn into readb(0x2c), and readw(0x2c) should be translated to le16_to_cpu(readw(0x2e)). Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci-pci.c |4 +- drivers/mmc/host/sdhci.c | 214 ++-

[PATCH 03/13] sdhci: Split card-detection IRQs management from sdhci_init()

2009-02-13 Thread Anton Vorontsov
() - sdhci_unmask_irqs() - sdhci_mask_irqs() - SDHCI_INT_ALL_MASK constant sdhci_enable_sdio_irq() converted to these new helpers, plus the helpers will be used by the subsequent patches. Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c | 78

[PATCH 04/13] sdhci: Enable only relevant (DMA/PIO) interrupts during transfers

2009-02-13 Thread Anton Vorontsov
Some hosts (that is, FSL eSDHC) throw PIO interrupts during DMA transfers, this causes tons of unneeded interrupts, and thus highly degraded speed. This patch modifies the driver so that now we only enable relevant (DMA or PIO) interrupts during transfers. Signed-off-by: Anton Vorontsov

[PATCH 05/13] sdhci: Add support for card-detection polling

2009-02-13 Thread Anton Vorontsov
ng to "debounce" card-detection IRQs by reading present state and disabling particular interrupts. But with this debouncing scheme I noticed that sometimes we miss card insertion/removal events. Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c | 17 ++--- d

[PATCH 06/13] sdhci: Add support for hosts reporting inverted write-protect state

2009-02-13 Thread Anton Vorontsov
This patch adds SDHCI_QUIRK_INVERTED_WRITE_PROTECT quirk. When specified, the sdhci driver will invert WP state. p.s. Actually, the quirk is more board-specific than controller-specific. Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c |2 ++ drivers/mmc/host/sdhci.h |2

[PATCH 07/13] sdhci: Add support for hosts with strict 32 bit addressing

2009-02-13 Thread Anton Vorontsov
tion. Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c | 19 ++- drivers/mmc/host/sdhci.h |4 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index d668625..1c36a25 100644 --- a/drivers/mm

[PATCH 08/13] sdhci: Add get_{max,timeout}_clock callbacks

2009-02-13 Thread Anton Vorontsov
a bug that makes sdhci_add_host() return -ENODEV even if callbacks were specified. This is fixed now. Signed-off-by: Ben Dooks Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c | 22 +++--- drivers/mmc/host/sdhci.h |2 ++ 2 files changed, 17 insertions(+), 7 dele

[PATCH 09/13] sdhci: Add set_clock callback and a quirk for nonstandard clocks

2009-02-13 Thread Anton Vorontsov
bits that makes the patch difficult to reuse. [1] http://lkml.org/lkml/2008/12/2/160 Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c |6 ++ drivers/mmc/host/sdhci.h |4 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/driver

[PATCH 10/13] sdhci: Add quirk for controllers that need small delays for PIO

2009-02-13 Thread Anton Vorontsov
igned-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c |3 +++ drivers/mmc/host/sdhci.h |2 ++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index f63db25..eff615d 100644 --- a/drivers/mmc/host/sdhci.c +++ b/driver

[PATCH 11/13] sdhci: Add quirk for controllers that need IRQ re-init after reset

2009-02-13 Thread Anton Vorontsov
FSL eSDHC controllers losing signal/interrupt enable states after reset, so we should re-enable them. Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c |7 +++ drivers/mmc/host/sdhci.h |2 ++ 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host

[PATCH 12/13] sdhci: Add quirk for controllers with max. block size up to 4096 bytes

2009-02-13 Thread Anton Vorontsov
FSL eSDHC controllers can support maximum block size up to 4096 bytes. The MBL (Maximum Block Length) field in the capabilities register extended by one bit, and bits 13:15 in the block size register reserved. Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c | 28

[PATCH 13/13] mmc: Add OpenFirmware bindings for SDHCI driver

2009-02-13 Thread Anton Vorontsov
This patch adds a new driver: sdhci-of. The driver is similar to the sdhci-pci, it contains common probe code, and controller-specific ops and quirks. So far there are only Freescale eSDHC ops and quirks. Signed-off-by: Anton Vorontsov Acked-by: Arnd Bergmann --- drivers/mmc/host/Kconfig

Re: [PATCH 11/13] sdhci: Add quirk for controllers that need IRQ re-init after reset

2009-02-13 Thread Anton Vorontsov
On Fri, Feb 13, 2009 at 04:47:13PM +0100, Laurent Pinchart wrote: > Hi Anton, > > On Friday 13 February 2009 15:47:38 Anton Vorontsov wrote: [...] > > sdhci_host *host) static void sdhci_reset(struct sdhci_host *host, u8 mask) > > { > > unsigned long timeout; >

Re: [PATCH 1/3] Makefile: Include arch Makefiles as late as possible

2009-02-16 Thread Anton Vorontsov
tion,-Wframe-larger-than=${CONFIG_FRAME_WARN}) endif @@ -516,8 +518,6 @@ endif # Arch Makefiles may override this setting KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector) -include $(srctree)/arch/$(SRCARCH)/Makefile - ifdef CONFIG_FRAME_POINTER KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls else :-? -- Anton Vorontsov email: cbouatmai...@gmail.com irc://irc.freenode.net/bd2 ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH 1/3] Makefile: Include arch Makefiles as late as possible

2009-02-16 Thread Anton Vorontsov
On Mon, Feb 16, 2009 at 05:20:01PM +0300, Anton Vorontsov wrote: > On Sat, Feb 14, 2009 at 08:57:02PM +0100, Sam Ravnborg wrote: > [...] > > > > --- a/Makefile > > > > +++ b/Makefile > > > > @@ -525,8 +525,6 @@ else > > > > KBUILD_CFLAGS += -

Re: [PATCH 1/3] Makefile: Include arch Makefiles as late as possible

2009-02-16 Thread Anton Vorontsov
On Mon, Feb 16, 2009 at 05:20:01PM +0300, Anton Vorontsov wrote: [...] > But then, this commit reverted things back (w/o your Ack): > > commit bef5b54bd7bf8117c75cb943d64549134c6d9a1f > Author: Ralf Baechle > Date: Wed Jul 16 13:02:24 2008 +0100 > > Fix MIPS

[PATCH] powerpc/83xx: Do not configure or probe disabled FSL DR USB controllers

2009-02-19 Thread Anton Vorontsov
port on targets with MPC837X CPUs. Signed-off-by: Anton Vorontsov --- arch/powerpc/platforms/83xx/usb.c |3 ++- arch/powerpc/sysdev/fsl_soc.c |4 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/platforms/83xx/usb.c b/arch/powerpc/platforms/83xx/usb.c in

Re: [PATCH] powerpc/83xx: Do not configure or probe disabled FSL DR USB controllers

2009-02-19 Thread Anton Vorontsov
On Thu, Feb 19, 2009 at 10:19:05AM -0600, Kumar Gala wrote: > > On Feb 19, 2009, at 10:02 AM, Anton Vorontsov wrote: > >> On MPC837X CPUs Dual-Role USB isn't always available (for example DR >> USB pins can be muxed away to eSDHC). >> >> U-Boot adds status

[PATCH] powerpc/83xx: Add power management support for MPC837x boards

2009-02-20 Thread Anton Vorontsov
and IRQ2). The processor can also wakeup the boards by the fourth general purpose timer in GTM1 block, but the GTM wakeup support isn't yet implemented (it's tested to work, but it's unclear how can we use the quite short GTM timers, and how do we want to expose the GTM to userspace).

[PATCH 0/13] FSL eSDHC support

2009-02-20 Thread Anton Vorontsov
h). - In "sdhci: Add quirk to suppress PIO interrupts during DMA transfers" patch: sdhci_init() now clears SDHCI_PIO_DISABLED flag, otherwise we won't disable PIO interrupts after suspend. - New patch: "sdhci: Add type checking for IO memory accessors" -- Anton Voront

[PATCH 01/13] sdhci: Add quirk for controllers with no end-of-busy IRQ

2009-02-20 Thread Anton Vorontsov
. Signed-off-by: Ben Dooks Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c |5 - drivers/mmc/host/sdhci.h |2 ++ 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 6b2d1f9..0a1f5c5 100644 --- a/drivers/mmc

[PATCH 05/13] sdhci: Add support for card-detection polling

2009-02-20 Thread Anton Vorontsov
ng to "debounce" card-detection IRQs by reading present state and disabling particular interrupts. But with this debouncing scheme I noticed that sometimes we miss card insertion/removal events. Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c | 17 ++--- d

[PATCH 03/13] sdhci: Split card-detection IRQs management from sdhci_init()

2009-02-20 Thread Anton Vorontsov
() - sdhci_unmask_irqs() - sdhci_mask_irqs() - SDHCI_INT_ALL_MASK constant sdhci_enable_sdio_irq() converted to these new helpers, plus the helpers will be used by the subsequent patches. Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c | 78

[PATCH 02/13] sdhci: Add support for bus-specific IO memory accessors

2009-02-20 Thread Anton Vorontsov
bit width, with big-endian addressing. That is, readb(0x2f) should turn into readb(0x2c), and readw(0x2c) should be translated to le16_to_cpu(readw(0x2e)). Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci-pci.c |4 +- drivers/mmc/host/sdhci.c | 214 ++-

[PATCH 06/13] sdhci: Add support for hosts reporting inverted write-protect state

2009-02-20 Thread Anton Vorontsov
This patch adds SDHCI_QUIRK_INVERTED_WRITE_PROTECT quirk. When specified, the sdhci driver will invert WP state. p.s. Actually, the quirk is more board-specific than controller-specific. Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c |2 ++ drivers/mmc/host/sdhci.h |2

[PATCH 08/13] sdhci: Add get_{max,timeout}_clock callbacks

2009-02-20 Thread Anton Vorontsov
a bug that makes sdhci_add_host() return -ENODEV even if callbacks were specified. This is fixed now. Signed-off-by: Ben Dooks Signed-off-by: Anton Vorontsov --- drivers/mmc/host/sdhci.c | 22 +++--- drivers/mmc/host/sdhci.h |2 ++ 2 files changed, 17 insertions(+), 7 dele

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