dtc: Add python source code output

2008-11-06 Thread Michael Ellerman
This commit adds an output format, which produces python code. When run, the python produces a data structure that can then be inspected in order to do various things. Signed-off-by: Michael Ellerman [EMAIL PROTECTED] --- I'm not sure if this is generally useful (or sane) but it was for me so I

Re: [PATCH V4] workaround for mpc52xx erratum #364 (serial may not be reset in break state)

2008-11-06 Thread René Bürgel
This patch is a workaround for bug #364 found in the MPC52xx processor. The errata document can be found under http://www.freescale.com/files/32bit/doc/errata/MPC5200E.pdf?fpsp=1WT_TYPE=ErrataWT_VENDOR=FREESCALEWT_FILE_FORMAT=pdfWT_ASSET=Documentation When a device with a low baudrate is

Re: [PATCH] Fix msr check in compat_sys_swapcontext

2008-11-06 Thread Andreas Schwab
Paul Mackerras [EMAIL PROTECTED] writes: we need to use get_user, not __get_user, since we haven't done an access_ok() check on the address. The address is always ok since its a compat pointer, see do_setcontext. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products

Re: [PATCH] Fix msr check in compat_sys_swapcontext

2008-11-06 Thread Andreas Schwab
Paul Mackerras [EMAIL PROTECTED] writes: Andreas Schwab writes: Paul Mackerras [EMAIL PROTECTED] writes: we need to use get_user, not __get_user, since we haven't done an access_ok() check on the address. The address is always ok since its a compat pointer, see do_setcontext. OK,

[PATCH] powerpc: Basic GPIO support for GE Fanuc SBC610

2008-11-06 Thread Martyn Welch
Basic support for the GPIO available on the SBC610 VPX Single Board Computer from GE Fanuc (PowerPC MPC8641D). This patch adds basic support for the GPIO in the devices I/O FPGA, the GPIO functionality is exposed through the AFIX pins on the backplane, unless used by an AFIX card. This code

[PATCH v2] powerpc: Basic GPIO support for GE Fanuc SBC610

2008-11-06 Thread Martyn Welch
Basic support for the GPIO available on the SBC610 VPX Single Board Computer from GE Fanuc (PowerPC MPC8641D). This patch adds basic support for the GPIO in the devices I/O FPGA, the GPIO functionality is exposed through the AFIX pins on the backplane, unless used by an AFIX card. This code

Patch to fix problem? was: PCI Express between MPC8572 PLX8616

2008-11-06 Thread Morrison, Tom
Sorry for such a wide query...but I did some searching of the linux trees... and I am at a loss to find what the below email refers to in terms of a fix for pci expressand I am having a hard time finding it in all of the commits? any pointers to the right tree and/or the specific fix would

Re: [PATCH] Fix msr check in compat_sys_swapcontext

2008-11-06 Thread Paul Mackerras
Andreas Schwab writes: Paul Mackerras [EMAIL PROTECTED] writes: we need to use get_user, not __get_user, since we haven't done an access_ok() check on the address. The address is always ok since its a compat pointer, see do_setcontext. OK, since it's inside a CONFIG_PPC64 block. I'll

Re: [PATCH] i2c-cpm: Add flexibility for I2C clock frequency and filter.

2008-11-06 Thread Jochen Friedrich
Mike Ditto schrieb: This patch adds the ability to enable the digital filter in the device tree (with the clock-filter boolean property) and automates the predivider selection according to the clock-frequency and clock-filter properties. This allows use of a wider range of I2C bus

Re: [PATCH v2] powerpc: Basic GPIO support for GE Fanuc SBC610

2008-11-06 Thread Anton Vorontsov
On Thu, Nov 06, 2008 at 12:10:33PM +, Martyn Welch wrote: Basic support for the GPIO available on the SBC610 VPX Single Board Computer from GE Fanuc (PowerPC MPC8641D). This patch adds basic support for the GPIO in the devices I/O FPGA, the GPIO functionality is exposed through the AFIX

Re: [PATCH v2] powerpc: Basic GPIO support for GE Fanuc SBC610

2008-11-06 Thread Anton Vorontsov
On Thu, Nov 06, 2008 at 06:17:23PM +0300, Anton Vorontsov wrote: [...] There is point in doing the of_platform_driver for this GPIO Please read as 'There is no point..' ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org

Re: [PATCH V3] powerpc: Fix Book-E watchdog timer interval setting

2008-11-06 Thread Timur Tabi
Matthias Fuchs wrote: This patch fixes the setting of the Book-E watchdog timer interval setup on initialization and by ioctl(). On initialization the period bits have to be masked before setting a new period. In WDIOC_SETTIMEOUT ioctl we have to use the correct mask. Signed-off-by:

Re: [PATCH V2] workaround for mpc52xx erratum #364 (serial may not be reset in break state)

2008-11-06 Thread René Bürgel
Matt Sealey schrieb: René Bürgel wrote: But as the serial driver is also used for the MPC5121, we may have to distinguish anyway. Does anyone have the possibility to test if the bug in still present on MPC5121? Tell us what to do to get it to occur and what we're looking for and we have a

Re: Passing I2C platform_data from device tree to i2c driver

2008-11-06 Thread Scott Wood
On Mon, Nov 03, 2008 at 05:54:46PM -0600, Nate Case wrote: Of course, I could put some code in my board specific file to parse the device tree properties and set pdata accordingly, but this hardly seems ideal. After all, the device tree bindings - pdata translation itself does not have to be

Re: [PATCH 1/1] irq: Maintain user set affinity

2008-11-06 Thread Andrew Morton
On Tue, 4 Nov 2008 10:31:05 -0600 (CST) Kumar Gala [EMAIL PROTECTED] wrote: From 819ad3ed4660f4238e053728a8b5aa93d22b13d7 Mon Sep 17 00:00:00 2001 From: Kumar Gala [EMAIL PROTECTED] Date: Tue, 4 Nov 2008 10:13:53 -0600 Subject: [PATCH 1/1] irq: Maintain user set affinity This addresses a

Re: [PATCH V2] workaround for mpc52xx erratum #364 (serial may not be reset in break state)

2008-11-06 Thread Matt Sealey
René Bürgel wrote: Matt Sealey schrieb: Alternativly, if you have more control over your serial device, just send breaks continuously, open and close the serial port. Open it again and receiving data fails, if the bug is present. Well I have a couple systems I can write data from here, a

Re: [PATCH 1/1] irq: Maintain user set affinity

2008-11-06 Thread Kumar Gala
On Nov 6, 2008, at 3:35 PM, Andrew Morton wrote: On Tue, 4 Nov 2008 10:31:05 -0600 (CST) Kumar Gala [EMAIL PROTECTED] wrote: From 819ad3ed4660f4238e053728a8b5aa93d22b13d7 Mon Sep 17 00:00:00 2001 From: Kumar Gala [EMAIL PROTECTED] Date: Tue, 4 Nov 2008 10:13:53 -0600 Subject: [PATCH 1/1]

[PATCH] Fix BSR to allow mmap of small BSR on 64k kernel

2008-11-06 Thread Sonny Rao
Fix the BSR driver to allow small BSR devices, which are limited to a single 4k space, on a 64k page kernel. Previously the driver would reject the mmap since the size was smaller than PAGESIZE (or because the size was greater than the size of the device). Now, we check for this case use

dtc: Check return value from fwrite()

2008-11-06 Thread David Gibson
There's one place in flattree.c where we currently ignore the return value from fwrite(). On some gcc/glibc versions, where fwrite() is declared with attribute warn_unused_result, this causes a warning. This patch fixes the warning, by checking the fwrite() result. Signed-off-by: David Gibson

dtc: Use noinput flex option for convert-dtsv0 to remove warning

2008-11-06 Thread David Gibson
The convert-dtsv0 lexer doesn't use lex's input() macro/function. This can result in defined but not used warnings. This patch uses flex's noinput option to prevent this warning (as we already do for dtc-lexer.l). Signed-off-by: David Gibson [EMAIL PROTECTED] Index: dtc/convert-dtsv0-lexer.l

Re: dtc: Add python source code output

2008-11-06 Thread David Gibson
On Thu, Nov 06, 2008 at 06:55:44PM +1100, Michael Ellerman wrote: This commit adds an output format, which produces python code. When run, the python produces a data structure that can then be inspected in order to do various things. Signed-off-by: Michael Ellerman [EMAIL PROTECTED] ---

Re: [PATCH] Fix BSR to allow mmap of small BSR on 64k kernel

2008-11-06 Thread Paul Mackerras
Sonny Rao writes: Fix the BSR driver to allow small BSR devices, which are limited to a single 4k space, on a 64k page kernel. Previously the driver would reject the mmap since the size was smaller than PAGESIZE (or because the size was greater than the size of the device). Now, we check