[PATCH 07/11] sdhci: Add set_clock callback and a quirk for nonstandard clocks

2009-03-05 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 06/11] sdhci: Add get_{max,timeout}_clock callbacks

2009-03-05 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 05/11] sdhci: Add support for hosts reporting inverted write-protect state

2009-03-05 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 04/11] sdhci: Add support for card-detection polling

2009-03-05 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/11] sdhci: Enable only relevant (DMA/PIO) interrupts during transfers

2009-03-05 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 02/11] sdhci: Split card-detection IRQs management from sdhci_init()

2009-03-05 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 01/11] sdhci: Add support for bus-specific IO memory accessors

2009-03-05 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.c | 214 - drivers/mmc/host/sdhci.h

[PATCH v2 0/11] FSL eSDHC support

2009-03-05 Thread Anton Vorontsov
Acked-by: line for the sdhci-of patch. - Kconfig help text improved (thanks to Matt Sealey and M. Warner Losh). - 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 interru

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

2009-03-04 Thread Anton Vorontsov
On Sat, Feb 21, 2009 at 04:58:21PM +0100, Pierre Ossman wrote: > On Fri, 13 Feb 2009 17:47:18 +0300 > Anton Vorontsov wrote: > > > @@ -1110,13 +1113,18 @@ static void sdhci_request(struct mmc_host *mmc, > > struct mmc_request *mrq) > > > > host->mrq =

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

2009-03-04 Thread Anton Vorontsov
On Sat, Feb 21, 2009 at 04:58:33PM +0100, Pierre Ossman wrote: > On Fri, 13 Feb 2009 17:47:22 +0300 > Anton Vorontsov wrote: > > > SDHCI driver must take special care when working with "triggering" > > registers on hosts with strict 32 bit addressing. > >

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

2009-03-04 Thread Anton Vorontsov
On Sat, Feb 21, 2009 at 04:58:44PM +0100, Pierre Ossman wrote: > On Fri, 13 Feb 2009 17:47:39 +0300 > Anton Vorontsov wrote: > > > @@ -831,7 +832,12 @@ static void sdhci_prepare_data(struct sdhci_host > > *host, struct mmc_data *data) > > sdhci_set_transfer_irqs

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

2009-03-04 Thread Anton Vorontsov
On Sat, Feb 21, 2009 at 04:57:57PM +0100, Pierre Ossman wrote: > On Fri, 13 Feb 2009 17:40:39 +0300 > Anton Vorontsov wrote: > > > > > No, on eSDHC the registers are big-endian, 32-bit width, with, for > > example, two 16-bit "logical" registers packed int

[PATCH RFC] powerpc/83xx: Move gianfar mdio nodes under the ethernet nodes

2009-03-03 Thread Anton Vorontsov
therwise we may wrongly assume that MDIO controllers are available during sleep. Suggested-by: Scott Wood Signed-off-by: Anton Vorontsov --- On Tue, Mar 03, 2009 at 12:39:38PM -0600, Scott Wood wrote: > Anton Vorontsov wrote: >> On Tue, Mar 03, 2009 at 11:57:46AM -0600, Scott Wood wrote

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

2009-03-03 Thread Anton Vorontsov
On Tue, Mar 03, 2009 at 11:57:46AM -0600, Scott Wood wrote: > On Tue, Mar 03, 2009 at 07:02:01PM +0300, Anton Vorontsov wrote: > > m...@24520 { > > @@ -226,6 +244,8 @@ > > interrupt-parent = <&ipic>; > >

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

2009-03-03 Thread Anton Vorontsov
nclear how can we use the quite short GTM timers, and how do we want to expose the GTM to userspace). Signed-off-by: Anton Vorontsov --- This is corrected version, with i2c1 and esdhc nodes placed inside the sleep-nexus, as suggested by Scott Wood. arch/powerpc/boot/dts/mpc8377_mds.dts | 6

Re: Can't load module spi_mpc83xx : No such device

2009-03-03 Thread Anton Vorontsov
mc-spi-slot-bindings.patch The OF MMC SPI bindings themselves are in the latest Linus' tree already: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/mmc/host/of_mmc_spi.c For m25p80 chip you should do something similar. Hope this helps, -- 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] Add MPC52xx simple interrupt GPIO support

2009-03-02 Thread Anton Vorontsov
he wkup registers block; else if (mpc5200_is_int(gpio)) write to the int registers block; else ... } That is, the same thing we do for the interrupt controllers. (Note that these "if"s can be replaced by a table, as in arch/powerpc/sysdev/qe_lib/qe_ic.c). -- 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: Can't load module spi_mpc83xx : No such device

2009-02-27 Thread Anton Vorontsov
always asserted (i.e. there is only one device on the SPI bus), then.. > > m25...@2 { > compatible = "m25p80"; > spi-max-frequency = <2500>; >

Re: Two thoughts about SPI chip-selects in the DTS

2009-02-27 Thread Anton Vorontsov
cts? It's certainly possible. Though, I'm not sure if it should be of_spi's matter. Maybe some generic "SPI GPIO chip-selects" framework, and then OF bindings for it... Thanks, -- Anton Vorontsov email: cbouatmai...@gmail.com irc://irc.freenode.net/bd2 ___

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

2009-02-20 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

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

2009-02-20 Thread Anton Vorontsov
On Fri, Feb 20, 2009 at 11:31:09AM -0600, Scott Wood wrote: > Anton Vorontsov wrote: >> diff --git a/arch/powerpc/boot/dts/mpc8377_mds.dts >> b/arch/powerpc/boot/dts/mpc8377_mds.dts >> index 3e3ec8f..c54b90d 100644 >> --- a/arch/powerpc/boot/dts/mpc8377_mds.dts >

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

2009-02-20 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 09/13] sdhci: Add set_clock callback and a quirk for nonstandard clocks

2009-02-20 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 12/13] sdhci: Add quirk for controllers with max. block size up to 4096 bytes

2009-02-20 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 11/13] sdhci: Add quirk for controllers that need IRQ re-init after reset

2009-02-20 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 07/13] sdhci: Add support for hosts with strict 32 bit addressing

2009-02-20 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 04/13] sdhci: Enable only relevant (DMA/PIO) interrupts during transfers

2009-02-20 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 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

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

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

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

[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

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

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

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

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

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

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

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

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

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-

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

[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

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

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/

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

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

[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

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

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

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

[PATCH] gianfar: Fix sparse warnings

2009-01-28 Thread Anton Vorontsov
as not declared. Should it be static? gianfar_sysfs.c:287:1: warning: symbol 'dev_attr_fifo_starve_off' was not declared. Should it be static? Signed-off-by: Anton Vorontsov --- drivers/net/gianfar.c |2 -- drivers/net/gianfar.h |2 ++ drivers/net/g

[PATCH -next 2/2] phylib: Rework suspend/resume code to check netdev wakeup capability

2009-01-28 Thread Anton Vorontsov
. This patch reworks suspend/resume code so that now it checks for net device's wakeup flags, not MDIO controller's ones. Each netdevice should manage its wakeup flags, and phylib will decide whether suspend an attached PHY or not. Signed-off-by: Anton Vorontsov --- drivers/net/phy/

[PATCH -next 1/2] gianfar: Implement proper, per netdevice wakeup management

2009-01-28 Thread Anton Vorontsov
This patch implements wakeup management for the gianfar driver. The driver should set wakeup enable if WOL is enabled, so that phylib won't power off an attached PHY. Signed-off-by: Anton Vorontsov --- drivers/net/gianfar.c |5 + drivers/net/gianfar_ethtool.c |1 + 2

[PATCH] gianfar: Fix Wake-on-LAN support

2009-01-28 Thread Anton Vorontsov
resume logic. Signed-off-by: Anton Vorontsov --- drivers/net/gianfar_mii.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/net/gianfar_mii.c b/drivers/net/gianfar_mii.c index f3706e4..f49a426 100644 --- a/drivers/net/gianfar_mii.c +++ b/drivers/net/gianfar_mii.c @

<    3   4   5   6   7   8   9   10   11   12   >