Re: [PATCH] pinctrl: Staticize pinconf_ops

2012-11-06 Thread Dong Aisheng
: Dong Aisheng dong.aish...@linaro.org Cc: Shawn Guo shawn@linaro.org Cc: Stephen Warren swar...@wwwdotorg.org --- drivers/pinctrl/pinctrl-at91.c|2 +- drivers/pinctrl/pinctrl-bcm2835.c |2 +- drivers/pinctrl/pinctrl-falcon.c |2 +- drivers/pinctrl/pinctrl-imx.c |2

Re: [PATCH] pinctrl: imx: Fix the logic checking if not able to find pin reg map

2012-11-12 Thread Dong Aisheng
On Tue, Nov 13, 2012 at 09:00:07AM +0800, Axel Lin wrote: Current code sets pin_reg = info-pin_regs[i]; in each loop iteration, so in the case of no-match, pin_reg is not NULL. Signed-off-by: Axel Lin axel@ingics.com Thanks for the fix. Acked-by: Dong Aisheng dong.aish...@linaro.org

[PATCH 1/1] regmap: select REGMAP if REGMAP_MMIO and REGMAP_IRQ enabled

2012-10-15 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org The regmap_mmio and regmap_irq depend on regmap core, if not select, we may not compile regmap core and meet compiling errors as follows if REGMAP_MMIO is selected by client drivers: drivers/mfd/syscon.c:94:15: error: variable 'syscon_regmap_config' has

Re: linux-next: Tree for Oct 3 (mfd/syscon)

2012-10-15 Thread Dong Aisheng
without a cast make[3]: *** [drivers/mfd/syscon.o] Error 1 Full randconfig file is attached. I sent out the fix patch with you CC-ed. Regards Dong Aisheng -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo

Re: [PATCH v7 2/2] mfd: syscon: Add non-DT support

2013-03-13 Thread Dong Aisheng
. Signed-off-by: Alexander Shiyan shc_w...@mail.ru Actually i've acked this series before, usually you can send out the updated series with my tag if no other big changes except the minor comments fix i pointed out. Here again, for this series: Acked-by: Dong Aisheng dong.aish...@linaro.org

Re: [PATCH] mfd: syscon: Add missing struct device_node declaration

2013-03-26 Thread Dong Aisheng
include/linux/mfd/syscon.h:20: warning: its scope is only this definition or declaration, which is probably not what you want Fix it by adding a forward declaration of struct device_node. Cc: Dong Aisheng dong.aish...@linaro.org Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com Signed

Re: [PATCH v6 1/2] mfd: syscon: Removed unneeded field dev from private driver structure

2013-03-11 Thread Dong Aisheng
On Thu, Feb 28, 2013 at 06:57:13PM +0400, Alexander Shiyan wrote: Signed-off-by: Alexander Shiyan shc_w...@mail.ru Acked-by: Dong Aisheng dong.aish...@linaro.org Regards Dong Aisheng -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

Re: [PATCH v6 2/2] mfd: syscon: Add non-DT support

2013-03-11 Thread Dong Aisheng
the resource leak issue raised by Dmitry on doing manually unbind here, right? this looks ok to me. So, besides above minor comments, Acked-by: Dong Aisheng dong.aish...@linaro.org Regards Dong Aisheng + .id_table = syscon_ids, }; static int __init syscon_init(void) diff --git

Re: [PATCH v6 2/2] mfd: syscon: Add non-DT support

2013-03-11 Thread Dong Aisheng
better? Prefix is added by dev_info, so no need to print it twice. Reasonable to me. Regards Dong Aisheng return 0; } -static int syscon_remove(struct platform_device *pdev) -{ - struct syscon *syscon; - - syscon = platform_get_drvdata(pdev); - iounmap

Re: [PATCH] mfd: syscon: Added support for using platform driver resources

2013-02-06 Thread Dong Aisheng
) + return -EADDRNOTAVAIL; devm_request_and_ioremap? Regards Dong Aisheng + } - syscon_regmap_config.max_register = res.end - res.start - 3; + syscon_regmap_config.max_register = res-end - res-start - 3; syscon-regmap = devm_regmap_init_mmio(dev, syscon-base

Re: Re[2]: [PATCH] mfd: syscon: Added support for using platform driver resources

2013-02-07 Thread Dong Aisheng
it may be better to keep .remove. Regards Dong Aisheng -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: Re[4]: [PATCH] mfd: syscon: Added support for using platform driver resources

2013-02-16 Thread Dong Aisheng
/W Based on Regmap I see. Thanks Regards Dong Aisheng Thanks! --- -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http

Re: [PATCH v2 1/3] mfd: syscon: Removed support for unloading

2013-02-16 Thread Dong Aisheng
-by: Dong Aisheng dong.aish...@linaro.org Regards Dong Aisheng --- drivers/mfd/syscon.c | 18 -- 1 file changed, 18 deletions(-) diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c index 3f10591..e1886fb 100644 --- a/drivers/mfd/syscon.c +++ b/drivers/mfd/syscon.c

Re: [PATCH v2 2/3] mfd: syscon: Removed unneeded field dev from private driver structure

2013-02-16 Thread Dong Aisheng
On 12 February 2013 02:42, Alexander Shiyan shc_w...@mail.ru wrote: Signed-off-by: Alexander Shiyan shc_w...@mail.ru Acked-by: Dong Aisheng dong.aish...@linaro.org Regards Dong Aisheng --- drivers/mfd/syscon.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

Re: [PATCH v3] mfd: syscon: Add non-DT support

2013-02-18 Thread Dong Aisheng
not need request mem region in non-dt case, then we can only use second code path. Regards Dong Aisheng -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please

Re: Re[2]: [PATCH v3] mfd: syscon: Add non-DT support

2013-02-19 Thread Dong Aisheng
-dependent code from probe? I am not a guru in DT, is it will work correct? I think yes. The core will create resource for the populated devices. See: of_platform_populate Regards Dong Aisheng -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

Re: Re[2]: [PATCH v3] mfd: syscon: Add non-DT support

2013-02-19 Thread Dong Aisheng
On 19 February 2013 15:55, Dong Aisheng dong.aish...@linaro.org wrote: On 19 February 2013 15:03, Alexander Shiyan shc_w...@mail.ru wrote: Hello. Strange, but I not received an original answer from Arnd, have only this mail. ... diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c

Re: Re[4]: [PATCH v3] mfd: syscon: Add non-DT support

2013-02-19 Thread Dong Aisheng
confused what we do with the search function. You can do as you currently do but with a different API for non-dt. Regards Dong Aisheng -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: Re[6]: [PATCH v3] mfd: syscon: Add non-DT support

2013-02-19 Thread Dong Aisheng
driver first before they can use it. But it looks to me just like how other driver generally does. Arnd, Do you think this is an issue? Regards Dong Aisheng -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo

Re: Re[8]: [PATCH v3] mfd: syscon: Add non-DT support

2013-02-19 Thread Dong Aisheng
driver generally does. I agree, this is a more proper way, but in this case we should create a big table here with records for each device... Only non-dt needs add it which may not be so many and you're the first one. Regards Dong Aisheng -- To unsubscribe from this list: send the line

Re: Re[8]: [PATCH v3] mfd: syscon: Add non-DT support

2013-02-20 Thread Dong Aisheng
. If the platform can convert to dt, then we do not have such issue. The question is do we allow the existing non-dt platforms to use it before converting? Regards Dong Aisheng -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

Re: Re[8]: [PATCH v3] mfd: syscon: Add non-DT support

2013-02-20 Thread Dong Aisheng
On 20 February 2013 19:14, Arnd Bergmann a...@arndb.de wrote: On Wednesday 20 February 2013, Dong Aisheng wrote: On 20 February 2013 18:06, Arnd Bergmann a...@arndb.de wrote: I would first like to get an answer to the question I asked in my first mail, which is what the use case of non-DT

Re: [PATCH v4] mfd: syscon: Add non-DT support

2013-02-21 Thread Dong Aisheng
. Signed-off-by: Alexander Shiyan shc_w...@mail.ru [...] + syscon-base = devm_ioremap_resource(dev, res); + if (!syscon-base) Is this correct? + return -EBUSY; Otherwise, i'm also ok with this patch. Acked-by: Dong Aisheng dong.aish...@linaro.org BTW, i did not see

Re: [PATCH v4] mfd: syscon: Add non-DT support

2013-02-21 Thread Dong Aisheng
? Yes. From here: https://lkml.org/lkml/2013/1/21/140 It seems it is. + return -EBUSY; Both this line could also be changed. Otherwise, i'm also ok with this patch. Acked-by: Dong Aisheng dong.aish...@linaro.org BTW, i did not see Samuel's tree having this new API. So

Re: [PATCH v4] mfd: syscon: Add non-DT support

2013-02-22 Thread Dong Aisheng
On Fri, Feb 22, 2013 at 08:27:19AM +0100, Thierry Reding wrote: ... Otherwise, i'm also ok with this patch. Acked-by: Dong Aisheng dong.aish...@linaro.org BTW, i did not see Samuel's tree having this new API. So, who will pick this patch? I have same question. I

Re: [PATCH v4] mfd: syscon: Add non-DT support

2013-02-22 Thread Dong Aisheng
On Fri, Feb 22, 2013 at 09:11:53AM +, Arnd Bergmann wrote: On Friday 22 February 2013, Thierry Reding wrote: On Fri, Feb 22, 2013 at 03:13:12PM +0800, Dong Aisheng wrote: On Fri, Feb 22, 2013 at 11:01:18AM +0400, Alexander Shiyan wrote: On Thu, Feb 21, 2013 at 07:29:02PM +0400

Re: [PATCH v4] mfd: syscon: Add non-DT support

2013-02-22 Thread Dong Aisheng
On Fri, Feb 22, 2013 at 09:52:12AM +0100, Thierry Reding wrote: On Fri, Feb 22, 2013 at 04:29:55PM +0800, Dong Aisheng wrote: On Fri, Feb 22, 2013 at 08:27:19AM +0100, Thierry Reding wrote: ... Otherwise, i'm also ok with this patch. Acked-by: Dong Aisheng dong.aish...@linaro.org

Re: [PATCH v4] mfd: syscon: Add non-DT support

2013-02-22 Thread Dong Aisheng
it. The prototype is in include/linux/device.h and the implementation in lib/devres.c. Got it. Thanks. Regards Dong Aisheng -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

Re: [PATCH v6 0/4] add syscon driver based on regmap for general registers access

2012-09-17 Thread Dong Aisheng
with your ack. Ping... Regards Dong Aisheng Regards, Shawn On Wed, Sep 05, 2012 at 10:57:12AM +0800, Dong Aisheng wrote: This patch series mainly adds an syscon driver which is used to access general system controller registers like FSL IOMUXC GPR and ANATOP, after that, we convert

Re: [PATCH v6 0/4] add syscon driver based on regmap for general registers access

2012-09-17 Thread Dong Aisheng
On Mon, Sep 17, 2012 at 09:30:54PM +0800, Samuel Ortiz wrote: Hi Dong, On Mon, Sep 17, 2012 at 06:10:29PM +0800, Dong Aisheng wrote: Hi Samuel, On Wed, Sep 05, 2012 at 01:54:12PM +0800, Shawn Guo wrote: Hi Samuel, The series needs to go via mfd or arm-soc tree as a whole

Re: [PATCH] pinctrl: imx: remove duplicated const

2012-09-18 Thread Dong Aisheng
, { unsigned int pin_func_id; int ret, size; - const const __be32 *list; + const __be32 *list; A stupid typo. :-) int i, j; u32 config; Acked-by: Dong Aisheng dong.aish...@linaro.org Regards Dong Aisheng -- To unsubscribe from this list: send the line

Re: linux-next: manual merge of the mfd tree with Linus' tree

2012-09-18 Thread Dong Aisheng
= (val mask) anatop_reg-vol_bit_shift; return val - anatop_reg-min_bit_val; } The fix looks ok to me. Regards Dong Aisheng -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH v3 1/7] mfd: add syscon driver based on regmap

2012-08-28 Thread Dong Aisheng
On Wed, Aug 29, 2012 at 06:54:00AM +0800, Stephen Warren wrote: On 08/28/2012 02:09 AM, Dong Aisheng wrote: From: Dong Aisheng dong.aish...@linaro.org Add regmap based syscon driver. This is usually used for access misc bits in registers which does not belong to a specific module

[PATCH v4 0/7] add syscon driver based on regmap for general registers access

2012-08-29 Thread Dong Aisheng
anatop driver which is only for anatop register access. The patch series is based on linus's tree 3.6-rc3 since commit 9160338. ChangeLog v3-v4: Only '[PATCH v4 1/7] mfd: add syscon driver based on regmap' is changed. Dong Aisheng (7): mfd: add syscon driver based on regmap ARM: imx6q: add

[PATCH v4 1/7] mfd: add syscon driver based on regmap

2012-08-29 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Add regmap based syscon driver. This is usually used for access misc bits in registers which does not belong to a specific module, for example, IMX IOMUXC GPR and ANATOP. With this driver, client can use generic regmap API to access registers which

[PATCH v4 3/7] ARM: imx6q: add anatop support into syscon

2012-08-29 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org There're a few anatop registers need to be accessed by different modules. Add anatop registers into syscon support for easy access. Acked-by: Stephen Warren swar...@wwwdotorg.org Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- arch/arm/boot/dts

[PATCH v4 4/7] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-08-29 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Using syscon to access anatop register. Acked-by: Mark Brown broo...@opensource.wolfsonmicro.com Acked-by: Stephen Warren swar...@wwwdotorg.org Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- ChangeLog v2-v3: * update to use

[PATCH v4 7/7] mfd: anatop-mfd: remove anatop driver

2012-08-29 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org The anatop registers are accessed via syscon now, no one will use mfd anatop driver anymore, remove it. Acked-by: Stephen Warren swar...@wwwdotorg.org Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- drivers/mfd/Kconfig|8

[PATCH v4 6/7] ARM: dts: imx6q: add simple-bus compatible string for anatop

2012-08-29 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Originally the anatop regulator devices are populated by mfd anatop driver. Since mfd anatop driver will be deleted later, we change to populate the regulator devices by devicetree automatically. This will cause some warning messages as follows during

[PATCH v4 5/7] ARM: imx6q: convert to use syscon to access anatop registers

2012-08-29 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Using syscon to access anatop registers. Acked-by: Stephen Warren swar...@wwwdotorg.org Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- ChangeLog v2-v3: * remove a few unneed codes ChangeLog v1-v2: * update to use generic regmap api --- arch

[PATCH v4 2/7] ARM: imx6q: add iomuxc gpr support into syscon

2012-08-29 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Include headfile for easy using. Acked-by: Stephen Warren swar...@wwwdotorg.org Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- arch/arm/boot/dts/imx6q.dtsi |5 + include/linux/fsl/imx6q-iomuxc-gpr.h | 319

Re: [PATCH v4 1/7] mfd: add syscon driver based on regmap

2012-09-02 Thread Dong Aisheng
On Fri, Aug 31, 2012 at 09:26:29AM +0800, Shawn Guo wrote: On Wed, Aug 29, 2012 at 06:56:52PM +0800, Dong Aisheng wrote: +config MFD_SYSCON +bool System Controller Register R/W Based on Regmap If the driver only compiles and works for device tree probe, we should have

Re: [PATCH v4 7/7] mfd: anatop-mfd: remove anatop driver

2012-09-02 Thread Dong Aisheng
On Fri, Aug 31, 2012 at 09:39:26AM +0800, Shawn Guo wrote: On Wed, Aug 29, 2012 at 06:56:58PM +0800, Dong Aisheng wrote: -config MFD_ANATOP - bool Support for Freescale i.MX on-chip ANATOP controller - depends on SOC_IMX6Q - help - Select this option to enable Freescale i.MX

Re: [PATCH v4 2/7] ARM: imx6q: add iomuxc gpr support into syscon

2012-09-02 Thread Dong Aisheng
On Fri, Aug 31, 2012 at 10:02:48AM +0800, Shawn Guo wrote: On Wed, Aug 29, 2012 at 06:56:53PM +0800, Dong Aisheng wrote: From: Dong Aisheng dong.aish...@linaro.org Include headfile for easy using. Acked-by: Stephen Warren swar...@wwwdotorg.org Signed-off-by: Dong Aisheng dong.aish

Re: [PATCH v4 1/7] mfd: add syscon driver based on regmap

2012-09-03 Thread Dong Aisheng
On Mon, Sep 03, 2012 at 11:09:01AM +0800, Shawn Guo wrote: On Mon, Sep 03, 2012 at 10:31:03AM +0800, Dong Aisheng wrote: I think of_node_put should be moved out from here and put into syscon_node_to_regmap and syscon_regmap_lookup_by_compatible. I guess no, if you want to move

[PATCH v5 2/4] ARM: imx6q: add iomuxc gpr support into syscon

2012-09-03 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Include headfile for easy using. Acked-by: Stephen Warren swar...@wwwdotorg.org Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- ChangeLog v4-v5: * renamed: include/linux/fsl/imx6q-iomuxc-gpr.h - include/linux/mfd/syscon/imx6q-iomuxc

[PATCH v5 4/4] mfd: anatop-mfd: remove anatop driver

2012-09-03 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org The anatop registers are accessed via syscon now, no one will use mfd anatop driver anymore, remove it. Acked-by: Stephen Warren swar...@wwwdotorg.org Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- drivers/mfd/Kconfig|8

[PATCH v5 3/4] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-09-03 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Using syscon to access anatop register. Acked-by: Mark Brown broo...@opensource.wolfsonmicro.com Acked-by: Stephen Warren swar...@wwwdotorg.org Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- ChangeLog v4-v5: * merge patch 3,4,5,6 to avoid

[PATCH v5 0/4] add syscon driver based on regmap for general registers access

2012-09-03 Thread Dong Aisheng
- include/linux/mfd/syscon/imx6q-iomuxc-gpr.h ChangeLog v3-v4: Only '[PATCH v4 1/7] mfd: add syscon driver based on regmap' is changed. Dong Aisheng (4): mfd: add syscon driver based on regmap ARM: imx6q: add iomuxc gpr support into syscon regulator: anatop-regulator: convert to use syscon

[PATCH v5 1/4] mfd: add syscon driver based on regmap

2012-09-03 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Add regmap based syscon driver. This is usually used for access misc bits in registers which does not belong to a specific module, for example, IMX IOMUXC GPR and ANATOP. With this driver, client can use generic regmap API to access registers which

Re: [PATCH v5 3/4] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-09-04 Thread Dong Aisheng
On Tue, Sep 04, 2012 at 07:34:32PM +0800, Shawn Guo wrote: On Tue, Sep 04, 2012 at 11:20:10AM +0800, Dong Aisheng wrote: + + anatop_np = of_get_parent(np); + if (!anatop_np) + return -ENODEV; + sreg-anatop = syscon_node_to_regmap(anatop_np); + if (IS_ERR(sreg-anatop

Re: [PATCH v5 1/4] mfd: add syscon driver based on regmap

2012-09-04 Thread Dong Aisheng
On Tue, Sep 04, 2012 at 07:35:45PM +0800, Andi Shyti wrote: Hi Dong, On Tue, Sep 04, 2012 at 11:20:08AM +0800, Dong Aisheng wrote: +static int __devinit syscon_probe(struct platform_device *pdev) +{ + struct device *dev = pdev-dev; Do we really need this variable? Anyway you

[PATCH v6 0/4] add syscon driver based on regmap for general registers access

2012-09-04 Thread Dong Aisheng
syscon driver depends on OF * do not call of_node_put in syscon_node_to_regmap * renamed: include/linux/fsl/imx6q-iomuxc-gpr.h - include/linux/mfd/syscon/imx6q-iomuxc-gpr.h ChangeLog v3-v4: Only '[PATCH v4 1/7] mfd: add syscon driver based on regmap' is changed. Dong Aisheng (4): mfd

[PATCH v6 1/4] mfd: add syscon driver based on regmap

2012-09-04 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Add regmap based syscon driver. This is usually used for access misc bits in registers which does not belong to a specific module, for example, IMX IOMUXC GPR and ANATOP. With this driver, client can use generic regmap API to access registers which

[PATCH v6 3/4] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-09-04 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Using syscon to access anatop register. Acked-by: Mark Brown broo...@opensource.wolfsonmicro.com Acked-by: Stephen Warren swar...@wwwdotorg.org Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- ChangeLog v5-v6: * of_node_put after using

[PATCH v6 2/4] ARM: imx6q: add iomuxc gpr support into syscon

2012-09-04 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Include headfile for easy using. Acked-by: Stephen Warren swar...@wwwdotorg.org Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- ChangeLog v4-v5: * renamed: include/linux/fsl/imx6q-iomuxc-gpr.h - include/linux/mfd/syscon/imx6q-iomuxc

[PATCH v6 4/4] mfd: anatop-mfd: remove anatop driver

2012-09-04 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org The anatop registers are accessed via syscon now, no one will use mfd anatop driver anymore, remove it. Acked-by: Stephen Warren swar...@wwwdotorg.org Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- drivers/mfd/Kconfig|8

Re: [PATCH] Chinese translation of Documentation/gpio.txt

2012-09-05 Thread Dong Aisheng
code. But the Windows Notepad can read it. I don't know the reason, probably you could check it. Otherwise you can add my ack. Acked-by: Dong Aisheng dong.aish...@linaro.org Regards Dong Aisheng -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

[PATCH 0/7] add imx-syscon driver for general registers access

2012-08-22 Thread Dong Aisheng
mfd anatop driver which is only for anatop register access. The patch series is based on linus's tree since commit 9160338. Dong Aisheng (7): mfd: add imx syscon driver based on regmap ARM: imx6q: add iomuxc gpr support into imx-syscon ARM: imx6q: add anatop support into imx-syscon

[PATCH 1/7] mfd: add imx syscon driver based on regmap

2012-08-22 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Add regmap based imx syscon driver. This is usually used for access misc bits in registers which does not belong to a specific module, for example, IOMUXC GPR and ANATOP. With this driver, we provide a standard API for client driver to call to access

[PATCH 3/7] ARM: imx6q: add anatop support into imx-syscon

2012-08-22 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org There're a few anatop registers need to be accessed by different modules. Add anatop registers into imx-syscon support for easy access. Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- arch/arm/boot/dts/imx6q.dtsi |4 ++-- 1 files changed, 2

[PATCH 6/7] ARM: dts: imx6q: add simple-bus compatible string for anatop

2012-08-22 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Originally the anatop regulator devices are populated by mfd anatop driver. Since mfd anatop driver will be deleted later, we change to populate the regulator devices by devicetree automatically. This will cause some warning messages as follows during

[PATCH 5/7] ARM: imx6q: convert to use imx-syscon to access anatop registers

2012-08-22 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Using standard imx syscon API to access anatop registers. Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- arch/arm/mach-imx/Kconfig |2 +- arch/arm/mach-imx/mach-imx6q.c | 25 ++--- 2 files changed, 7 insertions

[PATCH 7/7] mfd: anatop-mfd: remove anatop driver

2012-08-22 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org The anatop registers are accessed via imx syscon now, no one will use mfd anatop driver anymore, remove it. Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- drivers/mfd/Kconfig|8 --- drivers/mfd/Makefile |1 - drivers/mfd

[PATCH 4/7] regulator: anatop-regulator: convert to use imx-syscon to access anatop register

2012-08-22 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Using standard imx syscon API to access anatop register. Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- arch/arm/boot/dts/imx6q.dtsi |6 ++ drivers/regulator/Kconfig|2 +- drivers/regulator/anatop-regulator.c

[PATCH 2/7] ARM: imx6q: add iomuxc gpr support into imx-syscon

2012-08-22 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Include headfile for easy using. Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- arch/arm/boot/dts/imx6q.dtsi |5 + include/linux/fsl/imx6q-iomuxc-gpr.h | 319 ++ 2 files changed, 324 insertions

Re: [PATCH 1/7] mfd: add imx syscon driver based on regmap

2012-08-22 Thread Dong Aisheng
On Wed, Aug 22, 2012 at 04:29:41PM +0800, Zhao Richard-B20223 wrote: On Wed, Aug 22, 2012 at 03:18:42PM +0800, Dong Aisheng wrote: From: Dong Aisheng dong.aish...@linaro.org Add regmap based imx syscon driver. This is usually used for access misc bits in registers which does not belong

Re: [PATCH 6/7] ARM: dts: imx6q: add simple-bus compatible string for anatop

2012-08-22 Thread Dong Aisheng
On Wed, Aug 22, 2012 at 04:52:36PM +0800, Zhao Richard-B20223 wrote: On Wed, Aug 22, 2012 at 03:18:47PM +0800, Dong Aisheng wrote: From: Dong Aisheng dong.aish...@linaro.org Originally the anatop regulator devices are populated by mfd anatop driver. Since mfd anatop driver

Re: [PATCH 1/7] mfd: add imx syscon driver based on regmap

2012-08-23 Thread Dong Aisheng
On Thu, Aug 23, 2012 at 01:16:33PM +0800, Stephen Warren wrote: On 08/22/2012 04:57 AM, Dong Aisheng wrote: On Wed, Aug 22, 2012 at 04:29:41PM +0800, Zhao Richard-B20223 wrote: On Wed, Aug 22, 2012 at 03:18:42PM +0800, Dong Aisheng wrote: Add regmap based imx syscon driver

Re: [PATCH 4/7] regulator: anatop-regulator: convert to use imx-syscon to access anatop register

2012-08-23 Thread Dong Aisheng
On Wed, Aug 22, 2012 at 11:59:53PM +0800, Mark Brown wrote: On Wed, Aug 22, 2012 at 03:18:45PM +0800, Dong Aisheng wrote: From: Dong Aisheng dong.aish...@linaro.org Using standard imx syscon API to access anatop register. Acked-by: Mark Brown broo...@opensource.wolfsonmicro.com Thanks

Re: [PATCH 1/7] mfd: add imx syscon driver based on regmap

2012-08-23 Thread Dong Aisheng
On Thu, Aug 23, 2012 at 12:02:41AM +0800, Mark Brown wrote: On Wed, Aug 22, 2012 at 03:18:42PM +0800, Dong Aisheng wrote: From: Dong Aisheng dong.aish...@linaro.org Add regmap based imx syscon driver. Nice to see more regmap-mmio usage! Reviwed-by: Mark Brown broo

Re: [PATCH 4/7] regulator: anatop-regulator: convert to use imx-syscon to access anatop register

2012-08-23 Thread Dong Aisheng
On Thu, Aug 23, 2012 at 01:21:03PM +0800, Stephen Warren wrote: On 08/22/2012 01:18 AM, Dong Aisheng wrote: Signed-off-by: Dong Aisheng dong.aish...@linaro.org diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c @@ -109,7 +110,11 @@ static int

Re: [PATCH 1/7] mfd: add imx syscon driver based on regmap

2012-08-23 Thread Dong Aisheng
On Thu, Aug 23, 2012 at 07:06:47PM +0800, Mark Brown wrote: On Thu, Aug 23, 2012 at 03:26:30PM +0800, Dong Aisheng wrote: On Thu, Aug 23, 2012 at 12:02:41AM +0800, Mark Brown wrote: It'd be good to provide a way of retrieving the regmap so that drivers for subsystems with generic regmap

Re: [PATCH 4/7] regulator: anatop-regulator: convert to use imx-syscon to access anatop register

2012-08-23 Thread Dong Aisheng
On Thu, Aug 23, 2012 at 07:17:41PM +0800, Mark Brown wrote: On Thu, Aug 23, 2012 at 03:15:04PM +0800, Dong Aisheng wrote: On Wed, Aug 22, 2012 at 11:59:53PM +0800, Mark Brown wrote: With the conversion to regmap it'd also be good to convert the driver to use the regmap helper functions

Re: [PATCH 4/7] regulator: anatop-regulator: convert to use imx-syscon to access anatop register

2012-08-23 Thread Dong Aisheng
On Fri, Aug 24, 2012 at 01:56:58AM +0800, Stephen Warren wrote: On 08/23/2012 12:12 AM, Richard Zhao wrote: On Wed, Aug 22, 2012 at 11:21:03PM -0600, Stephen Warren wrote: On 08/22/2012 01:18 AM, Dong Aisheng wrote: Signed-off-by: Dong Aisheng dong.aish...@linaro.org diff --git

[PATCH v2 1/7] mfd: add syscon driver based on regmap

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Add regmap based syscon driver. This is usually used for access misc bits in registers which does not belong to a specific module, for example, IMX IOMUXC GPR and ANATOP. With this driver, client can use generic regmap API to access registers which

[PATCH v2 0/7] add syscon driver based on regmap for general registers access

2012-08-27 Thread Dong Aisheng
anatop driver which is only for anatop register access. The patch series is based on linus's tree 3.6-rc3 since commit 9160338. Dong Aisheng (7): mfd: add syscon driver based on regmap ARM: imx6q: add iomuxc gpr support into syscon ARM: imx6q: add anatop support into syscon regulator

[PATCH v2 3/7] ARM: imx6q: add anatop support into syscon

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org There're a few anatop registers need to be accessed by different modules. Add anatop registers into syscon support for easy access. Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- arch/arm/boot/dts/imx6q.dtsi |4 ++-- 1 files changed, 2

[PATCH v2 4/7] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Using syscon to access anatop register. Acked-by: Mark Brown broo...@opensource.wolfsonmicro.com Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- ChangeLog v1-v2: * update to use generic regmap api --- arch/arm/boot/dts/imx6q.dtsi

[PATCH v2 6/7] ARM: dts: imx6q: add simple-bus compatible string for anatop

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Originally the anatop regulator devices are populated by mfd anatop driver. Since mfd anatop driver will be deleted later, we change to populate the regulator devices by devicetree automatically. This will cause some warning messages as follows during

[PATCH v2 7/7] mfd: anatop-mfd: remove anatop driver

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org The anatop registers are accessed via syscon now, no one will use mfd anatop driver anymore, remove it. Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- drivers/mfd/Kconfig|8 --- drivers/mfd/Makefile |1 - drivers/mfd

[PATCH v2 5/7] ARM: imx6q: convert to use syscon to access anatop registers

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Using syscon to access anatop registers. Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- ChangeLog v1-v2: * update to use generic regmap api --- arch/arm/mach-imx/Kconfig |2 +- arch/arm/mach-imx/mach-imx6q.c | 43

[PATCH v2 2/7] ARM: imx6q: add iomuxc gpr support into syscon

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Include headfile for easy using. Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- arch/arm/boot/dts/imx6q.dtsi |5 + include/linux/fsl/imx6q-iomuxc-gpr.h | 319 ++ 2 files changed, 324 insertions

Re: [PATCH v2 1/7] mfd: add syscon driver based on regmap

2012-08-27 Thread Dong Aisheng
On Tue, Aug 28, 2012 at 06:08:32AM +0800, Shawn Guo wrote: On Mon, Aug 27, 2012 at 03:24:39PM +0800, Dong Aisheng wrote: From: Dong Aisheng dong.aish...@linaro.org Add regmap based syscon driver. This is usually used for access misc bits in registers which does not belong to a specific

Re: [PATCH v2 4/7] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-08-27 Thread Dong Aisheng
phandle there. of_get_parent should just works. Yes, this is a special case. It's also ok for me to use of_get_parent if you want. Will update it. Regards Dong Aisheng -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org

Re: [PATCH v2 5/7] ARM: imx6q: convert to use syscon to access anatop registers

2012-08-27 Thread Dong Aisheng
On Tue, Aug 28, 2012 at 11:23:10AM +0800, Zhao Richard-B20223 wrote: ... np = of_find_compatible_node(NULL, NULL, fsl,imx6q-anatop); np unused. Correct. Will drop it. Regards Dong Aisheng -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

[PATCH v3 0/7] add syscon driver based on regmap for general registers access

2012-08-28 Thread Dong Aisheng
anatop driver which is only for anatop register access. The patch series is based on linus's tree 3.6-rc3 since commit 9160338. Dong Aisheng (7): mfd: add syscon driver based on regmap ARM: imx6q: add iomuxc gpr support into syscon ARM: imx6q: add anatop support into syscon regulator

[PATCH v3 1/7] mfd: add syscon driver based on regmap

2012-08-28 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Add regmap based syscon driver. This is usually used for access misc bits in registers which does not belong to a specific module, for example, IMX IOMUXC GPR and ANATOP. With this driver, client can use generic regmap API to access registers which

[PATCH v3 6/7] ARM: dts: imx6q: add simple-bus compatible string for anatop

2012-08-28 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Originally the anatop regulator devices are populated by mfd anatop driver. Since mfd anatop driver will be deleted later, we change to populate the regulator devices by devicetree automatically. This will cause some warning messages as follows during

[PATCH v3 3/7] ARM: imx6q: add anatop support into syscon

2012-08-28 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org There're a few anatop registers need to be accessed by different modules. Add anatop registers into syscon support for easy access. Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- arch/arm/boot/dts/imx6q.dtsi |4 ++-- 1 files changed, 2

[PATCH v3 2/7] ARM: imx6q: add iomuxc gpr support into syscon

2012-08-28 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Include headfile for easy using. Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- arch/arm/boot/dts/imx6q.dtsi |5 + include/linux/fsl/imx6q-iomuxc-gpr.h | 319 ++ 2 files changed, 324 insertions

[PATCH v3 4/7] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-08-28 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Using syscon to access anatop register. Acked-by: Mark Brown broo...@opensource.wolfsonmicro.com Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- ChangeLog v2-v3: * update to use syscon_node_to_regmap and use of_get_parent to get anatop node

[PATCH v3 5/7] ARM: imx6q: convert to use syscon to access anatop registers

2012-08-28 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org Using syscon to access anatop registers. Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- ChangeLog v2-v3: * remove a few unneed codes ChangeLog v1-v2: * update to use generic regmap api --- arch/arm/mach-imx/Kconfig |2 +- arch/arm

[PATCH v3 7/7] mfd: anatop-mfd: remove anatop driver

2012-08-28 Thread Dong Aisheng
From: Dong Aisheng dong.aish...@linaro.org The anatop registers are accessed via syscon now, no one will use mfd anatop driver anymore, remove it. Signed-off-by: Dong Aisheng dong.aish...@linaro.org --- drivers/mfd/Kconfig|8 --- drivers/mfd/Makefile |1 - drivers/mfd

Re: [RFC PATCH 2/2] irq: add irq_desc_initialize to remove some duplicated lines

2012-07-11 Thread Dong Aisheng
Hi Thomas, Thanks for the review firstly. On Thu, Jul 12, 2012 at 06:19:18AM +0800, Thomas Gleixner wrote: On Wed, 20 Jun 2012, Dong Aisheng wrote: From: Dong Aisheng dong.aish...@linaro.org There're two copies of irq_desc initialization code, reform them into an irq_desc_initialize

Re: [PATCH 0/3] of: add update device node status via cmdline feature

2013-08-23 Thread Dong Aisheng
Hi Grant, On Wed, Aug 21, 2013 at 08:37:09PM +0800, Dong Aisheng wrote: On Thu, Aug 15, 2013 at 01:45:48PM +0100, Grant Likely wrote: On Thu, Aug 15, 2013 at 11:55 AM, Dong Aisheng b29...@freescale.com wrote: We meet some boards having a lot of pin conflicts between different devices

Re: [PATCH 0/3] of: add update device node status via cmdline feature

2013-08-23 Thread Dong Aisheng
not accept this patch series. I already replied that concern in last mail, can you help check it and provide suggestions? Regards Dong Aisheng -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH 0/3] of: add update device node status via cmdline feature

2013-08-23 Thread Dong Aisheng
On Fri, Aug 23, 2013 at 03:51:07PM +0800, Shawn Guo wrote: The device tree mailing list is changed to devicet...@vger.kernel.org. On Fri, Aug 23, 2013 at 03:09:08PM +0800, Dong Aisheng wrote: I tried the uboot way with fdt command to change the node status, it can work. However

Re: [PATCH 0/3] of: add update device node status via cmdline feature

2013-08-21 Thread Dong Aisheng
On Thu, Aug 15, 2013 at 01:45:48PM +0100, Grant Likely wrote: On Thu, Aug 15, 2013 at 11:55 AM, Dong Aisheng b29...@freescale.com wrote: We meet some boards having a lot of pin conflicts between different devices, only one of them can be enabled to run at one time. e.g. imx6q sabreauto

Re: [PATCH 0/3] of: add update device node status via cmdline feature

2013-08-21 Thread Dong Aisheng
On Thu, Aug 15, 2013 at 07:37:04AM -0500, Rob Herring wrote: On 08/15/2013 05:55 AM, Dong Aisheng wrote: We meet some boards having a lot of pin conflicts between different devices, only one of them can be enabled to run at one time. e.g. imx6q sabreauto board, i2c, spi, weim, flexcan

  1   2   3   4   5   6   7   8   9   10   >