Re: [PATCH] USB: initialize or shutdown PHY when add or remove host controller

2013-06-18 Thread Chao Xie
On Tue, Jun 18, 2013 at 4:48 PM, Felipe Balbi wrote: > Hi, > > On Tue, Jun 18, 2013 at 11:45:05AM +0300, Roger Quadros wrote: >> > this looks wrong for two reasons: >> > >> > a) you're not grabbing the PHY here. >> > >> > You can't just assume another entity grabbed

[PATCH] USB: initialize or shutdown PHY when add or remove host controller

2013-06-18 Thread Chao Xie
Some controller need software to initialize PHY before add host controller, and shut down PHY after remove host controller. Add the generic code for these controllers so they do not need do it in its own host controller driver. Signed-off-by: Chao Xie --- drivers/usb/core/hcd.c | 19

[PATCH V2] USB: initialize or shutdown PHY when add or remove host controller

2013-06-18 Thread Chao Xie
Some controller need software to initialize PHY before add host controller, and shut down PHY after remove host controller. Add the generic code for these controllers so they do not need do it in its own host controller driver. Signed-off-by: Chao Xie chao@marvell.com --- drivers/usb/core

Re: [PATCH V2] USB: initialize or shutdown PHY when add or remove host controller

2013-06-18 Thread Chao Xie
On Wed, Jun 19, 2013 at 10:48 AM, Greg KH gre...@linuxfoundation.org wrote: On Tue, Jun 18, 2013 at 10:31:20PM -0400, Chao Xie wrote: Some controller need software to initialize PHY before add host controller, and shut down PHY after remove host controller. Add the generic code

[PATCH] USB: initialize or shutdown PHY when add or remove host controller

2013-06-18 Thread Chao Xie
Some controller need software to initialize PHY before add host controller, and shut down PHY after remove host controller. Add the generic code for these controllers so they do not need do it in its own host controller driver. Signed-off-by: Chao Xie chao@marvell.com --- drivers/usb/core

Re: [PATCH] USB: initialize or shutdown PHY when add or remove host controller

2013-06-18 Thread Chao Xie
On Tue, Jun 18, 2013 at 4:48 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Tue, Jun 18, 2013 at 11:45:05AM +0300, Roger Quadros wrote: this looks wrong for two reasons: a) you're not grabbing the PHY here. You can't just assume another entity grabbed your PHY for you. Isn't

[PATCH V3 2/5] arm: mmp: use matrix_keymap for all boards

2013-06-17 Thread Chao Xie
Compile passed for the configuration pxa168_defconfig aspenite.c(MACH_ASPENITE), teton_bgs.c(MACH_TENTON_BGA) Signed-off-by: Chao Xie --- arch/arm/mach-mmp/aspenite.c | 10 +++--- arch/arm/mach-mmp/teton_bga.c | 10 +++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff

[PATCH V3 0/5] input: pxa27x-keypad: enhancement and device tree support

2013-06-17 Thread Chao Xie
keypad under mach-pxa. The patch "arm: pxa: use matrix_keymap for all boards" is new. The patch "arm: mmp: use matrix_keymap for all boards" merges previous changes for aspenite and teton_bga. All other patches are not modified. Chao Xie (5): input: pxa27x-keypad: use matrix_key

[PATCH V3 3/5] arm: pxa: use matrix_keymap for all boards

2013-06-17 Thread Chao Xie
(MACH_PALMTX), palmz72.c(MACH_PALMZ72), palmt5.c(MACH_PALMT5) pxa3xx_defconfig littleton.c(MACH_LITTLETON), tarvorevb.c(MACH_TAVOREVB), zylonite.c(MACH_ZYLONITE320), mioa701.c(MACH_MIOA701), z2.c(MACH_ZIPIT2) mainstone_defconfig maintone.c(MACH_MAINSTONE) Signed-off-by: Chao Xie --- arch/arm

[PATCH V3 5/5] input: pxa27x-keypad: add device tree support

2013-06-17 Thread Chao Xie
Signed-off-by: Chao Xie --- .../devicetree/bindings/input/pxa27x-keypad.txt| 60 + drivers/input/keyboard/pxa27x_keypad.c | 232 +++- 2 files changed, 288 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/pxa27x

[PATCH V3 4/5] input: pxa27x-keypad: remove the unused members at platform data

2013-06-17 Thread Chao Xie
Now pxa27x-keypad make use matrix_keymap for matrix keyes, so remove the unused members in platform data. Signed-off-by: Chao Xie --- include/linux/platform_data/keypad-pxa27x.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/include/linux/platform_data/keypad-pxa27x.h

[PATCH V3 1/5] input: pxa27x-keypad: use matrix_keymap for matrix keyes

2013-06-17 Thread Chao Xie
pxa27x-keypad includes matrix keyes. Make use of matrix_keymap for the matrix keyes. Signed-off-by: Chao Xie --- drivers/input/keyboard/Kconfig |1 + drivers/input/keyboard/pxa27x_keypad.c | 36 +- include/linux/platform_data/keypad-pxa27x.h

Re: [PATCH V2 4/5] input: pxa27x-keypad: remove the unused members at platform data

2013-06-17 Thread Chao Xie
On Tue, Jun 18, 2013 at 1:07 AM, Dmitry Torokhov wrote: > On Monday, June 17, 2013 03:10:27 PM Arnd Bergmann wrote: >> On Sunday 05 May 2013 23:04:07 Chao Xie wrote: >> > Now pxa27x-keypad make use matrix_keymap for matrix keyes, so >> > remove the unus

Re: [PATCH V2 4/5] input: pxa27x-keypad: remove the unused members at platform data

2013-06-17 Thread Chao Xie
On Tue, Jun 18, 2013 at 1:07 AM, Dmitry Torokhov dmitry.torok...@gmail.com wrote: On Monday, June 17, 2013 03:10:27 PM Arnd Bergmann wrote: On Sunday 05 May 2013 23:04:07 Chao Xie wrote: Now pxa27x-keypad make use matrix_keymap for matrix keyes, so remove the unused members in platform data

[PATCH V3 1/5] input: pxa27x-keypad: use matrix_keymap for matrix keyes

2013-06-17 Thread Chao Xie
pxa27x-keypad includes matrix keyes. Make use of matrix_keymap for the matrix keyes. Signed-off-by: Chao Xie chao@marvell.com --- drivers/input/keyboard/Kconfig |1 + drivers/input/keyboard/pxa27x_keypad.c | 36 +- include/linux/platform_data

[PATCH V3 4/5] input: pxa27x-keypad: remove the unused members at platform data

2013-06-17 Thread Chao Xie
Now pxa27x-keypad make use matrix_keymap for matrix keyes, so remove the unused members in platform data. Signed-off-by: Chao Xie chao@marvell.com --- include/linux/platform_data/keypad-pxa27x.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/include/linux

[PATCH V3 3/5] arm: pxa: use matrix_keymap for all boards

2013-06-17 Thread Chao Xie
(MACH_PALMTX), palmz72.c(MACH_PALMZ72), palmt5.c(MACH_PALMT5) pxa3xx_defconfig littleton.c(MACH_LITTLETON), tarvorevb.c(MACH_TAVOREVB), zylonite.c(MACH_ZYLONITE320), mioa701.c(MACH_MIOA701), z2.c(MACH_ZIPIT2) mainstone_defconfig maintone.c(MACH_MAINSTONE) Signed-off-by: Chao Xie chao

[PATCH V3 5/5] input: pxa27x-keypad: add device tree support

2013-06-17 Thread Chao Xie
Signed-off-by: Chao Xie chao@marvell.com --- .../devicetree/bindings/input/pxa27x-keypad.txt| 60 + drivers/input/keyboard/pxa27x_keypad.c | 232 +++- 2 files changed, 288 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree

[PATCH V3 0/5] input: pxa27x-keypad: enhancement and device tree support

2013-06-17 Thread Chao Xie
under mach-pxa. The patch arm: pxa: use matrix_keymap for all boards is new. The patch arm: mmp: use matrix_keymap for all boards merges previous changes for aspenite and teton_bga. All other patches are not modified. Chao Xie (5): input: pxa27x-keypad: use matrix_keymap for matrix keyes arm: mmp

[PATCH V3 2/5] arm: mmp: use matrix_keymap for all boards

2013-06-17 Thread Chao Xie
Compile passed for the configuration pxa168_defconfig aspenite.c(MACH_ASPENITE), teton_bgs.c(MACH_TENTON_BGA) Signed-off-by: Chao Xie chao@marvell.com --- arch/arm/mach-mmp/aspenite.c | 10 +++--- arch/arm/mach-mmp/teton_bga.c | 10 +++--- 2 files changed, 14 insertions(+), 6

Re: [PATCH v2] ARM: mmp: bring up pxa988 with device tree support

2013-06-16 Thread Chao Xie
On Fri, Jun 14, 2013 at 8:56 PM, Arnd Bergmann wrote: > On Friday 14 June 2013 17:15:33 Chao Xie wrote: >> On Mon, Jun 10, 2013 at 4:35 PM, Arnd Bergmann wrote: > >> > I guess that is a problem we have on other platforms as well, we should >> > find a generic solut

Re: [PATCH v2] ARM: mmp: bring up pxa988 with device tree support

2013-06-16 Thread Chao Xie
On Fri, Jun 14, 2013 at 8:56 PM, Arnd Bergmann a...@arndb.de wrote: On Friday 14 June 2013 17:15:33 Chao Xie wrote: On Mon, Jun 10, 2013 at 4:35 PM, Arnd Bergmann a...@arndb.de wrote: I guess that is a problem we have on other platforms as well, we should find a generic solution

Re: [PATCH v2] ARM: mmp: bring up pxa988 with device tree support

2013-06-14 Thread Chao Xie
On Mon, Jun 10, 2013 at 4:35 PM, Arnd Bergmann wrote: > >> >> > __initdata = { >> >> > > .virtual= (unsigned long)AXI_VIRT_BASE, >> >> > > .length = AXI_PHYS_SIZE, >> >> > > .type = MT_DEVICE, >> >> > > - }, >> >> > > + }, { >> >> > > +

Re: [PATCH v2] ARM: mmp: bring up pxa988 with device tree support

2013-06-14 Thread Chao Xie
On Mon, Jun 10, 2013 at 4:35 PM, Arnd Bergmann a...@arndb.de wrote: __initdata = { .virtual= (unsigned long)AXI_VIRT_BASE, .length = AXI_PHYS_SIZE, .type = MT_DEVICE, - }, + }, { + .pfn=

[PATCH V2 9/9] mfd: 88pm800: add regulator sub device

2013-06-13 Thread Chao Xie
Signed-off-by: Chao Xie --- drivers/mfd/88pm800.c | 28 include/linux/mfd/88pm80x.h |8 2 files changed, 36 insertions(+), 0 deletions(-) diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index 35c7fe8..ec9d815 100644 --- a/drivers/mfd

[PATCH V2 0/9] mfd: 88pm80x: bug fixes and enhancement

2013-06-13 Thread Chao Xie
mfd: 88pm800/88pm805: remove "IRQF_TRIGGER_FALLING" flag Other patches are new. Chao Xie (7): mfd: 88pm80x: fix driver name for 88pm800 and 88pm805 mfd: 88pm800: fix for mask_invert mfd: 88pm800: remove the power and gpadc page addr from platform data mfd: 88pm800: fixes error handling

[PATCH V2 7/9] mfd: 88pm80x: Changes chip id definition and detection

2013-06-13 Thread Chao Xie
Change the chip id definition and detection. It brings the benefits 1. do not need add PM800_CHIP_XXX for the coming revision. 2. do not need pass driver_data in i2c_device_id because we can distinguish the chips by CHIP_ID register. Signed-off-by: Chao Xie --- drivers/mfd/88pm800.c

[PATCH V2 1/9] mfd: 88pm800: fix NULL pointer error

2013-06-13 Thread Chao Xie
From: Yi Zhang move "device_800_init" to fix NULL pointer error when calling "device_gpadc_init" for "device_gpadc_init" needs "subchip->regmap_gpadc" to set registers via regmap interface Signed-off-by: Yi Zhang Signed-off-by: Chao Xie --- drivers

[PATCH V2 6/9] mfd: 88pm800: fixes error handling for sub pages probe/remove

2013-06-13 Thread Chao Xie
pm800_pages_init and pm800_pages_exit are called by pm800_probe. Change the code to enhance error handling and remove unused code at pm800_pages_init/exit and pm800_probe. Signed-off-by: Yi Zhang Signed-off-by: Chao Xie --- drivers/mfd/88pm800.c | 80

[PATCH V2 8/9] mfd: 88pm800: enhance sub devices initialization

2013-06-13 Thread Chao Xie
Separate the devices initialization into different functions. It makes the probe function clearly. Signed-off-by: Chao Xie --- drivers/mfd/88pm800.c | 61 +--- 1 files changed, 42 insertions(+), 19 deletions(-) diff --git a/drivers/mfd/88pm800.c b

[PATCH V2 2/9] mfd: 88pm80x: fix driver name for 88pm800 and 88pm805

2013-06-13 Thread Chao Xie
88pm800 has same driver name as 88pm805. Fix it. Signed-off-by: Chao Xie --- drivers/mfd/88pm800.c |2 +- drivers/mfd/88pm805.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index b2f9f0f..0801049 100644 --- a/drivers

[PATCH V2 4/9] mfd: 88pm800/88pm805: remove "IRQF_TRIGGER_FALLING" flag

2013-06-13 Thread Chao Xie
From: Yi Zhang 88pm800/88pm805 interrupt is asserted low if the events happened. So remove IRQF_TRIGGER_FALLING for irq request. How the interrupt is connected to SOC chip depends on the board design. So do not set IRQF_TRIGGER flags. Signed-off-by: Yi Zhang Signed-off-by: Chao Xie

[PATCH V2 3/9] mfd: 88pm800: fix for mask_invert

2013-06-13 Thread Chao Xie
mask_invert must be set. Or interrupt cannot be cleared. Signed-off-by: Chao Xie --- drivers/mfd/88pm800.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index 0801049..cca63f2 100644 --- a/drivers/mfd/88pm800.c +++ b

[PATCH V2 5/9] mfd: 88pm800: remove the power and gpadc page addr from platform data

2013-06-13 Thread Chao Xie
88pm800 has two addtional pages - power and gpadc. The address of the pages depends on the address of 88pm800. So do not need pass the address of the power and gpadc in platform data. Signed-off-by: Chao Xie --- drivers/mfd/88pm800.c |5 +++-- include/linux/mfd/88pm80x.h |2 -- 2

[PATCH V2 4/9] mfd: 88pm800/88pm805: remove IRQF_TRIGGER_FALLING flag

2013-06-13 Thread Chao Xie
...@marvell.com Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm800.c |2 +- drivers/mfd/88pm805.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index cca63f2..d2951d7 100644 --- a/drivers/mfd/88pm800.c +++ b/drivers

[PATCH V2 3/9] mfd: 88pm800: fix for mask_invert

2013-06-13 Thread Chao Xie
mask_invert must be set. Or interrupt cannot be cleared. Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm800.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index 0801049..cca63f2 100644 --- a/drivers/mfd

[PATCH V2 5/9] mfd: 88pm800: remove the power and gpadc page addr from platform data

2013-06-13 Thread Chao Xie
88pm800 has two addtional pages - power and gpadc. The address of the pages depends on the address of 88pm800. So do not need pass the address of the power and gpadc in platform data. Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm800.c |5 +++-- include/linux/mfd

[PATCH V2 2/9] mfd: 88pm80x: fix driver name for 88pm800 and 88pm805

2013-06-13 Thread Chao Xie
88pm800 has same driver name as 88pm805. Fix it. Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm800.c |2 +- drivers/mfd/88pm805.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index b2f9f0f..0801049

[PATCH V2 8/9] mfd: 88pm800: enhance sub devices initialization

2013-06-13 Thread Chao Xie
Separate the devices initialization into different functions. It makes the probe function clearly. Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm800.c | 61 +--- 1 files changed, 42 insertions(+), 19 deletions(-) diff --git

[PATCH V2 6/9] mfd: 88pm800: fixes error handling for sub pages probe/remove

2013-06-13 Thread Chao Xie
pm800_pages_init and pm800_pages_exit are called by pm800_probe. Change the code to enhance error handling and remove unused code at pm800_pages_init/exit and pm800_probe. Signed-off-by: Yi Zhang yizh...@marvell.com Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm800.c | 80

[PATCH V2 0/9] mfd: 88pm80x: bug fixes and enhancement

2013-06-13 Thread Chao Xie
/88pm805: remove IRQF_TRIGGER_FALLING flag Other patches are new. Chao Xie (7): mfd: 88pm80x: fix driver name for 88pm800 and 88pm805 mfd: 88pm800: fix for mask_invert mfd: 88pm800: remove the power and gpadc page addr from platform data mfd: 88pm800: fixes error handling for sub pages

[PATCH V2 7/9] mfd: 88pm80x: Changes chip id definition and detection

2013-06-13 Thread Chao Xie
Change the chip id definition and detection. It brings the benefits 1. do not need add PM800_CHIP_XXX for the coming revision. 2. do not need pass driver_data in i2c_device_id because we can distinguish the chips by CHIP_ID register. Signed-off-by: Chao Xie chao@marvell.com --- drivers

[PATCH V2 1/9] mfd: 88pm800: fix NULL pointer error

2013-06-13 Thread Chao Xie
From: Yi Zhang yizh...@marvell.com move device_800_init to fix NULL pointer error when calling device_gpadc_init for device_gpadc_init needs subchip-regmap_gpadc to set registers via regmap interface Signed-off-by: Yi Zhang yizh...@marvell.com Signed-off-by: Chao Xie chao@marvell.com

[PATCH V2 9/9] mfd: 88pm800: add regulator sub device

2013-06-13 Thread Chao Xie
Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm800.c | 28 include/linux/mfd/88pm80x.h |8 2 files changed, 36 insertions(+), 0 deletions(-) diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index 35c7fe8..ec9d815

Re: [PATCH V2 0/5] input: pxa27x-keypad: enhancement and device tree support

2013-06-12 Thread Chao Xie
hi, Dmitry What are the status for these patches? Thanks. On Wed, May 15, 2013 at 2:40 PM, Dmitry Torokhov wrote: > Hi Chao, > > On Mon, May 13, 2013 at 04:02:07PM +0800, Chao Xie wrote: >> hi, dmitry >> What is your idea about these patches? >> Do i need add

Re: [PATCH V2 0/5] input: pxa27x-keypad: enhancement and device tree support

2013-06-12 Thread Chao Xie
hi, Dmitry What are the status for these patches? Thanks. On Wed, May 15, 2013 at 2:40 PM, Dmitry Torokhov dmitry.torok...@gmail.com wrote: Hi Chao, On Mon, May 13, 2013 at 04:02:07PM +0800, Chao Xie wrote: hi, dmitry What is your idea about these patches? Do i need add someone else

Re: [PATCH v2] ARM: mmp: bring up pxa988 with device tree support

2013-06-07 Thread Chao Xie
hi, Arnd Thanks for your review. On Fri, Jun 7, 2013 at 12:26 AM, Arnd Bergmann wrote: > On Thursday 06 June 2013, Neil Zhang wrote: >> > > diff --git a/arch/arm/mach-mmp/Kconfig b/arch/arm/mach-mmp/Kconfig >> > > index ebdda83..0955191 100644 >> > > --- a/arch/arm/mach-mmp/Kconfig >> > > +++

Re: [PATCH v2] ARM: mmp: bring up pxa988 with device tree support

2013-06-07 Thread Chao Xie
hi, Arnd Thanks for your review. On Fri, Jun 7, 2013 at 12:26 AM, Arnd Bergmann a...@arndb.de wrote: On Thursday 06 June 2013, Neil Zhang wrote: diff --git a/arch/arm/mach-mmp/Kconfig b/arch/arm/mach-mmp/Kconfig index ebdda83..0955191 100644 --- a/arch/arm/mach-mmp/Kconfig +++

RE: [PATCH] regulator: 88pm800: add regulator driver

2013-05-28 Thread Chao Xie
> -Original Message- > From: Mark Brown [mailto:broo...@kernel.org] > Sent: Tuesday, May 28, 2013 6:04 PM > To: yi zhang > Cc: Liam Girdwood; Chao Xie; jett.z...@marvell.com; > linux-kernel@vger.kernel.org; Yi Zhang > Subject: Re: [PATCH] regulator: 88pm800:

RE: [PATCH] regulator: 88pm800: add regulator driver

2013-05-28 Thread Chao Xie
-Original Message- From: Mark Brown [mailto:broo...@kernel.org] Sent: Tuesday, May 28, 2013 6:04 PM To: yi zhang Cc: Liam Girdwood; Chao Xie; jett.z...@marvell.com; linux-kernel@vger.kernel.org; Yi Zhang Subject: Re: [PATCH] regulator: 88pm800: add regulator driver On Tue, May

Re: [PATCH V4 3/3] pwm: pxa: add device tree support

2013-05-20 Thread Chao Xie
hi, Thierry Eric has acked all the patches. So can you help to merge them? Thanks. On Mon, May 13, 2013 at 2:20 PM, Eric Miao wrote: > On Mon, May 13, 2013 at 1:04 PM, Chao Xie wrote: >>>> + const struct of_device_id *of_id = >>>> + of_ma

Re: [PATCH V4 3/3] pwm: pxa: add device tree support

2013-05-20 Thread Chao Xie
hi, Thierry Eric has acked all the patches. So can you help to merge them? Thanks. On Mon, May 13, 2013 at 2:20 PM, Eric Miao eric.y.m...@gmail.com wrote: On Mon, May 13, 2013 at 1:04 PM, Chao Xie xiechao.m...@gmail.com wrote: + const struct of_device_id *of_id

Re: [PATCH V2 0/5] input: pxa27x-keypad: enhancement and device tree support

2013-05-13 Thread Chao Xie
hi, dmitry What is your idea about these patches? Do i need add someone else to review them? On Mon, May 6, 2013 at 11:04 AM, Chao Xie wrote: > The patches include 2 parts > 1. use matrix_keypad for matrix keyes support > 2. add device tree support for pxa27x-keypad > > V2->

Re: [PATCH V2 0/5] input: pxa27x-keypad: enhancement and device tree support

2013-05-13 Thread Chao Xie
hi, dmitry What is your idea about these patches? Do i need add someone else to review them? On Mon, May 6, 2013 at 11:04 AM, Chao Xie chao@marvell.com wrote: The patches include 2 parts 1. use matrix_keypad for matrix keyes support 2. add device tree support for pxa27x-keypad V2-V1: Do

Re: [PATCH V4 3/3] pwm: pxa: add device tree support

2013-05-12 Thread Chao Xie
>> + const struct of_device_id *of_id = >> + of_match_device(pxa_pwm_of_match, >dev); >> + unsigned int npwm; >> + >> + if (!of_id) >> + return -ENODEV; >> + >> + npwm = (unsigned int)of_id->data; >> + pwm->chip.npwm = (npwm &

Re: [PATCH V4 3/3] pwm: pxa: add device tree support

2013-05-12 Thread Chao Xie
+ const struct of_device_id *of_id = + of_match_device(pxa_pwm_of_match, pdev-dev); + unsigned int npwm; + + if (!of_id) + return -ENODEV; + + npwm = (unsigned int)of_id-data; + pwm-chip.npwm = (npwm HAS_SECONDARY_PWM) ? 2

[PATCH 0/2] rtc: pxa: add pxa95x rtc support

2013-05-06 Thread Chao Xie
The patch series remove the incorrect patch, and submit the correct one. Chao Xie (2): Revert "drivers/rtc/rtc-pxa.c: fix set time sync time issue" rtc: pxa: add pxa95x rtc support drivers/rtc/rtc-pxa.c | 141 +++ include/linux/rtc-px

[PATCH 1/2] Revert "drivers/rtc/rtc-pxa.c: fix set time sync time issue"

2013-05-06 Thread Chao Xie
This patch have something wrong. 1.The pxa_sync_time API is not needed. The RTC sync can be done by user space applications, so in kernel this API is not needed. 2.The pxa_rtc_open can not be deleted. This change has been declined during review at the mail list 3.Based on specification and talked

[PATCH 2/2] rtc: pxa: add pxa95x rtc support

2013-05-06 Thread Chao Xie
the pxa95x rtc need access PBSR register before write to RTTR, RCNR, RDCR, and RYCR registers. Signed-off-by: Chao Xie --- drivers/rtc/rtc-pxa.c | 96 ++-- 1 files changed, 84 insertions(+), 12 deletions(-) diff --git a/drivers/rtc/rtc-pxa.c b

[PATCH V2 5/5] input: pxa27x-keypad: add device tree support

2013-05-05 Thread Chao Xie
Signed-off-by: Chao Xie --- .../devicetree/bindings/input/pxa27x-keypad.txt| 60 + drivers/input/keyboard/pxa27x_keypad.c | 232 +++- 2 files changed, 288 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/pxa27x

[PATCH V2 0/5] input: pxa27x-keypad: enhancement and device tree support

2013-05-05 Thread Chao Xie
The patches include 2 parts 1. use matrix_keypad for matrix keyes support 2. add device tree support for pxa27x-keypad V2->V1: Do not copy the members from pdata. For device tree support, directly allocate the pdata structure. Chao Xie (5): input: pxa27x-keypad: use matrix_keymap for mat

[PATCH V2 2/5] arm: mmp: use matrix_keymap for aspenite

2013-05-05 Thread Chao Xie
Signed-off-by: Chao Xie --- arch/arm/mach-mmp/aspenite.c | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-mmp/aspenite.c b/arch/arm/mach-mmp/aspenite.c index 9f64d56..1e23346 100644 --- a/arch/arm/mach-mmp/aspenite.c +++ b/arch/arm/mach-mmp

[PATCH V2 3/5] arm: mmp: use matrix_keymap for teton_bga

2013-05-05 Thread Chao Xie
Signed-off-by: Chao Xie --- arch/arm/mach-mmp/teton_bga.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mmp/teton_bga.c b/arch/arm/mach-mmp/teton_bga.c index 8609967..d8967fa 100644 --- a/arch/arm/mach-mmp/teton_bga.c +++ b/arch/arm/mach-mmp

[PATCH V2 4/5] input: pxa27x-keypad: remove the unused members at platform data

2013-05-05 Thread Chao Xie
Now pxa27x-keypad make use matrix_keymap for matrix keyes, so remove the unused members in platform data. Signed-off-by: Chao Xie --- include/linux/platform_data/keypad-pxa27x.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/include/linux/platform_data/keypad-pxa27x.h

[PATCH V2 1/5] input: pxa27x-keypad: use matrix_keymap for matrix keyes

2013-05-05 Thread Chao Xie
pxa27x-keypad includes matrix keyes. Make use of matrix_keymap for the matrix keyes. Signed-off-by: Chao Xie --- drivers/input/keyboard/Kconfig |1 + drivers/input/keyboard/pxa27x_keypad.c | 36 +- include/linux/platform_data/keypad-pxa27x.h

[PATCH V4 2/3] pwm: pxa: use module_platform_driver()

2013-05-05 Thread Chao Xie
if the PWM device is not probed. The driver based on PWM driver can make use of -EPROBE_DEFER to delay its probing. So arch_initcall can be replaced by module_platform_driver. Signed-off-by: Chao Xie --- drivers/pwm/pwm-pxa.c | 12 +--- 1 files changed, 1 insertions(+), 11 deletions

[PATCH V4 3/3] pwm: pxa: add device tree support

2013-05-05 Thread Chao Xie
Add the deice tree support for pwm-pxa. Signed-off-by: Chao Xie --- drivers/pwm/pwm-pxa.c | 52 - 1 files changed, 51 insertions(+), 1 deletions(-) diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index aa4bea7..c8d59a2 100644

[PATCH V4 0/3] pwm: pxa: bug fix and device tree support

2013-05-05 Thread Chao Xie
err = parse_pdata(); } if (err < 0) return err; Chao Xie (3): pwm: pxa: ARCH_MMP share same pwm driver with ARCH_PXA pwm: pxa: use module_platform_driver() pwm: pxa: add device tree support drivers/pwm/Kconfig |2 +- drivers/pwm/pwm-pxa.c | 64 +++

[PATCH V4 1/3] pwm: pxa: ARCH_MMP share same pwm driver with ARCH_PXA

2013-05-05 Thread Chao Xie
The PWM driver is not only used by ARCH_PXA but also ARCH_MMP. Signed-off-by: Chao Xie --- drivers/pwm/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 115b644..9ec4040 100644 --- a/drivers/pwm/Kconfig +++ b

[PATCH V4 0/3] pwm: pxa: bug fix and device tree support

2013-05-05 Thread Chao Xie
; Chao Xie (3): pwm: pxa: ARCH_MMP share same pwm driver with ARCH_PXA pwm: pxa: use module_platform_driver() pwm: pxa: add device tree support drivers/pwm/Kconfig |2 +- drivers/pwm/pwm-pxa.c | 64 +++- 2 files changed, 53 insertions(+), 13

[PATCH V4 1/3] pwm: pxa: ARCH_MMP share same pwm driver with ARCH_PXA

2013-05-05 Thread Chao Xie
The PWM driver is not only used by ARCH_PXA but also ARCH_MMP. Signed-off-by: Chao Xie chao@marvell.com --- drivers/pwm/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 115b644..9ec4040 100644 --- a/drivers/pwm

[PATCH V4 2/3] pwm: pxa: use module_platform_driver()

2013-05-05 Thread Chao Xie
if the PWM device is not probed. The driver based on PWM driver can make use of -EPROBE_DEFER to delay its probing. So arch_initcall can be replaced by module_platform_driver. Signed-off-by: Chao Xie chao@marvell.com --- drivers/pwm/pwm-pxa.c | 12 +--- 1 files changed, 1 insertions

[PATCH V4 3/3] pwm: pxa: add device tree support

2013-05-05 Thread Chao Xie
Add the deice tree support for pwm-pxa. Signed-off-by: Chao Xie chao@marvell.com --- drivers/pwm/pwm-pxa.c | 52 - 1 files changed, 51 insertions(+), 1 deletions(-) diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index aa4bea7

[PATCH V2 1/5] input: pxa27x-keypad: use matrix_keymap for matrix keyes

2013-05-05 Thread Chao Xie
pxa27x-keypad includes matrix keyes. Make use of matrix_keymap for the matrix keyes. Signed-off-by: Chao Xie chao@marvell.com --- drivers/input/keyboard/Kconfig |1 + drivers/input/keyboard/pxa27x_keypad.c | 36 +- include/linux/platform_data

[PATCH V2 4/5] input: pxa27x-keypad: remove the unused members at platform data

2013-05-05 Thread Chao Xie
Now pxa27x-keypad make use matrix_keymap for matrix keyes, so remove the unused members in platform data. Signed-off-by: Chao Xie chao@marvell.com --- include/linux/platform_data/keypad-pxa27x.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/include/linux

[PATCH V2 3/5] arm: mmp: use matrix_keymap for teton_bga

2013-05-05 Thread Chao Xie
Signed-off-by: Chao Xie chao@marvell.com --- arch/arm/mach-mmp/teton_bga.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mmp/teton_bga.c b/arch/arm/mach-mmp/teton_bga.c index 8609967..d8967fa 100644 --- a/arch/arm/mach-mmp/teton_bga.c +++ b/arch

[PATCH V2 0/5] input: pxa27x-keypad: enhancement and device tree support

2013-05-05 Thread Chao Xie
The patches include 2 parts 1. use matrix_keypad for matrix keyes support 2. add device tree support for pxa27x-keypad V2-V1: Do not copy the members from pdata. For device tree support, directly allocate the pdata structure. Chao Xie (5): input: pxa27x-keypad: use matrix_keymap for matrix

[PATCH V2 2/5] arm: mmp: use matrix_keymap for aspenite

2013-05-05 Thread Chao Xie
Signed-off-by: Chao Xie chao@marvell.com --- arch/arm/mach-mmp/aspenite.c | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-mmp/aspenite.c b/arch/arm/mach-mmp/aspenite.c index 9f64d56..1e23346 100644 --- a/arch/arm/mach-mmp/aspenite.c +++ b/arch

[PATCH V2 5/5] input: pxa27x-keypad: add device tree support

2013-05-05 Thread Chao Xie
Signed-off-by: Chao Xie chao@marvell.com --- .../devicetree/bindings/input/pxa27x-keypad.txt| 60 + drivers/input/keyboard/pxa27x_keypad.c | 232 +++- 2 files changed, 288 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree

[PATCH 2/6] input: pxa27x-keypad: use matrix_keymap for matrix keyes

2013-04-23 Thread Chao Xie
pxa27x-keypad includes matrix keyes. Make use of matrix_keymap for the matrix keyes. Signed-off-by: Chao Xie --- drivers/input/keyboard/Kconfig |1 + drivers/input/keyboard/pxa27x_keypad.c | 29 +++--- include/linux/platform_data/keypad-pxa27x.h

[PATCH 0/6] input: pxa27x-keypad: enhancement and device tree support

2013-04-23 Thread Chao Xie
matrix_keypad for matrix keyes support 3. add device tree support for pxa27x-keypad Chao Xie (6): input: pxa27x-keypad: copy members of platform data to device private data input: pxa27x-keypad: use matrix_keymap for matrix keyes arm: mmp: use matrix_keymap for aspenite arm: mmp: use

[PATCH 3/6] arm: mmp: use matrix_keymap for aspenite

2013-04-23 Thread Chao Xie
Signed-off-by: Chao Xie --- arch/arm/mach-mmp/aspenite.c | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-mmp/aspenite.c b/arch/arm/mach-mmp/aspenite.c index 9f64d56..1e23346 100644 --- a/arch/arm/mach-mmp/aspenite.c +++ b/arch/arm/mach-mmp

[PATCH 4/6] arm: mmp: use matrix_keymap for teton_bga

2013-04-23 Thread Chao Xie
Signed-off-by: Chao Xie --- arch/arm/mach-mmp/teton_bga.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mmp/teton_bga.c b/arch/arm/mach-mmp/teton_bga.c index 8609967..d8967fa 100644 --- a/arch/arm/mach-mmp/teton_bga.c +++ b/arch/arm/mach-mmp

[PATCH 6/6] input: pxa27x-keypad: add device tree support

2013-04-23 Thread Chao Xie
Signed-off-by: Chao Xie --- .../devicetree/bindings/input/pxa27x-keypad.txt| 60 ++ drivers/input/keyboard/pxa27x_keypad.c | 198 +++- 2 files changed, 252 insertions(+), 6 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/pxa27x

[PATCH 5/6] input: pxa27x-keypad: remove the unused members at platform data

2013-04-23 Thread Chao Xie
Now pxa27x-keypad make use matrix_keymap for matrix keyes, so remove the unused members in platform data. Signed-off-by: Chao Xie --- include/linux/platform_data/keypad-pxa27x.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/include/linux/platform_data/keypad-pxa27x.h

[PATCH 1/6] input: pxa27x-keypad: copy members of platform data to device private data

2013-04-23 Thread Chao Xie
Original driver will directly use platform data when driver is running. In fact, the platform data may be freed after system is bootup, or pointer for platform data is NULL if it has device tree support. Define the useful members of platform data in device private data. Signed-off-by: Chao Xie

[PATCH V3 1/3] pwm: pxa: ARCH_MMP share same pwm driver with ARCH_PXA

2013-04-23 Thread Chao Xie
the pwm driver is not only used by ARCH_PXA but also ARCH_MMP Signed-off-by: Chao Xie --- drivers/pwm/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 115b644..9ec4040 100644 --- a/drivers/pwm/Kconfig +++ b/drivers

[PATCH V3 2/3] pwm: pxa: use module_platform_driver for driver register

2013-04-23 Thread Chao Xie
Signed-off-by: Chao Xie --- drivers/pwm/pwm-pxa.c | 12 +--- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index dee6ab55..aa4bea7 100644 --- a/drivers/pwm/pwm-pxa.c +++ b/drivers/pwm/pwm-pxa.c @@ -187,16 +187,6 @@ static

[PATCH V3 0/3] pwm: pxa: bug fix and device tree support

2013-04-23 Thread Chao Xie
_OF for device tree support. rebase to for-next V3->V2: change "mrvl,xxx" to "marvell,xxx". Chao Xie (3): pwm: pxa: ARCH_MMP share same pwm driver with ARCH_PXA pwm: pxa: use module_platform_driver for driver register pwm: pxa: add device tree support drivers/pwm/Kc

[PATCH V3 3/3] pwm: pxa: add device tree support

2013-04-23 Thread Chao Xie
Add the deice tree support for pwm-pxa. Signed-off-by: Chao Xie --- drivers/pwm/pwm-pxa.c | 57 +++- 1 files changed, 55 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index aa4bea7..45d9047 100644

[PATCH V3 3/3] pwm: pxa: add device tree support

2013-04-23 Thread Chao Xie
Add the deice tree support for pwm-pxa. Signed-off-by: Chao Xie chao@marvell.com --- drivers/pwm/pwm-pxa.c | 57 +++- 1 files changed, 55 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index aa4bea7

[PATCH V3 0/3] pwm: pxa: bug fix and device tree support

2013-04-23 Thread Chao Xie
for device tree support. rebase to for-next V3-V2: change mrvl,xxx to marvell,xxx. Chao Xie (3): pwm: pxa: ARCH_MMP share same pwm driver with ARCH_PXA pwm: pxa: use module_platform_driver for driver register pwm: pxa: add device tree support drivers/pwm/Kconfig |2 +- drivers/pwm

[PATCH V3 2/3] pwm: pxa: use module_platform_driver for driver register

2013-04-23 Thread Chao Xie
Signed-off-by: Chao Xie chao@marvell.com --- drivers/pwm/pwm-pxa.c | 12 +--- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index dee6ab55..aa4bea7 100644 --- a/drivers/pwm/pwm-pxa.c +++ b/drivers/pwm/pwm-pxa.c

[PATCH V3 1/3] pwm: pxa: ARCH_MMP share same pwm driver with ARCH_PXA

2013-04-23 Thread Chao Xie
the pwm driver is not only used by ARCH_PXA but also ARCH_MMP Signed-off-by: Chao Xie chao@marvell.com --- drivers/pwm/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 115b644..9ec4040 100644 --- a/drivers/pwm

[PATCH 1/6] input: pxa27x-keypad: copy members of platform data to device private data

2013-04-23 Thread Chao Xie
Original driver will directly use platform data when driver is running. In fact, the platform data may be freed after system is bootup, or pointer for platform data is NULL if it has device tree support. Define the useful members of platform data in device private data. Signed-off-by: Chao Xie

[PATCH 5/6] input: pxa27x-keypad: remove the unused members at platform data

2013-04-23 Thread Chao Xie
Now pxa27x-keypad make use matrix_keymap for matrix keyes, so remove the unused members in platform data. Signed-off-by: Chao Xie chao@marvell.com --- include/linux/platform_data/keypad-pxa27x.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/include/linux

[PATCH 6/6] input: pxa27x-keypad: add device tree support

2013-04-23 Thread Chao Xie
Signed-off-by: Chao Xie chao@marvell.com --- .../devicetree/bindings/input/pxa27x-keypad.txt| 60 ++ drivers/input/keyboard/pxa27x_keypad.c | 198 +++- 2 files changed, 252 insertions(+), 6 deletions(-) create mode 100644 Documentation/devicetree

[PATCH 4/6] arm: mmp: use matrix_keymap for teton_bga

2013-04-23 Thread Chao Xie
Signed-off-by: Chao Xie chao@marvell.com --- arch/arm/mach-mmp/teton_bga.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mmp/teton_bga.c b/arch/arm/mach-mmp/teton_bga.c index 8609967..d8967fa 100644 --- a/arch/arm/mach-mmp/teton_bga.c +++ b/arch

[PATCH 3/6] arm: mmp: use matrix_keymap for aspenite

2013-04-23 Thread Chao Xie
Signed-off-by: Chao Xie chao@marvell.com --- arch/arm/mach-mmp/aspenite.c | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-mmp/aspenite.c b/arch/arm/mach-mmp/aspenite.c index 9f64d56..1e23346 100644 --- a/arch/arm/mach-mmp/aspenite.c +++ b/arch

[PATCH 0/6] input: pxa27x-keypad: enhancement and device tree support

2013-04-23 Thread Chao Xie
matrix_keypad for matrix keyes support 3. add device tree support for pxa27x-keypad Chao Xie (6): input: pxa27x-keypad: copy members of platform data to device private data input: pxa27x-keypad: use matrix_keymap for matrix keyes arm: mmp: use matrix_keymap for aspenite arm: mmp: use

<    1   2   3   4   5   >