[PATCH] regulator: mc13783: Add device tree probe support

2013-04-07 Thread Alexander Shiyan
Patch adds device tree probe support for mc13783-regulator driver. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/regulator/mc13783-regulator.c | 55 ++ drivers/regulator/mc13xxx-regulator-core.c | 2 ++ 2 files changed, 42 insertions(+), 15

Re: linux-next: build failure after merge of the mfd tree

2013-04-07 Thread Alexander Shiyan
Hello. After merging the mfd tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/regulator/anatop-regulator.c: In function 'anatop_regulator_probe': drivers/regulator/anatop-regulator.c:134:2: error: implicit declaration of function 'of_get_parent'

Re[2]: linux-next: build failure after merge of the mfd tree

2013-04-08 Thread Alexander Shiyan
these functions or any other opinions? Ok with me, but you'd need to get Grant and Rob's ACK. I've revised my initial opinion and write ​​a quick patch for fix this issue. From a884d309d2978cbc44c52b650d669e56fef664e2 Mon Sep 17 00:00:00 2001 From: Alexander Shiyan shc_w...@mail.ru Date: Mon, 8 Apr

Re[2]: [PATCH] regulator: mc13783: Add device tree probe support

2013-04-08 Thread Alexander Shiyan
Hello. On Sun, Apr 07, 2013 at 09:02:11PM +0400, Alexander Shiyan wrote: Patch adds device tree probe support for mc13783-regulator driver. I'd expect to see a document describing the binding for any new binding. OK. + if (num_parsed != num_regulators) { + dev_warn(pdev

Re[2]: linux-next: build failure after merge of the mfd tree

2013-04-09 Thread Alexander Shiyan
On Mon, Apr 08, 2013 at 08:27:49PM +0400, Alexander Shiyan wrote: After merging the mfd tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/regulator/anatop-regulator.c: In function 'anatop_regulator_probe': drivers/regulator/anatop

[PATCH] mfd: syscon: fix warnings when printing resource_size_t

2013-04-09 Thread Alexander Shiyan
] drivers/mfd/syscon.c:155:2: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' [-Wformat] Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd/syscon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd

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

2013-03-14 Thread Alexander Shiyan
On 14 March 2013 01:34, Alexander Shiyan shc_w...@mail.ru wrote: This patch allow using syscon driver from the platform data, i.e. possibility using driver on systems without oftree support. For search syscon device from the client drivers, syscon_regmap_lookup_by_pdevname function

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

2013-03-16 Thread Alexander Shiyan
On Friday 15 March 2013, Alexander Shiyan wrote: On 14 March 2013 01:34, Alexander Shiyan shc_w...@mail.ru wrote: This patch allow using syscon driver from the platform data, i.e. possibility using driver on systems without oftree support. For search syscon device from the client

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

2013-03-16 Thread Alexander Shiyan
This patch allow using syscon driver from the platform data, i.e. possibility using driver on systems without oftree support. For search syscon device from the client drivers, syscon_regmap_lookup_by_pdevname function was added. Signed-off-by: Alexander Shiyan shc_w...@mail.ru Acked-by: Dong

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

2013-03-16 Thread Alexander Shiyan
Signed-off-by: Alexander Shiyan shc_w...@mail.ru Acked-by: Dong Aisheng dong.aish...@linaro.org Acked-by: Arnd Bergmann a...@arndb.de --- drivers/mfd/syscon.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c index 61aea63

Re: [PATCH 1/5] net: Add davicom wemac ethernet driver found on Allwinner A10 SoC's

2013-03-16 Thread Alexander Shiyan
From: Stefan Roese s...@denx.de The Allwinner A10 has an ethernet controller that is advertised as coming from Davicom. The exact feature set of this controller is unknown, since there is no public documentation for this IP, and this driver is mostly the one published by Allwinner that

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

2013-03-25 Thread Alexander Shiyan
Acked-by: Dong Aisheng dong.aish...@linaro.org Acked-by: Arnd Bergmann a...@arndb.de Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd/syscon.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c index 61aea63..674af14

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

2013-03-25 Thread Alexander Shiyan
. Acked-by: Dong Aisheng dong.aish...@linaro.org Acked-by: Arnd Bergmann a...@arndb.de Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd/Kconfig| 1 - drivers/mfd/syscon.c | 75 +++--- include/linux/mfd/syscon.h | 1 + 3 files changed

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

2013-03-11 Thread Alexander Shiyan
On Thu, Feb 28, 2013 at 06:57:14PM +0400, Alexander Shiyan wrote: This patch allow using syscon driver from the platform data, i.e. possibility using driver on systems without oftree support. For search syscon device from the client drivers, syscon_regmap_lookup_by_pdevname function

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

2013-03-11 Thread Alexander Shiyan
On Monday 11 March 2013, Dong Aisheng wrote: + dev = driver_find_device(syscon_driver.driver, NULL, (void *)s, + syscon_match_pdevname); + if (!dev) + return ERR_PTR(-ENODEV); Should it be ERR_PTR(-EPROBE_DEFER)? I have no idea

Re: [PATCH 2/4] tty: max310x: Use dev_pm_ops

2013-03-11 Thread Alexander Shiyan
Hello. Use dev_pm_ops instead of the deprecated legacy suspend/resume for the max310x driver. Cc: Alexander Shiyan shc_w...@mail.ru Signed-off-by: Lars-Peter Clausen l...@metafoo.de --- drivers/tty/serial/max310x.c | 24 1 file changed, 16 insertions(+), 8

Re[2]: [PATCH 2/4] tty: max310x: Use dev_pm_ops

2013-03-11 Thread Alexander Shiyan
On 03/11/2013 07:10 PM, Alexander Shiyan wrote: Hello. Use dev_pm_ops instead of the deprecated legacy suspend/resume for the max310x driver. Cc: Alexander Shiyan shc_w...@mail.ru Signed-off-by: Lars-Peter Clausen l...@metafoo.de --- drivers/tty/serial/max310x.c | 24

Re[2]: [PATCH 2/4] tty: max310x: Use dev_pm_ops

2013-03-11 Thread Alexander Shiyan
On 03/11/2013 07:41 PM, Alexander Shiyan wrote: On 03/11/2013 07:10 PM, Alexander Shiyan wrote: Hello. Use dev_pm_ops instead of the deprecated legacy suspend/resume for the max310x driver. Cc: Alexander Shiyan shc_w...@mail.ru Signed-off-by: Lars-Peter Clausen l...@metafoo.de

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

2013-03-13 Thread Alexander Shiyan
This patch allow using syscon driver from the platform data, i.e. possibility using driver on systems without oftree support. For search syscon device from the client drivers, syscon_regmap_lookup_by_pdevname function was added. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd

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

2013-03-13 Thread Alexander Shiyan
Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd/syscon.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c index 61aea63..674af14 100644 --- a/drivers/mfd/syscon.c +++ b/drivers/mfd/syscon.c @@ -25,17 +25,15

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

2013-03-13 Thread Alexander Shiyan
On 03/13/2013 11:34 AM, Alexander Shiyan wrote: This patch allow using syscon driver from the platform data, i.e. possibility using driver on systems without oftree support. For search syscon device from the client drivers, syscon_regmap_lookup_by_pdevname function was added

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

2013-03-06 Thread Alexander Shiyan
Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd/syscon.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c index 61aea63..674af14 100644 --- a/drivers/mfd/syscon.c +++ b/drivers/mfd/syscon.c @@ -25,17

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

2013-02-11 Thread Alexander Shiyan
Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd/syscon.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c index e1886fb..4a7ed5a 100644 --- a/drivers/mfd/syscon.c +++ b/drivers/mfd/syscon.c @@ -24,17 +24,15

[PATCH v2 3/3] mfd: syscon: Add non-DT support

2013-02-11 Thread Alexander Shiyan
This patch allow using syscon driver from the platform data, i.e. possibility works without oftree support. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd/Kconfig| 1 - drivers/mfd/syscon.c | 77 ++ include/linux/mfd

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

2013-02-11 Thread Alexander Shiyan
The driver can be used in various subsystems and therefore should not be unloaded when it is defined in the kernel configuration, so remove support for unloading it. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd/syscon.c | 18 -- 1 file changed, 18 deletions

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

2013-02-11 Thread Alexander Shiyan
Hello. On Monday 11 February 2013, Alexander Shiyan wrote: The driver can be used in various subsystems and therefore should not be unloaded when it is defined in the kernel configuration, so remove support for unloading it. Signed-off-by: Alexander Shiyan shc_w...@mail.ru Can you

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

2013-02-04 Thread Alexander Shiyan
This patch adds support usage platform driver resources, i.e. possibility works without oftree support. Additionally patch removes CONFIG_OF dependency and adds helper for accessing regmap by searching device by its name. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd/Kconfig

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

2013-02-07 Thread Alexander Shiyan
Hello. ... Thanks for the patch adding non-dt support. :-) On Mon, Feb 04, 2013 at 07:00:40PM +0400, Alexander Shiyan wrote: This patch adds support usage platform driver resources, i.e. possibility works without oftree support. Additionally patch removes CONFIG_OF dependency and adds

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

2013-02-07 Thread Alexander Shiyan
Hello. ... Thanks for the patch adding non-dt support. :-) On Mon, Feb 04, 2013 at 07:00:40PM +0400, Alexander Shiyan wrote: This patch adds support usage platform driver resources, i.e. possibility works without oftree support. Additionally patch removes CONFIG_OF dependency

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

2013-02-28 Thread Alexander Shiyan
This patch allow using syscon driver from the platform data, i.e. possibility using driver on systems without oftree support. For search syscon device from the client drivers, syscon_regmap_lookup_by_pdevname function was added. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd

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

2013-02-28 Thread Alexander Shiyan
Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd/syscon.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c index 61aea63..674af14 100644 --- a/drivers/mfd/syscon.c +++ b/drivers/mfd/syscon.c @@ -25,17 +25,15

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

2013-02-18 Thread Alexander Shiyan
Hello. ... Thanks for the patch adding non-dt support. :-) On Mon, Feb 04, 2013 at 07:00:40PM +0400, Alexander Shiyan wrote: This patch adds support usage platform driver resources, i.e. possibility works without oftree support. Additionally patch removes CONFIG_OF dependency

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

2013-02-18 Thread Alexander Shiyan
This patch allow using syscon driver from the platform data, i.e. possibility using driver on systems without oftree support. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd/Kconfig | 1 - drivers/mfd/syscon.c | 76 +++- 2 files

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

2013-02-18 Thread Alexander Shiyan
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 index 4a7ed5a..3c0abcb 100644 --- a/drivers/mfd/syscon.c +++ b/drivers/mfd/syscon.c Hi Alexander, struct regmap

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

2013-02-19 Thread Alexander Shiyan
... struct regmap *syscon_regmap_lookup_by_compatible(const char *s) { struct device_node *syscon_np; struct regmap *regmap; + struct syscon *syscon; + struct device *dev; syscon_np = of_find_compatible_node(NULL, NULL, s); - if

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

2013-02-19 Thread Alexander Shiyan
... struct regmap *syscon_regmap_lookup_by_compatible(const char *s) { struct device_node *syscon_np; struct regmap *regmap; + struct syscon *syscon; + struct device *dev; syscon_np = of_find_compatible_node(NULL, NULL, s); - if

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

2013-02-19 Thread Alexander Shiyan
... struct regmap *syscon_regmap_lookup_by_compatible(const char *s) { struct device_node *syscon_np; struct regmap *regmap; + struct syscon *syscon; + struct device *dev; syscon_np = of_find_compatible_node(NULL, NULL, s);

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

2013-02-20 Thread Alexander Shiyan
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

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

2013-02-20 Thread Alexander Shiyan
OK. I can convert platform to DT, no so easy, but possible. But I will use syscon as way to using DT (and MULTIPLATFORM in the future), this mean that I should completely drop ATAG support from this platform (since I cannot use syscon device without DT support, but several platform

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

2013-02-20 Thread Alexander Shiyan
On Wednesday 20 February 2013, Alexander Shiyan wrote: No. Target have a three SYSCON registers and two SYSFLG. All these registers can be combined into three syscon devices. Only these registers will be handled via syscon device, so it is not only one. Or you mean about handle all

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

2013-02-21 Thread Alexander Shiyan
... treat the absence of DT information as an error, and a call to syscon_regmap_lookup_by_compatible or syscon_regmap_lookup_by_phandle will always return the syscon device that was registered first, or -EPROBE_DEFER for any error. The initial idea is search desired

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

2013-02-21 Thread Alexander Shiyan
This patch allow using syscon driver from the platform data, i.e. possibility using driver on systems without oftree support. For search syscon device from the client drivers, syscon_regmap_lookup_by_pdevname function was added. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd

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

2013-02-21 Thread Alexander Shiyan
On Thu, Feb 21, 2013 at 07:29:02PM +0400, Alexander Shiyan wrote: This patch allow using syscon driver from the platform data, i.e. possibility using driver on systems without oftree support. For search syscon device from the client drivers, syscon_regmap_lookup_by_pdevname function

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

2013-02-22 Thread Alexander Shiyan
The driver can be used in various subsystems and therefore should not be unloaded when it is defined in the kernel configuration, so remove support for unloading it. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd/syscon.c | 18 -- 1 file changed, 18 deletions

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

2013-02-22 Thread Alexander Shiyan
Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd/syscon.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c index 55d7915..2c59ce6 100644 --- a/drivers/mfd/syscon.c +++ b/drivers/mfd/syscon.c @@ -25,17 +25,15

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

2013-02-22 Thread Alexander Shiyan
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 BTW, i did not see Samuel's tree having this new

[PATCH v5 3/3] mfd: syscon: Add non-DT support

2013-02-22 Thread Alexander Shiyan
This patch allow using syscon driver from the platform data, i.e. possibility using driver on systems without oftree support. For search syscon device from the client drivers, syscon_regmap_lookup_by_pdevname function was added. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd

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

2013-02-22 Thread Alexander Shiyan
On 02/22/2013 10:15 PM, Alexander Shiyan wrote: The driver can be used in various subsystems and therefore should not be unloaded when it is defined in the kernel configuration, so remove support for unloading it. Why not fix the clients to module_get() at the appropriate times

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

2013-02-24 Thread Alexander Shiyan
On Sat, Feb 23, 2013 at 04:51:19PM -0700, Stephen Warren wrote: On 02/22/2013 10:28 PM, Alexander Shiyan wrote: On 02/22/2013 10:15 PM, Alexander Shiyan wrote: The driver can be used in various subsystems and therefore should not be unloaded when it is defined in the kernel

[PATCH] serial: Remove orphaned header sc26198.h

2012-08-21 Thread Alexander Shiyan
This header was used by the driver stallion, but the driver has been removed as a result of migration 2.4 - 2.6 and the header is still present in the system and is not currently used by any driver. We can safely remove it. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- include/linux

Re: [PATCH 10/10] ARM: FIQ: Get rid of init_FIQ()

2012-11-22 Thread Alexander Shiyan
The function only saves initial arch-specific no FIQ instruction, by placing the code into set_fiq_handler() we can: - Have less code and logic in the platform-specific files; - Have the code that manages FIQ vector overwriting in one place, i.e. don't spread the logic around. p.s.

Re[2]: [PATCH 10/10] ARM: FIQ: Get rid of init_FIQ()

2012-11-22 Thread Alexander Shiyan
On Fri, Nov 23, 2012 at 07:40:30AM +0400, Alexander Shiyan wrote: [...] static unsigned long no_fiq_insn; +static int got_no_fiq_insn; @@ -78,11 +79,14 @@ void show_fiq_list(struct seq_file *p, int prec) void set_fiq_handler(void *start, unsigned int length

Re[2]: [PATCH 10/10] ARM: FIQ: Get rid of init_FIQ()

2012-11-22 Thread Alexander Shiyan
On Fri, Nov 23, 2012 at 10:27:51AM +0400, Alexander Shiyan wrote: On Fri, Nov 23, 2012 at 07:40:30AM +0400, Alexander Shiyan wrote: [...] static unsigned long no_fiq_insn; +static int got_no_fiq_insn; @@ -78,11 +79,14 @@ void show_fiq_list(struct seq_file *p, int prec

Re: [PATCH 1/2] hwmon: (lm90) Add power control

2013-08-07 Thread Alexander Shiyan
The device lm90 can be controlled by the vdd rail. Adding the power control support to power on/off the vdd rail. And make sure that power is enabled before accessing the device. Signed-off-by: Wei Ni w...@nvidia.com --- drivers/hwmon/lm90.c | 52

Re: [PATCH 1/2] hwmon: (lm90) Add power control

2013-08-07 Thread Alexander Shiyan
On 08/07/2013 03:50 PM, Guenter Roeck wrote: On 08/07/2013 12:32 AM, Wei Ni wrote: On 08/07/2013 03:27 PM, Alexander Shiyan wrote: The device lm90 can be controlled by the vdd rail. Adding the power control support to power on/off the vdd rail. And make sure that power is enabled before

Re: [PATCH] misc: (at24) move header to linux/platform_data/

2013-08-23 Thread Alexander Shiyan
Wolfram wrote: On Fri, Aug 23, 2013 at 02:38:20PM -0400, Vivien Didelot wrote: This patch moves the at24.h header from include/linux/i2c to include/linux/platform_data and updates existing support accordingly. This message explains what the patch does but not why the change is

[PATCH RESEND 2/3] rtc: ds1742: Remove unused field rtc from private structure

2013-08-17 Thread Alexander Shiyan
Private field rtc is not used outside probe, so there are no reason to keep it in driver. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/rtc/rtc-ds1742.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/rtc/rtc-ds1742.c b/drivers/rtc/rtc-ds1742.c index 9fba0ae..139934f

[PATCH RESEND 1/3] rtc: ds1742: Using devm_ioremap_resource()

2013-08-17 Thread Alexander Shiyan
This patch replaces devm_request_mem_region() and devm_ioremap() by devm_ioremap_resource(). Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/rtc/rtc-ds1742.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/rtc/rtc-ds1742.c b/drivers

[PATCH RESEND 3/3] rtc: ds1742: Report to RTC core if retrieved time is invalid

2013-08-17 Thread Alexander Shiyan
Let RTC core decides if the retrieved time is invalid, instead of processing errors in the driver. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/rtc/rtc-ds1742.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/rtc/rtc-ds1742.c b/drivers/rtc/rtc

[PATCH] mfd: syscon: Remove base field from private driver data

2013-07-14 Thread Alexander Shiyan
This patch removes base field from private driver data. No reason to store this variable. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd/syscon.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c index

[PATCH v2] rtc: rtc-ds1742: Add devicetree support

2013-11-27 Thread Alexander Shiyan
This patch allows the driver to be enabled with devicetree. Signed-off-by: Alexander Shiyan shc_w...@mail.ru Acked-by: Mark Rutland mark.rutl...@arm.com --- Documentation/devicetree/bindings/rtc/maxim,ds1742.txt | 12 drivers/rtc/rtc-ds1742.c | 10

[PATCH 2/3] w1: mxc_w1: Add warning for base frequency calculation

2013-11-29 Thread Alexander Shiyan
Base frequency should be as close as possible to 1 MHz. This patch adds warnings when clock is unreliable, according to i.MX datasheet. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/w1/masters/mxc_w1.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff

[PATCH 3/3] w1: mxc_w1: Check the clk_prepare_enable() return value

2013-11-29 Thread Alexander Shiyan
Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/w1/masters/mxc_w1.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/w1/masters/mxc_w1.c b/drivers/w1/masters/mxc_w1.c index 953168c..1e5d94c 100644 --- a/drivers/w1/masters/mxc_w1.c +++ b

[PATCH 1/3] w1: mxc_w1: Remove unused field clkdiv from private structure

2013-11-29 Thread Alexander Shiyan
Private field clkdiv is not used outside probe, so there are no reason to keep it in driver. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/w1/masters/mxc_w1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/w1/masters/mxc_w1.c b/drivers/w1/masters

Re: [PATCH 1/3] w1: mxc_w1: Remove unused field clkdiv from private structure

2013-11-29 Thread Alexander Shiyan
On 11/29/2013 12:39 PM, Alexander Shiyan wrote: Private field clkdiv is not used outside probe, so there are no reason to keep it in driver. Where's the corresponding clk_disable_unprepare()? I do not see any relation clk_disable_unprepare with this patch. ---

Re: [PATCH] mfd: syscon: add inline nop functions to compile without option

2013-11-29 Thread Alexander Shiyan
The syscon interface can be used in different drivers to reach registers of other register range via phandle. The exported functions can only be used if the syscon interface is enabled. This patch fixes this by adding nop functions if the syscon is not selected in the config. Signed-off-by:

[PATCH RESEND] mfd: mc13xxx: Fix null pointer dereference in mc13xxx_common_init

2013-11-29 Thread Alexander Shiyan
/0x110) [c0430144] (kernel_init+0x8/0x110) from [c0009490] (ret_from_fork+0x14/0x24) Code: eadb e3a03008 e1a4 e59f107c (e5962018) ---[ end trace 71265dd116f3967e ]--- Kernel panic - not syncing: Attempted to kill init! exitcode=0x000b Signed-off-by: Alexander Shiyan shc_w...@mail.ru

[PATCH RESEND] mfd: mc13xxx: Remove unneeded mc13xxx_lock/unlock

2013-11-29 Thread Alexander Shiyan
Locking is performed by regmap API so no additional locking is needed. Nevertheless, keep locking in the ADC conversion routine. This need for keep proper read ADC sequence when calling from adc touchscreen drivers. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/input/misc/mc13783

Re: [PATCH RESEND] mfd: mc13xxx: Fix null pointer dereference in mc13xxx_common_init

2013-11-30 Thread Alexander Shiyan
On Sat, Nov 30, 2013 at 08:55:37AM +0400, Alexander Shiyan wrote: If this driver being loaded from devicetree, the pdata is NULL. This cause kernel Oops when fsl,mc13xxx-uses-codec and/or fsl,mc13xxx-uses-touch properties is specified. mc13xxx spi0.0: mc13783: rev: 3.3, fin: 0, fab: 0

[PATCH RESEND] mfd: mc13xxx: Fix null pointer dereference in mc13xxx_common_init

2013-11-30 Thread Alexander Shiyan
/0x110) [c0430144] (kernel_init+0x8/0x110) from [c0009490] (ret_from_fork+0x14/0x24) Code: eadb e3a03008 e1a4 e59f107c (e5962018) ---[ end trace 71265dd116f3967e ]--- Kernel panic - not syncing: Attempted to kill init! exitcode=0x000b Signed-off-by: Alexander Shiyan shc_w...@mail.ru

Re: [PATCH RESEND] mfd: mc13xxx: Remove unneeded mc13xxx_lock/unlock

2013-12-02 Thread Alexander Shiyan
Hello. Le 30/11/2013 06:01, Alexander Shiyan a écrit : Locking is performed by regmap API so no additional locking is needed. Nevertheless, keep locking in the ADC conversion routine. This need for keep proper read ADC sequence when calling from adc touchscreen drivers. You can't do

Re: [PATCH RESEND] mfd: mc13xxx: Fix null pointer dereference in mc13xxx_common_init

2013-12-02 Thread Alexander Shiyan
Понедельник, 2 декабря 2013, 10:56 UTC от Lee Jones lee.jo...@linaro.org: On Sat, 30 Nov 2013, Alexander Shiyan wrote: On Sat, Nov 30, 2013 at 08:55:37AM +0400, Alexander Shiyan wrote: If this driver being loaded from devicetree, the pdata is NULL. This cause kernel Oops when fsl

[PATCH] rtc: rtc-ds1742: Add devicetree support

2013-11-14 Thread Alexander Shiyan
This patch allows the driver to be enabled with devicetree. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- Documentation/devicetree/bindings/rtc/maxim,ds1742.txt | 14 ++ drivers/rtc/rtc-ds1742.c | 10 +- 2 files changed, 23 insertions

[PATCH] mfd: syscon: Allow to using subdevices

2013-11-14 Thread Alexander Shiyan
This patch adds support for using subdevices within syscon node. Primary usage of this is describe all devices with same memory region in one container. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd/syscon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd

Re: [PATCH] mfd: syscon: Allow to using subdevices

2013-11-14 Thread Alexander Shiyan
Hello. On Thu, Nov 14, 2013 at 12:52:03PM +, Alexander Shiyan wrote: This patch adds support for using subdevices within syscon node. Primary usage of this is describe all devices with same memory region in one container. I think if you need to do this, you should not be using

[PATCH] mfd: mc13xxx: Move definitions out of structures

2014-03-15 Thread Alexander Shiyan
Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- include/linux/mfd/mc13xxx.h | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/include/linux/mfd/mc13xxx.h b/include/linux/mfd/mc13xxx.h index a326c85..d63b1d3 100644 --- a/include/linux/mfd/mc13xxx.h

Re: [PATCH] mfd: mc13xxx: Move definitions out of structures

2014-03-18 Thread Alexander Shiyan
Tue, 18 Mar 2014 09:02:37 + от Lee Jones lee.jo...@linaro.org: Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- include/linux/mfd/mc13xxx.h | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/include/linux/mfd/mc13xxx.h b/include/linux

Re: [PATCH] mfd: mc13xxx: Move definitions out of structures

2014-03-18 Thread Alexander Shiyan
Tue, 18 Mar 2014 09:27:35 + от Lee Jones lee.jo...@linaro.org: Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- include/linux/mfd/mc13xxx.h | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/include/linux/mfd/mc13xxx.h b

[PATCH] mfd: syscon: Move diagnostic messages to dev_dbg()

2014-02-21 Thread Alexander Shiyan
This patch moves diagnostic messages used for debugging purposes to dev_dbg(). Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd/syscon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c index 71841f9..2620056 100644

[PATCH 4/4] w1: mxc_w1: Enable driver compilation with COMPILE_TEST

2014-02-21 Thread Alexander Shiyan
This helps increasing build testing coverage. To do this, __raw_{read,write}b() functions was be replaced with simple {read,write}b() variants. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/w1/masters/Kconfig | 2 +- drivers/w1/masters/mxc_w1.c | 12 ++-- 2 files changed

[PATCH 2/4] w1: mxc_w1: Fix mxc_w1_ds2_reset_bus() return value

2014-02-21 Thread Alexander Shiyan
This patch fix mxc_w1_ds2_reset_bus() return value. According to i.MX reference manual, presence status reflected in the bit 6 of control register. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/w1/masters/mxc_w1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 1/4] w1: Remove excess dependencies on W1 for masters and slaves

2014-02-21 Thread Alexander Shiyan
Configuration for masters and slaves is included only if W1 symbol enabled, so no reason to check it once more. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/w1/masters/Kconfig | 3 +-- drivers/w1/slaves/Kconfig | 5 - 2 files changed, 1 insertion(+), 7 deletions(-) diff

[PATCH 3/4] w1: mxc_w1: Driver cleanup

2014-02-21 Thread Alexander Shiyan
- Remove old and currently wrong address of the FSF from license parts of the code. - Remove unused #include and sort remaining headers alphabetically. - Remove unised definitions. - Add definitions for bit-fields. - Add missing module owner field. Signed-off-by: Alexander Shiyan shc_w

[PATCH] irq: Export symbol no_action()

2014-02-28 Thread Alexander Shiyan
This will allow to use dummy IRQ handler no_action() from drivers compiled as module. For example, dummy handler is could be used for drivers that use ARM FIQ interrupts. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- kernel/irq/handle.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH 2/5] drivers: bus: omap_l3: Convert to use devm_request_and_ioremap()

2014-03-04 Thread Alexander Shiyan
Вторник, 4 марта 2014, 11:01 +02:00 от Peter Ujfalusi peter.ujfal...@ti.com: We can then remove the iounmap() calls from probe and remove. Since the driver requests the resources via index we can do the mem resource request within a for loop. Signed-off-by: Peter Ujfalusi

Re: [PATCH 2/5] drivers: bus: omap_l3: Convert to use devm_request_and_ioremap()

2014-03-04 Thread Alexander Shiyan
Вторник, 4 марта 2014, 13:12 +04:00 от Alexander Shiyan shc_w...@mail.ru: Вторник, 4 марта 2014, 11:01 +02:00 от Peter Ujfalusi peter.ujfal...@ti.com: We can then remove the iounmap() calls from probe and remove. Since the driver requests the resources via index we can do the mem resource

Re: [PATCH] irq: Export symbol no_action()

2014-03-04 Thread Alexander Shiyan
Вторник, 4 марта 2014, 12:05 +01:00 от Thomas Gleixner t...@linutronix.de: On Sat, 1 Mar 2014, Alexander Shiyan wrote: This will allow to use dummy IRQ handler no_action() from drivers compiled as module. For example, dummy handler is could be used for drivers that use ARM FIQ interrupts

Re: [PATCH] irq: Export symbol no_action()

2014-03-04 Thread Alexander Shiyan
+сс Arnd Bergmann Вторник, 4 марта 2014, 16:46 +01:00 от Thomas Gleixner t...@linutronix.de: On Tue, 4 Mar 2014, Alexander Shiyan wrote: Вторник, 4 марта 2014, 12:05 +01:00 от Thomas Gleixner t...@linutronix.de: On Sat, 1 Mar 2014, Alexander Shiyan wrote: This will allow

[PATCH v2] irq: Export symbol no_action()

2014-03-05 Thread Alexander Shiyan
This will allow to use dummy IRQ handler no_action() from drivers compiled as module. For example, dummy handler is could be used for drivers that use ARM FIQ interrupts. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- kernel/irq/handle.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH] RFC: WIP: sc16is7xx [v0.4]

2014-03-10 Thread Alexander Shiyan
Понедельник, 10 марта 2014, 2:26 -04:00 от j...@ringle.org: From: Jon Ringle jrin...@gridpoint.com ... +config SERIAL_SC16IS7XX + tristate SC16IS7xx RS485 serial support + select SERIAL_CORE + default n + help + This selects support for SC16IS7xx for use as a

[PATCH] mfd: syscon: Simplify syscon_match_pdevname()

2014-03-10 Thread Alexander Shiyan
Since we do not want to add new platform IDs for the syscon driver, there is no reason to iterate over IDs. This patch simplifies syscon_match_pdevname() function to remove such iteration. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/mfd/syscon.c | 7 --- 1 file changed, 7

Re: [PATCH] RFC: WIP: sc16is7xx [v0.4]

2014-03-10 Thread Alexander Shiyan
Понедельник, 10 марта 2014, 7:50 -04:00 от Jon Ringle j...@ringle.org: On Mon, 10 Mar 2014, Alexander Shiyan wrote: Понедельник, 10 марта 2014, 2:26 -04:00 от j...@ringle.org: From: Jon Ringle jrin...@gridpoint.com ... +config SERIAL_SC16IS7XX + tristate SC16IS7xx RS485 serial

[PATCH] input: Add commonly used event types

2014-01-13 Thread Alexander Shiyan
Patch adds commonly used event types (EV_KEY and EV_SW) to devicetree bindings header for input subsystem. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- include/dt-bindings/input/input.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings/input/input.h b/include/dt

[PATCH] w1: Remove excess dependencies on W1 for masters and slaves

2014-02-16 Thread Alexander Shiyan
Configuration for masters and slaves is included only if W1 symbol enabled, so no reason to check it once more. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- drivers/w1/masters/Kconfig | 3 +-- drivers/w1/slaves/Kconfig | 5 - 2 files changed, 1 insertion(+), 7 deletions(-) diff

Re: [PATCH] w1: Remove excess dependencies on W1 for masters and slaves

2014-02-16 Thread Alexander Shiyan
Воскресенье, 16 февраля 2014, 16:25 +04:00 от Alexander Shiyan shc_w...@mail.ru: Configuration for masters and slaves is included only if W1 symbol enabled, so no reason to check it once more. Looks like this patch broke build drivers as modules. Please forget it, sorry for noise. ---

Re: [PATCH] arm: imx: remove MACH_MXLADS

2014-02-16 Thread Alexander Shiyan
Воскресенье, 16 февраля 2014, 19:03 +01:00 от Paul Bolle pebo...@tiscali.nl: The Kconfig symbol MACH_MXLADS was added in v2.6.29. It has never been used. Setting it has no effect. There are no calls for machine_is_mxlads(). This symbol can safely be removed. Signed-off-by: Paul Bolle

Re: [PATCH] arm: imx: remove MACH_MXLADS

2014-02-16 Thread Alexander Shiyan
Воскресенье, 16 февраля 2014, 19:43 +01:00 от Paul Bolle pebo...@tiscali.nl: On Sun, 2014-02-16 at 22:16 +0400, Alexander Shiyan wrote: Воскресенье, 16 февраля 2014, 19:03 +01:00 от Paul Bolle pebo...@tiscali.nl: The Kconfig symbol MACH_MXLADS was added in v2.6.29. It has never been used

Re: [PATCH] arm: imx: remove MACH_MXLADS

2014-02-16 Thread Alexander Shiyan
Воскресенье, 16 февраля 2014, 20:12 +01:00 от Paul Bolle pebo...@tiscali.nl: On Sun, 2014-02-16 at 23:06 +0400, Alexander Shiyan wrote: Kconfig selects MACH_MXLADS, this enables machine_arch_type from include/generated/mach-types.h which used for machine_is_xx() macro, so if multiple boards

Re: [PATCH] arm: imx: remove MACH_MXLADS

2014-02-16 Thread Alexander Shiyan
Воскресенье, 16 февраля 2014, 21:35 +01:00 от Paul Bolle pebo...@tiscali.nl: On Sun, 2014-02-16 at 23:21 +0400, Alexander Shiyan wrote: Воскресенье, 16 февраля 2014, 20:12 +01:00 от Paul Bolle pebo...@tiscali.nl: On Sun, 2014-02-16 at 23:06 +0400, Alexander Shiyan wrote: Kconfig selects

Re: [RFC PATCH v2 1/2] mfd: syscon: Support early initialization

2014-02-19 Thread Alexander Shiyan
Среда, 19 февраля 2014, 12:04 +01:00 от Michal Simek michal.si...@xilinx.com: Some platforms need to get system controller ready as soon as possible. The patch provides early_syscon_initialization which create early mapping for all syscon compatible devices in early_syscon_probe. Regmap is

  1   2   3   4   >