[PATCH 5/5] rc: img-ir: add philips rc6 decoder module

2014-12-04 Thread Sifan Naeem
Add img-ir module for decoding Philips rc6 protocol. Signed-off-by: Sifan Naeem --- drivers/media/rc/img-ir/Kconfig |8 +++ drivers/media/rc/img-ir/Makefile |1 + drivers/media/rc/img-ir/img-ir-hw.c |3 + drivers/media/rc/img-ir/img-ir-hw.h |1 + drivers/media/rc/img

[PATCH 1/5] rc: img-ir: add scancode requests to a struct

2014-12-04 Thread Sifan Naeem
hardware decode callbacks. Signed-off-by: Sifan Naeem --- drivers/media/rc/img-ir/img-ir-hw.c| 16 +--- drivers/media/rc/img-ir/img-ir-hw.h| 16 ++-- drivers/media/rc/img-ir/img-ir-jvc.c |8 drivers/media/rc/img-ir/img-ir-nec.c | 24

[PATCH 0/5] rc: img-ir: rc5 and rc6 support added

2014-12-04 Thread Sifan Naeem
Rothwell Date: Thu Dec 4 19:49:10 2014 +1100 Sifan Naeem (5): rc: img-ir: add scancode requests to a struct rc: img-ir: pass toggle bit to the rc driver rc: img-ir: biphase enabled with workaround rc: img-ir: add philips rc5 decoder module rc: img-ir: add philips rc6 decoder module

[PATCH 4/5] rc: img-ir: add philips rc5 decoder module

2014-12-04 Thread Sifan Naeem
Add img-ir module for decoding Philips rc5 protocol. Signed-off-by: Sifan Naeem --- drivers/media/rc/img-ir/Kconfig |7 +++ drivers/media/rc/img-ir/Makefile |1 + drivers/media/rc/img-ir/img-ir-hw.c |3 ++ drivers/media/rc/img-ir/img-ir-hw.h |1 + drivers/media/rc/img

[PATCH 2/5] rc: img-ir: pass toggle bit to the rc driver

2014-12-04 Thread Sifan Naeem
Add toggle bit to struct img_ir_scancode_req so that protocols can provide it to img_ir_handle_data(), and pass that toggle bit up to rc_keydown instead of 0. This is nedded for the upcoming rc-5 and rc-6 patches. Signed-off-by: Sifan Naeem --- drivers/media/rc/img-ir/img-ir-hw.c |8

[PATCH 3/5] rc: img-ir: biphase enabled with workaround

2014-12-04 Thread Sifan Naeem
Biphase decoding in the current img-ir has got a quirk, where multiple Interrupts are generated when an incomplete IR code is received by the decoder. Patch adds a work around for the quirk and enables biphase decoding. Signed-off-by: Sifan Naeem --- drivers/media/rc/img-ir/img-ir-hw.c | 56

RE: [PATCH] rc: img-ir: Add and enable sys clock for IR

2015-04-08 Thread Sifan Naeem
Hi Mauro, I sent you a v2 of this patch on 4th February: From: Sifan Naeem Sent: 04 February 2015 16:48 To: James Hogan; mche...@osg.samsung.com Cc: linux-kernel@vger.kernel.org; linux-me...@vger.kernel.org; Sifan Naeem Subject: [PATCH v2] rc: img-ir: Add and enable sys clock for img-ir

RE: [PATCH] rc: img-ir: Add and enable sys clock for IR

2015-04-09 Thread Sifan Naeem
Hi Mauro, Seems like you have applied the correct patch after all. ([v2] rc: img-ir: Add and enable sys clock for img-ir) Thanks, Sifan > -Original Message- > From: Mauro Carvalho Chehab [mailto:mche...@osg.samsung.com] > Sent: 08 April 2015 15:41 > To: Sifan Naeem >

[PATCH] spi: img-spfi: Same Edge bit set to double supported transfer speed

2015-06-16 Thread Sifan Naeem
Same edge bit set in SPFI Control register to double the supported spfi clock speed. According to the TRM setting this bit increases the supported frequency from 1/8 to 1/4 of the Core clock frequency. Without this bit set the maximum speed would be 25MHz on Pistachio. Signed-off-by: Sifan Naeem

[PATCH v2] spi: img-spfi: Same Edge bit set to double supported transfer speed

2015-06-17 Thread Sifan Naeem
: I26782ea88ac3567e72dac11e46c5b5f5f52c5e3d Signed-off-by: Sifan Naeem --- drivers/spi/spi-img-spfi.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/spi/spi-img-spfi.c b/drivers/spi/spi-img-spfi.c index 788e2b1..acce90a 100644 --- a/drivers/spi/spi-img-spfi.c +++ b/drivers/spi/spi-img-spfi.c @@ -40,6 +40,7

[PATCH v3] spi: img-spfi: Same Edge bit set to double supported transfer speed

2015-06-17 Thread Sifan Naeem
Same edge bit set in SPFI Control register to double the supported spfi clock speed. Setting this bit increases the supported spfi frequency from 1/8 to 1/4 of the core clock frequency. Without this bit set the maximum speed supported was 25MHz on Pistachio. Signed-off-by: Sifan Naeem

RE: [PATCH v2] spi: img-spfi: Same Edge bit set to double supported transfer speed

2015-06-17 Thread Sifan Naeem
Hi Jonas, > -Original Message- > From: Jonas Gorski [mailto:j...@openwrt.org] > Sent: 17 June 2015 13:12 > To: Sifan Naeem > Cc: Mark Brown; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > Andrew Bresticker > Subject: Re: [PATCH v2] spi: img-spfi: Same E

RE: [PATCH v2] spi: img-spfi: Same Edge bit set to double supported transfer speed

2015-06-17 Thread Sifan Naeem
Hi Jonas, > -Original Message- > From: Jonas Gorski [mailto:j...@openwrt.org] > Sent: 17 June 2015 15:31 > To: Sifan Naeem > Cc: Mark Brown; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > Andrew Bresticker > Subject: Re: [PATCH v2] spi: img-spfi: Same E

[PATCH] spi: img-spfi: check for max speed supported by the spfi block

2015-06-18 Thread Sifan Naeem
: Sifan Naeem --- .../devicetree/bindings/spi/spi-img-spfi.txt |1 + drivers/spi/spi-img-spfi.c | 15 +++ 2 files changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/spi-img-spfi.txt b/Documentation/devicetree/bindings/spi/spi

[PATCH v2] spi: img-spfi: check for max speed supported by the spfi block

2015-06-18 Thread Sifan Naeem
: Sifan Naeem --- changes from v1: coding style fix. .../devicetree/bindings/spi/spi-img-spfi.txt |1 + drivers/spi/spi-img-spfi.c | 14 ++ 2 files changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/spi-img-spfi.txt b

[PATCH] spi: img-spfi: fix support for speeds up to 1/4th input clock

2015-06-18 Thread Sifan Naeem
1/8th of the input clock. The current driver calculates the divisor with maximum speed at 1/4th of the input clock, this would fail if the requested frequency is higher than 1/8 of the input clock. Any requests for 1/8th of the input clock would still pass. Signed-off-by: Sifan Naeem Fixes

RE: [PATCH v3] spi: img-spfi: Same Edge bit set to double supported transfer speed

2015-06-18 Thread Sifan Naeem
Please ignore this patch. I have posted a new patch as a fix after the discussion with Jonas Gorski. https://patchwork.kernel.org/patch/6636761/ spi: img-spfi: fix support for speeds up to 1/4th input clock Thanks, Sifan > -Original Message- > From: Sifan Naeem > Sent: 17 Jun

[PATCH] rc: img-ir: fix error in parameters passed to irq_free()

2015-02-10 Thread Sifan Naeem
] [<8073ded0>] platform_drv_remove+0x30/0x54 ... Signed-off-by: Sifan Naeem Fixes: 160a8f8aec4d ("[media] rc: img-ir: add base driver") Cc: # 3.15+ --- drivers/media/rc/img-ir/img-ir-core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/rc/img-ir/img-i

[PATCH v2] rc: img-ir: Add and enable sys clock for img-ir

2015-02-04 Thread Sifan Naeem
It's important the systen clock is enabled before register interface is accessed by the driver. The system clock to IR is needed for the driver to communicate with the IR hardware via MMIO accesses on the system bus, so it must not be disabled during use or the driver will malfunction. Signed-off

[PATCH] rc: img-ir: Add and enable sys clock for IR

2015-02-03 Thread Sifan Naeem
. The system clock to IR is needed for the driver to communicate with the IR hardware via MMIO accesses on the system bus, so it must not be disabled during use or the driver will malfunction. Signed-off-by: Sifan Naeem --- drivers/media/rc/img-ir/img-ir-core.c | 13 + drivers/media/rc/i

[PATCH] spi: img-spfi: same edge bit set to double spfi speeds

2015-02-03 Thread Sifan Naeem
ff-by: Sifan Naeem --- drivers/spi/spi-img-spfi.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/spi/spi-img-spfi.c b/drivers/spi/spi-img-spfi.c index c01567d..e6f77b8 100644 --- a/drivers/spi/spi-img-spfi.c +++ b/drivers/spi/spi-img-spfi.c @@ -39,6 +39,7 @@ #d

[PATCH] spi: img-spfi: Verify max spfi transfer length

2015-03-02 Thread Sifan Naeem
Maximum transfer length supported by SPFI is 65535, this is limited by the number of bits available in SPFI TSize register to represent the transfer size. For transfer requests larger than the maximum supported the driver will return an invalid argument error. Signed-off-by: Sifan Naeem Reviewed

[PATCH] spi: img-spfi: Remove udelay in soft reset

2015-03-02 Thread Sifan Naeem
Removing the udelay between setting and clearing the soft reset bit in the spfi control register as it is not required. Signed-off-by: Sifan Naeem Reviewed-by: Andrew Bresticker --- drivers/spi/spi-img-spfi.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/spi-img-spfi.c b

RE: [PATCH 3/5] rc: img-ir: biphase enabled with workaround

2014-12-11 Thread Sifan Naeem
> -Original Message- > From: James Hogan > Sent: 08 December 2014 17:18 > To: Sifan Naeem; mche...@osg.samsung.com > Cc: linux-kernel@vger.kernel.org; linux-me...@vger.kernel.org; James > Hartley; Ezequiel Garcia > Subject: Re: [PATCH 3/5] rc: img-ir: biphase en

[PATCH v2 1/5] rc: img-ir: add scancode requests to a struct

2014-12-11 Thread Sifan Naeem
hardware decode callbacks. Signed-off-by: Sifan Naeem --- drivers/media/rc/img-ir/img-ir-hw.c| 16 +--- drivers/media/rc/img-ir/img-ir-hw.h| 16 ++-- drivers/media/rc/img-ir/img-ir-jvc.c |8 drivers/media/rc/img-ir/img-ir-nec.c | 24

[PATCH v2 3/5] rc: img-ir: biphase enabled with workaround

2014-12-11 Thread Sifan Naeem
ntial deadlock stopping timer" * spinlock taken in img_ir_suspend_timer * check for hw->stopping before handling quirks in img_ir_isr_hw * new memeber added to img_ir_priv_hw to save irq status over suspend Signed-off-by: Sifan Naeem --- drivers/media/rc/img-ir/img-i

[PATCH v2 5/5] rc: img-ir: add philips rc6 decoder module

2014-12-11 Thread Sifan Naeem
Add img-ir module for decoding Philips rc6 protocol. Changes from v1: * Phillips renamed to Philips Signed-off-by: Sifan Naeem --- drivers/media/rc/img-ir/Kconfig |8 +++ drivers/media/rc/img-ir/Makefile |1 + drivers/media/rc/img-ir/img-ir-hw.c |3 + drivers/media/rc

[PATCH v2 0/5] rc: img-ir: rc5 and rc6 support added

2014-12-11 Thread Sifan Naeem
ntial deadlock stopping timer" * spinlock taken in img_ir_suspend_timer * Check for hw->stopping before handling quirks in img_ir_isr_hw * New member added to img_ir_priv_hw to save irq status over suspend * Phillips renamed to Philips Sifan Naeem (5): rc: img-ir: add scancode requests to

[PATCH v2 2/5] rc: img-ir: pass toggle bit to the rc driver

2014-12-11 Thread Sifan Naeem
Add toggle bit to struct img_ir_scancode_req so that protocols can provide it to img_ir_handle_data(), and pass that toggle bit up to rc_keydown instead of 0. This is needed for the upcoming rc-5 and rc-6 patches. Change from v1: * Typo Corrected in the commit message. Signed-off-by: Sifan

[PATCH v2 4/5] rc: img-ir: add philips rc5 decoder module

2014-12-11 Thread Sifan Naeem
Add img-ir module for decoding Philips rc5 protocol. Changes from v1: * Phillips renamed to Philips Signed-off-by: Sifan Naeem --- drivers/media/rc/img-ir/Kconfig |7 +++ drivers/media/rc/img-ir/Makefile |1 + drivers/media/rc/img-ir/img-ir-hw.c |3 ++ drivers/media/rc

RE: [PATCH 3/5] rc: img-ir: biphase enabled with workaround

2014-12-12 Thread Sifan Naeem
> -Original Message- > From: James Hogan > Sent: 12 December 2014 10:56 > To: Sifan Naeem; mche...@osg.samsung.com > Cc: linux-kernel@vger.kernel.org; linux-me...@vger.kernel.org; James > Hartley; Ezequiel Garcia > Subject: Re: [PATCH 3/5] rc: img-ir: biphase en