Re: [PATCH] pwm: Remove obsolete HAVE_PWM Kconfig symbol

2014-01-17 Thread Eric Miao
On Thu, Jan 16, 2014 at 7:01 AM, Sascha Hauer wrote: > Before we had the PWM framework we used to have a barebone PWM api. The > HAVE_PWM Kconfig symbol used to be selected by the PWM drivers to specify > the PWM API is present in the kernel. Since the last legacy driver is gone > the HAVE_PWM

Re: [PATCH] pwm: Remove obsolete HAVE_PWM Kconfig symbol

2014-01-17 Thread Eric Miao
On Thu, Jan 16, 2014 at 7:01 AM, Sascha Hauer s.ha...@pengutronix.de wrote: Before we had the PWM framework we used to have a barebone PWM api. The HAVE_PWM Kconfig symbol used to be selected by the PWM drivers to specify the PWM API is present in the kernel. Since the last legacy driver is

[PATCH 2/2] MODSIG: use pre-generated X.509 key by MODPUBKEY

2013-11-04 Thread Eric Miao
If MODPUBKEY is specified and other than default ./signing_key.x509, use that key instead of generating one on-the-fly. Signed-off-by: Eric Miao Cc: David Howells Cc: Dan Willemsen --- kernel/Makefile | 8 1 file changed, 8 insertions(+) diff --git a/kernel/Makefile b/kernel

[PATCH 1/2] module: export sig_enforce readonly even if MODULE_SIG_FORCE is on

2013-11-04 Thread Eric Miao
Even if MODULE_SIG_FORCE is turned on, it is still useful if module can export sig_enforce, so user space will know if module signature is turned on and forced. Signed-off-by: Eric Miao Cc: David Howells Cc: Dan Willemsen --- kernel/module.c | 8 1 file changed, 8 insertions(+) diff

[PATCH 1/2] module: export sig_enforce readonly even if MODULE_SIG_FORCE is on

2013-11-04 Thread Eric Miao
Even if MODULE_SIG_FORCE is turned on, it is still useful if module can export sig_enforce, so user space will know if module signature is turned on and forced. Signed-off-by: Eric Miao eric.m...@nvidia.com Cc: David Howells dhowe...@redhat.com Cc: Dan Willemsen dwillem...@nvidia.com --- kernel

[PATCH 2/2] MODSIG: use pre-generated X.509 key by MODPUBKEY

2013-11-04 Thread Eric Miao
If MODPUBKEY is specified and other than default ./signing_key.x509, use that key instead of generating one on-the-fly. Signed-off-by: Eric Miao eric.m...@nvidia.com Cc: David Howells dhowe...@redhat.com Cc: Dan Willemsen dwillem...@nvidia.com --- kernel/Makefile | 8 1 file changed, 8

Re: [PATCH] ARM: pxa: remove IRQF_DISABLED

2013-07-06 Thread Eric Miao
On Sat, Jul 6, 2013 at 1:42 PM, Michael Opdenacker wrote: > This flag is a NOOP since 2.6.35 and can be removed. > > Signed-off-by: Michael Opdenacker Indeed. Acked-by: Eric Miao > --- > arch/arm/mach-pxa/am200epd.c | 3 +-- > arch/arm/mach-pxa/am300epd.c |

Re: [PATCH] ARM: pxa: remove IRQF_DISABLED

2013-07-06 Thread Eric Miao
On Sat, Jul 6, 2013 at 1:42 PM, Michael Opdenacker michael.opdenac...@free-electrons.com wrote: This flag is a NOOP since 2.6.35 and can be removed. Signed-off-by: Michael Opdenacker michael.opdenac...@free-electrons.com Indeed. Acked-by: Eric Miao eric.y.m...@gmail.com --- arch/arm/mach

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

2013-05-13 Thread Eric Miao
NIG_OF is defined, but PWM is not defined in device tree > configuration file. The device > can still match the driver is the id_table is matched or name is matched. > So I covered addtional situation > 1. PWM is not defined in DT configuration file but CONFIG_OF is defined. >

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

2013-05-13 Thread Eric Miao
the possiblility that event CONFIG_OF is defined, but PWM is not defined in DT file, and we still can use old way to probe the device. Yeah I was thinking maybe we should not keep the legacy working if CONFIG_OF is defined, but that should be OK: Acked-by: Eric Miao eric.y.m...@gmail.com

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

2013-05-12 Thread Eric Miao
iff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c > index aa4bea7..c8d59a2 100644 > --- a/drivers/pwm/pwm-pxa.c > +++ b/drivers/pwm/pwm-pxa.c > @@ -9,6 +9,8 @@ > * > * 2008-02-13 initial version > * eric miao > + * 2013-04-24 add device tree suppo

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

2013-05-12 Thread Eric Miao
ao Xie Looks good to me, Acked-by: Eric Miao > --- > 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-p

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

2013-05-12 Thread Eric Miao
On Mon, May 6, 2013 at 9:29 AM, Chao Xie wrote: > The PWM driver is not only used by ARCH_PXA but also ARCH_MMP. > > Signed-off-by: Chao Xie Looks good to me. Acked-by: Eric Miao > --- > drivers/pwm/Kconfig |2 +- > 1 files changed, 1 insertions(+), 1 deletions

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

2013-05-12 Thread Eric Miao
On Mon, May 6, 2013 at 9:29 AM, Chao Xie chao@marvell.com wrote: The PWM driver is not only used by ARCH_PXA but also ARCH_MMP. Signed-off-by: Chao Xie chao@marvell.com Looks good to me. Acked-by: Eric Miao eric.y.m...@gmail.com --- drivers/pwm/Kconfig |2 +- 1 files changed

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

2013-05-12 Thread Eric Miao
@marvell.com Looks good to me, Acked-by: Eric Miao eric.y.m...@gmail.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

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

2013-05-12 Thread Eric Miao
(-) diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index aa4bea7..c8d59a2 100644 --- a/drivers/pwm/pwm-pxa.c +++ b/drivers/pwm/pwm-pxa.c @@ -9,6 +9,8 @@ * * 2008-02-13 initial version * eric miao eric.m...@marvell.com + * 2013-04-24 add device tree support

Re: [PATCH] platform: fall-back to driver name check if there is no id found

2013-04-19 Thread Eric Miao
ed-off-by: Andy Shevchenko >> Reported-by: Mika Westerberg >> Cc: Eric Miao >> Cc: Greg Kroah-Hartman >> --- >> drivers/base/platform.c |4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/base/platform.c

Re: [PATCH] platform: fall-back to driver name check if there is no id found

2013-04-19 Thread Eric Miao
ed-off-by: Andy Shevchenko >> Reported-by: Mika Westerberg >> Cc: Eric Miao >> Cc: Greg Kroah-Hartman >> --- >> drivers/base/platform.c |4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/base/platform.c

Re: [PATCH] platform: fall-back to driver name check if there is no id found

2013-04-19 Thread Eric Miao
-by: Mika Westerberg mika.westerberg@xxx Cc: Eric Miao eric.miao@xxx Cc: Greg Kroah-Hartman gregkh@xxx --- drivers/base/platform.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index c0b8df3

Re: [PATCH] platform: fall-back to driver name check if there is no id found

2013-04-19 Thread Eric Miao
-by: Mika Westerberg mika.westerberg@xxx Cc: Eric Miao eric.miao@xxx Cc: Greg Kroah-Hartman gregkh@xxx --- drivers/base/platform.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index c0b8df3

Re: [PATCH] pwm: pxa: Remove PWM_ID_BASE macro

2013-04-01 Thread Eric Miao
ondary_pwm? */ > { "pxa25x-pwm", 0 }, > - { "pxa27x-pwm", 0 | HAS_SECONDARY_PWM }, > - { "pxa168-pwm", 1 }, > - { "pxa910-pwm", 1 }, > + { "pxa27x-pwm", HAS_SECONDARY_PWM }, > + { "pxa168-pwm

Re: [PATCH 3/3] pwm: pxa: Remove clk_enabled field from struct pxa_pwm_chip

2013-04-01 Thread Eric Miao
On Mon, Apr 1, 2013 at 3:32 PM, Axel Lin wrote: > 2013/4/1 Eric Miao : >> On Sun, Mar 31, 2013 at 11:04 PM, Axel Lin wrote: >>> clk_enable/clk_disable maintain an enable_count, clk_prepare and >>> clk_unprepare >>> also maintain a prepare_count. Th

Re: [PATCH 3/3] pwm: pxa: Remove clk_enabled field from struct pxa_pwm_chip

2013-04-01 Thread Eric Miao
On Sun, Mar 31, 2013 at 11:04 PM, Axel Lin wrote: > clk_enable/clk_disable maintain an enable_count, clk_prepare and clk_unprepare > also maintain a prepare_count. These APIs will do prepare/enable when the > first > user calling these APIs, and do disable/unprepare when the corresponding >

Re: [PATCH] pwm: pxa: Use driver_data field to store pwm_nr

2013-04-01 Thread Eric Miao
On Mon, Apr 1, 2013 at 12:12 AM, Axel Lin wrote: > The driver_data field was used to store information about PWM_ID_BASE and > HAS_SECONDARY_PWM. PWM_ID_BASE is not used now after convert to pwm framework. > This patch stores the pwm_nr in driver_data field to simplify the code. > >

Re: [PATCH] pwm: pxa: Use driver_data field to store pwm_nr

2013-04-01 Thread Eric Miao
On Mon, Apr 1, 2013 at 12:12 AM, Axel Lin axel@ingics.com wrote: The driver_data field was used to store information about PWM_ID_BASE and HAS_SECONDARY_PWM. PWM_ID_BASE is not used now after convert to pwm framework. This patch stores the pwm_nr in driver_data field to simplify the code.

Re: [PATCH 3/3] pwm: pxa: Remove clk_enabled field from struct pxa_pwm_chip

2013-04-01 Thread Eric Miao
On Sun, Mar 31, 2013 at 11:04 PM, Axel Lin axel@ingics.com wrote: clk_enable/clk_disable maintain an enable_count, clk_prepare and clk_unprepare also maintain a prepare_count. These APIs will do prepare/enable when the first user calling these APIs, and do disable/unprepare when the

Re: [PATCH 3/3] pwm: pxa: Remove clk_enabled field from struct pxa_pwm_chip

2013-04-01 Thread Eric Miao
On Mon, Apr 1, 2013 at 3:32 PM, Axel Lin axel@ingics.com wrote: 2013/4/1 Eric Miao eric.y.m...@gmail.com: On Sun, Mar 31, 2013 at 11:04 PM, Axel Lin axel@ingics.com wrote: clk_enable/clk_disable maintain an enable_count, clk_prepare and clk_unprepare also maintain a prepare_count

Re: [PATCH] pwm: pxa: Remove PWM_ID_BASE macro

2013-04-01 Thread Eric Miao
}, - { pxa27x-pwm, 0 | HAS_SECONDARY_PWM }, - { pxa168-pwm, 1 }, - { pxa910-pwm, 1 }, + { pxa27x-pwm, HAS_SECONDARY_PWM }, + { pxa168-pwm, 0 }, + { pxa910-pwm, 0 }, { }, }; MODULE_DEVICE_TABLE(platform, pwm_id_table); Looks good to me, Acked-by: Eric Miao

Re: [PATCH 6/9] cpufreq: pxa3xx: move cpufreq driver to drivers/cpufreq

2013-03-31 Thread Eric Miao
On Sun, Mar 31, 2013 at 2:45 PM, Viresh Kumar wrote: > On 31 March 2013 10:54, Eric Miao wrote: >> On Sun, Mar 31, 2013 at 11:52 AM, Viresh Kumar >> wrote: >>> Eric/Haojian, >>> >>> On 25 March 2013 15:41, Viresh Kumar wrote: >>>> This p

Re: [PATCH 6/9] cpufreq: pxa3xx: move cpufreq driver to drivers/cpufreq

2013-03-31 Thread Eric Miao
On Sun, Mar 31, 2013 at 2:45 PM, Viresh Kumar viresh.ku...@linaro.org wrote: On 31 March 2013 10:54, Eric Miao eric.y.m...@gmail.com wrote: On Sun, Mar 31, 2013 at 11:52 AM, Viresh Kumar viresh.ku...@linaro.org wrote: Eric/Haojian, On 25 March 2013 15:41, Viresh Kumar viresh.ku

Re: [PATCH 6/9] cpufreq: pxa3xx: move cpufreq driver to drivers/cpufreq

2013-03-30 Thread Eric Miao
On Sun, Mar 31, 2013 at 11:52 AM, Viresh Kumar wrote: > Eric/Haojian, > > On 25 March 2013 15:41, Viresh Kumar wrote: >> This patch moves cpufreq driver of ARM based pxa3xx platform to >> drivers/cpufreq. >> >> Cc: Eric Miao Acked-by: Eric Miao >

Re: [PATCH 6/9] cpufreq: pxa3xx: move cpufreq driver to drivers/cpufreq

2013-03-30 Thread Eric Miao
On Sun, Mar 31, 2013 at 11:52 AM, Viresh Kumar viresh.ku...@linaro.org wrote: Eric/Haojian, On 25 March 2013 15:41, Viresh Kumar viresh.ku...@linaro.org wrote: This patch moves cpufreq driver of ARM based pxa3xx platform to drivers/cpufreq. Cc: Eric Miao eric.y.m...@gmail.com Acked

Re: [PATCH 01/11] spi/pxa2xx: allow building on a 64-bit kernel

2013-01-07 Thread Eric Miao
On Mon, Jan 7, 2013 at 6:44 PM, Mika Westerberg wrote: > In addition fix following warnings seen when compiling 64-bit: > > drivers/spi/spi-pxa2xx.c: In function ‘map_dma_buffers’: > drivers/spi/spi-pxa2xx.c:384:7: warning: cast from pointer to integer of > different size

Re: [PATCH 01/11] spi/pxa2xx: allow building on a 64-bit kernel

2013-01-07 Thread Eric Miao
On Mon, Jan 7, 2013 at 6:44 PM, Mika Westerberg mika.westerb...@linux.intel.com wrote: In addition fix following warnings seen when compiling 64-bit: drivers/spi/spi-pxa2xx.c: In function ‘map_dma_buffers’: drivers/spi/spi-pxa2xx.c:384:7: warning: cast from pointer to integer of different

Re: [PATCH 06/11] ARM: pxa: convert timer suspend/resume to clock_event_device

2012-11-08 Thread Eric Miao
t; eventually lead to a complete removal of struct sys_timer. > > Cc: Eric Miao > Cc: Russell King > Cc: Haojian Zhuang > Signed-off-by: Stephen Warren Acked-by: Eric Miao > --- > arch/arm/mach-pxa/time.c | 76 > +++--

Re: [PATCH 06/11] ARM: pxa: convert timer suspend/resume to clock_event_device

2012-11-08 Thread Eric Miao
to be removed, and eventually lead to a complete removal of struct sys_timer. Cc: Eric Miao eric.y.m...@gmail.com Cc: Russell King li...@arm.linux.org.uk Cc: Haojian Zhuang haojian.zhu...@gmail.com Signed-off-by: Stephen Warren swar...@nvidia.com Acked-by: Eric Miao eric.y.m...@gmail.com

Re: [PATCH] pwm: Get rid of HAVE_PWM

2012-10-07 Thread Eric Miao
On Fri, Oct 5, 2012 at 3:13 AM, Thierry Reding wrote: > On Thu, Oct 04, 2012 at 08:48:54PM +0200, Lars-Peter Clausen wrote: >> On 10/04/2012 08:29 PM, Thierry Reding wrote: >> > On Thu, Oct 04, 2012 at 05:00:23PM +0200, Lars-Peter Clausen wrote: >> >> On 10/04/2012 08:06 AM, Thierry Reding wrote:

Re: [PATCH 05/17] ARM: pxa: remove sharpsl_fatal_check function

2012-10-07 Thread Eric Miao
st remove the function. > > Without this patch, building corgi_defconfig results in: > > /home/arnd/linux-arm/arch/arm/mach-pxa/sharpsl_pm.c:693:12: warning: > 'sharpsl_fatal_check' defined but not used [-Wunused-function] > > Signed-off-by: Arnd Bergmann > Cc: Pavel M

Re: [PATCH 05/17] ARM: pxa: remove sharpsl_fatal_check function

2012-10-07 Thread Eric Miao
Brabec u...@penguin.cz Cc: Eric Miao eric.y.m...@gmail.com Cc: Haojian Zhuang haojian.zhu...@gmail.com Acked-by: Eric Miao eric.y.m...@gmail.com Let's get it cleaned up firstly. One can always reference the history for a sample implementation later if this is needed in the future. --- arch/arm

Re: [PATCH] pwm: Get rid of HAVE_PWM

2012-10-07 Thread Eric Miao
On Fri, Oct 5, 2012 at 3:13 AM, Thierry Reding thierry.red...@avionic-design.de wrote: On Thu, Oct 04, 2012 at 08:48:54PM +0200, Lars-Peter Clausen wrote: On 10/04/2012 08:29 PM, Thierry Reding wrote: On Thu, Oct 04, 2012 at 05:00:23PM +0200, Lars-Peter Clausen wrote: On 10/04/2012 08:06 AM,

Re: [PATCH] ARM: pxa: fix return value check in pxa2xx_drv_pcmcia_probe()

2012-09-21 Thread Eric Miao
On Fri, Sep 21, 2012 at 3:19 PM, Wei Yongjun wrote: > From: Wei Yongjun > > In case of error, the function clk_get() returns ERR_PTR() > and never returns NULL pointer. The NULL test in the error > handling should be replaced with IS_ERR(). > > dpatch engine is used to auto generated this patch.

Re: [PATCH] ARM: pxa: fix return value check in pxa2xx_drv_pcmcia_probe()

2012-09-21 Thread Eric Miao
On Fri, Sep 21, 2012 at 3:19 PM, Wei Yongjun weiyj...@gmail.com wrote: From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function clk_get() returns ERR_PTR() and never returns NULL pointer. The NULL test in the error handling should be replaced with IS_ERR(). dpatch

Re: [PATCH] gpio: pxa: using for_each_set_bit to simplify the code

2012-09-18 Thread Eric Miao
On Tue, Sep 18, 2012 at 1:56 PM, Haojian Zhuang wrote: > On Tue, Sep 18, 2012 at 1:43 PM, Eric Miao wrote: >> On Mon, Sep 17, 2012 at 6:56 PM, Linus Walleij >> wrote: >>> On Fri, Sep 14, 2012 at 4:36 AM, Wei Yongjun wrote: >>> >>>> From:

Re: [PATCH] gpio: pxa: using for_each_set_bit to simplify the code

2012-09-18 Thread Eric Miao
On Tue, Sep 18, 2012 at 1:56 PM, Haojian Zhuang haojian.zhu...@gmail.com wrote: On Tue, Sep 18, 2012 at 1:43 PM, Eric Miao eric.y.m...@gmail.com wrote: On Mon, Sep 17, 2012 at 6:56 PM, Linus Walleij linus.wall...@linaro.org wrote: On Fri, Sep 14, 2012 at 4:36 AM, Wei Yongjun weiyj

Re: [PATCH] gpio: pxa: using for_each_set_bit to simplify the code

2012-09-17 Thread Eric Miao
tp://coccinelle.lip6.fr/) >> >> Signed-off-by: Wei Yongjun > > PXA maintainers: does this look OK? I seem to have Acked this already in another mail, if that got lost, here it is: Acked-by: Eric Miao > > Yours, > Linus Walleij -- To unsubscribe from this list: send t

Re: [PATCH] gpio: pxa: using for_each_set_bit to simplify the code

2012-09-17 Thread Eric Miao
this. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn PXA maintainers: does this look OK? I seem to have Acked this already in another mail, if that got lost, here it is: Acked-by: Eric Miao eric.y.m...@gmail.com Yours, Linus Walleij -- To unsubscribe

Re: [PATCH] ARM: mmp: using for_each_set_bit to simplify the code

2012-09-13 Thread Eric Miao
On Fri, Sep 14, 2012 at 10:30 AM, Wei Yongjun wrote: > From: Wei Yongjun > > Using for_each_set_bit() to simplify the code. > > spatch with a semantic match is used to found this. > (http://coccinelle.lip6.fr/) > > Signed-off-by: Wei Yongjun Great API, this is g

Re: [PATCH] ARM: mmp: using for_each_set_bit to simplify the code

2012-09-13 Thread Eric Miao
...@trendmicro.com.cn Great API, this is good. Acked-by: Eric Miao eric.y.m...@gmail.com --- arch/arm/mach-mmp/irq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/mach-mmp/irq.c b/arch/arm/mach-mmp/irq.c index e60c7d9..3c71246 100644 --- a/arch/arm/mach-mmp/irq.c

Re: Emulating level IRQs

2012-08-05 Thread Eric Miao
On Mon, Aug 6, 2012 at 1:56 AM, Daniel Mack wrote: > On 05.08.2012 18:56, Haojian Zhuang wrote: >> On Mon, Aug 6, 2012 at 12:22 AM, Daniel Mack wrote: >>> On 24.07.2012 20:01, Daniel Mack wrote: On 23.07.2012 18:51, Dmitry Torokhov wrote: > On Thu, Jul 19, 2012 at 05:36:12PM +0200,

Re: Emulating level IRQs

2012-08-05 Thread Eric Miao
On Mon, Aug 6, 2012 at 1:56 AM, Daniel Mack zon...@gmail.com wrote: On 05.08.2012 18:56, Haojian Zhuang wrote: On Mon, Aug 6, 2012 at 12:22 AM, Daniel Mack zon...@gmail.com wrote: On 24.07.2012 20:01, Daniel Mack wrote: On 23.07.2012 18:51, Dmitry Torokhov wrote: On Thu, Jul 19, 2012 at

Re: [UPDATED v2][PATCH 0/6] regulator: voltage and current regulator framework

2008-02-21 Thread eric miao
On Fri, Feb 22, 2008 at 12:26 AM, Liam Girdwood <[EMAIL PROTECTED]> wrote: > On Thu, 2008-02-21 at 08:41 +, Russell King - ARM Linux wrote: > > On Wed, Feb 20, 2008 at 05:08:46PM +, Liam Girdwood wrote: > > > This patch series provides a generic framework to allow device drivers > > >

Re: [UPDATED v2][PATCH 0/6] regulator: voltage and current regulator framework

2008-02-21 Thread eric miao
On Fri, Feb 22, 2008 at 12:26 AM, Liam Girdwood [EMAIL PROTECTED] wrote: On Thu, 2008-02-21 at 08:41 +, Russell King - ARM Linux wrote: On Wed, Feb 20, 2008 at 05:08:46PM +, Liam Girdwood wrote: This patch series provides a generic framework to allow device drivers to control

Re: [spi-devel-general] SPI related Kconfig warning

2008-01-31 Thread eric miao
On Jan 31, 2008 3:21 PM, David Brownell <[EMAIL PROTECTED]> wrote: > On Wednesday 30 January 2008, Kumar Gala wrote: > > Was wondering if anyone was looking at the cause of this warning in > > top of linus's tree (8af03e782cae1e0a0f530ddd22301cdd12cf9dc0) > > > > drivers/spi/Kconfig:156:warning:

Re: [spi-devel-general] SPI related Kconfig warning

2008-01-31 Thread eric miao
On Jan 31, 2008 3:21 PM, David Brownell [EMAIL PROTECTED] wrote: On Wednesday 30 January 2008, Kumar Gala wrote: Was wondering if anyone was looking at the cause of this warning in top of linus's tree (8af03e782cae1e0a0f530ddd22301cdd12cf9dc0) drivers/spi/Kconfig:156:warning: 'select'

Re: [PATCH 2.6.24-rc5-mm 2/3] gpiolib: add Generic IRQ support for 16-bit PCA9539 GPIO expander

2007-12-25 Thread eric miao
> > From: eric miao <[EMAIL PROTECTED]> > > > > This patch adds the generic IRQ support for the PCA9539 on-chip GPIOs. > > This one bothers me a bit on some technical grounds. One problem is > that these chips are not designed for reliable IRQ management,

Re: [PATCH 2.6.24-rc5-mm 2/3] gpiolib: add Generic IRQ support for 16-bit PCA9539 GPIO expander

2007-12-25 Thread eric miao
From: eric miao [EMAIL PROTECTED] This patch adds the generic IRQ support for the PCA9539 on-chip GPIOs. This one bothers me a bit on some technical grounds. One problem is that these chips are not designed for reliable IRQ management, so no matter what a driver does it can't deliver

Re: [PATCH 2.6.24-rc5-mm 3/3] gpiolib: obsolete drivers/i2c/chips/pca9539.c

2007-12-19 Thread eric miao
On Dec 19, 2007 5:01 PM, Jean Delvare <[EMAIL PROTECTED]> wrote: > Hi Eric, > > > On Wed, 19 Dec 2007 16:45:00 +0800, eric miao wrote: > > Updated as follows, the driver name is left unchanged, while > > Kconfig and Documentation are modified so that > > 1. ma

Re: [PATCH 2.6.24-rc5-mm 3/3] gpiolib: obsolete drivers/i2c/chips/pca9539.c

2007-12-19 Thread eric miao
Updated as follows, the driver name is left unchanged, while Kconfig and Documentation are modified so that 1. mark it as deprecated 2. exclusive selection of SENSOR_PCA9539 and GPIO_PCA9539 >From c58dc1119355dc94d80763aef9d9bc999abda6df Mon Sep 17 00:00:00 2001 From: eric miao <[EMAIL PRO

Re: [PATCH 2.6.24-rc5-mm 3/3] gpiolib: obsolete drivers/i2c/chips/pca9539.c

2007-12-19 Thread eric miao
Updated as follows, the driver name is left unchanged, while Kconfig and Documentation are modified so that 1. mark it as deprecated 2. exclusive selection of SENSOR_PCA9539 and GPIO_PCA9539 From c58dc1119355dc94d80763aef9d9bc999abda6df Mon Sep 17 00:00:00 2001 From: eric miao [EMAIL PROTECTED

Re: [PATCH 2.6.24-rc5-mm 3/3] gpiolib: obsolete drivers/i2c/chips/pca9539.c

2007-12-19 Thread eric miao
On Dec 19, 2007 5:01 PM, Jean Delvare [EMAIL PROTECTED] wrote: Hi Eric, On Wed, 19 Dec 2007 16:45:00 +0800, eric miao wrote: Updated as follows, the driver name is left unchanged, while Kconfig and Documentation are modified so that 1. mark it as deprecated 2. exclusive selection

Re: [PATCH 2.6.24-rc5-mm 3/3] gpiolib: obsolete drivers/i2c/chips/pca9539.c

2007-12-17 Thread eric miao
Hi David, > > > On Mon, 17 Dec 2007 10:09:53 -0800, David Brownell wrote: > > > Date: Mon, 17 Dec 2007 14:33:27 +0800 > > > From: "eric miao" <[EMAIL PROTECTED]> > > > > > > for the following reasons: > > > > > > 1. there is current

Re: [PATCH 2.6.24-rc5-mm 3/3] gpiolib: obsolete drivers/i2c/chips/pca9539.c

2007-12-17 Thread eric miao
Dec 2007 10:09:53 -0800, David Brownell wrote: Date: Mon, 17 Dec 2007 14:33:27 +0800 From: eric miao [EMAIL PROTECTED] for the following reasons: 1. there is currently no known users of this driver 2. the functionality of this driver is well supported with the recent

Re: [PATCH 2.6.24-rc5-mm 3/3] gpiolib: obsolete drivers/i2c/chips/pca9539.c

2007-12-16 Thread eric miao
[ Updated according to Jean's suggestion, thanks ] >From 5b4d907da17d57ec168643ebd847278e8d7267f9 Mon Sep 17 00:00:00 2001 From: eric miao <[EMAIL PROTECTED]> Date: Sat, 15 Dec 2007 12:07:26 +0800 Subject: [PATCH] gpiolib: obsolete drivers/i2c/chips/pca9539.c and related files for the

Re: [PATCH 2.6.24-rc5-mm 2/3] gpiolib: add Generic IRQ support for 16-bit PCA9539 GPIO expander

2007-12-16 Thread eric miao
[updated according to David's suggestion to handle the error of I2C transfer] >From c9b78718488dadc702f40789bd532d1f1765d76e Mon Sep 17 00:00:00 2001 From: eric miao <[EMAIL PROTECTED]> Date: Mon, 10 Dec 2007 17:24:36 +0800 Subject: [PATCH] gpiolib: add Generic IRQ support for 16-bit PCA

Re: [PATCH 2.6.24-rc5-mm 1/3] gpiolib: basic support for 16-bit PCA9539 GPIO expander

2007-12-16 Thread eric miao
[ forget about the previous patch, sorry for my carelessness not to free the chip structure, below is the correct one ] >From c4be69e8dad28dc75e80b393f9c60f740cca7047 Mon Sep 17 00:00:00 2001 From: eric miao <[EMAIL PROTECTED]> Date: Mon, 10 Dec 2007 17:19:12 +0800 Subject: [PATCH] gpiol

Re: [PATCH 2.6.24-rc5-mm 1/3] gpiolib: basic support for 16-bit PCA9539 GPIO expander

2007-12-16 Thread eric miao
[ Yup, it's an issue, patch updated as below:] >From 8de0246423cbbd0c6bb03a20baf61d360930c350 Mon Sep 17 00:00:00 2001 From: eric miao <[EMAIL PROTECTED]> Date: Mon, 10 Dec 2007 17:19:12 +0800 Subject: [PATCH] gpiolib: basic support for 16-bit PCA9539 GPIO expander 1. use 16-bit regist

Re: [PATCH 2.6.24-rc5-mm 1/3] gpiolib: basic support for 16-bit PCA9539 GPIO expander

2007-12-16 Thread eric miao
[ Yup, it's an issue, patch updated as below:] From 8de0246423cbbd0c6bb03a20baf61d360930c350 Mon Sep 17 00:00:00 2001 From: eric miao [EMAIL PROTECTED] Date: Mon, 10 Dec 2007 17:19:12 +0800 Subject: [PATCH] gpiolib: basic support for 16-bit PCA9539 GPIO expander 1. use 16-bit register access

Re: [PATCH 2.6.24-rc5-mm 1/3] gpiolib: basic support for 16-bit PCA9539 GPIO expander

2007-12-16 Thread eric miao
[ forget about the previous patch, sorry for my carelessness not to free the chip structure, below is the correct one ] From c4be69e8dad28dc75e80b393f9c60f740cca7047 Mon Sep 17 00:00:00 2001 From: eric miao [EMAIL PROTECTED] Date: Mon, 10 Dec 2007 17:19:12 +0800 Subject: [PATCH] gpiolib: basic

Re: [PATCH 2.6.24-rc5-mm 2/3] gpiolib: add Generic IRQ support for 16-bit PCA9539 GPIO expander

2007-12-16 Thread eric miao
[updated according to David's suggestion to handle the error of I2C transfer] From c9b78718488dadc702f40789bd532d1f1765d76e Mon Sep 17 00:00:00 2001 From: eric miao [EMAIL PROTECTED] Date: Mon, 10 Dec 2007 17:24:36 +0800 Subject: [PATCH] gpiolib: add Generic IRQ support for 16-bit PCA9539 GPIO

Re: [PATCH 2.6.24-rc5-mm 3/3] gpiolib: obsolete drivers/i2c/chips/pca9539.c

2007-12-16 Thread eric miao
[ Updated according to Jean's suggestion, thanks ] From 5b4d907da17d57ec168643ebd847278e8d7267f9 Mon Sep 17 00:00:00 2001 From: eric miao [EMAIL PROTECTED] Date: Sat, 15 Dec 2007 12:07:26 +0800 Subject: [PATCH] gpiolib: obsolete drivers/i2c/chips/pca9539.c and related files for the following

Re: [PATCH 0/2] gpiolib: add support for PCA9539

2007-12-14 Thread eric miao
Jean, I'd like to postpone the corresponding change to the point that polling i2c patch is merged. On Dec 15, 2007 12:16 AM, Jean Delvare <[EMAIL PROTECTED]> wrote: > Hi Eric, > > > On Mon, 10 Dec 2007 17:37:05 +0800, eric miao wrote: > > Support for PCA9539 as a GPIO ch

[PATCH 2.6.24-rc5-mm 3/3] gpiolib: obsolete drivers/i2c/chips/pca9539.c

2007-12-14 Thread eric miao
>From 0bca662f68e7ffe84f333d7d26df25d846713db2 Mon Sep 17 00:00:00 2001 From: eric miao <[EMAIL PROTECTED]> Date: Sat, 15 Dec 2007 12:07:26 +0800 Subject: [PATCH] gpiolib: obsolete drivers/i2c/chips/pca9539.c for the following reasons: 1. there is currently no known users of this

[PATCH 2.6.24-rc5-mm 2/3] gpiolib: add Generic IRQ support for 16-bit PCA9539 GPIO expander

2007-12-14 Thread eric miao
>From b45be77acbf592b9c2085ed03ab5f16d780fa8c7 Mon Sep 17 00:00:00 2001 From: eric miao <[EMAIL PROTECTED]> Date: Mon, 10 Dec 2007 17:24:36 +0800 Subject: [PATCH] gpiolib: add Generic IRQ support for 16-bit PCA9539 GPIO expander This patch adds the generic IRQ support for the PCA953

[PATCH 2.6.24-rc5-mm 1/3] gpiolib: basic support for 16-bit PCA9539 GPIO expander

2007-12-14 Thread eric miao
>From 5ebe07236b99587296cbf603a965d284ceaf Mon Sep 17 00:00:00 2001 From: eric miao <[EMAIL PROTECTED]> Date: Mon, 10 Dec 2007 17:19:12 +0800 Subject: [PATCH] gpiolib: basic support for 16-bit PCA9539 GPIO expander 1. use 16-bit register access to simplify the logic, cac

[PATCH 2.6.24-rc5-mm 0/3] gpiolib: add support for NXP/TI PCA9539

2007-12-14 Thread eric miao
[updated] support for PCA9539 as a GPIO chip is separated into three patches: 0001 - gpiolib: basic support for 16-bit PCA9539 GPIO expander 0002 - gpiolib: add Generic IRQ support for 16-bit PCA9539 GPIO expander 0003 - gpiolib: obsolete drivers/i2c/chips/pca9539.c The 2nd one uses workqueue

Re: [PATCH 2.6.24-rc4-mm 1/2] gpiolib: basic support for 16-bit PCA9539 GPIO expander[

2007-12-14 Thread eric miao
I'd like to create another thread in LKML for the updated version, sorry. On Dec 15, 2007 11:56 AM, eric miao <[EMAIL PROTECTED]> wrote: > OK, > > Here's the updated version, which > 1. modify the author info but still preserve Ben's credit in the source head > 2. Alphab

Re: [PATCH 2.6.24-rc4-mm 1/2] gpiolib: basic support for 16-bit PCA9539 GPIO expander[

2007-12-14 Thread eric miao
initial output/direction register settings Also I'd like to fire another patch to obsolete drivers/i2c/chips/pca9539.c as everyone agreed. >From 5ebe07236b99587296cbf603a965d284ceaf Mon Sep 17 00:00:00 2001 From: eric miao <[EMAIL PROTECTED]> Date: Mon, 10 Dec 2007 17:19:12 +0800 Subjec

Re: [PATCH 2.6.24-rc4-mm 1/2] gpiolib: basic support for 16-bit PCA9539 GPIO expander[

2007-12-14 Thread eric miao
initial output/direction register settings Also I'd like to fire another patch to obsolete drivers/i2c/chips/pca9539.c as everyone agreed. From 5ebe07236b99587296cbf603a965d284ceaf Mon Sep 17 00:00:00 2001 From: eric miao [EMAIL PROTECTED] Date: Mon, 10 Dec 2007 17:19:12 +0800 Subject: [PATCH

Re: [PATCH 2.6.24-rc4-mm 1/2] gpiolib: basic support for 16-bit PCA9539 GPIO expander[

2007-12-14 Thread eric miao
I'd like to create another thread in LKML for the updated version, sorry. On Dec 15, 2007 11:56 AM, eric miao [EMAIL PROTECTED] wrote: OK, Here's the updated version, which 1. modify the author info but still preserve Ben's credit in the source head 2. Alphabetic order in Kconfig/Makefile 3

[PATCH 2.6.24-rc5-mm 0/3] gpiolib: add support for NXP/TI PCA9539

2007-12-14 Thread eric miao
[updated] support for PCA9539 as a GPIO chip is separated into three patches: 0001 - gpiolib: basic support for 16-bit PCA9539 GPIO expander 0002 - gpiolib: add Generic IRQ support for 16-bit PCA9539 GPIO expander 0003 - gpiolib: obsolete drivers/i2c/chips/pca9539.c The 2nd one uses workqueue

[PATCH 2.6.24-rc5-mm 1/3] gpiolib: basic support for 16-bit PCA9539 GPIO expander

2007-12-14 Thread eric miao
From 5ebe07236b99587296cbf603a965d284ceaf Mon Sep 17 00:00:00 2001 From: eric miao [EMAIL PROTECTED] Date: Mon, 10 Dec 2007 17:19:12 +0800 Subject: [PATCH] gpiolib: basic support for 16-bit PCA9539 GPIO expander 1. use 16-bit register access to simplify the logic, cache OUTPUT

[PATCH 2.6.24-rc5-mm 2/3] gpiolib: add Generic IRQ support for 16-bit PCA9539 GPIO expander

2007-12-14 Thread eric miao
From b45be77acbf592b9c2085ed03ab5f16d780fa8c7 Mon Sep 17 00:00:00 2001 From: eric miao [EMAIL PROTECTED] Date: Mon, 10 Dec 2007 17:24:36 +0800 Subject: [PATCH] gpiolib: add Generic IRQ support for 16-bit PCA9539 GPIO expander This patch adds the generic IRQ support for the PCA9539 on-chip GPIOs

[PATCH 2.6.24-rc5-mm 3/3] gpiolib: obsolete drivers/i2c/chips/pca9539.c

2007-12-14 Thread eric miao
From 0bca662f68e7ffe84f333d7d26df25d846713db2 Mon Sep 17 00:00:00 2001 From: eric miao [EMAIL PROTECTED] Date: Sat, 15 Dec 2007 12:07:26 +0800 Subject: [PATCH] gpiolib: obsolete drivers/i2c/chips/pca9539.c for the following reasons: 1. there is currently no known users of this driver 2

Re: [PATCH 0/2] gpiolib: add support for PCA9539

2007-12-14 Thread eric miao
Jean, I'd like to postpone the corresponding change to the point that polling i2c patch is merged. On Dec 15, 2007 12:16 AM, Jean Delvare [EMAIL PROTECTED] wrote: Hi Eric, On Mon, 10 Dec 2007 17:37:05 +0800, eric miao wrote: Support for PCA9539 as a GPIO chip is separated into two patches

Re: [PATCH 2.6.24-rc4-mm 2/2] gpiolib: add Generic IRQ support for 16-bit PCA9539 GPIO expander

2007-12-10 Thread eric miao
On Dec 10, 2007 6:14 PM, David Brownell <[EMAIL PROTECTED]> wrote: > On Monday 10 December 2007, eric miao wrote: > > +config GPIO_PCA9539_GENERIC_IRQ > > +bool " Generic IRQ support for PCA9539" > > +depends on GPIO_PCA9539=y > > Also depends o

[PATCH 2.6.24-rc4-mm 2/2] gpiolib: add Generic IRQ support for 16-bit PCA9539 GPIO expander

2007-12-10 Thread eric miao
-in. Signed-off-by: eric miao <[EMAIL PROTECTED]> Acked-by: Ben Gardner <[EMAIL PROTECTED]> --- drivers/gpio/Kconfig | 10 +++- drivers/gpio/pca9539.c | 184 2 files changed, 193 insertions(+), 1 deletions(-) diff --git a/drivers/gp

[PATCH 2.6.24-rc4-mm 1/2] gpiolib: basic support for 16-bit PCA9539 GPIO expander

2007-12-10 Thread eric miao
1. use 16-bit register access to simplify the logic, cache OUTPUT and DIRECTION registers for fast access 2. platform code is required to setup a) the numbering of GPIO for PCA9539 (base and number) c) pass "pca9539_platform_data" within "i2c_board_info" Signed-off-b

[PATCH 0/2] gpiolib: add support for PCA9539

2007-12-10 Thread eric miao
Support for PCA9539 as a GPIO chip is separated into two patches: 0001 - gpiolib: basic support for 16-bit PCA9539 GPIO expander 0002 - gpiolib: add Generic IRQ support for 16-bit PCA9539 GPIO expander the 2nd one uses workqueue for IRQ handling due to the interrupt mode nature of the i2c-core,

[PATCH 0/2] gpiolib: add support for PCA9539

2007-12-10 Thread eric miao
Support for PCA9539 as a GPIO chip is separated into two patches: 0001 - gpiolib: basic support for 16-bit PCA9539 GPIO expander 0002 - gpiolib: add Generic IRQ support for 16-bit PCA9539 GPIO expander the 2nd one uses workqueue for IRQ handling due to the interrupt mode nature of the i2c-core,

[PATCH 2.6.24-rc4-mm 1/2] gpiolib: basic support for 16-bit PCA9539 GPIO expander

2007-12-10 Thread eric miao
1. use 16-bit register access to simplify the logic, cache OUTPUT and DIRECTION registers for fast access 2. platform code is required to setup a) the numbering of GPIO for PCA9539 (base and number) c) pass pca9539_platform_data within i2c_board_info Signed-off-by: eric miao [EMAIL

[PATCH 2.6.24-rc4-mm 2/2] gpiolib: add Generic IRQ support for 16-bit PCA9539 GPIO expander

2007-12-10 Thread eric miao
-in. Signed-off-by: eric miao [EMAIL PROTECTED] Acked-by: Ben Gardner [EMAIL PROTECTED] --- drivers/gpio/Kconfig | 10 +++- drivers/gpio/pca9539.c | 184 2 files changed, 193 insertions(+), 1 deletions(-) diff --git a/drivers/gpio/Kconfig b/drivers

Re: [PATCH 2.6.24-rc4-mm 2/2] gpiolib: add Generic IRQ support for 16-bit PCA9539 GPIO expander

2007-12-10 Thread eric miao
On Dec 10, 2007 6:14 PM, David Brownell [EMAIL PROTECTED] wrote: On Monday 10 December 2007, eric miao wrote: +config GPIO_PCA9539_GENERIC_IRQ +bool Generic IRQ support for PCA9539 +depends on GPIO_PCA9539=y Also depends on GENERIC_HARDIRQS, right? (You should let the Kconfig UI handle

Re: [patch/rfc 2.6.24-rc3-mm] gpiolib grows a gpio_desc

2007-11-28 Thread eric miao
with chips with different numbers of GPIOs, > and to avoid holes in GPIOs number sequences. Those holes can cost a > lot of unusable irq_desc space for GPIOs that act as IRQs. > > Based on a patch from Eric Miao. > > # NOT signed-off yet ... purely for comment. It's been sanit

Re: [patch/rfc 2.6.24-rc3-mm] gpiolib grows a gpio_desc

2007-11-28 Thread eric miao
as IRQs. Based on a patch from Eric Miao. # NOT signed-off yet ... purely for comment. It's been sanity tested. --- The question I'm most interested in is whether it's worth paying the extra data memory. I'm currently leaning towards yes, mostly since it'll let me be lazy about some

Re: [patch/rfc 1/4] GPIO implementation framework

2007-11-27 Thread eric miao
started ? "\n" : "", - chip->base, chip->base + chip->ngpio - 1, - chip->label ? : "generic", - chip->can_sleep ? ", can sleep" : ""); -

Re: [patch/rfc 1/4] GPIO implementation framework

2007-11-27 Thread eric miao
OK, here's the all-in-one patch based on David's most recent gpiolib fix, Changes include: 1. use per gpio structure "gpio_desc", thus eliminating the restriction of ARCH_GPIOS_PER_CHIP, thus making it possible leaving no holes in GPIOs numbering Note: the number of GPIOs on different

Re: [patch/rfc 1/4] GPIO implementation framework

2007-11-27 Thread eric miao
OK, here's the all-in-one patch based on David's most recent gpiolib fix, Changes include: 1. use per gpio structure gpio_desc, thus eliminating the restriction of ARCH_GPIOS_PER_CHIP, thus making it possible leaving no holes in GPIOs numbering Note: the number of GPIOs on different

Re: [patch/rfc 1/4] GPIO implementation framework

2007-11-27 Thread eric miao
) - chip-dbg_show(s, chip); - else - gpiolib_dbg_show(s, chip); + gpio++; } return 0; } -- 1.5.2.5.GIT On Nov 28, 2007 3:29 AM, David Brownell [EMAIL PROTECTED] wrote: On Tuesday 27 November 2007, eric miao wrote

Re: [patch] 0/4 Support for Toshiba TMIO multifunction devices

2007-11-20 Thread eric miao
On Nov 21, 2007 11:54 AM, ian <[EMAIL PROTECTED]> wrote: > On Wed, 2007-11-21 at 10:23 +0800, eric miao wrote: > > Roughly went through the patch, looks good, here comes the remind, though > > :-) > > > > 1. is it possible to use some name other than &qu

Re: [patch] 0/4 Support for Toshiba TMIO multifunction devices

2007-11-20 Thread eric miao
Roughly went through the patch, looks good, here comes the remind, though :-) 1. is it possible to use some name other than "soc_core", maybe "tmio_core" so that other multifunction chips sharing a core base will live easier. 2. those C++ style comments "//" are not so pleasant... - eric On

  1   2   >