[PATCH 0/6] usb: s3c-hsotg: fixes for proper functioning

2013-09-12 Thread Robert Baldyga
Robert Baldyga (3): USB: gadget: s3c-hsotg: fix protocol stall handling USB: gadget: s3c-hsotg: fix dedicated fifos handling USB: gadget: s3c-hsotg: fix clear feature ENDPOINT_HALT drivers/usb/gadget/Kconfig |2 +- drivers/usb/gadget/s3c-hsotg.c | 81

[PATCH 1/6] usb: s3c-hsotg: change dependency to PLAT_SAMSUNG

2013-09-12 Thread Robert Baldyga
be used on almost all Samsung platforms. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 6/6] USB: gadget: s3c-hsotg: fix clear feature ENDPOINT_HALT

2013-09-12 Thread Robert Baldyga
This patch adds two fixes: - Property halted of s3c_hsotg_ep structure is actually changed when halt is set/cleared. - All requests for endpoint are completed when it was halted, and the halt was cleared by CLEAR_FEATURE, but not when new state is same as previous. Signed-off-by: Robert

[PATCH 5/6] USB: gadget: s3c-hsotg: fix dedicated fifos handling

2013-09-12 Thread Robert Baldyga
and of DAINT and DAINTMSK, because we should handle masked interrupts only. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/s3c-hsotg.c | 48 1 file changed, 34 insertions

[PATCH 4/6] USB: gadget: s3c-hsotg: fix protocol stall handling

2013-09-12 Thread Robert Baldyga
. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/s3c-hsotg.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index dd5524c

[PATCH 2/6] usb: s3c-hsotg: fix unregistration function

2013-09-12 Thread Robert Baldyga
of it. It also moves disabling voltage regulators out of the atomic context, because handling regulators (which are usually i2c devices) might require sleeping. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p

[PATCH 3/6] usb: s3c-hsotg: do not disconnect gadget when receiving ErlySusp intr

2013-09-12 Thread Robert Baldyga
this interrupt is occurred. Signed-off-by: Chanho Park chanho61.p...@samsung.com Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/s3c-hsotg.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/gadget/s3c

[PATCH v2] USB: gadget: s3c-hsotg: fix maxpacket size

2013-10-02 Thread Robert Baldyga
-bandwidtch endpoints). Signed-off-by: Robert Baldyga r.bald...@samsung.com --- Hello, This is update for my patch. From last version I have fixed typos pointed out by Felipe Balbi. On 10/01/2013 03:56 PM, Felipe Balbi wrote: Hi, On Fri, Sep 27, 2013 at 12:31:09PM +0200, Robert Baldyga wrote

[PATCH v4] USB: gadget: epautoconf: fix ep maxpacket check

2013-10-02 Thread Robert Baldyga
SUPER-SPEED BULK 8, 16, 32, 64 512 1024 INTERRUPT1..64 1..1024 1..1024 ISOCHRONOUS 1..1023 1..1024 1..1024 Signed-off-by: Robert Baldyga r.bald...@samsung.com --- Hello, This is fourth version of my patch. From last version I have removed

Re: [PATCH v2] USB: gadget: s3c-hsotg: add isochronous transfers support

2013-10-02 Thread Robert Baldyga
On 10/01/2013 04:45 PM, Felipe Balbi wrote: Hello, Hi, On Tue, Sep 24, 2013 at 11:47:16AM +0200, Robert Baldyga wrote: Hello, This is update for my proposal for isochronous transfers support in s3c-hsotg driver. I've fixed issuses pointed by Bartlomiej Zolnierkiewicz. For more information

Re: [PATCH v4] USB: gadget: epautoconf: fix ep maxpacket check

2013-10-03 Thread Robert Baldyga
Hello, On 10/02/2013 05:48 PM, Alan Stern wrote: On Wed, 2 Oct 2013, Robert Baldyga wrote: This patch fix validation of maxpacket value given in endpoint descriptor. Add check of maxpacket for bulk endpoints. If maxpacket is not set in descriptor, it's set to maximum value for given type

[PATCH v2 0/6] usb: s3c-hsotg: fixes for proper functioning

2013-09-18 Thread Robert Baldyga
. Now only masked ep interrupts are handled. - Fix halt property updating. - Fix endpoint halt clearing, when it is not currently halted. Best regards Robert Baldyga Samsung RD Institute Poland Changelog: v2: - splitted patches to get one fix in each patch, as Felipe Balbi suggested - fixed typos

[PATCH v2 1/6] USB: gadget: s3c-hsotg: fix protocol stall handling

2013-09-18 Thread Robert Baldyga
. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/s3c-hsotg.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index dd5524c

[PATCH v2 6/6] USB: gadget: s3c-hsotg: fix clear feature ENDPOINT_HALT

2013-09-18 Thread Robert Baldyga
All requests for endpoint are completed when it was halted and the halt was cleared by CLEAR_FEATURE, but not when new state is same as previous. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/s3c-hsotg.c | 10

[PATCH v2 5/6] USB: gadget: s3c-hsotg: fix halted property updating

2013-09-18 Thread Robert Baldyga
Property halted of s3c_hsotg_ep structure is actually initialised when ep enabled, and changed when halt is set/cleared. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/s3c-hsotg.c |3 +++ 1 file changed, 3

[PATCH v2 2/6] USB: gadget: s3c-hsotg: fix s3c_hsotg_write_fifo function for dedicated fifo mode

2013-09-18 Thread Robert Baldyga
In s3c_hsotg_write_fifo function PTxFEmp/NPTxFEmp interrupts are enabled only in shared-fifo mode. In dedicated-fifo mode they should not be used (when enabled then cause interrupt storm). Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com

[PATCH v2 3/6] USB: gadget: s3c-hsotg: fix endpoint interrupts handling

2013-09-18 Thread Robert Baldyga
When s3c_hsotg_trytx is called for ep without enqueued request, interrupts for this ep are disabled, to prevent interrupt flooding. Interrupts are enabled when new request for this ep is starting. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p

[PATCH v2 4/6] USB: gadget: s3c-hsotg: add DAINT masking

2013-09-18 Thread Robert Baldyga
In OEPInt/IEPInt interrupts handling added bitwise and of DAINT and DAINTMSK, because we should handle masked interrupts only. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/s3c-hsotg.c |8 ++-- 1 file

[PATCH v3 0/7] usb: s3c-hsotg: fixes for proper functioning

2013-09-19 Thread Robert Baldyga
has no requests enqueued. - Fixed DAINT register usage. Now only masked ep interrupts are handled. - Fix halt property updating. - Fix endpoint halt clearing, when it is not currently halted. - Fix interrupt configuration in dedicated fifo mode. Best regards Robert Baldyga Samsung RD Institute Poland

[PATCH v3 1/7] USB: gadget: s3c-hsotg: fix protocol stall handling

2013-09-19 Thread Robert Baldyga
. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/s3c-hsotg.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index dd5524c

[PATCH v3 4/7] USB: gadget: s3c-hsotg: add DAINT masking

2013-09-19 Thread Robert Baldyga
In OEPInt/IEPInt interrupts handling added bitwise and of DAINT and DAINTMSK, because we should handle masked interrupts only. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/s3c-hsotg.c |8 ++-- 1 file

[PATCH v3 5/7] USB: gadget: s3c-hsotg: fix halted property updating

2013-09-19 Thread Robert Baldyga
Property halted of s3c_hsotg_ep structure is actually initialised when ep enabled, and changed when halt is set/cleared. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/s3c-hsotg.c |3 +++ 1 file changed, 3

[PATCH v3 6/7] USB: gadget: s3c-hsotg: fix clear feature ENDPOINT_HALT

2013-09-19 Thread Robert Baldyga
All requests for endpoint are completed when it was halted and the halt was cleared by CLEAR_FEATURE, but not when new state is same as previous. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/s3c-hsotg.c | 10

[PATCH v3 7/7] USB: gadget: s3c-hsotg: fix interrupt configuration in dedicated-fifo mode

2013-09-19 Thread Robert Baldyga
In dedicated-fifo mode TxFIFOEmpty interrupt should be asserted when TxFIFO for this endpoint is completly empty, so NPTxFEmpLvl and PTxFEmpLvl bits are set in GAHBCFG register. In DIEPMSK register INTknTXFEmpMsk is set, becouse it's needed to indicate FIFO Empty state. Signed-off-by: Robert

[PATCH v3 3/7] USB: gadget: s3c-hsotg: fix endpoint interrupts handling

2013-09-19 Thread Robert Baldyga
When s3c_hsotg_trytx is called for ep without enqueued request, interrupts for this ep are disabled, to prevent interrupt flooding. Interrupts are enabled when new request for this ep is starting. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p

[PATCH v3 2/7] USB: gadget: s3c-hsotg: fix s3c_hsotg_write_fifo function for dedicated fifo mode

2013-09-19 Thread Robert Baldyga
In s3c_hsotg_write_fifo function PTxFEmp/NPTxFEmp interrupts are enabled only in shared-fifo mode. In dedicated-fifo mode they should not be used (when enabled then cause interrupt storm). Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com

[PATCH] USB: gadget: s3c-hsotg: remove unused label

2013-10-11 Thread Robert Baldyga
This patch removes unused label. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/s3c-hsotg.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c

[PATCH 1/2] USB: gadget: s3c-hsotg: fix maxpacket size in s3c_hsotg_irq_enumdone

2013-12-06 Thread Robert Baldyga
This patch set maximum possible maxpacket value for each speed. Previous values didn't allow to use maxpacket sizes greater than 64 in full speed and 512 in high speed, although hardware is able to handle up to 1023 in fs and 1024 in hs. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed

[PATCH 2/2] USB: gadget: s3c-hsotg: add flush TX FIFO when kill all requests

2013-12-06 Thread Robert Baldyga
will be back enabled, sending new data will be impossible. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/s3c-hsotg.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb

[PATCH 0/2] usb: s3c-hsotg: fixes for maxpacket and TX FIFO handling

2013-12-06 Thread Robert Baldyga
Hello, This patches contains fixes for s3c-hsotg driver. They fix maxpacket sizes set in s3c_hsotg_irq_enumdone() function, and adds flushing TX FIFO when killing all requests in dedicated-fifo mode. More info in commit messages. Best regards Robert Baldyga Samsung RD Institute Poland Robert

Re: [PATCH v2 2/3] mfd: max8997: handle IRQs using regmap

2014-03-13 Thread Robert Baldyga
Hi, On 03/13/2014 03:03 AM, Chanwoo Choi wrote: Hi Robert, On 03/12/2014 10:37 PM, Robert Baldyga wrote: This patch modifies mfd driver to use regmap for handling interrupts. It allows to simplify irq handling process. This modifications needed to make small changes in function drivers

[PATCH v3 3/4] mfd: max8997: change irq names to upper case

2014-03-13 Thread Robert Baldyga
This patch changes naming convention of MUIC interrupts form CamelCase to upper case. It makes names more readable and consistent with another interrupt names in max8997 driver. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/extcon/extcon-max8997.c | 32

[PATCH v3 1/4] mfd: max8997: use regmap to access registers

2014-03-13 Thread Robert Baldyga
This patch modifies max8997 driver and each associated function driver, to use regmap instead of operating directly on i2c bus. It will allow to simplify IRQ handling using regmap-irq. Signed-off-by: Robert Baldyga r.bald...@samsung.com Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com

[PATCH v3 0/4] mfd: max8997: add regmap support

2014-03-13 Thread Robert Baldyga
, their i2c clients, regmaps and irqs are not registered. Best regards Robert Baldyga Samsung RD Institute Poland Changelog: v3: - fix error handling - fix deinitializations order - move muic irq enum values renaming to separate patch v2: https://lkml.org/lkml/2014/3/12/237 - rebase patches on Lee

[PATCH v3 4/4] mfd: max8997: move regmap handling to function drivers

2014-03-13 Thread Robert Baldyga
This patch moves code creating new i2c clients and regmaps to function drivers which use them. It allows to avoid creating this instances when individual function drivers are not enabled. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/extcon/extcon-max8997.c | 131

[PATCH v3 2/4] mfd: max8997: handle IRQs using regmap

2014-03-13 Thread Robert Baldyga
This patch modifies mfd driver to use regmap for handling interrupts. It allows to simplify irq handling process. This modifications needed to make small changes in function drivers, which use interrupts. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/extcon/extcon-max8997.c

Re: [PATCH v3 0/4] mfd: max8997: add regmap support

2014-03-13 Thread Robert Baldyga
Hi, On 03/13/2014 11:25 AM, Chanwoo Choi wrote: Hi Robert, On 03/13/2014 06:38 PM, Robert Baldyga wrote: Hi, This patchset modifies max8997 driver and associated function drivers to use register maps instead of operating directly on i2c bus. This change allowed to simplify irq handling

Re: [PATCH v3 2/4] mfd: max8997: handle IRQs using regmap

2014-03-14 Thread Robert Baldyga
On 03/13/2014 11:45 AM, Chanwoo Choi wrote: Hi Robert, On 03/13/2014 06:38 PM, Robert Baldyga wrote: This patch modifies mfd driver to use regmap for handling interrupts. It allows to simplify irq handling process. This modifications needed to make small changes in function drivers, which

[PATCH] ARM: dts: exynos4210-trats: add max8997 IRQ

2014-03-14 Thread Robert Baldyga
This patch adds device tree node for IRQ used by max8997. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- arch/arm/boot/dts/exynos4210-trats.dts | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/exynos4210-trats.dts b/arch/arm/boot/dts/exynos4210

Re: [PATCH v3 4/4] mfd: max8997: move regmap handling to function drivers

2014-03-14 Thread Robert Baldyga
useless it doesn't make me unhappy :) Best regards Robert Baldyga -- 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

[PATCH] mfd: max8997: use regmap to access registers

2014-03-05 Thread Robert Baldyga
This patch modifies max8997 driver and each associated function driver, to use regmap instead of operating directly on i2c bus. It will allow to simplify IRQ handling using regmap-irq. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/extcon/extcon-max8997.c | 17

[PATCH v2] mfd: max8997: use regmap to access registers

2014-03-05 Thread Robert Baldyga
This patch modifies max8997 driver and each associated function driver, to use regmap instead of operating directly on i2c bus. It will allow to simplify IRQ handling using regmap-irq. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- Changelog: v2: - check devm_regmap_init_i2c() return

Re: [PATCH v2] mfd: max8997: use regmap to access registers

2014-03-05 Thread Robert Baldyga
Hi, On 03/05/2014 07:54 PM, Dmitry Torokhov wrote: Hi Robert, On Wed, Mar 05, 2014 at 03:58:17PM +0100, Robert Baldyga wrote: -int max8997_write_reg(struct i2c_client *i2c, u8 reg, u8 value) +int max8997_write_reg(struct regmap *map, u8 reg, u8 value) Why don't you make read/write reg

Re: [PATCH v2] mfd: max8997: use regmap to access registers

2014-03-05 Thread Robert Baldyga
missed to remove reference to unused variable. I will fix it. Thanks! Robert Baldyga Samsung RD Institute Poland On 03/05/2014 11:58 PM, Robert Baldyga wrote: This patch modifies max8997 driver and each associated function driver, to use regmap instead of operating directly on i2c bus

[PATCH v3] mfd: max8997: use regmap to access registers

2014-03-06 Thread Robert Baldyga
This patch modifies max8997 driver and each associated function driver, to use regmap instead of operating directly on i2c bus. It will allow to simplify IRQ handling using regmap-irq. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- Changelog: v3: - remove unused variables - use regmap_

Re: [PATCH v2] mfd: max8997: use regmap to access registers

2014-03-07 Thread Robert Baldyga
On 03/06/2014 05:29 PM, Dmitry Torokhov wrote: On Thu, Mar 06, 2014 at 07:42:30AM +0100, Robert Baldyga wrote: Hi, On 03/05/2014 07:54 PM, Dmitry Torokhov wrote: Hi Robert, On Wed, Mar 05, 2014 at 03:58:17PM +0100, Robert Baldyga wrote: -int max8997_write_reg(struct i2c_client *i2c, u8

[PATCH] usb: gadget: f_fs: add missing spinlock and mutex unlock

2014-03-10 Thread Robert Baldyga
This patch adds missing spin_unlock and mutex_unlock calls in error handling code. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/usb/gadget/f_fs.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget

[PATCH 0/3] mfd: max8997: add regmap support

2014-03-11 Thread Robert Baldyga
, their i2c clients, regmaps and irqs are not registered. Best regards Robert Baldyga Samsung RD Institute Poland Robert Baldyga (3): mfd: max8997: use regmap to access registers mfd: max8997: handle IRQs using regmap mfd: max8997: move regmap handling to function drivers drivers/extcon/extcon

[PATCH 1/3] mfd: max8997: use regmap to access registers

2014-03-11 Thread Robert Baldyga
This patch modifies max8997 driver and each associated function driver, to use regmap instead of operating directly on i2c bus. It will allow to simplify IRQ handling using regmap-irq. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/extcon/extcon-max8997.c | 31

[PATCH 3/3] mfd: max8997: move regmap handling to function drivers

2014-03-11 Thread Robert Baldyga
This patch moves code creating new i2c clients and regmaps to function drivers which uses them. It allow to avoid creating this instances when intividual function drivers are not enabled. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/extcon/extcon-max8997.c | 118

[PATCH 2/3] mfd: max8997: handle IRQs using regmap

2014-03-11 Thread Robert Baldyga
This patch modifies mfd driver to use regmap for handling interrupts. It allows to simplify irq handling process. This modifications needed to make small changes in function drivers, which use interrupts. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/extcon/extcon-max8997.c

Re: [PATCH 1/3] mfd: max8997: use regmap to access registers

2014-03-11 Thread Robert Baldyga
On 03/11/2014 03:32 PM, Krzysztof Kozlowski wrote: On Tue, 2014-03-11 at 14:58 +0100, Robert Baldyga wrote: This patch modifies max8997 driver and each associated function driver, to use regmap instead of operating directly on i2c bus. It will allow to simplify IRQ handling using regmap-irq

[PATCH v2 0/3] mfd: max8997: add regmap support

2014-03-12 Thread Robert Baldyga
, their i2c clients, regmaps and irqs are not registered. Best regards Robert Baldyga Samsung RD Institute Poland Changelog: v2: - rebase patches on Lee Jones' MFD tree - add missing selects in Kconfig - add missing deinitializations - add interrupt disabling when suspend - few minor changes and typo

[PATCH v2 3/3] mfd: max8997: move regmap handling to function drivers

2014-03-12 Thread Robert Baldyga
This patch moves code creating new i2c clients and regmaps to function drivers which use them. It allows to avoid creating this instances when individual function drivers are not enabled. Signed-off-by: Robert Baldyga r.bald...@samsung.com Conflicts: drivers/mfd/max8997.c --- drivers

[PATCH v2 1/3] mfd: max8997: use regmap to access registers

2014-03-12 Thread Robert Baldyga
This patch modifies max8997 driver and each associated function driver, to use regmap instead of operating directly on i2c bus. It will allow to simplify IRQ handling using regmap-irq. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/extcon/extcon-max8997.c | 31

[PATCH v2 2/3] mfd: max8997: handle IRQs using regmap

2014-03-12 Thread Robert Baldyga
This patch modifies mfd driver to use regmap for handling interrupts. It allows to simplify irq handling process. This modifications needed to make small changes in function drivers, which use interrupts. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/extcon/extcon-max8997.c

[PATCH] USB: gadget: s3c-hsotg: fix set_ep_maxpacket function

2013-10-09 Thread Robert Baldyga
USB transaction. In s3c_hsotg_ep_enable() function added s3c_hsotg_set_ep_maxpacket() call instead of setting ep.maxpacket value directly. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/s3c-hsotg.c | 11

[PATCH v3] USB: gadget: s3c-hsotg: add isochronous transfers support

2013-10-09 Thread Robert Baldyga
. - Add Odd/Even microframe toggle to allow data transfering in each microframe in s3c_hsotg_epint() function. - Fix s3c_hsotg_ep_enable() function by supporting isochronous endpoint type. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com

[PATCH] USB: gadget: s3c-hsotg: add Multi Count support

2013-10-09 Thread Robert Baldyga
: gadget: s3c-hsotg: add isochronous transfers support. Best regards Robert Baldyga Samsung RD Institute Poland drivers/usb/gadget/s3c-hsotg.c | 34 -- 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb

Re: [PATCH v3] USB: gadget: s3c-hsotg: add isochronous transfers support

2013-10-11 Thread Robert Baldyga
Hello, On 10/10/2013 06:04 PM, Felipe Balbi wrote: Hi, On Wed, Oct 09, 2013 at 08:41:57AM +0200, Robert Baldyga wrote: @@ -2616,14 +2630,19 @@ static int s3c_hsotg_ep_enable(struct usb_ep *ep, s3c_hsotg_set_ep_maxpacket(hsotg, hs_ep-index, mps); /* default, set to non-periodic

[PATCH] USB: gadget: s3c-hsotg: add isochronous transfers support

2013-09-23 Thread Robert Baldyga
s3c_hsotg_ep_enable() function by supporting isochronous endpoint type. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/s3c-hsotg.c | 74 +++- 1 file changed, 57 insertions(+), 17

[PATCH] usb: s3c-hsotg: add isochronous transfers support

2013-09-23 Thread Robert Baldyga
specific endpoint descriptor fields handling. - Add high-speed high-bandwidth trensfers support by correct Multi Count handling and Odd/Even frame toggle for interval=1. - Improve endpoint interrupt handling by ignoring unneded interrupts for isochronous endpoints. Best regards Robert Baldyga

[PATCH] USB: gadget: s3c-hsotg: fix can_write limit for non-periodic endpoints

2013-09-24 Thread Robert Baldyga
check causing the limitation concerns only non-periodic endpoints. Signed-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/s3c-hsotg.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) I have found one small bug

[PATCH v2] USB: gadget: s3c-hsotg: add isochronous transfers support

2013-09-24 Thread Robert Baldyga
-off-by: Robert Baldyga r.bald...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Changelog: v2: - moved bugfix affecting to the other features to separated patch - changed conditions order in request length checking in s3c_hsotg_start_req function, as Bartlomiej

[PATCH] USB: gadget: f_fs: fix error handling

2013-09-27 Thread Robert Baldyga
This patch add missing error check in ffs_func_bind() function, after ffs_do_descs() funcion call for hs descriptors. Without this check it's possible that the module will try dereference incorrect pointer. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/usb/gadget/f_fs.c |3

[PATCH] USB: gadget: epautoconf: fix ep maxpacket check

2013-09-27 Thread Robert Baldyga
This patch fixes validation of maxpacket value given in endpoint descriptor. Added check of maxpacket for bulk endpoints. Correct maxpacket value is: FULL-SPEED HIGH-SPEED BULK 64 512 INTERRUPT64 1024 ISOCHRONOUS 10231024 Signed-off-by: Robert

[PATCH] USB: gadget: s3c-hsotg: fix maxpacket size

2013-09-27 Thread Robert Baldyga
-bandwidtch endpoints). Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/usb/gadget/s3c-hsotg.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index 8a9e2c6..0d1dcbd 100644 --- a/drivers/usb/gadget

[PATCH v2] USB: gadget: f_fs: fix error handling

2013-09-30 Thread Robert Baldyga
for high speed descriptors. Without this check it's possible that the module will try to dereference incorrect pointer. Signed-off-by: Robert Baldyga r.bald...@samsung.com Changelog: v2: - fix typos - expand patch desctiprion v1: https://lkml.org/lkml/2013/9/27/128 --- drivers/usb/gadget/f_fs.c

[PATCH v2] USB: gadget: epautoconf: fix ep maxpacket check

2013-09-30 Thread Robert Baldyga
endpoints. Correct maxpacket value is: FULL-SPEED HIGH-SPEED SUPER-SPEED BULK 64 512 1024 INTERRUPT64 10241024 ISOCHRONOUS 102310241024 Signed-off-by: Robert Baldyga r.bald...@samsung.com Changelog: v2: - arrange code

[PATCH V3] USB: gadget: epautoconf: fix ep maxpacket check

2013-10-01 Thread Robert Baldyga
SUPER-SPEED BULK 8, 16, 32, 64 512 1024 INTERRUPT1..64 1..1024 1..1024 ISOCHRONOUS 1..1023 1..1024 1..1024 Signed-off-by: Robert Baldyga r.bald...@samsung.com --- Hello, This is third version of my patch. Form last version I have fixed

[PATCH v3] mfd: max77686: handle IRQs using regmap

2014-06-12 Thread Robert Baldyga
This patch modifies mfd driver to use regmap for handling interrupts. It allows to simplify irq handling process. This modifications needed to make small changes in function drivers, which use interrupts. Signed-off-by: Robert Baldyga r.bald...@samsung.com Reviewed-by: Krzysztof Kozlowski

[PATCH] usb: gadget: composite: unlock spinlock before usb_gadget_disconnect()

2014-06-13 Thread Robert Baldyga
spinlock recursion. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/usb/gadget/composite.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index d41103e..77cae4b 100644 --- a/drivers/usb/gadget

[PATCH] usb: gadget: add claimed field in struct usb_ep

2014-06-16 Thread Robert Baldyga
This field allows to mark ep as claimed in more clear way. Claiming endpoint by setting driver_data to non-null value is leaky solution and makes code unreadable. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/usb/gadget/epautoconf.c | 11 ++- include/linux/usb/gadget.h

[PATCH] aio: fix request cancelling

2014-01-23 Thread Robert Baldyga
callback function. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- fs/aio.c | 77 ++ 1 file changed, 47 insertions(+), 30 deletions(-) diff --git a/fs/aio.c b/fs/aio.c index 062a5f6..ea275fa 100644 --- a/fs/aio.c +++ b/fs/aio.c

[PATCH] aio: fix kiocb_cancel() funcition

2014-01-27 Thread Robert Baldyga
function call, so spinlock recursion will not occur in case of aio_complete() call. After cancel function call spinlock is locked back. There is also __must_hold() macro added for kiocb_cancel() function, to allow sparse spin lock checking. Signed-off-by: Robert Baldyga r.bald...@samsung.com

[PATCH] mfd: max77686: handle IRQs using regmap

2014-03-26 Thread Robert Baldyga
This patch modifies mfd driver to use regmap for handling interrupts. It allows to simplify irq handling process. This modifications needed to make small changes in function drivers, which use interrupts. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/mfd/Kconfig

[PATCH v2] mfd: max77686: handle IRQs using regmap

2014-03-26 Thread Robert Baldyga
This patch modifies mfd driver to use regmap for handling interrupts. It allows to simplify irq handling process. This modifications needed to make small changes in function drivers, which use interrupts. Signed-off-by: Robert Baldyga r.bald...@samsung.com Reviewed-by: Krzysztof Kozlowski

[PATCH v2] ARM: dts: exynos4210-trats: add max8997 IRQ

2014-03-26 Thread Robert Baldyga
This patch adds IRQ line specification for the MAX8997 chip and necessary pinctrl group to configure pull-up and driver strength of the pin. It's needed for proper handling of IRQs coming from MAX8997 multifunction device (IRQs are used by PMIC, MUIC and RTC). Signed-off-by: Robert Baldyga r.bald

Re: [PATCH v2 00/13] extcon: major rework

2014-04-28 Thread Robert Baldyga
On 04/24/2014 09:52 PM, Greg KH wrote: On Mon, Apr 14, 2014 at 01:46:11PM +0200, Robert Baldyga wrote: This patchset adds many improvements to extcon class driver and extcon provider drivers. It changes extcon API to faster and safer by replaceing function taking extcon and cable names

[RESEND PATCH v2] mfd: max77686: handle IRQs using regmap

2014-04-28 Thread Robert Baldyga
This patch modifies mfd driver to use regmap for handling interrupts. It allows to simplify irq handling process. This modifications needed to make small changes in function drivers, which use interrupts. Signed-off-by: Robert Baldyga r.bald...@samsung.com Reviewed-by: Krzysztof Kozlowski

[PATCH v4 2/3] mfd: max8997: handle IRQs using regmap

2014-04-28 Thread Robert Baldyga
This patch modifies mfd driver to use regmap for handling interrupts. It allows to simplify irq handling process. This modifications needed to make small changes in function drivers, which use interrupts. Signed-off-by: Robert Baldyga r.bald...@samsung.com Reviewed-by: Krzysztof Kozlowski

[PATCH v4 3/3] mfd: max8997: change irq names to upper case

2014-04-28 Thread Robert Baldyga
This patch changes naming convention of MUIC interrupts form CamelCase to upper case. It makes names more readable and consistent with another interrupt names in max8997 driver. Signed-off-by: Robert Baldyga r.bald...@samsung.com Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com

[PATCH v4 1/3] mfd: max8997: use regmap to access registers

2014-04-28 Thread Robert Baldyga
This patch modifies max8997 driver and each associated function driver, to use regmap instead of operating directly on i2c bus. It will allow to simplify IRQ handling using regmap-irq. Signed-off-by: Robert Baldyga r.bald...@samsung.com Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com

[PATCH v4 0/3] mfd: max8997: add regmap support

2014-04-28 Thread Robert Baldyga
, their i2c clients, regmaps and irqs are not registered. Best regards Robert Baldyga Samsung RD Institute Poland Changelog: v4: - remove patch moving regmap handling to function drivers v3: https://lkml.org/lkml/2014/3/13/101 - fix error handling - fix deinitializations order - move muic irq enum

[PATCH 0/2] mfd: max77693: improve regmap support

2014-04-28 Thread Robert Baldyga
This patchset modifies max77693 driver and associated function drivers to improve regmap support. It removes unnecessary wrapper functions, which make code more clean, and modifies IRQ handling to use regmap irq. Best regards Robert Baldyga Samsung RD Institute Poland Robert Baldyga (2): mfd

[PATCH 2/2] mfd: max77693: handle IRQs using regmap

2014-04-28 Thread Robert Baldyga
This patch modifies mfd driver to use regmap for handling interrupts. It allows to simplify irq handling process. This modifications needed to make small changes in function drivers, which use interrupts. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/extcon/extcon-max77693.c

[PATCH 1/2] mfd: max77693: remove unnecessary wrapper functions

2014-04-28 Thread Robert Baldyga
This patch removes wrapper functions used to access regmap, and make driver using regmap_*() functions instead. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/extcon/extcon-max77693.c | 30 +-- drivers/mfd/max77693-irq.c | 31

[PATCH v2 1/2] mfd: max77693: remove unnecessary wrapper functions

2014-04-28 Thread Robert Baldyga
This patch removes wrapper functions used to access regmap, and make driver using regmap_*() functions instead. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/extcon/extcon-max77693.c | 32 ++--- drivers/mfd/max77693-irq.c | 50

[PATCH v2 0/2] mfd: max77693: improve regmap support

2014-04-28 Thread Robert Baldyga
This patchset modifies max77693 driver and associated function drivers to improve regmap support. It removes unnecessary wrapper functions, which make code more clean, and modifies IRQ handling to use regmap irq. Best regards Robert Baldyga Samsung RD Institute Poland Changelog: v2: - change

[PATCH v2 2/2] mfd: max77693: handle IRQs using regmap

2014-04-28 Thread Robert Baldyga
This patch modifies mfd driver to use regmap for handling interrupts. It allows to simplify irq handling process. This modifications needed to make small changes in function drivers, which use interrupts. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/extcon/extcon-max77693.c

[PATCH v3 0/2] mfd: max77693: improve regmap support

2014-04-29 Thread Robert Baldyga
This patchset modifies max77693 driver and associated function drivers to improve regmap support. It removes unnecessary wrapper functions, which make code more clean, and modifies IRQ handling to use regmap irq. Best regards Robert Baldyga Samsung RD Institute Poland Changelog: v3: - fix some

[PATCH v3 2/2] mfd: max77693: handle IRQs using regmap

2014-04-29 Thread Robert Baldyga
This patch modifies mfd driver to use regmap for handling interrupts. It allows to simplify irq handling process. This modifications needed to make small changes in function drivers, which use interrupts. Signed-off-by: Robert Baldyga r.bald...@samsung.com Reviewed-by: Krzysztof Kozlowski

[PATCH v3 1/2] mfd: max77693: remove unnecessary wrapper functions

2014-04-29 Thread Robert Baldyga
This patch removes wrapper functions used to access regmap, and make driver using regmap_*() functions instead. Signed-off-by: Robert Baldyga r.bald...@samsung.com Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by: Lee Jones lee.jo...@linaro.org [For extcon part] Acked

Re: [PATCH v2 01/13] Documentation: add extcon devicetree bindings

2014-04-25 Thread Robert Baldyga
On 04/22/2014 09:51 PM, Mark Brown wrote: On Mon, Apr 14, 2014 at 01:46:12PM +0200, Robert Baldyga wrote: That's quite some CC list you've got there, and the mail seems a bit corrupted too (it confused my MUA). This patch adds extcon devicetree bindings. Documentation describes

Re: [PATCH v2 05/13] extcon: extcon-class: improve extcon client API

2014-04-22 Thread Robert Baldyga
On 04/19/2014 12:52 PM, Aaro Koskinen wrote: Hi, On Mon, Apr 14, 2014 at 01:46:16PM +0200, Robert Baldyga wrote: dev_info(pdev-dev, - OMAP USB OTG controller rev %d.%d (%s, id=%d, vbus=%d)\n, - (rev 4) 0xf, rev 0xf, config-extcon, otg_dev-id

Re: [PATCH v2 05/13] extcon: extcon-class: improve extcon client API

2014-04-23 Thread Robert Baldyga
On 04/22/2014 05:03 PM, Aaro Koskinen wrote: Hi, On Tue, Apr 22, 2014 at 08:21:35AM +0200, Robert Baldyga wrote: On 04/19/2014 12:52 PM, Aaro Koskinen wrote: On Mon, Apr 14, 2014 at 01:46:16PM +0200, Robert Baldyga wrote: dev_info(pdev-dev, - OMAP USB OTG controller rev %d.%d

[PATCH 01/13] Documentation: add extcon devicetree bindings

2014-04-10 Thread Robert Baldyga
This patch adds extcon devicetree bindings. Documentation describes in general client and provider bindings, and contains detailed desctiprion of bindings for each extcon provider. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- .../devicetree/bindings/extcon/extcon-adc-jack.txt | 60

[PATCH 02/13] Documentation: update charger-manager devicetree bindings

2014-04-10 Thread Robert Baldyga
This patch changes charger-manager bindings to be compatible with new extcon bindings. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- .../bindings/power_supply/charger-manager.txt | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Documentation

[PATCH 00/13] extcon: major rework

2014-04-10 Thread Robert Baldyga
be found in commit messages and Documentation. Best regards Robert Baldyga Samsung RD Institute Poland Robert Baldyga (13): Documentation: add extcon devicetree bindings Documentation: update charger-manager devicetree bindings extcon: extcon-class: remove extcon_set_cable_state() function

[PATCH 06/13] extcon: extcon-class: remove unused functions

2014-04-10 Thread Robert Baldyga
This patch removes two functions, extcon_find_cable_index() and extcon_get_edev_by_phandle(). They are not longer needed, since extcon client API has changed to be oriented on extcon_cable instead of extcon_dev. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- drivers/extcon/extcon

  1   2   3   4   5   6   7   8   9   10   >