Re: [RFC PATCH] rtc: add rtc_systohc for ntp use

2008-11-12 Thread Gabriel Paubert
On Tue, Nov 11, 2008 at 12:58:59PM -0800, David Brownell wrote: On Tuesday 11 November 2008, David Woodhouse wrote: I believe you were also concerned that some device wouldn't want the behaviour given by the existing sync_cmos_clock() function and workqueue stuff in kernel/ntp.c, where we

[PATCH] [RFC] Exposing mmio nvrams greater than 8MB using generic_nvram

2008-11-12 Thread Martyn Welch
I have been looking for a way to access the nvram on our board and expose it to userspace. The board has a 128kB nvram, the mmio_nvram driver seemed to be a capable of mapping this device. generic_nvram seemed initially to be the correct way of exposing the driver to userspace, however it was

Re: [PATCH] [v3] powerpc/4xx: work around CHIP11 errata in a more PAGE_SIZE-friendly way

2008-11-12 Thread Benjamin Herrenschmidt
On Wed, 2008-11-12 at 06:31 -0500, Josh Boyer wrote: On Wed, 12 Nov 2008 15:37:43 +1100 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Tue, 2008-11-11 at 18:06 -0600, Hollis Blanchard wrote: The current CHIP11 errata truncates the device tree memory node, and subtracts

Re: [PATCH] [v3] powerpc/4xx: work around CHIP11 errata in a more PAGE_SIZE-friendly way

2008-11-12 Thread Hollis Blanchard
On Wed, 2008-11-12 at 22:52 +1100, Benjamin Herrenschmidt wrote: On Wed, 2008-11-12 at 06:31 -0500, Josh Boyer wrote: On Wed, 12 Nov 2008 15:37:43 +1100 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Tue, 2008-11-11 at 18:06 -0600, Hollis Blanchard wrote: The current CHIP11

Re: [PATCH] powerpc: Fix 460EX/460GT machine check handling

2008-11-12 Thread Benjamin Herrenschmidt
On Wed, 2008-11-12 at 06:27 -0500, Josh Boyer wrote: On Wed, 12 Nov 2008 13:02:43 +1100 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: Those cores use the 440A type machine check (ie, they have MCSRR0/MCSRR1). They thus need to call the appropriate fixup function to hook the right

Re: [PATCH] powerpc: Fix 460EX/460GT machine check handling

2008-11-12 Thread Josh Boyer
On Wed, 12 Nov 2008 13:02:43 +1100 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: Those cores use the 440A type machine check (ie, they have MCSRR0/MCSRR1). They thus need to call the appropriate fixup function to hook the right variant of the exception. Without this, all machine checks

Using gpiolib to power off my system

2008-11-12 Thread Juergen Beisert
Hi list, I want to use the gpiolib API in a routine that should poweroff the system (MPC5200B). I register my poweroff routine in the define_machine() macro as: [...] .power_off = my_power_off, [...] In this routine I'm using gpio_request(...), gpio_direction_output(...) and

[PATCH] usb/fsl_qe_udc: Report disconnect before unbinding

2008-11-12 Thread Anton Vorontsov
Gadgets disable endpoints in their disconnect callbacks, so we must call disconnect before unbinding. This also fixes muram memory leak, since we free muram in the qe_ep_disable(). But mainly the patch fixes following badness: [EMAIL PROTECTED]:~# insmod fsl_qe_udc.ko fsl_qe_udc: Freescale

[PATCH] usb/fsl_usb2_udc: Report disconnect before unbinding

2008-11-12 Thread Anton Vorontsov
Gadgets disable endpoints in their disconnect callbacks, so we must call disconnect before unbinding. The patch fixes following badness: [EMAIL PROTECTED]:~# insmod fsl_usb2_udc.ko Freescale High-Speed USB SOC Device Controller driver (Apr 20, 2007) [EMAIL PROTECTED]:~# insmod g_ether.ko g_ether

Re: [PATCH] usb/fsl_qe_udc: Report disconnect before unbinding

2008-11-12 Thread Alan Stern
On Wed, 12 Nov 2008, Anton Vorontsov wrote: Gadgets disable endpoints in their disconnect callbacks, so we must call disconnect before unbinding. This also fixes muram memory leak, since we free muram in the qe_ep_disable(). --- a/drivers/usb/gadget/fsl_qe_udc.c +++

Re: [PATCH] usb/fsl_qe_udc: Report disconnect before unbinding

2008-11-12 Thread Anton Vorontsov
On Wed, Nov 12, 2008 at 02:38:02PM -0500, Alan Stern wrote: On Wed, 12 Nov 2008, Anton Vorontsov wrote: Gadgets disable endpoints in their disconnect callbacks, so we must call disconnect before unbinding. This also fixes muram memory leak, since we free muram in the qe_ep_disable().

Re: [PATCH] [v3] powerpc/4xx: work around CHIP11 errata in a more PAGE_SIZE-friendly way

2008-11-12 Thread Benjamin Herrenschmidt
On Wed, 2008-11-12 at 09:11 -0600, Hollis Blanchard wrote: Forget pages. The errata is about the last 256 bytes of physical memory. I still find it a bit tricky to have memory nodes not aligned on nice fat big boundaries tho. I don't know what you're referring to. The patch I sent

Re: [PATCH] usb/fsl_qe_udc: Report disconnect before unbinding

2008-11-12 Thread Alan Stern
On Wed, 12 Nov 2008, Anton Vorontsov wrote: On Wed, Nov 12, 2008 at 11:12:18PM +0300, Anton Vorontsov wrote: On Wed, Nov 12, 2008 at 10:59:16PM +0300, Anton Vorontsov wrote: [...] And wouldn't it be better to _skip_ doing this if the gadget wasn't connected before? Composite

patch usb-powerpc-workaround-for-the-ppc440epx-usbh_23-errata.patch added to gregkh-2.6 tree

2008-11-12 Thread gregkh
This is a note to let you know that I've just added the patch titled Subject: USB: powerpc: Workaround for the PPC440EPX USBH_23 errata [take 3] to my gregkh-2.6 tree. Its filename is usb-powerpc-workaround-for-the-ppc440epx-usbh_23-errata.patch This tree can be found at

[PATCH 0/2] Addition of MWDMA/UDMA modes to MPC5200 ATA driver

2008-11-12 Thread Grant Likely
Hi all, This is Tim's series for adding UDMA/MWDMA support to the Freescale MPC5200 ATA device driver. Tested on Genesi's Efika board. Jeff, if it is okay by you, I'm going to push this through my mpc5200 powerpc tree (after addressing any comments of course) since it only affects the MPC5200

[PATCH 1/2] powerpc/mpc5200: Bestcomm fixes to ATA support

2008-11-12 Thread Grant Likely
From: Tim Yamin [EMAIL PROTECTED] 1) ata.h has dst_pa in the wrong place (needs to match what the BestComm task microcode in bcom_ata_task.c expects); fix it. 2) The BestComm ATA task priority was changed to maximum in bestcomm_priv.h; this fixes a deadlock issue I was experiencing when

[PATCH 2/2] powerpc/mpc5200: Add MDMA/UDMA support to MPC5200 ATA driver

2008-11-12 Thread Grant Likely
From: Tim Yamin [EMAIL PROTECTED] This patch adds MDMA/UDMA support using BestComm for DMA on the MPC5200 platform. Based heavily on previous work by Freescale (Bernard Kuhn, John Rigby) and Domen Puncer. With this patch, a SanDisk Extreme IV CF card gets read speeds of approximately 26.70

[PATCH 1/4] Add helpers for finding a device node which as a certain property

2008-11-12 Thread Michael Ellerman
This commit adds a routine for finding a device node which has a certain property, the contents of the property are not taken into account, merely the presence or absence of the property. Based on that routine, we add a for_each_ macro for iterating over all nodes that have a certain property.

[PATCH 4/4] Use of_find_node_with_property() in pmac_setup_arch()

2008-11-12 Thread Michael Ellerman
Signed-off-by: Michael Ellerman [EMAIL PROTECTED] --- arch/powerpc/platforms/powermac/setup.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c index 82c14d2..1293772 100644 ---

Re: [PATCH 1/4] Add helpers for finding a device node which as a certain property

2008-11-12 Thread David Miller
From: Michael Ellerman [EMAIL PROTECTED] Date: Thu, 13 Nov 2008 15:20:35 +1100 (EST) + np = from ? from-allnext : allnodes; + for (; np; np = np-allnext) { + for (pp = np-properties; pp != 0; pp = pp-next) { + if (of_prop_cmp(pp-name, prop_name) == 0) {

Re: [PATCH 1/4] Add helpers for finding a device node which as a certain property

2008-11-12 Thread Michael Ellerman
On Wed, 2008-11-12 at 22:46 -0800, David Miller wrote: From: Michael Ellerman [EMAIL PROTECTED] Date: Thu, 13 Nov 2008 15:20:35 +1100 (EST) + np = from ? from-allnext : allnodes; + for (; np; np = np-allnext) { + for (pp = np-properties; pp != 0; pp = pp-next) { +

Re: [PATCH 1/4] Add helpers for finding a device node which as a certain property

2008-11-12 Thread Michael Ellerman
On Thu, 2008-11-13 at 17:49 +1100, Michael Ellerman wrote: On Wed, 2008-11-12 at 22:46 -0800, David Miller wrote: From: Michael Ellerman [EMAIL PROTECTED] Date: Thu, 13 Nov 2008 15:20:35 +1100 (EST) + np = from ? from-allnext : allnodes; + for (; np; np = np-allnext) { +