Re: [PATCH 3/4] powerpc: Use IRQF_NO_SUSPEND not IRQF_TIMER for non-timer interrupts

2010-07-30 Thread Benjamin Herrenschmidt
On Thu, 2010-07-29 at 11:16 +0100, Ian Campbell wrote: > kw_i2c_irq and via_pmu_interrupt are not timer interrupts and > therefore should not use IRQF_TIMER. Use the recently introduced > IRQF_NO_SUSPEND instead since that is the actual desired behaviour. > > Signed-off-by: Ian Campbell > Cc: Tho

Re: [PATCH 0/6] Remove owner field from sysfs attribute structure

2010-07-30 Thread Benjamin Herrenschmidt
On Fri, 2010-07-30 at 10:45 +0200, Tejun Heo wrote: > On 07/29/2010 07:09 AM, Guenter Roeck wrote: > > The following comment is found in include/linux/sysfs.h: > > > >/* FIXME > > * The *owner field is no longer used. > > * x86 tree has been cleaned up. The owner > > * attribute is

Re: [PATCH] powerpc: Replace hardcoded offset by BREAK_INSTR_SIZE

2010-07-30 Thread Michael Ellerman
On Wed, 2010-07-28 at 11:18 +0200, Michal Simek wrote: > kgdb_handle_breakpoint checks the first arch_kgdb_breakpoint > which is not known by gdb that's why is necessary jump over > it. The jump lenght is equal to BREAK_INSTR_SIZE that's > why is cleaner to use defined macro instead of hardcoded >

Re: [PATCH 0/2] tqm85xx: enable PCMCIA bridge on ST85xx baseboards.

2010-07-30 Thread Dmitry Eremin-Solenikov
Hello, On 7/22/10, Dmitry Eremin-Solenikov wrote: > Baseboards for tqm85xx modules (STK85xx) bear TI PCI1520 PCMCIA controllers. > These two patches enables one to fully use this controller in Linux. I'm sorry, what about these two patches? -- With best wishes Dmitry _

Re: [PATCH 0/6] Remove owner field from sysfs attribute structure

2010-07-30 Thread Greg KH
On Fri, Jul 30, 2010 at 08:28:10PM +1000, Benjamin Herrenschmidt wrote: > On Fri, 2010-07-30 at 10:45 +0200, Tejun Heo wrote: > > On 07/29/2010 07:09 AM, Guenter Roeck wrote: > > > The following comment is found in include/linux/sysfs.h: > > > > > >/* FIXME > > > * The *owner field is no l

[PATCH RFC] usb gadget: introduce usb_gadget_probe_driver

2010-07-30 Thread Uwe Kleine-König
This is like usb_gadget_register_driver with the only difference that it gets the bind function as parameter instead of using driver->bind. This allows fixing section mismatches like WARNING: drivers/usb/gadget/g_printer.o(.data+0xc): Section mismatch in reference from the variabl

Re: [PATCH RFC] usb gadget: introduce usb_gadget_probe_driver

2010-07-30 Thread Michał Nazarewicz
On Fri, 30 Jul 2010 16:49:14 +0200, Uwe Kleine-König wrote: This is like usb_gadget_register_driver with the only difference that it gets the bind function as parameter instead of using driver->bind. This allows fixing section mismatches like WARNING: drivers/usb/gadget/g_printer.o(.

Re: [PATCH RFC] usb gadget: introduce usb_gadget_probe_driver

2010-07-30 Thread Uwe Kleine-König
Hello Michał, On Fri, Jul 30, 2010 at 05:16:46PM +0200, Michał Nazarewicz wrote: > On Fri, 30 Jul 2010 16:49:14 +0200, Uwe Kleine-König > wrote: > >> This is like usb_gadget_register_driver with the only difference that it >> gets the bind function as parameter instead of using driver->bind. Th

Re: [PATCH RFC] usb gadget: introduce usb_gadget_probe_driver

2010-07-30 Thread Uwe Kleine-König
On Fri, Jul 30, 2010 at 05:14:46PM +0200, Julia Lawall wrote: > > diff --git a/drivers/usb/gadget/amd5536udc.c > > b/drivers/usb/gadget/amd5536udc.c > > index 731150d..c266c1e 100644 > > --- a/drivers/usb/gadget/amd5536udc.c > > +++ b/drivers/usb/gadget/amd5536udc.c > > @@ -1954,13 +1954,14 @@ sta

Re: [PATCH RFC] usb gadget: introduce usb_gadget_probe_driver

2010-07-30 Thread Julia Lawall
> diff --git a/drivers/usb/gadget/amd5536udc.c b/drivers/usb/gadget/amd5536udc.c > index 731150d..c266c1e 100644 > --- a/drivers/usb/gadget/amd5536udc.c > +++ b/drivers/usb/gadget/amd5536udc.c > @@ -1954,13 +1954,14 @@ static int setup_ep0(struct udc *dev) > } > > /* Called by gadget driver to

Re: [PATCH RFC] usb gadget: introduce usb_gadget_probe_driver

2010-07-30 Thread Michał Nazarewicz
On Fri, 30 Jul 2010 17:26:02 +0200, Uwe Kleine-König wrote: On Fri, Jul 30, 2010 at 05:16:46PM +0200, Michał Nazarewicz wrote: On Fri, 30 Jul 2010 16:49:14 +0200, Uwe Kleine-König wrote: This is like usb_gadget_register_driver with the only difference that it gets the bind function as para

Re: [PATCH] PCI: MSI: Restore read_msi_msg_desc(); add get_cached_msi_msg_desc()

2010-07-30 Thread Jesse Barnes
On Fri, 23 Jul 2010 14:56:28 +0100 Ben Hutchings wrote: > commit 2ca1af9aa3285c6a5f103ed31ad09f7399fc65d7 "PCI: MSI: Remove > unsafe and unnecessary hardware access" changed read_msi_msg_desc() to > return the last MSI message written instead of reading it from the > device, since it may be calle

Re: ramdisk size is larger than 4MB

2010-07-30 Thread Scott Wood
On Fri, 30 Jul 2010 00:00:52 -0700 Shawn Jin wrote: > Hi, > > I have a ramdisk as RFS much larger than 4MB in a 2.4 kernel. In > recent 2.6 kernels ramdisk is no longer supported so I decided to go > with initramfs. However I found the initial RFS for initramfs is > limited to 4MB since the boot

[090/205] genirq: Deal with desc->set_type() changing desc->chip

2010-07-30 Thread Greg KH
2.6.34-stable review patch. If anyone has any objections, please let us know. -- From: Thomas Gleixner commit 4673247562e39a17e09440fa1400819522ccd446 upstream. The set_type() function can change the chip implementation when the trigger mode changes. That might result in using

[050/165] genirq: Deal with desc->set_type() changing desc->chip

2010-07-30 Thread Greg KH
2.6.32-stable review patch. If anyone has any objections, please let us know. -- From: Thomas Gleixner commit 4673247562e39a17e09440fa1400819522ccd446 upstream. The set_type() function can change the chip implementation when the trigger mode changes. That might result in using

[076/140] genirq: Deal with desc->set_type() changing desc->chip

2010-07-30 Thread Greg KH
2.6.33-stable review patch. If anyone has any objections, please let us know. -- From: Thomas Gleixner commit 4673247562e39a17e09440fa1400819522ccd446 upstream. The set_type() function can change the chip implementation when the trigger mode changes. That might result in using

Re: [PATCH RFC] usb gadget: introduce usb_gadget_probe_driver

2010-07-30 Thread David Brownell
> - The bind functions are only called at init time, so there > is no need >   to save a pointer to it. Right. Let's retain the space-saving behaviors by keeping init-only code in init sections. - Dave ___ Linuxppc-dev mailing list Linuxppc-dev@list

Re: [PATCH RFC] usb gadget: introduce usb_gadget_probe_driver

2010-07-30 Thread Uwe Kleine-König
On Fri, Jul 30, 2010 at 06:08:23PM +0200, Michał Nazarewicz wrote: > On Fri, 30 Jul 2010 17:26:02 +0200, Uwe Kleine-König > wrote: >> On Fri, Jul 30, 2010 at 05:16:46PM +0200, Michał Nazarewicz wrote: >>> On Fri, 30 Jul 2010 16:49:14 +0200, Uwe Kleine-König >>> wrote: >>> This is like usb_

[PATCH 10/15] powerpc: Replace hardcoded offset by BREAK_INSTR_SIZE

2010-07-30 Thread Jason Wessel
From: Michal Simek kgdb_handle_breakpoint checks the first arch_kgdb_breakpoint which is not known by gdb that's why is necessary jump over it. The jump lenght is equal to BREAK_INSTR_SIZE that's why is cleaner to use defined macro instead of hardcoded non-described offset. Signed-off-by: Michal

Re: [PATCH 10/15] powerpc: Replace hardcoded offset by BREAK_INSTR_SIZE

2010-07-30 Thread Benjamin Herrenschmidt
On Fri, 2010-07-30 at 14:17 -0500, Jason Wessel wrote: > From: Michal Simek > > kgdb_handle_breakpoint checks the first arch_kgdb_breakpoint > which is not known by gdb that's why is necessary jump over > it. The jump lenght is equal to BREAK_INSTR_SIZE that's > why is cleaner to use defined macr

Re: [PATCH 0/8] v3 De-couple sysfs memory directories from memory sections

2010-07-30 Thread Benjamin Herrenschmidt
On Mon, 2010-07-19 at 22:45 -0500, Nathan Fontenot wrote: > This set of patches de-couples the idea that there is a single > directory in sysfs for each memory section. The intent of the > patches is to reduce the number of sysfs directories created to > resolve a boot-time performance issue. On

Re: Which microcode patch for MPC870?

2010-07-30 Thread Shawn Jin
>> Which microcode patch should be selected for MPC870? In the old 2.4 >> kernel, the CONFIG_UCODE_PATCH was selected. What's the corresponding >> config: CONFIG_USB_SOF_UCODE_PATCH or CONFIG_I2C_SPI_UCODE_PATCH or >> CONFIG_I2C_SPI_SMC1_UCODE_PATCH? Since my board doesn't have USB, I >> believe US

Re: ramdisk size is larger than 4MB

2010-07-30 Thread Shawn Jin
>> One way to lift this limitation is to relocate the bootwrapper to >> somewhere else, say for example, 0x100 so that a 16MB initramfs >> can be loaded. If the bootwrapper is relocated, what else would be >> affected by this relocation? > > It should be fine to just change it locally.  It woul

ramdisk size is larger than 4MB

2010-07-30 Thread Shawn Jin
Hi, I have a ramdisk as RFS much larger than 4MB in a 2.4 kernel. In recent 2.6 kernels ramdisk is no longer supported so I decided to go with initramfs. However I found the initial RFS for initramfs is limited to 4MB since the bootwrapper locates at 0x40. One way to lift this limitation is t

Re: [PATCH] Adjust arch/powerpc inline asms for recent gcc change

2010-07-30 Thread Benjamin Herrenschmidt
On Thu, 2010-07-08 at 16:08 +1000, Benjamin Herrenschmidt wrote: > On Fri, 2010-06-25 at 11:56 +0200, Jakub Jelinek wrote: > > > static inline void sync(void) > > diff --git a/arch/powerpc/include/asm/atomic.h > > b/arch/powerpc/include/asm/atomic.h > > index b8f152e..288d8b2 100644 > > --- a/ar

Re: [PATCH 3/3 v2] mmc: Add ESDHC weird voltage bits workaround

2010-07-30 Thread Anton Vorontsov
On Fri, Jul 30, 2010 at 11:52:57AM +0800, Roy Zang wrote: > P4080 ESDHC controller does not support 1.8V and 3.0V voltage. but the > host controller capabilities register wrongly set the bits. > This patch adds the workaround to correct the weird voltage setting bits. > > Signed-off-by: Roy Zang

Re: [PATCH] Adjust arch/powerpc inline asms for recent gcc change

2010-07-30 Thread Jakub Jelinek
On Fri, Jul 30, 2010 at 05:04:46PM +1000, Benjamin Herrenschmidt wrote: > On Thu, 2010-07-08 at 16:08 +1000, Benjamin Herrenschmidt wrote: > > On Fri, 2010-06-25 at 11:56 +0200, Jakub Jelinek wrote: > > > > > static inline void sync(void) > > > diff --git a/arch/powerpc/include/asm/atomic.h > >

Re: [PATCH 1/3] mmc: Auto CMD12 support for eSDHC driver

2010-07-30 Thread Anton Vorontsov
On Wed, Jul 28, 2010 at 01:42:33PM +0800, Roy Zang wrote: [...] > + if (host->quirks & SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12) > + if (mrq->stop) { > + mrq->data->stop = NULL; > + mrq->stop = NULL; > + } Please put additional curly br

Re: [PATCH 2/3] dts: Add sdhci-auto-cmd12 field for p4080 device tree

2010-07-30 Thread Anton Vorontsov
On Wed, Jul 28, 2010 at 01:44:47PM +0800, Roy Zang wrote: > Signed-off-by: Roy Zang > --- > arch/powerpc/boot/dts/p4080ds.dts |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/arch/powerpc/boot/dts/p4080ds.dts > b/arch/powerpc/boot/dts/p4080ds.dts > index 6b29eab..11

Re: [PATCH 3/3] mmc: Add ESDHC weird register workaround

2010-07-30 Thread Anton Vorontsov
On Wed, Jul 28, 2010 at 05:43:00PM +0800, Zang Roy-R61911 wrote: [...] > > > + /* The default value of DMAS bits of Protocol Control > > Register is not > > > + * correct. clear these two bits to use simple DMA */ > > > +#define ESDHCI_CTRL_DMAS_MASK 0xFCFF > > > + if (host->quirks

Re: [PATCH] Adjust arch/powerpc inline asms for recent gcc change

2010-07-30 Thread Benjamin Herrenschmidt
On Fri, 2010-07-30 at 09:19 +0200, Jakub Jelinek wrote: > So, in short, I'm afraid "m<>" needs to be used only for GCC 4.6+ > (and, vendors which backported the inline-asm handling changes > to their older gcc would need to adjust for their gccs too). > When "m<>" isn't used, it just leads to poten

[PATCH] Use is_32bit_task() helper to test 32 bit binary

2010-07-30 Thread Denis Kirjanov
Use is_32bit_task() helper to test 32 bit binary. Signed-off-by: Denis Kirjanov --- arch/powerpc/kernel/process.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 43855c9..e7dffbf 100644 --- a/arch/p

Re: [PATCH 0/6] Remove owner field from sysfs attribute structure

2010-07-30 Thread Tejun Heo
On 07/29/2010 07:09 AM, Guenter Roeck wrote: > The following comment is found in include/linux/sysfs.h: > >/* FIXME > * The *owner field is no longer used. > * x86 tree has been cleaned up. The owner > * attribute is still left for other arches. > */ > > As it turns out, the *

Re: [PATCH 1/4] irq: Add new IRQ flag IRQF_NO_SUSPEND

2010-07-30 Thread Benjamin Herrenschmidt
On Thu, 2010-07-29 at 11:16 +0100, Ian Campbell wrote: > A small number of users of IRQF_TIMER are using it for the implied no > suspend behaviour on interrupts which are not timer interrupts. > > Therefore add a new IRQF_NO_SUSPEND flag, rename IRQF_TIMER to > __IRQF_TIMER and redefine IRQF_TIMER