Re: [PATCH] memstick: fix error return code in r592_probe()

2013-06-09 Thread Andy Shevchenko
...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org

Re: [PATCH] pcmcia: pd6729: fix error return code in pd6729_pci_probe()

2013-06-09 Thread Andy Shevchenko
? -- With Best Regards, Andy Shevchenko -- 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: [PATCH] mtd: orion_nand: Improve error handling in orion_nand_probe

2013-06-09 Thread Andy Shevchenko
and remove calls to iounmap. - The devm_ioremap_resource function checks the passed resource so we can remove the NULL check after the platform_get_resource call. What about another patch (that I guess should go first) that converts printk to dev_* or pr_*? -- With Best Regards, Andy Shevchenko

Re: [PATCH v2] ethernet/arc/arc_emac - Add new driver

2013-06-09 Thread Andy Shevchenko
__iomem *reg_base_addr; /* MAC registers base address */ kerneldoc format? +++ b/drivers/net/ethernet/arc/arc_emac_regs.h @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2004, 2007-2010, 2011-2013 Synopsys, Inc. (www.synopsys.com) 2007-2013 ? -- With Best Regards, Andy Shevchenko -- To unsubscribe from

Re: [PATCH] dmatest: add ability to disable pq and xor

2013-06-09 Thread Andy Shevchenko
On Tue, Jun 4, 2013 at 8:11 PM, Dan Williams d...@fb.com wrote: On 6/4/13 12:25 AM, Andy Shevchenko andy.shevche...@gmail.com wrote: On Tue, Jun 4, 2013 at 2:29 AM, Jon Mason jon.ma...@intel.com wrote: On Fri, May 31, 2013 at 11:22:10AM +0300, Andy Shevchenko wrote: [] Since the testing

Re: [PATCH] mtd: orion_nand: Improve error handling in orion_nand_probe

2013-06-09 Thread Andy Shevchenko
On Sun, Jun 9, 2013 at 10:17 PM, Dan Carpenter dan.carpen...@oracle.com wrote: On Sun, Jun 09, 2013 at 08:15:20PM +0300, Andy Shevchenko wrote: [] What about another patch (that I guess should go first) that converts printk to dev_* or pr_*? Huh, what? Those are two totally unrelated

Re: [PATCH] dma: mmp_pdma: support for getting residual bytes

2013-06-09 Thread Andy Shevchenko
On Fri, Jun 7, 2013 at 6:02 AM, Xiang Wang wangx...@gmail.com wrote: 2013/6/6 Andy Shevchenko andy.shevche...@gmail.com: On Thu, Jun 6, 2013 at 6:09 AM, Xiang Wang wangx...@gmail.com wrote: [] 2. DMA controller handles trailing bytes for us. This is the case I mentioned in my previous email

Re: i2c: introduce i2c helper i2c_find_client_by_name()

2013-06-09 Thread Andy Shevchenko
think you have to talk to Sakari about your issues. On Thu, Jun 06, 2013 at 11:32:06PM +0300, Andy Shevchenko wrote: On Thu, Jun 6, 2013 at 9:33 PM, Bin Gao bin@linux.intel.com wrote: There is a requirement to get the i2c_client pointer dynamically without knowing the bus and slave

Re: [PATCH] mtd: orion_nand: Improve error handling in orion_nand_probe

2013-06-09 Thread Andy Shevchenko
On Sun, Jun 9, 2013 at 11:57 PM, Dan Carpenter dan.carpen...@oracle.com wrote: On Sun, Jun 09, 2013 at 10:27:03PM +0300, Andy Shevchenko wrote: On Sun, Jun 9, 2013 at 10:17 PM, Dan Carpenter dan.carpen...@oracle.com wrote: On Sun, Jun 09, 2013 at 08:15:20PM +0300, Andy Shevchenko wrote

Re: [PATCH] pwm: devm: alloc correct pointer size

2013-06-10 Thread Andy Shevchenko
On Mon, Jun 10, 2013 at 3:04 AM, Wolfram Sang w...@the-dreams.de wrote: On Thu, Jun 06, 2013 at 10:43:41PM +0300, Andy Shevchenko wrote: On Mon, Jun 3, 2013 at 11:27 PM, Wolfram Sang w...@the-dreams.de wrote: The allocated object should be the size of what the pointer is pointing

Re: [PATCH 1/2] Initial support for Allwinner's Security ID fuses

2013-06-11 Thread Andy Shevchenko
On Tue, Jun 11, 2013 at 12:43 AM, Oliver Schinagl oliver+l...@schinagl.nl wrote: On 06/06/13 21:16, Andy Shevchenko wrote: On Sun, Jun 2, 2013 at 5:58 PM, Oliver Schinagl oliver+l...@schinagl.nl wrote: From: Oliver Schinagl oli...@schinagl.nl + if (likely((SID_SIZE))) { Extra braces

Re: [PATCH v3 1/7] clk: divider: add flag to limit possible dividers to even numbers

2013-06-11 Thread Andy Shevchenko
) + return false; return true; } What if rewrite like if (divider-flags CLK_DIVIDER_EVEN == 0) return true; return div 2 || div % 2 == 0; -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: [PATCH v3 1/7] clk: divider: add flag to limit possible dividers to even numbers

2013-06-11 Thread Andy Shevchenko
On Tue, Jun 11, 2013 at 3:06 PM, Heiko Stübner he...@sntech.de wrote: Am Dienstag, 11. Juni 2013, 13:51:56 schrieb Andy Shevchenko: On Tue, Jun 11, 2013 at 2:29 PM, Heiko Stübner he...@sntech.de wrote: [] @@ -141,6 +149,8 @@ static bool _is_valid_div(struct clk_divider *divider, unsigned

Re: [PATCH v3 1/7] clk: divider: add flag to limit possible dividers to even numbers

2013-06-11 Thread Andy Shevchenko
On Tue, Jun 11, 2013 at 3:37 PM, Andy Shevchenko andy.shevche...@gmail.com wrote: On Tue, Jun 11, 2013 at 3:06 PM, Heiko Stübner he...@sntech.de wrote: Am Dienstag, 11. Juni 2013, 13:51:56 schrieb Andy Shevchenko: On Tue, Jun 11, 2013 at 2:29 PM, Heiko Stübner he...@sntech.de wrote

Re: [PATCH v2 0/4] dw_dmac: move to own folder and split

2013-06-11 Thread Andy Shevchenko
On Wed, 2013-06-05 at 15:26 +0300, Andy Shevchenko wrote: This is split of the dw_dmac driver as suggested by Arnd et al [1,2]. There are three most important patches: 2/4 moves driver to its own folder 3/4 does the actual split 4/4 introduces PCI part of the driver During this files

Re: [PATCH v2 2/4] dma: move dw_dmac driver to an own directory

2013-06-12 Thread Andy Shevchenko
On Wed, Jun 12, 2013 at 8:08 AM, Vinod Koul vinod.k...@intel.com wrote: On Wed, Jun 05, 2013 at 03:26:44PM +0300, Andy Shevchenko wrote: The dw_dmac driver is going to be split into multiple files. To make this more convenient move it to an own directory. Signed-off-by: Andy Shevchenko

Re: [PATCH v2 2/4] dma: move dw_dmac driver to an own directory

2013-06-12 Thread Andy Shevchenko
On Wed, Jun 12, 2013 at 10:39 AM, Vinod Koul vinod.k...@intel.com wrote: On Wed, Jun 12, 2013 at 10:43:29AM +0300, Andy Shevchenko wrote: On Wed, Jun 12, 2013 at 8:08 AM, Vinod Koul vinod.k...@intel.com wrote: On Wed, Jun 05, 2013 at 03:26:44PM +0300, Andy Shevchenko wrote: [] Something

Re: [PATCH v2 2/4] dma: move dw_dmac driver to an own directory

2013-06-12 Thread Andy Shevchenko
On Wed, Jun 12, 2013 at 10:52 AM, Vinod Koul vinod.k...@intel.com wrote: On Wed, Jun 12, 2013 at 11:27:51AM +0300, Andy Shevchenko wrote: On Wed, Jun 12, 2013 at 10:39 AM, Vinod Koul vinod.k...@intel.com wrote: [] Something like config DW_DMAC_BIG_ENDIAN_IO tristate config

Re: [PATCH v2 2/4] dma: move dw_dmac driver to an own directory

2013-06-12 Thread Andy Shevchenko
[+ Hein] On Wed, 2013-06-12 at 13:42 +0530, Vinod Koul wrote: On Wed, Jun 12, 2013 at 11:38:37AM +0300, Andy Shevchenko wrote: On Wed, Jun 12, 2013 at 10:52 AM, Vinod Koul vinod.k...@intel.com wrote: On Wed, Jun 12, 2013 at 11:27:51AM +0300, Andy Shevchenko wrote: On Wed, Jun 12, 2013

Re: [PATCH v2 2/4] dma: move dw_dmac driver to an own directory

2013-06-12 Thread Andy Shevchenko
For documenting, we can add this in commit log or better in driver code where you use this The driver is better place if you decide to move it (drivers/dma/dw/regs.h). -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [PATCH] HID: multitouch: prevent memleak with the allocated name

2013-06-12 Thread Andy Shevchenko
will prepare later better approach with devm_* usage. -- With Best Regards, Andy Shevchenko -- 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

Re: [PATCH 15/15] lib: devres: Remove deprecated devm_request_and_ioremap

2013-06-12 Thread Andy Shevchenko
suggest to mark it as __deprecated and wait couple of release cycles. -- With Best Regards, Andy Shevchenko -- 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

Re: [PATCH v3] ethernet/arc/arc_emac - Add new driver

2013-06-13 Thread Andy Shevchenko
can avoid those 0xff. + ndev = alloc_etherdev(sizeof(struct arc_emac_priv)); + if (!ndev) { + err = -ENOMEM; + goto out; + } Redundant goto. Just return here. + } + + Extra line. -- With Best Regards, Andy Shevchenko -- To unsubscribe

Re: [PATCH v3] ethernet/arc/arc_emac - Add new driver

2013-06-13 Thread Andy Shevchenko
On Thu, Jun 13, 2013 at 9:33 PM, Joe Perches j...@perches.com wrote: On Thu, 2013-06-13 at 21:25 +0300, Andy Shevchenko wrote: On Thu, Jun 13, 2013 at 5:37 PM, Alexey Brodkin alexey.brod...@synopsys.com wrote: Driver for non-standard on-chip ethernet device ARC EMAC 10/100, instantiated

Re: [PATCH v3] ethernet/arc/arc_emac - Add new driver

2013-06-13 Thread Andy Shevchenko
On Thu, Jun 13, 2013 at 11:25 PM, Alexey Brodkin alexey.brod...@synopsys.com wrote: On 06/13/2013 10:25 PM, Andy Shevchenko wrote: On Thu, Jun 13, 2013 at 5:37 PM, Alexey Brodkin alexey.brod...@synopsys.com wrote: Driver for non-standard on-chip ethernet device ARC EMAC 10/100, instantiated

Re: i2c: introduce i2c helper i2c_find_client_by_name()

2013-06-14 Thread Andy Shevchenko
On Tue, Jun 11, 2013 at 8:11 PM, Bin Gao bin@linux.intel.com wrote: On Sun, Jun 09, 2013 at 10:53:35PM +0300, Andy Shevchenko wrote: Please, try to avoid top posting in the future emails. On Fri, Jun 7, 2013 at 12:26 AM, Bin Gao bin@linux.intel.com wrote: With v4l2, the camera sensor

Re: [PATCH 1/2] Initial support for Allwinner's Security ID fuses

2013-06-14 Thread Andy Shevchenko
); + goto exit; Ditto. + dev_info(pdev-dev, sunxi SID ver %s loaded\n, DRV_VERSION); + ret = 0; + /* fall through */ Ditto. + +exit: + return ret; Useless lines. +module_platform_driver(sunxi_sid_driver); + + Extra line. -- With Best Regards, Andy Shevchenko

Re: [PATCH] dmatest: masking tests for channel capabilities

2013-06-17 Thread Andy Shevchenko
DMA_CAP_PQ (1 2) Can we reuse DMA_MEMCPY and so on from enum dma_transaction_type? -- With Best Regards, Andy Shevchenko -- 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 1/2] Initial support for Allwinner's Security ID fuses

2013-06-17 Thread Andy Shevchenko
, %s driver unloaded\n, DRV_NAME); It's useless to use DRV_NAME in conjunction with dev_* macros. dev_* will print driver name as a prefix. -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

Re: [PATCH] dmatest: masking tests for channel capabilities

2013-06-17 Thread Andy Shevchenko
, Andy Shevchenko -- 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/

[PATCH] gpio-langwell: remove Withney point support

2013-06-18 Thread Andy Shevchenko
It seems there is no user of the wp_gpio driver in the kernel. Let's remove it. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Acked-by: Mika Westerberg mika.westerb...@linux.intel.com --- drivers/gpio/gpio-langwell.c | 69 +--- 1 file

Re: [PATCH] dmatest: add ability to disable pq and xor

2013-06-04 Thread Andy Shevchenko
On Tue, Jun 4, 2013 at 2:29 AM, Jon Mason jon.ma...@intel.com wrote: On Fri, May 31, 2013 at 11:22:10AM +0300, Andy Shevchenko wrote: On Fri, May 17, 2013 at 8:54 PM, Jon Mason jon.ma...@intel.com wrote: dmatest would create a thread to stress XOR and PQ, if the capability is present

[PATCH] cris: kgdb: use native hex2bin

2013-06-04 Thread Andy Shevchenko
There are kernel native helpers to convert hex ascii to the binary format: hex_to_bin() and hex2bin(). Thus, no need to reimplement them customly. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Cc: Geert Uytterhoeven ge...@linux-m68k.org --- arch/cris/arch-v10/kernel/kgdb.c

Re: [PATCH] cris: kgdb: use native hex2bin

2013-06-04 Thread Andy Shevchenko
On Tue, Jun 4, 2013 at 11:51 AM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: There are kernel native helpers to convert hex ascii to the binary format: hex_to_bin() and hex2bin(). Thus, no need to reimplement them customly. Signed-off-by: Andy Shevchenko andriy.shevche

[PATCH v1 3/4] dma: dw: split driver to library part and platform code

2013-06-04 Thread Andy Shevchenko
To simplify the driver development let's split driver to library and platform code parts. It helps us to add PCI driver in future. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/Makefile | 2 +- drivers/dma/dw/Kconfig

[PATCH v1 1/4] dw_dmac: don't check resource with devm_ioremap_resource

2013-06-04 Thread Andy Shevchenko
devm_ioremap_resource does sanity checks on the given resource. No need to duplicate this in the driver. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Acked-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/dma/dw_dmac.c | 5 + 1 file changed, 1 insertion(+), 4

[PATCH v1 2/4] dma: move dw_dmac driver to an own directory

2013-06-04 Thread Andy Shevchenko
The dw_dmac driver is going to be split into multiple files. To make this more convenient move it to an own directory. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Acked-by: Viresh Kumar viresh.ku...@linaro.org --- MAINTAINERS | 3 +-- drivers/dma

[PATCH v1 4/4] dma: dw: add PCI part of the driver

2013-06-04 Thread Andy Shevchenko
This is the PCI part of the DesignWare DMAC driver. The controller is usually used in the Intel hardware such as Intel Medfield. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/dma/dw/Kconfig | 9 + drivers/dma/dw/Makefile | 3 ++ drivers/dma/dw/pci.c

[PATCH v1 0/4] dw_dmac: move to own folder and split

2013-06-04 Thread Andy Shevchenko
core.c and platform.c. Cnages v0-v1: - apply Viresh's ACKs - append PCI part of the driver - test altogether on Intel Medfield - add 1/4 to the series as it based on it, but Vinod didn't apply it yet to his tree. Andy Shevchenko (4): dw_dmac: don't check resource with devm_ioremap_resource

Re: [PATCH v1 0/4] dw_dmac: move to own folder and split

2013-06-04 Thread Andy Shevchenko
On Tue, 2013-06-04 at 15:01 +0200, Arnd Bergmann wrote: On Tuesday 04 June 2013 15:36:18 Andy Shevchenko wrote: This is second attempt to do split as suggested by Arnd et al [1,2]. There are three most important patches: 2/4 moves driver to its own folder 3/4 does the actual split 4

Re: [PATCH, resend] pch_phub: re-use native MAC address parser

2013-06-04 Thread Andy Shevchenko
On Tue, Jun 4, 2013 at 5:03 PM, Arnd Bergmann a...@arndb.de wrote: On Tuesday 28 May 2013, Andy Shevchenko wrote: We have mac_pton() helper to parse MAC addresses. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Acked-by: Arnd Bergmann a...@arndb.de Hmm, the patch has

Re: [PATCH, resend] pch_phub: re-use native MAC address parser

2013-06-04 Thread Andy Shevchenko
On Tue, Jun 4, 2013 at 5:38 PM, Arnd Bergmann a...@arndb.de wrote: On Tuesday 04 June 2013 17:21:16 Andy Shevchenko wrote: The easiest solution would be to make the entire driver depend on NET. I don't feel that is good idea. Driver is an abstraction to the ROM, it doesn't mean you can't

[PATCH] net: core: move mac_pton() to lib/net_utils.c

2013-06-04 Thread Andy Shevchenko
Since we have at least one user of this function outside of CONFIG_NET scope, we have to provide this function independently. The proposed solution is to move it under lib/net_utils.c with corresponding configuration variable and select wherever it is needed. Signed-off-by: Andy Shevchenko

[PATCH v2 0/4] dw_dmac: move to own folder and split

2013-06-05 Thread Andy Shevchenko
of the driver - test altogether on Intel Medfield - add 1/4 to the series as it based on it, but Vinod didn't apply it yet to his tree. Andy Shevchenko (4): dw_dmac: don't check resource with devm_ioremap_resource dma: move dw_dmac driver to an own directory dma: dw: split driver

[PATCH v2 1/4] dw_dmac: don't check resource with devm_ioremap_resource

2013-06-05 Thread Andy Shevchenko
devm_ioremap_resource does sanity checks on the given resource. No need to duplicate this in the driver. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Acked-by: Viresh Kumar viresh.ku...@linaro.org Acked-by: Arnd Bergmann a...@arndb.de --- drivers/dma/dw_dmac.c | 5 + 1

[PATCH v2 4/4] dma: dw: add PCI part of the driver

2013-06-05 Thread Andy Shevchenko
This is the PCI part of the DesignWare DMAC driver. The controller is usually used in the Intel hardware such as Intel Medfield. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Acked-by: Arnd Bergmann a...@arndb.de Acked-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/dma

[PATCH v2 3/4] dma: dw: split driver to library part and platform code

2013-06-05 Thread Andy Shevchenko
To simplify the driver development let's split driver to library and platform code parts. It helps us to add PCI driver in future. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Acked-by: Arnd Bergmann a...@arndb.de Acked-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/dma

[PATCH v2 2/4] dma: move dw_dmac driver to an own directory

2013-06-05 Thread Andy Shevchenko
The dw_dmac driver is going to be split into multiple files. To make this more convenient move it to an own directory. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Acked-by: Viresh Kumar viresh.ku...@linaro.org Acked-by: Arnd Bergmann a...@arndb.de --- MAINTAINERS

Re: [PATCH v1.1] gpiolib: append SFI helpers for GPIO API

2013-06-05 Thread Andy Shevchenko
On Mon, Jun 3, 2013 at 3:26 PM, Joe Perches j...@perches.com wrote: On Mon, 2013-06-03 at 11:16 +0300, Andy Shevchenko wrote: On Sun, 2013-06-02 at 19:06 -0700, Joe Perches wrote: On Mon, 2013-06-03 at 11:59 +1000, Ryan Mallon wrote: On 31/05/13 19:27, Andy Shevchenko wrote

[PATCH v1.2] gpiolib: append SFI helpers for GPIO API

2013-06-05 Thread Andy Shevchenko
To support some (legacy) firmwares and platforms let's make life easier for their customers. This patch extracts SFI GPIO API from arch/x86/platform/mrst/mrst.c. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Acked-by: Len Brown len.br...@intel.com Cc: Grant Likely grant.lik

Re: [PATCH] dmatest: do not allow to interrupt ongoing tests

2013-06-05 Thread Andy Shevchenko
On Wed, Jun 5, 2013 at 8:25 PM, Guennadi Liakhovetski g.liakhovet...@gmx.de wrote: On Wed, 5 Jun 2013, Will Deacon wrote: On Mon, May 27, 2013 at 08:11:07AM +0100, Andy Shevchenko wrote: On Fri, 2013-05-24 at 23:55 +0200, Guennadi Liakhovetski wrote: On Thu, 23 May 2013, Andy Shevchenko

Re: [PATCH] dma: mmp_pdma: support for getting residual bytes

2013-06-06 Thread Andy Shevchenko
On Thu, Jun 6, 2013 at 6:09 AM, Xiang Wang wangx...@gmail.com wrote: 2013/6/3 Andy Shevchenko andy.shevche...@gmail.com: On Mon, Jun 3, 2013 at 6:22 AM, Xiang Wang wangx...@gmail.com wrote: 2013/5/31 Andy Shevchenko andy.shevche...@gmail.com: On Fri, May 31, 2013 at 11:21 AM, Xiang Wang wangx

Re: [PATCH 1/2] Initial support for Allwinner's Security ID fuses

2013-06-06 Thread Andy Shevchenko
()? + + +exit: + return ret; Remove those two and empty lines. -- With Best Regards, Andy Shevchenko -- 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

Re: [PATCH 1/2] list: add list_for_each_entry_del

2013-06-06 Thread Andy Shevchenko
); ... } or some variant thereof. What the problem to use list_for_each_safe()? -- With Best Regards, Andy Shevchenko -- 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

Re: [PATCH] pwm: devm: alloc correct pointer size

2013-06-06 Thread Andy Shevchenko
understand why it so? If it wrong approach, than probably you have to change **ptr - *ptr. But without answer on first question I don't know if it proper solution or not. -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [PATCH 1/2] list: add list_for_each_entry_del

2013-06-06 Thread Andy Shevchenko
On Thu, Jun 6, 2013 at 9:12 PM, Jörn Engel jo...@logfs.org wrote: On Thu, 6 June 2013 22:32:55 +0300, Andy Shevchenko wrote: On Mon, Jun 3, 2013 at 8:28 PM, Joern Engel jo...@logfs.org wrote: I have seen a lot of boilerplate code that either follows the pattern of while (!list_empty

Re: [PATCH 06/10] mmc: dw_mmc-pltfm: add Rockchip variant

2013-06-06 Thread Andy Shevchenko
Regards, Andy Shevchenko -- 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: i2c: introduce i2c helper i2c_find_client_by_name()

2013-06-06 Thread Andy Shevchenko
by passing the client name. Why ISP driver would like to register sensor drivers in the first place? That seems the task of platform code, or DT, or ACPI5 Why do you need to re-register them at run time? -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line

Re: [PATCH v2 4/8] mmc: dw_mmc-pltfm: add Rockchip variant

2013-06-06 Thread Andy Shevchenko
) present, so to keep the footprint low, add this small variant to the pltfm driver. My comments against v1 of this patch are still valid. -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

Re: [PATCH V2] i2c: designware: fix race between subsequent xfers

2013-06-07 Thread Andy Shevchenko
transfer, be it successful or not. This patch requires https://patchwork.kernel.org/patch/2601241/ to be applied first. What if you just move disabling code from i2c_dw_xfer_init() to the top of i2c_dw_xfer() ? Will it help? -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send

Re: [PATCH 3/6] PCI: introduce pci_trim_stale_devices()

2013-06-25 Thread Andy Shevchenko
) pci_trim_stale_devices(child); } +} -- With Best Regards, Andy Shevchenko -- 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 4/6] PCI: acpiphp: check for new devices on enabled host

2013-06-25 Thread Andy Shevchenko
; + pci_trim_stale_devices(dev); Perhaps list_for_each_entry_safe(dev, tmp, bus-devices, bus_list) { if (PCI_SLOT(dev-devfn) == slot-device) pci_trim_stale_devices(dev); } -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list

Re: [PATCH 5/6] PCI: acpiphp: look _RMV method a bit deeper in the hierarhcy

2013-06-25 Thread Andy Shevchenko
(ACPI_TYPE_DEVICE, handle, depth, pcihp_evaluate_rmv, + NULL, removable, NULL); + return !!removable; +} -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org

Re: [PATCH 5/6] PCI: acpiphp: look _RMV method a bit deeper in the hierarhcy

2013-06-25 Thread Andy Shevchenko
On Tue, Jun 25, 2013 at 9:31 PM, Mika Westerberg mika.westerb...@linux.intel.com wrote: On Tue, Jun 25, 2013 at 09:15:47PM +0300, Andy Shevchenko wrote: On Tue, Jun 25, 2013 at 7:22 PM, Mika Westerberg mika.westerb...@linux.intel.com wrote: [] +static acpi_status pcihp_evaluate_rmv

Re: [PATCH 5/6] PCI: acpiphp: look _RMV method a bit deeper in the hierarhcy

2013-06-25 Thread Andy Shevchenko
On Tue, Jun 25, 2013 at 9:51 PM, Mika Westerberg mika.westerb...@linux.intel.com wrote: On Tue, Jun 25, 2013 at 09:31:52PM +0300, Andy Shevchenko wrote: I think it is better to remove the first value check from the pcihp_evaluate_rmv() and keep the check here. I'll fix that in the next

Re: [PATCH 5/8] minnowboard-gpio: Export MinnowBoard expansion GPIO

2013-06-26 Thread Andy Shevchenko
to add something else to 'out' path? Otherwise I think it will look better if you do return instead of [useless] gotos. -- Andy Shevchenko andriy.shevche...@linux.intel.com Intel Finland Oy -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

Re: [PATCH 6/8] minnowboard-keys: Bind MinnowBoard buttons to arrow keys

2013-06-26 Thread Andy Shevchenko
, it should go to the platform code / board file under arch/x86/platform/minnow/... -- Andy Shevchenko andriy.shevche...@linux.intel.com Intel Finland Oy -- 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

Re: [RFC Patch net-next 1/5] net: introduce generic union inet_addr

2013-06-27 Thread Andy Shevchenko
: ..., __func__, ...'. Cong, I don't think is a good idea to update lib/ code and net/ code in one patch, since that are logically a bit different. lib/ code sounds more common, it's better if it leads separately this series. -- Andy Shevchenko andriy.shevche...@linux.intel.com Intel Finland Oy

Re: [PATCH 5/8] minnowboard-gpio: Export MinnowBoard expansion GPIO

2013-06-27 Thread Andy Shevchenko
On Wed, 2013-06-26 at 09:21 -0700, Darren Hart wrote: On Wed, 2013-06-26 at 10:55 +0300, Andy Shevchenko wrote: + out: + return err; Are you planning to add something else to 'out' path? Otherwise I think it will look better if you do return instead of [useless] gotos. I

Re: [PATCH v3 1/2] drivers/misc: at24: convert to use devm_kzalloc

2013-05-29 Thread Andy Shevchenko
On Tue, May 28, 2013 at 11:00 PM, Nikolay Balandin n.a.balan...@gmail.com wrote: From: Nikolay Balandin nbalan...@dev.rtsoft.ru Use devm_kzalloc to make cleanup paths simpler Signed-off-by: Nikolay Balandin nbalan...@dev.rtsoft.ru Reviewed-by: Andy Shevchenko andy.shevche...@gmail.com

Re: [PATCH v3 2/2] drivers/misc: at25: convert to use devm_kzalloc

2013-05-29 Thread Andy Shevchenko
On Tue, May 28, 2013 at 11:01 PM, Nikolay Balandin n.a.balan...@gmail.com wrote: From: Nikolay Balandin nbalan...@dev.rtsoft.ru Use devm_kzalloc to make cleanup paths simpler Signed-off-by: Nikolay Balandin nbalan...@dev.rtsoft.ru Reviewed-by: Andy Shevchenko andy.shevche...@gmail.com

Re: [PATCH 09/12] tegra20-apb-dma: remove useless use of lock

2013-05-29 Thread Andy Shevchenko
On Wed, May 29, 2013 at 1:56 PM, Laxman Dewangan ldewan...@nvidia.com wrote: On Monday 27 May 2013 05:44 PM, Andy Shevchenko wrote: Accordingly to dma_cookie_status() description locking is not required. I think we need lock here: From isr handler, we call dma_cookie_complete() which

Re: [PATCH] trivial/sprintf: Fix typo of witdh to width

2013-05-29 Thread Andy Shevchenko
On Tue, May 28, 2013 at 10:47 PM, Steven Rostedt rost...@goodmis.org wrote: hex_string() had a typo in a comment. Signed-off-by: Steven Rostedt rost...@goodmis.org Acked-by: Andy Shevchenko andy.shevche...@gmail.com Index: linux-trace.git/lib/vsprintf.c

Re: [PATCH 1/8] rsxx: Adding in debugfs entries.

2013-05-29 Thread Andy Shevchenko
; No need to keep those pointers since you may use debugfs_remove_recursive(). -- With Best Regards, Andy Shevchenko -- 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

Re: [PATCH 4/8] rsxx: Corrected discard support version number.

2013-05-29 Thread Andy Shevchenko
@@ -273,7 +273,7 @@ enum rsxx_hw_fifo_flush { }; enum rsxx_pci_revision { - RSXX_DISCARD_SUPPORT = 2, + RSXX_DISCARD_SUPPORT = 4, RSXX_EEH_SUPPORT = 3, Shouldn't it be sorted from low to high? -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list

Re: [PATCH 5/8] rsxx: Adding in sync_start module paramenter.

2013-05-29 Thread Andy Shevchenko
) { + sync_timeout = SYNC_START_TIMEOUT; + + dev_info(CARD_TO_DEV(card), +Waiting for card to startup\n); + + do { + ssleep(1); Why not timers? -- With Best Regards, Andy Shevchenko

Re: [PATCH 7/8] rsxx: Adding EEH check inside cregs timeout.

2013-05-29 Thread Andy Shevchenko
that we recover if such an error is the reason +* for the timeout. +*/ + ioread32(card-regmap + SCRATCH); This is just a dummy read, right? Perhaps you may add this word to the explanation. -- With Best Regards, Andy Shevchenko -- To unsubscribe from

Re: [PATCH v2 7/9] gpio-tz1090: add TZ1090 gpio driver

2013-05-29 Thread Andy Shevchenko
2 pure_initcall 3 arch_initcall 14 postcore_initcall 29 subsys_initcall) -- With Best Regards, Andy Shevchenko -- 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 v1 1/1] drivers/misc: lis3lv02d: convert to use devm_regulator_bulk_get

2013-05-29 Thread Andy Shevchenko
up to do. Otherwise I don't think we have to touch that driver at all. -- With Best Regards, Andy Shevchenko -- 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] gpio: add Intel BayTrail gpio driver

2013-05-29 Thread Andy Shevchenko
to set this. -- With Best Regards, Andy Shevchenko -- 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: [PATCH] HID: multitouch: prevent memleak with the allocated name

2013-05-29 Thread Andy Shevchenko
. Hi Jiri, Benjamin. What do you think about patch I just sent? P.S. Benjamin, I re-used your commit message, I think you have no objections. -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

[PATCH] HID: multitouch: prevent memleak with the allocated name

2013-05-29 Thread Andy Shevchenko
resources when driver is removed. Signed-off-by: Andy Shevchenko andy.shevche...@gmail.com Reported-by: Benjamin Tissoires benjamin.tissoi...@redhat.com --- drivers/hid/hid-multitouch.c | 37 + 1 files changed, 13 insertions(+), 24 deletions(-) diff --git a/drivers

Re: [PATCH] cris: kgdb: use native hex2bin

2013-05-30 Thread Andy Shevchenko
On Thu, May 30, 2013 at 10:57 AM, Geert Uytterhoeven ge...@linux-m68k.org wrote: On Tue, May 28, 2013 at 5:53 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: diff --git a/arch/cris/arch-v10/kernel/kgdb.c b/arch/cris/arch-v10/kernel/kgdb.c index 37e6d2c..07bccd8 100644

Re: [PATCH, resend 2/3] gpiolib: append SFI helpers for GPIO API

2013-05-30 Thread Andy Shevchenko
Drop this one away, Sathyanarayanan Kuppuswamy takes care about it in his patchset. -- With Best Regards, Andy Shevchenko -- 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

Re: [PATCH, resend 3/3] x86: mrst: move to generic SFI GPIO API

2013-05-30 Thread Andy Shevchenko
Drop this one away, Sathyanarayanan Kuppuswamy takes care about it in his patchset. -- With Best Regards, Andy Shevchenko -- 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

Re: [PATCH RESEND 1/2] mtd: bcm47: convert kzalloc to avoid invalid access

2013-05-30 Thread Andy Shevchenko
-- With Best Regards, Andy Shevchenko -- 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: [PATCH RESEND 2/2] mtd: bcm47: convert to module_platform_driver instead of init/exit

2013-05-30 Thread Andy Shevchenko
) -{ - platform_driver_unregister(bcma_sflash_driver); -} - -module_init(bcm47xxsflash_init); -module_exit(bcm47xxsflash_exit); +module_platform_driver(bcma_sflash_driver); -- 1.7.1 -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line unsubscribe linux-kernel

Re: [PATCH v1 1/1] drivers/misc: lis3lv02d: convert to use devm_regulator_bulk_get

2013-05-30 Thread Andy Shevchenko
plan to use this driver somewhere outside of Nokia n900 device? If so, there is more than this clean up to do. Otherwise I don't think we have to touch that driver at all. -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [PATCH -next v2] dmaengine: ste_dma40: fix error return code in d40_probe()

2013-05-30 Thread Andy Shevchenko
); + if (ret ret != -ENODEV) From the discussion of dw_dmac I remember we decide that ENODEV check is redundant. -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

Re: [PATCH 00/12] dma: various minor clean ups for slave drivers

2013-05-30 Thread Andy Shevchenko
On Thu, May 30, 2013 at 8:47 PM, Vinod Koul vinod.k...@intel.com wrote: On Mon, May 27, 2013 at 03:14:30PM +0300, Andy Shevchenko wrote: Here is a set of small independent patches that clean up or fix minor things across DMA slave drivers. The series looks fine. I am going to wait a day more

Re: [PATCH v2 1/1] gpio: sx150x: convert to use devm_kzalloc()

2013-05-30 Thread Andy Shevchenko
at http://www.tux.org/lkml/ -- With Best Regards, Andy Shevchenko -- 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

Re: [PATCH v3 3/5] gpio-langwell: use managed functions pcim_* and devm_*

2013-05-31 Thread Andy Shevchenko
On Thu, 2013-05-30 at 19:25 +0200, Linus Walleij wrote: On Wed, May 22, 2013 at 12:20 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: This makes the error handling much more simpler than open-coding everything and in addition makes the probe function smaller an tidier

Re: [PATCH] dmatest: add ability to disable pq and xor

2013-05-31 Thread Andy Shevchenko
Regards, Andy Shevchenko -- 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: [PATCH v1 11/13] sfi: fix compiler warnings

2013-05-31 Thread Andy Shevchenko
On Thu, May 30, 2013 at 5:45 AM, Sathyanarayanan Kuppuswamy sathyanarayanan.kuppusw...@intel.com wrote: From: Andy Shevchenko andriy.shevche...@linux.intel.com Can you use newer version [1] of this patch? [1] https://lkml.org/lkml/2013/5/28/83 -- With Best Regards, Andy Shevchenko

Re: [PATCH, resend 1/3] sfi: fix compiler warnings

2013-05-31 Thread Andy Shevchenko
Please, drop this one away. Sathyanarayanan Kuppuswamy will take care of this in his patch series. -- 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

Re: [PATCH] dma: mmp_pdma: support for getting residual bytes

2013-05-31 Thread Andy Shevchenko
() return status Because there is no reason to return residue of successfully finished transfer. It should be 0. -- With Best Regards, Andy Shevchenko -- 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

Re: [PATCH v1 00/13] mrst refactoring patches

2013-05-31 Thread Andy Shevchenko
multiple boards and devices. Patch 1 - 5 fixes some indentation issue, compiler warnings and renames. Patch 6 - 13 refactors mrst code. First of all, please, remove Gerrit IDs from the commit messages. Andy Shevchenko (2): sfi: fix compiler warnings gpiolib: append SFI helpers for GPIO

[PATCH v1.1] gpiolib: append SFI helpers for GPIO API

2013-05-31 Thread Andy Shevchenko
To support some (legacy) firmwares and platforms let's make life easier for their customers. This patch extracts SFI GPIO API from arch/x86/platform/mrst/mrst.c. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Acked-by: Len Brown len.br...@intel.com Cc: Grant Likely grant.lik

Re: [PATCH v3 1/5] gpio-langwell: initialize lock before usage

2013-05-31 Thread Andy Shevchenko
On Fri, May 31, 2013 at 3:01 PM, Linus Walleij linus.wall...@linaro.org wrote: On Wed, May 22, 2013 at 12:20 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: Otherwise we will end up with traceback from LOCKDEP: Andy do you consider this a regression that needs to go into fixes

[RFC PATCH v0 1/2] dma: move dw_dmac driver to an own directory

2013-05-31 Thread Andy Shevchenko
The dw_dmac driver is going to be split into multiple files. To make this more convenient move it to an own directory. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- MAINTAINERS | 3 +-- drivers/dma/Kconfig | 20

<    1   2   3   4   5   6   7   8   9   10   >