[PATCH] scripts/link-vmlinux.sh: source variables from KCONFIG_CONFIG

2013-01-08 Thread Michael Grzeschik
Its possible to superseed the config file with KCONFIG_CONFIG and have completely no .config in the tree. The current script is sourcing .config in every case, so the kernel will never build succesfully. This patch fixes that issue by sourcing KCONFIG_CONFIG instead. Signed-off-by: Michael

Re: [PATCH] mc13xxx-ts: use zero as default value if no pdata was defined

2013-08-20 Thread Michael Grzeschik
On Tue, Aug 20, 2013 at 03:34:33AM +0200, Samuel Ortiz wrote: Hi Michael, On Tue, Aug 13, 2013 at 02:14:30PM +0200, Michael Grzeschik wrote: In case of devicetree, we currently don't have a way to append pdata for the touchscreen. The current approach is to bail out in that case

Re: [PATCH] mc13xxx-ts: use zero as default value if no pdata was defined

2013-08-20 Thread Michael Grzeschik
On Tue, Aug 20, 2013 at 11:50:48AM +0200, Samuel Ortiz wrote: Hi Michael, On Tue, Aug 20, 2013 at 11:34:32AM +0200, Michael Grzeschik wrote: On Tue, Aug 20, 2013 at 03:34:33AM +0200, Samuel Ortiz wrote: On Tue, Aug 13, 2013 at 02:14:30PM +0200, Michael Grzeschik wrote: In case

[PATCH] mc13xxx-ts: use zero as default value if no pdata was defined

2013-08-13 Thread Michael Grzeschik
-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/input/touchscreen/mc13783_ts.c | 14 +- drivers/mfd/mc13xxx-core.c | 11 +++ 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/drivers/input/touchscreen/mc13783_ts.c b/drivers/input/touchscreen

[PATCH] mfd: mc13xxx: make it possible to use the codec without pdata

2013-08-13 Thread Michael Grzeschik
In case of devicetree, we currently don't have a way to append pdata for the codec. This patch makes it possible to probe the codec without pdata for that case. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/mfd/mc13xxx-core.c | 11 +++ 1 file changed, 7

Re: [PATCH] mc13xxx-ts: use zero as default value if no pdata was defined

2013-08-13 Thread Michael Grzeschik
Hi Dimitry, On Tue, Aug 13, 2013 at 09:46:09AM -0700, Dmitry Torokhov wrote: Hi Michael, On Tue, Aug 13, 2013 at 02:14:30PM +0200, Michael Grzeschik wrote: In case of devicetree, we currently don't have a way to append pdata for the touchscreen. The current approach is to bail out

Re: [PATCH 3/4] regulator: da9052: Use apply_[reg|bit] with regmap based voltage_sel operations

2013-10-02 Thread Michael Grzeschik
Hi Axel, Mark, we should not play to much with generous functions for this pmics. With this patch we loose the fix_io code path from da9052_reg_update. include/linux/mfd/da9052.h ... if (da9052-fix_io) { ret = da9052-fix_io(da9052, reg); if (ret 0)

[[PATCH] 1/3] dma: imx-dma: fix slow path issue in prep_dma_cyclic

2013-09-17 Thread Michael Grzeschik
:00c0 Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/dma/imx-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index 78f8ca5..442af61 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c @@ -883,7

[[PATCH] 0/3] imx-dma: fixes

2013-09-17 Thread Michael Grzeschik
Hello, this series is solving some lockdep issues in the imx-dma code. There are some list_head and deadlock issues in the code, that is running the implementation into unsafe situations. Regards, Michael Michael Grzeschik (3): dma: imx-dma: fix slow path issue in prep_dma_cyclic dma: imx

[[PATCH] 3/3] dma: imx-dma: fix callback path in tasklet

2013-09-17 Thread Michael Grzeschik
We need to free the ld_active list head before jumping into the callback routine. Otherwise the callback could run into issue_pending and change our ld_active list head we just going to free. This will run the channel list into an currupted and undefined state. Signed-off-by: Michael Grzeschik

[[PATCH] 2/3] dma: imx-dma: fix lockdep issue between irqhandler and tasklet

2013-09-17 Thread Michael Grzeschik
[ 403.787797] [c03e0550] (start_kernel+0x0/0x2d4) from [a0008040] (0xa0008040) Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/dma/imx-dma.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx

Re: [PATCH] Allow MUSB DSPS to use force host mode

2013-11-22 Thread Michael Grzeschik
Hallo, On Fri, Nov 22, 2013 at 03:55:59PM +, Mark Jackson wrote: The IDDIG input pin is normally used to determine the USB mode (i.e. HOST or DEVICE). On some systems (e.g. AM335x) leaving this pin floating allows the USB mode to be set via software. This patch adds support for this

[PATCH] mxc_nand: remove redundant stat counting

2013-11-28 Thread Michael Grzeschik
The stats count variable will already be incremented in the above framework-layer just after this callback. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/mtd/nand/mxc_nand.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd

Re: [PATCH 2/3] usb: chipidea: Fix Internal error: : 808 [#1] ARM related to STS flag

2013-11-29 Thread Michael Grzeschik
On Fri, Nov 29, 2013 at 10:07:49AM +0800, Chris Ruehl wrote: * init the sts flag to 0 (missed) * set the sts flag only if not 0 Signed-off-by: Chris Ruehl chris.ru...@gtsys.com.hk --- drivers/usb/chipidea/core.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff

[PATCH v2] mxc_nand: remove duplicated ecc_stats counting

2013-11-29 Thread Michael Grzeschik
The ecc_stats.corrected count variable will already be incremented in the above framework-layer just after this callback. Cc: sta...@vger.kernel.org Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/mtd/nand/mxc_nand.c | 1 - 1 file changed, 1 deletion(-) diff --git

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

2013-11-29 Thread Michael Grzeschik
-by: Michael Grzeschik m.grzesc...@pengutronix.de --- include/linux/mfd/syscon.h | 25 + 1 file changed, 25 insertions(+) diff --git a/include/linux/mfd/syscon.h b/include/linux/mfd/syscon.h index b473577f..257938e 100644 --- a/include/linux/mfd/syscon.h +++ b/include/linux/mfd

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

2013-11-29 Thread Michael Grzeschik
Hi, On Fri, Nov 29, 2013 at 04:15:56PM +0100, Michael Grzeschik wrote: 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

Re: [PATCH 2/3 v2] usb: chipidea: Fix Internal error: : 808 [#1] ARM related to STS flag

2013-11-29 Thread Michael Grzeschik
On Fri, Nov 29, 2013 at 03:19:45PM +0800, Chris Ruehl wrote: usb: chipidea: Fix Internal error: : 808 [#1] ARM related to STS flag * init the sts flag to 0 (missed) * set the sts flag only if not 0 Signed-off-by: Chris Ruehl chris.ru...@gtsys.com.hk --- drivers/usb/chipidea/core.c |

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

2013-11-30 Thread Michael Grzeschik
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, icid:

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

2013-12-02 Thread Michael Grzeschik
On Mon, Dec 02, 2013 at 03:11:03PM +0400, Alexander Shiyan wrote: Понедельник, 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

Re: [PATCH] usb: dwc3: core: continue probe even if usb3 phy is not available

2013-06-27 Thread Michael Grzeschik
On Wed, Jun 26, 2013 at 03:46:45PM +0300, Alexander Shishkin wrote: Felipe Balbi ba...@ti.com writes: On Wed, Jun 26, 2013 at 05:37:19PM +0530, George Cherian wrote: On 6/26/2013 3:46 PM, Felipe Balbi wrote: Hi, On Wed, Jun 26, 2013 at 02:59:14PM +0530, George Cherian wrote: There

Re: [PATCH] usb: dwc3: core: continue probe even if usb3 phy is not available

2013-06-27 Thread Michael Grzeschik
Hi, On Thu, Jun 27, 2013 at 09:35:26AM +0300, Felipe Balbi wrote: Hi, On Thu, Jun 27, 2013 at 08:14:16AM +0200, Michael Grzeschik wrote: right, but in DT you will define both instances and each instance will have a seaparate snps,maximum_speed attribute :-) I'm now considering

Re: [[PATCH] 0/3] imx-dma: fixes

2013-09-28 Thread Michael Grzeschik
Hi Christoph, On Tue, Sep 24, 2013 at 08:35:03AM +0200, Christoph Fritz wrote: On Mon, 2013-09-23 at 09:49 +0530, Vinod Koul wrote: On Tue, Sep 17, 2013 at 03:56:05PM +0200, Michael Grzeschik wrote: Hello, this series is solving some lockdep issues in the imx-dma code

Re: [PATCH] usb: dwc3: core: continue probe even if usb3 phy is not available

2013-06-28 Thread Michael Grzeschik
On Fri, Jun 28, 2013 at 09:00:00PM +0300, Felipe Balbi wrote: Hi, On Thu, Jun 27, 2013 at 10:30:33AM +0300, Felipe Balbi wrote: Hi, On Thu, Jun 27, 2013 at 09:24:08AM +0200, Michael Grzeschik wrote: right, but in DT you will define both instances and each instance

Re: [PATH v2] mxc_nand: use our own read_page function

2014-07-22 Thread Michael Grzeschik
Hi Brian, On Mon, Jul 14, 2014 at 12:19:47PM -0700, Brian Norris wrote: Hi Michael, On Fri, Jun 27, 2014 at 12:38:44PM +0200, Michael Grzeschik wrote: The current approach of the read_page function is to iterate over all subpages and call the correct_data function. The correct_data

[PATCH 2/2] mxc_nand: use our own read_page function

2014-06-26 Thread Michael Grzeschik
to miscalculations. This patch changes the driver to use its own read_page function in which we call the correct_data function only once per page. With that we do the failure and correct statistics counting inside this function. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/mtd

[PATCH 1/2] mxc_nand: fix err_limit and err_mask

2014-06-26 Thread Michael Grzeschik
This patch fixes the error detection limits for the used eccsize of the 1, 4 and 8 bit eccmode. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/mtd/nand/mxc_nand.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/mxc_nand.c b

Re: [PATCH 2/2] mxc_nand: use our own read_page function

2014-06-27 Thread Michael Grzeschik
On Thu, Jun 26, 2014 at 10:42:48PM +0200, Michael Grzeschik wrote: The current approach of the read_page function is to iterate over all subpages and call the correct_data function. The correct_data function currently does the same. It iterates over all subpages and checks for correctable

[PATH v2] mxc_nand: use our own read_page function

2014-06-27 Thread Michael Grzeschik
to miscalculations. This patch changes the driver to use its own read_page function in which we call the correct_data function only once per page. With that we do the failure and correct statistics counting inside this function. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- fixed printk

Re: [PATCH v2 2/2] usb: chipidea: Add support for zynq usb host and device controller

2014-06-27 Thread Michael Grzeschik
Hi, On Fri, Jun 27, 2014 at 04:53:53PM +0530, Punnaiah Choudary Kalluri wrote: Zynq soc uses Chipidea/Synopsys usb IP core(CI13612). This patch adds necessary glue to allow the chipidea driver to work on zynq soc. Did you see the currently discussed patches for the generic chipidea glue?

Re: [PATH v2] mxc_nand: use our own read_page function

2014-07-05 Thread Michael Grzeschik
Ping! On Fri, Jun 27, 2014 at 12:38:44PM +0200, Michael Grzeschik wrote: The current approach of the read_page function is to iterate over all subpages and call the correct_data function. The correct_data function currently does the same. It iterates over all subpages and checks

Re: [PATH v2] mxc_nand: use our own read_page function

2014-07-14 Thread Michael Grzeschik
@David: Ping! Some comments on this patch would probably help to get it mainline. :) Regards, Michael On Sat, Jul 05, 2014 at 04:45:21PM +0200, Michael Grzeschik wrote: Ping! On Fri, Jun 27, 2014 at 12:38:44PM +0200, Michael Grzeschik wrote: The current approach of the read_page function

Re: [PATCH 0/5] ARCNET: add support for EAE multi interfac card

2014-09-29 Thread Michael Grzeschik
On Sun, Sep 28, 2014 at 05:01:50PM -0400, David Miller wrote: From: David Miller da...@davemloft.net Date: Sun, 28 Sep 2014 16:44:21 -0400 (EDT) From: Michael Grzeschik m.grzesc...@pengutronix.de Date: Wed, 24 Sep 2014 15:41:48 +0200 this series adds support for the PLX Bridge based

[PATCH v2 5/5] ARCNET: enable eae arcnet card support

2014-09-29 Thread Michael Grzeschik
This patch adds support for the EAE arcnet cards which has two Interfaces. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com20020-pci.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/net/arcnet/com20020-pci.c b/drivers/net

[PATCH v2 0/5] ARCNET: add support for EAE multi interfac card

2014-09-29 Thread Michael Grzeschik
Hello, this series adds support for the PLX Bridge based multi interface pci cards and adds support to change device address on com200xx chips during runtime. This series is based on v3.17-rc7. It is fixed for build against com20020_cs. Thanks, Michael Michael Grzeschik (5): ARCNET: return

[PATCH v2 2/5] ARCNET: add com20020_set_hwddr to change address

2014-09-29 Thread Michael Grzeschik
This patch adds com20020_set_hwaddr to make it possible to change the hwaddr on runtime. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com20020.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/net/arcnet/com20020.c b/drivers/net

[PATCH v2 1/5] ARCNET: return IRQ_NONE if the interface isn't running

2014-09-29 Thread Michael Grzeschik
The interrupt handler needs to return IRQ_NONE in case two devices are used with the shared interrupt handler. Otherwise it could steal interrupts from the other interface. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/arcnet.c | 2 +- 1 file changed, 1

[PATCH v2 3/5] ARCNET: add com20020 PCI IDs with metadata

2014-09-29 Thread Michael Grzeschik
This patch adds metadata for the com20020 to prepare for devices with multiple io address areas with multi card interfaces. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com20020-pci.c | 216 -- include/linux/com20020.h

[PATCH v2 4/5] ARCNET: add support for multi interfaces on com20020

2014-09-29 Thread Michael Grzeschik
The com20020-pci driver is currently designed to instance one netdev with one pci device. This patch adds support to instance many cards with one pci device, depending on the device data in the private data. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- v1 - v2: fixed build

[PATCH 5/5] ARCNET: enable eae arcnet card support

2014-09-24 Thread Michael Grzeschik
This patch adds support for the EAE arcnet cards which has two Interfaces. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com20020-pci.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/net/arcnet/com20020-pci.c b/drivers/net

[PATCH 0/5] ARCNET: add support for EAE multi interfac card

2014-09-24 Thread Michael Grzeschik
This series adds support for the PLX bridge based multi interface pci cards and adds support to change device address on com200xx chips during runtime. Thanks, Michael Michael Grzeschik (5): ARCNET: return IRQ_NONE if the interface isn't running ARCNET: add com20020_set_hwddr to change

[PATCH 1/5] ARCNET: return IRQ_NONE if the interface isn't running

2014-09-24 Thread Michael Grzeschik
The interrupt handler needs to return IRQ_NONE in case two devices are used with the shared interrupt handler. Otherwise it could steal interrupts from the other interface. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/arcnet.c | 2 +- 1 file changed, 1

[PATCH 2/5] ARCNET: add com20020_set_hwddr to change address

2014-09-24 Thread Michael Grzeschik
This patch adds com20020_set_hwaddr to make it possible to change the hwaddr on runtime. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com20020.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/net/arcnet/com20020.c b/drivers/net

[PATCH 4/5] ARCNET: add support for multi interfaces on com20020

2014-09-24 Thread Michael Grzeschik
The com20020-pci driver is currently designed to instance one netdev with one pci device. This patch adds support to instance many cards with one pci device, depending on the device data in the private data. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet

[PATCH 3/5] ARCNET: add com20020 PCI IDs with metadata

2014-09-24 Thread Michael Grzeschik
This patch adds metadata for the com20020 to prepare for devices with multiple io address areas with multi card interfaces. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com20020-pci.c | 216 -- include/linux/com20020.h

Re: [PATCH 0/5] ARCNET: add support for EAE multi interfac card

2014-09-24 Thread Michael Grzeschik
Hi, On Wed, Sep 24, 2014 at 01:01:58PM +0200, Michael Grzeschik wrote: This series adds support for the PLX bridge based multi interface pci cards and adds support to change device address on com200xx chips during runtime. Thanks, Michael Michael Grzeschik (5): ARCNET: return

[PATCH 0/5] ARCNET: add support for EAE multi interfac card

2014-09-24 Thread Michael Grzeschik
Hello, this series adds support for the PLX Bridge based multi interface pci cards and adds support to change device address on com200xx chips during runtime. This series is based on v3.17-rc6. Thanks, Michael Michael Grzeschik (5): ARCNET: return IRQ_NONE if the interface isn't running

[PATCH 5/5] ARCNET: enable eae arcnet card support

2014-09-24 Thread Michael Grzeschik
This patch adds support for the EAE arcnet cards which has two Interfaces. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com20020-pci.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/net/arcnet/com20020-pci.c b/drivers/net

[PATCH 3/5] ARCNET: add com20020 PCI IDs with metadata

2014-09-24 Thread Michael Grzeschik
This patch adds metadata for the com20020 to prepare for devices with multiple io address areas with multi card interfaces. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com20020-pci.c | 216 -- include/linux/com20020.h

[PATCH 1/5] ARCNET: return IRQ_NONE if the interface isn't running

2014-09-24 Thread Michael Grzeschik
The interrupt handler needs to return IRQ_NONE in case two devices are used with the shared interrupt handler. Otherwise it could steal interrupts from the other interface. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/arcnet.c | 2 +- 1 file changed, 1

[PATCH 4/5] ARCNET: add support for multi interfaces on com20020

2014-09-24 Thread Michael Grzeschik
The com20020-pci driver is currently designed to instance one netdev with one pci device. This patch adds support to instance many cards with one pci device, depending on the device data in the private data. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet

[PATCH 2/5] ARCNET: add com20020_set_hwddr to change address

2014-09-24 Thread Michael Grzeschik
This patch adds com20020_set_hwaddr to make it possible to change the hwaddr on runtime. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com20020.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/net/arcnet/com20020.c b/drivers/net

[PATCH] com20020-pci: add support for eae single card

2015-02-13 Thread Michael Grzeschik
Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com20020-pci.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/drivers/net/arcnet/com20020-pci.c b/drivers/net/arcnet/com20020-pci.c index 945f532..96edc13 100644

[PATCH 05/21] ARCNET: remove unneeded macros

2015-04-24 Thread Michael Grzeschik
The simple macros ARCRESET, ACOMMAND, ASTATUS, AINTMASK are unnecessary indirections to the use of registers. This patch removes them and improves the readability of the code. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/arcnet.c | 68

[PATCH 06/21] ARCNET: com20020: remove unneeded macros

2015-04-24 Thread Michael Grzeschik
The macros SET_SUBADR, ARCRESET, ARCRESET0, ACOMMAND, ASTATUS, AINTMASK and ADIAGSTATUS are unnecessary indirections to the use of registers. This patch removes them and improves the readability of the code. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet

[PATCH 08/21] ARCNET: com90io: remove unneeded macros

2015-04-24 Thread Michael Grzeschik
The simple macros ARCRESET, ACOMMAND, ASTATUS, AINTMASK are unnecessary indirections to the use of registers. This patch removes them and improves the readability of the code. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com90io.c | 36

[PATCH 03/21] ARCNET: capmode: fix transfer length

2015-04-24 Thread Michael Grzeschik
packets were being received as 257 bytes packets. prepare_tx(): - Fixed error in transmit length calcs; 257 byte packets were being transmitted as 260 byte packets. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/capmode.c | 4 ++-- 1 file changed, 2

[PATCH 14/21] ARCNET: arc-rawmode: reorder module functions

2015-04-24 Thread Michael Grzeschik
This patch moves the module_init and module_exit patches to the end of the file. It also replaces the printk with pr_info. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/arc-rawmode.c | 87 ++-- 1 file changed, 38 insertions

[PATCH 00/21] ARCNET: Defibrillation

2015-04-24 Thread Michael Grzeschik
and unloading of the com20020 card. Cheers, Michael Michael Grzeschik (21): com20020-pci: add dev_port for udev handling ARCNET: fix hard_header_len limit ARCNET: capmode: fix transfer length ARCNET: whitespace, tab and codingstyle fixes ARCNET: remove unneeded macros ARCNET: com20020

[PATCH 16/21] ARCNET: capmode: move dev_free_skb to its only user

2015-04-24 Thread Michael Grzeschik
The call for dev_free_skb is done only once. This patch moves its call to its only user and removes the obsolete condition variable. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/arcnet.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff

[PATCH 09/21] ARCNET: com90xx: remove unneeded macros

2015-04-24 Thread Michael Grzeschik
The simple macros ARCRESET, ACOMMAND, ASTATUS, AINTMASK are unnecessary indirections to the use of registers. This patch removes them and improves the readability of the code. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com90xx.c | 35

[PATCH 17/21] ARCNET: com20020: replace magic numbers with readable macros

2015-04-24 Thread Michael Grzeschik
This patch replaces all magic numbers in the driver with proper named macros. For the case of XTOcfg and STARTIOcmd it introduces the new macros. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com20020.c | 21 +++-- include/linux/arcdevice.h

[PATCH 21/21] ARCNET: com20020-pci: add rotary index support

2015-04-24 Thread Michael Grzeschik
The EAE PLX-PCI card has a special rotary encoder to configure the address of every card individually. We take this information for the initial setup of the cards dev_id. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com20020-pci.c | 28

[PATCH 04/21] ARCNET: whitespace, tab and codingstyle fixes

2015-04-24 Thread Michael Grzeschik
This patch removes trailing whitespaces in the whole the ARCNET layer. It also replaces the use of space with tabs and changes fixes the codingstyle on those lines. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/arc-rawmode.c | 4 +- drivers/net/arcnet/arc

[PATCH 19/21] ARCNET: com20020: add enable and disable device on open/close

2015-04-24 Thread Michael Grzeschik
This patch changes the driver to properly work with the linux netif interface. The controller gets enabled on open and disabled on close. Therefor it removes every bogus start of the xceiver. It only gets enabled on com20020_open and disabled on com20020_close. Signed-off-by: Michael Grzeschik

[PATCH 10/21] ARCNET: com20020: fix ioaddr prefixes

2015-04-24 Thread Michael Grzeschik
This patch removes the use of the variable ioaddr in the macros and uses it directly in the calling functions. This improves the readability of the code and changes the macros to be used as offsets. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com20020-isa.c

[PATCH 15/21] ARCNET: capmode: remove extra function and use C99 in struct

2015-04-24 Thread Michael Grzeschik
This patch cleans the capmode protocol module. It removes the obsolete function arcnet_cap_init and uses the C99 struct definition. It also replaces printk with pr_info. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/capmode.c | 28

[PATCH 01/21] com20020-pci: add dev_port for udev handling

2015-04-24 Thread Michael Grzeschik
This patch sets the dev_port according to the index of the card. This can be used by udev to name the ports in userspace. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com20020-pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/arcnet

[PATCH 02/21] ARCNET: fix hard_header_len limit

2015-04-24 Thread Michael Grzeschik
). Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/arcnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/arcnet/arcnet.c b/drivers/net/arcnet/arcnet.c index 10f71c73..816d0e9 100644 --- a/drivers/net/arcnet/arcnet.c +++ b/drivers

[PATCH 11/21] ARCNET: rimi: fix ioaddr prefixes

2015-04-24 Thread Michael Grzeschik
This patch removes the use of the variable ioaddr in the macros and uses it directly in the calling functions. This improves the readability of the code and changes the macros to be used as offsets. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/arc-rimi.c

[PATCH 07/21] ARCNET: rimi: remove unneeded macros

2015-04-24 Thread Michael Grzeschik
The simple macros ARCRESET, ACOMMAND, ASTATUS, AINTMASK are unnecessary indirections to the use of registers. This patch removes them and improves the readability of the code. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/arc-rimi.c | 24

[PATCH 12/21] ARCNET: com90io: fix ioaddr prefixes

2015-04-24 Thread Michael Grzeschik
This patch removes the use of the variable ioaddr in the macros and uses it directly in the calling functions. This improves the readability of the code and changes the macros to be used as offsets. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com90io.c | 86

[PATCH 20/21] ARCNET: com20020-pci: reformat structs to C99 format

2015-04-24 Thread Michael Grzeschik
This patch changes the macro definitions to match the C99 formating. This improves the readability. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com20020-pci.c | 35 +-- 1 file changed, 29 insertions(+), 6 deletions(-) diff

[PATCH 13/21] ARCNET: com90xx: fix ioaddr prefixes

2015-04-24 Thread Michael Grzeschik
This patch removes the use of the variable ioaddr in the macros and uses it directly in the calling functions. This improves the readability of the code and changes the macros to be used as offsets. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com90xx.c | 52

[PATCH 18/21] ARCNET: com20020: remove obsolete BUS_ALIGN offset factor

2015-04-24 Thread Michael Grzeschik
This patch removes the obsolete macro BUS_ALIGN as the kernel option CONFIG_SA1100_CT6001 is not longer available. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/com20020.c | 4 ++-- include/linux/com20020.h | 27 ++- 2 files

Re: [PATCH 00/21] ARCNET: Defibrillation

2015-04-27 Thread Michael Grzeschik
Hi! On Fri, Apr 24, 2015 at 11:58:53PM -0400, David Miller wrote: From: Marc Kleine-Budde m...@pengutronix.de Date: Fri, 24 Apr 2015 23:14:41 +0200 On 04/24/2015 08:47 PM, Joe Perches wrote: On Fri, 2015-04-24 at 19:20 +0200, Michael Grzeschik wrote: Hi! Hello. This patch

Re: [PATCH 06/21] ARCNET: com20020: remove unneeded macros

2015-04-27 Thread Michael Grzeschik
On Fri, Apr 24, 2015 at 04:04:45PM -0700, Joe Perches wrote: On Fri, 2015-04-24 at 19:20 +0200, Michael Grzeschik wrote: The macros SET_SUBADR, ARCRESET, ARCRESET0, ACOMMAND, ASTATUS, AINTMASK and ADIAGSTATUS are unnecessary indirections to the use of registers. This patch removes them

Re: [PATCH 00/21] ARCNET: Defibrillation

2015-05-05 Thread Michael Grzeschik
Hi, and sorry for the delay. On Wed, Apr 29, 2015 at 08:49:25PM -0700, Joe Perches wrote: On Mon, 2015-04-27 at 16:57 +0200, Michael Grzeschik wrote: Hi! On Fri, Apr 24, 2015 at 11:58:53PM -0400, David Miller wrote: From: Marc Kleine-Budde m...@pengutronix.de Date: Fri, 24 Apr 2015

[PATCH] MAINTAINERS: add arcnet and take maintainership

2015-07-30 Thread Michael Grzeschik
Add entry for arcnet to MAINTAINERS file and add myself as the maintainer of the subsystem. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de Cc: da...@davemloft.net Cc: j...@perches.com --- As I have a test coverage of com20020 based arcnet systems I would like to take

[PATCH] ARCNET: fix hard_header_len limit

2015-07-30 Thread Michael Grzeschik
). Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- drivers/net/arcnet/arcnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/arcnet/arcnet.c b/drivers/net/arcnet/arcnet.c index 10f71c73..816d0e9 100644 --- a/drivers/net/arcnet/arcnet.c +++ b/drivers

Re: [PATCH] ARCNET: fix hard_header_len limit

2015-08-05 Thread Michael Grzeschik
On Thu, Jul 30, 2015 at 11:16:36AM -0700, David Miller wrote: From: Michael Grzeschik m.grzesc...@pengutronix.de Date: Thu, 30 Jul 2015 15:34:36 +0200 The commit 9c7077622dd9 (packet: make packet_snd fail on len smaller than l2 header) adds the check for minimum packet length of the used

Re: [PATCH] ARCNET: fix hard_header_len limit

2015-09-16 Thread Michael Grzeschik
On Wed, Aug 05, 2015 at 05:34:51PM +0200, Michael Grzeschik wrote: > On Thu, Jul 30, 2015 at 11:16:36AM -0700, David Miller wrote: > > From: Michael Grzeschik <m.grzesc...@pengutronix.de> > > Date: Thu, 30 Jul 2015 15:34:36 +0200 > > > > > The commit <9c707

[PATCH][RESEND] ARCNET: fix hard_header_len limit

2015-09-17 Thread Michael Grzeschik
well include short (or even no?) soft headers. For this reason only use arc_hardware instead of archdr to determine the hard_header_len for an arcnet device. Signed-off-by: Michael Grzeschik <m.grzesc...@pengutronix.de> --- drivers/net/arcnet/arcnet.c | 2 +- 1 file changed, 1 insertion

[PATCH][RESEND] MAINTAINERS: add arcnet and take maintainership

2015-09-17 Thread Michael Grzeschik
Add entry for arcnet to MAINTAINERS file and add myself as the maintainer of the subsystem. Signed-off-by: Michael Grzeschik <m.grzesc...@pengutronix.de> Cc: da...@davemloft.net Cc: j...@perches.com --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAI

[PATCH v3] can: c_can: add xceiver enable/disable support

2016-01-21 Thread Michael Grzeschik
This patch adds support to enable and disable the xceiver in case it's switchable by the regulator framework. Signed-off-by: Michael Grzeschik <m.grzesc...@pengutronix.de> --- v1 -> v2: - always returning PTR_ERR in case devm_regulator_get fails - removed inline wrapper functions wi

Re: [PATCH v2] can: c_can: add xceiver enable/disable support

2016-01-20 Thread Michael Grzeschik
Hi, On Wed, Jan 20, 2016 at 05:19:18PM +0100, Bjørn Mork wrote: > Michael Grzeschik <m.grzesc...@pengutronix.de> writes: > > > @@ -1263,6 +1271,10 @@ int register_c_can_dev(struct net_device *dev) > > */ > > pinctrl_pm_select_sleep_state(dev->dev.parent)

Re: [PATCH 2/5] arcnet: com90xx: add __init attribute

2016-04-19 Thread Michael Grzeschik
not called from any other function. > > Signed-off-by: Julia Lawall <julia.law...@lip6.fr> > Acked-by: Michael Grzeschik <m...@pengutronix.de> > --- > drivers/net/arcnet/com90xx.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/driv

Re: [PATCH v2] regmap: irq: allow different device for irq chip and regmap

2017-06-30 Thread Michael Grzeschik
On Fri, Jun 23, 2017 at 01:00:43PM +0100, Mark Brown wrote: > On Thu, Jun 22, 2017 at 01:03:20PM +0200, Michael Grzeschik wrote: > > > If the irq chip device is using the regmap of its parent device or > > a syscon regmap that doesn't have an associated device at all, &g

Re: [PATCH v2] regmap: irq: allow different device for irq chip and regmap

2017-07-05 Thread Michael Grzeschik
On Tue, Jul 04, 2017 at 11:44:49AM +0100, Mark Brown wrote: > On Fri, Jun 30, 2017 at 03:33:27PM +0200, Michael Grzeschik wrote: > > On Fri, Jun 23, 2017 at 01:00:43PM +0100, Mark Brown wrote: > > > > syscon is one potential thing here but it seems odd for the sort of >

[PATCH] regmap: irq: allow different device for irq chip and regmap

2017-06-22 Thread Michael Grzeschik
From: Philipp Zabel If the irq chip device is using the regmap of its parent device or a syscon regmap that doesn't have an associated device at all, allow the driver to provide its own device. That makes it possible to reference the irq controller from other devices

[PATCH] regmap: irq: add chip option mask_writeonly

2017-06-22 Thread Michael Grzeschik
Some irq controllers have writeonly/multipurpose register layouts. In those cases we read invalid data back. Here we add the option mask_writeonly as masking option. Signed-off-by: Michael Grzeschik <m.grzesc...@pengutronix.de> --- drivers/base/regmap/regmap-irq.

[PATCH v2] regmap: irq: allow different device for irq chip and regmap

2017-06-22 Thread Michael Grzeschik
evices running on the same regmap. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> Signed-off-by: Michael Grzeschik <m.grzesc...@pengutronix.de> --- v1 -> v2: Added my own missing Signed-off-by. drivers/base/regmap/regmap-irq.c | 93 +--- i

Re: [PATCH] arcnet: fix spelling mistake "Ackknowledge" -> "Acknowledge"

2017-06-26 Thread Michael Grzeschik
On Sun, Jun 25, 2017 at 10:15:06PM +0100, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in arc_printk message > > Signed-off-by: Colin Ian King > --- > drivers/net/arcnet/capmode.c | 2 +- > 1 file changed, 1

[PATCH v2] regmap: irq: add chip option mask_writeonly

2017-06-23 Thread Michael Grzeschik
Some irq controllers have writeonly/multipurpose register layouts. In those cases we read invalid data back. Here we add the option mask_writeonly as masking option. Signed-off-by: Michael Grzeschik <m.grzesc...@pengutronix.de> --- v1 -> v2: - rebased on regmap/for-next

[PATCH v2] usbip: dynamically allocate idev by nports found in sysfs

2018-05-22 Thread Michael Grzeschik
As the amount of available ports varies by the kernels build configuration. To remove the limitation of the fixed 128 ports we allocate the amount of idevs by using the number we get from the kernel. Signed-off-by: Michael Grzeschik <m.grzesc...@pengutronix.de> --- v1 -> v2: - rework

Re: [PATCH v3] usbip: dynamically allocate idev by nports found in sysfs

2018-05-23 Thread Michael Grzeschik
On Wed, May 23, 2018 at 10:44:57AM -0600, Shuah Khan wrote: > On 05/23/2018 03:22 AM, Michael Grzeschik wrote: > > As the amount of available ports varies by the kernels build > > configuration. To remove the limitation of the fixed 128 ports > > we allocate the amount of idev

[PATCH v3] usbip: dynamically allocate idev by nports found in sysfs

2018-05-23 Thread Michael Grzeschik
As the amount of available ports varies by the kernels build configuration. To remove the limitation of the fixed 128 ports we allocate the amount of idevs by using the number we get from the kernel. Signed-off-by: Michael Grzeschik <m.grzesc...@pengutronix.de> --- v1 -> v2: - rework

Re: [PATCH v3] usbip: dynamically allocate idev by nports found in sysfs

2018-05-24 Thread Michael Grzeschik
On Wed, May 23, 2018 at 10:44:57AM -0600, Shuah Khan wrote: > On 05/23/2018 03:22 AM, Michael Grzeschik wrote: > > As the amount of available ports varies by the kernels build > > configuration. To remove the limitation of the fixed 128 ports > > we allocate the amount of idev

[PATCH v4] usbip: dynamically allocate idev by nports found in sysfs

2018-05-25 Thread Michael Grzeschik
As the amount of available ports varies by the kernels build configuration. To remove the limitation of the fixed 128 ports we allocate the amount of idevs by using the number we get from the kernel. Signed-off-by: Michael Grzeschik <m.grzesc...@pengutronix.de> --- v1 -> v2: - rework

[PATCH] usbip: dynamically allocate idev by nports found in sysfs

2018-05-18 Thread Michael Grzeschik
As the amount of available ports varies by the kernels build configuration. To remove the limitation of the fixed 128 ports we allocate the amount of idevs by using the number we get from the kernel. Signed-off-by: Michael Grzeschik <m.grzesc...@pengutronix.de> --- tools/usb/usbip/

  1   2   3   >