Re: [PATCH v2 2/2] mtd: nand: atmel_nand: fix a possible NULL dereference

2015-11-24 Thread Josh Wu
Hi, Corentin On 11/24/2015 9:12 PM, LABBE Corentin wrote: On Fri, Nov 20, 2015 at 04:33:14PM +0800, Josh Wu wrote: Hi, Corentin Thanks for the patch. It looks fine to me, just one nitpick in below: On 11/20/2015 3:45 PM, LABBE Corentin wrote: of_match_device could return NULL, and so cause

Re: [PATCH v2 2/2] mtd: nand: atmel_nand: fix a possible NULL dereference

2015-11-20 Thread Josh Wu
if (!host->caps) + return 1; it's better to use -EINVAL here. Best Regards, Josh Wu if (of_property_read_u32(np, "atmel,nand-addr-offset", &val) == 0) { if (val >= 32) { -- To unsubscribe from this list: send the line "unsubscr

Re: [PATCH v2 1/2] mtd: nand: atmel_nand: constify atmel_nand_caps structures

2015-11-20 Thread Josh Wu
Hi, Corentin Thanks for the patch. On 11/20/2015 3:45 PM, LABBE Corentin wrote: All atmel_nand_caps are never modified, consitify them. Signed-off-by: LABBE Corentin Acked-by: Josh Wu Best Regards, Josh Wu --- drivers/mtd/nand/atmel_nand.c | 6 +++--- 1 file changed, 3 insertions

[PATCH v2 2/5] media: atmel-isi: prepare for the support of preview path

2015-11-02 Thread Josh Wu
Atmel ISI support a preview path which can output RGB data. So this patch introduces a bool variable to choose which path is enabled currently. And also we need setup corresponding path registers. By default the preview path is disabled. We only use Codec path. Signed-off-by: Josh Wu

[PATCH v2 0/5] media: atmel-isi: enable preview path to output RGB565 format

2015-11-02 Thread Josh Wu
t_rgb() function which only used once. Also move the code into the for loop. Josh Wu (5): media: atmel-isi: correct yuv swap according to different sensor outputs media: atmel-isi: prepare for the support of preview path media: atmel-isi: add code to setup correct resolution for preview

[PATCH v2 3/5] media: atmel-isi: add code to setup correct resolution for preview path

2015-11-02 Thread Josh Wu
Not like codec path, preview path can do downsampling, so we should setup a extra preview width, height for it. This patch add preview resolution setup without down sampling. So currently preview path will output same size as sensor output size. Signed-off-by: Josh Wu --- Changes in v2: None

[PATCH v2 5/5] media: atmel-isi: support RGB565 output when sensor output YUV formats

2015-11-02 Thread Josh Wu
This patch enable Atmel ISI preview path to convert the YUV to RGB format. Signed-off-by: Josh Wu --- Changes in v2: - According to Guennadi's suggestion, remove the is_output_rgb() function which only used once. Also move the code into the for loop. drivers/media/platform/soc_camera/

[PATCH v2 1/5] media: atmel-isi: correct yuv swap according to different sensor outputs

2015-11-02 Thread Josh Wu
output a pass-through formats, which means no swap. Just setup YCC_SWAP as default with no swap. Signed-off-by: Josh Wu --- Changes in v2: - remove the duplicated variable: cfg2_yuv_swap. drivers/media/platform/soc_camera/atmel-isi.c | 39 --- 1 file changed, 29

[PATCH v2 4/5] media: atmel-isi: setup YCC_SWAP correctly when using preview path

2015-11-02 Thread Josh Wu
The preview path only can convert UYVY format to RGB data. To make preview path work correctly, we need to set up YCC_SWAP according to sensor output and convert them to UYVY. Signed-off-by: Josh Wu --- Changes in v2: - remove cfg2_yuv_swap for rgb format - correct the comment style drivers

[PATCH 2/4] v4l2-clk: add new macro for v4l2_clk_name_of()

2015-10-28 Thread Josh Wu
This macro is used to generate a OF string for a v4l2 clock. Signed-off-by: Josh Wu --- drivers/media/platform/soc_camera/soc_camera.c | 4 ++-- include/media/v4l2-clk.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform

[PATCH 4/4] v4l2-clk: v4l2_clk_get() also need to find the of_fullname clock

2015-10-28 Thread Josh Wu
ot;. This patch will search the clock with OF string name if fail to find the clock with I2C string name. Signed-off-by: Josh Wu --- drivers/media/v4l2-core/v4l2-clk.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-clk.c b/drivers/media/v4l2-core/

[PATCH 3/4] v4l2-clk: add new definition: V4L2_CLK_NAME_SIZE

2015-10-28 Thread Josh Wu
Make all v4l2-clk's clock name use V4L2_CLK_NAME_SIZE definition. In future, if the string increased we just need to change the V4L2_CLK_NAME_SIZE once. Signed-off-by: Josh Wu --- drivers/media/platform/soc_camera/soc_camera.c | 6 +++--- drivers/media/usb/em28xx/em28xx-camera.c

[PATCH 1/4] soc_camera: get the clock name by using macro: v4l2_clk_name_i2c()

2015-10-28 Thread Josh Wu
Since v4l2_clk_name_i2c() is defined, so just reuse it. Signed-off-by: Josh Wu --- drivers/media/platform/soc_camera/soc_camera.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/media/platform/soc_camera/soc_camera.c b/drivers/media/platform

[PATCH 0/4] soc-camera: fix the bug which will fail to search the registered v4l2-clk

2015-10-28 Thread Josh Wu
This patch set will fix a bug in soc-camera, which will fail to search the v4l2-clk if the i2c sensor is probed later than soc-camera host. It also add some clean up for v4l2-clk code and usage. Josh Wu (4): soc_camera: get the clock name by using macro: v4l2_clk_name_i2c() v4l2-clk: add

Re: [PATCH] ARM: at91/dt: ov2640: add hsync/vsync-active property

2015-09-20 Thread Josh Wu
Hi, Nicolas On 9/18/2015 10:09 PM, Nicolas Ferre wrote: Le 18/09/2015 13:28, Josh Wu a écrit : On at91sam9x5ek/at91sam9m10g45ek/sama5d3xek boards, we use the parallel connection for ov2640. So we must set the hsync/vsync property (1 means active high). Otherwise, the connection would be seen

[PATCH] ARM: at91/dt: ov2640: add hsync/vsync-active property

2015-09-18 Thread Josh Wu
On at91sam9x5ek/at91sam9m10g45ek/sama5d3xek boards, we use the parallel connection for ov2640. So we must set the hsync/vsync property (1 means active high). Otherwise, the connection would be seen as BT.656 or BT.1120. Signed-off-by: Josh Wu --- arch/arm/boot/dts/at91sam9m10g45ek.dts | 2

Re: [PATCH] media: soc-camera: increase the length of clk_name on soc_of_bind()

2015-09-18 Thread Josh Wu
o into 4.3. Best Regards, Josh Wu Thanks Guennadi On Tue, 4 Aug 2015, Josh Wu wrote: Since in soc_of_bind() it may use the of node's full name as the clk_name, and this full name may be longer than 32 characters, take at91 i2c sensor as an example, length is 34 bytes: /ahb/apb/i2c@

Re: [PATCH] [media] atmel-isi: Protect PM-only functions to kill warning

2015-09-06 Thread Josh Wu
: ‘atmel_isi_runtime_resume’ defined but not used Protect the unused functions by #ifdef CONFIG_PM to fix this. Signed-off-by: Geert Uytterhoeven Acked-by: Josh Wu Best Regards, Josh Wu --- Resend with correct suject --- drivers/media/platform/soc_camera/atmel-isi.c | 2 ++ 1 file changed, 2

Re: [PATCH 1/2] media: atmel-isi: setup the ISI_CFG2 register directly

2015-08-31 Thread Josh Wu
Hi, Guennadi Thanks for the review. On 8/30/2015 4:48 PM, Guennadi Liakhovetski wrote: Hi Josh, On Wed, 17 Jun 2015, Josh Wu wrote: In the function configure_geometry(), we will setup the ISI CFG2 according to the sensor output format. It make no sense to just read back the CFG2 register

Re: [PATCH v3 3/3] media: atmel-isi: add sanity check for supported formats in try/set_fmt()

2015-08-24 Thread Josh Wu
Hi, Laurent On 8/22/2015 2:22 AM, Laurent Pinchart wrote: Hi Josh, Thank you for the patch. On Friday 21 August 2015 16:08:14 Josh Wu wrote: After adding the format check in try_fmt()/set_fmt(), we don't need any format check in configure_geometry(). So make configure_geometry() as void

[PATCH v3 3/3] media: atmel-isi: add sanity check for supported formats in try/set_fmt()

2015-08-21 Thread Josh Wu
After adding the format check in try_fmt()/set_fmt(), we don't need any format check in configure_geometry(). So make configure_geometry() as void type. Signed-off-by: Josh Wu --- Changes in v3: - check the whether format is supported, if no then return a default format. - misc ch

[PATCH v3 2/3] media: atmel-isi: move configure_geometry() to start_streaming()

2015-08-21 Thread Josh Wu
As in set_fmt() function we only need to know which format is been set, we don't need to access the ISI hardware in this moment. So move the configure_geometry(), which access the ISI hardware, to start_streaming() will make code more consistent and simpler. Signed-off-by: Josh Wu Review

[PATCH v3 1/3] media: atmel-isi: setup the ISI_CFG2 register directly

2015-08-21 Thread Josh Wu
. Signed-off-by: Josh Wu Reviewed-by: Laurent Pinchart --- Changes in v3: None Changes in v2: - add Laurent's reviewed-by tag. drivers/media/platform/soc_camera/atmel-isi.c | 20 +++- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/drivers/media/platform/soc_c

Re: [PATCH v2 3/3] media: atmel-isi: add sanity check for supported formats in set_fmt()

2015-08-20 Thread Josh Wu
Hi, Laurent Thanks for the review. On 8/21/2015 2:30 AM, Laurent Pinchart wrote: Hi Josh, Thank you for the patch. On Wednesday 05 August 2015 11:26:29 Josh Wu wrote: After adding the format check in set_fmt(), we don't need any format check in configure_geometry(). So

Re: [PATCH v2 3/3] media: atmel-isi: add sanity check for supported formats in set_fmt()

2015-08-20 Thread Josh Wu
Hi, Laurent Could you have time to review this patch? so that I can send a pull request with your reviewed-by tags. Best Regards, Josh Wu On 8/5/2015 11:26 AM, Josh Wu wrote: After adding the format check in set_fmt(), we don't need any format check in configure_geometry(). So

[PATCH v2 2/3] media: atmel-isi: move configure_geometry() to start_streaming()

2015-08-04 Thread Josh Wu
As in set_fmt() function we only need to know which format is been set, we don't need to access the ISI hardware in this moment. So move the configure_geometry(), which access the ISI hardware, to start_streaming() will make code more consistent and simpler. Signed-off-by: Josh Wu Review

[PATCH v2 3/3] media: atmel-isi: add sanity check for supported formats in set_fmt()

2015-08-04 Thread Josh Wu
After adding the format check in set_fmt(), we don't need any format check in configure_geometry(). So make configure_geometry() as void type. Signed-off-by: Josh Wu --- Changes in v2: - new added patch drivers/media/platform/soc_camera/atmel-isi.c | 39 +-- 1

[PATCH v2 1/3] media: atmel-isi: setup the ISI_CFG2 register directly

2015-08-04 Thread Josh Wu
. Signed-off-by: Josh Wu Reviewed-by: Laurent Pinchart --- Changes in v2: - add Laurent's reviewed-by tag. drivers/media/platform/soc_camera/atmel-isi.c | 20 +++- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/drivers/media/platform/soc_camera/atmel-isi

[PATCH] media: soc-camera: increase the length of clk_name on soc_of_bind()

2015-08-04 Thread Josh Wu
nough so far. Signed-off-by: Josh Wu --- drivers/media/platform/soc_camera/soc_camera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/soc_camera/soc_camera.c b/drivers/media/platform/soc_camera/soc_camera.c index d708df4..fcf3e97 100644 --- a/drivers/

Re: [PATCH 2/2] media: atmel-isi: move configure_geometry() to start_streaming()

2015-08-03 Thread Josh Wu
Hi, Laurent On 8/3/2015 9:27 PM, Laurent Pinchart wrote: Hi Josh, On Monday 03 August 2015 11:56:01 Josh Wu wrote: On 7/31/2015 10:37 PM, Laurent Pinchart wrote: On Wednesday 17 June 2015 18:39:39 Josh Wu wrote: As in set_fmt() function we only need to know which format is been set, we

Re: [RFC PATCH 2/3] ARM: at91/dt: add sama5d2 pinmux

2015-08-02 Thread Josh Wu
(PIN_PB24, 6, 3) As sama5d2 use ISC, so It's better to run s/ISI_/ISC_/ in this file, which is consistent with the datasheet. Best Regards, Josh Wu -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org

Re: [PATCH 2/2] media: atmel-isi: move configure_geometry() to start_streaming()

2015-08-02 Thread Josh Wu
HI, Laurent On 7/31/2015 10:37 PM, Laurent Pinchart wrote: Hi Josh, Thank you for the patch. On Wednesday 17 June 2015 18:39:39 Josh Wu wrote: As in set_fmt() function we only need to know which format is been set, we don't need to access the ISI hardware in this moment. So mov

Re: [PATCH 1/2] media: atmel-isi: setup the ISI_CFG2 register directly

2015-07-30 Thread Josh Wu
Hi, list Ping..., any feedback for this series? Best Regards, Josh Wu On 6/17/2015 6:39 PM, Josh Wu wrote: In the function configure_geometry(), we will setup the ISI CFG2 according to the sensor output format. It make no sense to just read back the CFG2 register and just set part of it. So

Re: [PATCH v2 2/2] ARM: at91: at91_dt_defconfig: enable ISI and ov2640 support

2015-07-28 Thread Josh Wu
On 7/28/2015 3:37 PM, Nicolas Ferre wrote: Le 16/06/2015 12:08, Josh Wu a écrit : Add Atmel-isi and ov2640 driver in defconfig Signed-off-by: Josh Wu --- Changes in v2: None arch/arm/configs/at91_dt_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/configs

[PATCH v2 2/2] ARM: at91: sama5/dt: update rstc to correct compatible string

2015-07-20 Thread Josh Wu
They'll use "atmel,sama5d3-rstc" for reset function. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu --- Changes in v2: None arch/arm/boot/dts/sama5d3.dtsi | 2 +- arch/arm/boot/dts/sama5d4.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ar

[PATCH v2 1/2] power: reset: at91: add sama5d3 reset function

2015-07-20 Thread Josh Wu
nal driving the bus, but since sama5d3 and later chips there is no such a conflict. So in this patch: 1. the sama5d3 reset function only need to write the rstc register and return. 2. we can remove the code related with sama5d3 DDR controller as we don't use it at all. Signed-off-b

Re: [PATCH 1/2] power: reset: at91: add sama5d3 reset function

2015-07-20 Thread Josh Wu
On 7/20/2015 4:44 PM, Josh Wu wrote: On 7/20/2015 4:35 PM, Josh Wu wrote: Hi, Maxime On 7/20/2015 3:52 PM, Maxime Ripard wrote: Hi Josh, On Mon, Jul 13, 2015 at 11:21:44AM +0800, Josh Wu wrote: On 7/11/2015 12:12 AM, Nicolas Ferre wrote: Le 10/07/2015 14:31, Maxime Ripard a écrit : On Fri

Re: [PATCH 1/2] power: reset: at91: add sama5d3 reset function

2015-07-20 Thread Josh Wu
On 7/20/2015 4:35 PM, Josh Wu wrote: Hi, Maxime On 7/20/2015 3:52 PM, Maxime Ripard wrote: Hi Josh, On Mon, Jul 13, 2015 at 11:21:44AM +0800, Josh Wu wrote: On 7/11/2015 12:12 AM, Nicolas Ferre wrote: Le 10/07/2015 14:31, Maxime Ripard a écrit : On Fri, Jul 10, 2015 at 02:09:07PM +0200

Re: [PATCH 1/2] power: reset: at91: add sama5d3 reset function

2015-07-20 Thread Josh Wu
Hi, Maxime On 7/20/2015 3:52 PM, Maxime Ripard wrote: Hi Josh, On Mon, Jul 13, 2015 at 11:21:44AM +0800, Josh Wu wrote: On 7/11/2015 12:12 AM, Nicolas Ferre wrote: Le 10/07/2015 14:31, Maxime Ripard a écrit : On Fri, Jul 10, 2015 at 02:09:07PM +0200, Alexandre Belloni wrote: Hi, On 10/07

Re: [PATCH 1/2] power: reset: at91: add sama5d3 reset function

2015-07-12 Thread Josh Wu
On 7/11/2015 12:12 AM, Nicolas Ferre wrote: Le 10/07/2015 14:31, Maxime Ripard a écrit : On Fri, Jul 10, 2015 at 02:09:07PM +0200, Alexandre Belloni wrote: Hi, On 10/07/2015 at 15:56:52 +0800, Josh Wu wrote : I would agree with Maxime. Currently all latest chip reset function is compatible

Re: [PATCH 1/2] power: reset: at91: add sama5d3 reset function

2015-07-10 Thread Josh Wu
On 7/10/2015 2:54 PM, Maxime Ripard wrote: On Fri, Jul 10, 2015 at 11:06:52AM +0800, Josh Wu wrote: Hi, Maxime On 7/9/2015 8:03 PM, Maxime Ripard wrote: Hi, On Thu, Jul 09, 2015 at 06:15:46PM +0800, Josh Wu wrote: As since sama5d3, to reset the chip, we don't need to shutdown th

Re: [PATCH 1/2] power: reset: at91: add sama5d3 reset function

2015-07-10 Thread Josh Wu
Hi, Alexandre On 7/10/2015 2:03 PM, Alexandre Belloni wrote: Hi, On 09/07/2015 at 18:15:46 +0800, Josh Wu wrote : As since sama5d3, to reset the chip, we don't need to shutdown the ddr controller. So add a new compatible string and new restart function for sama5d3 and later chips.

Re: [PATCH 1/2] power: reset: at91: add sama5d3 reset function

2015-07-09 Thread Josh Wu
Hi, Guenter On 7/10/2015 11:14 AM, Guenter Roeck wrote: On Fri, Jul 10, 2015 at 09:59:53AM +0800, Josh Wu wrote: Hi, Guenter On 7/10/2015 1:37 AM, Guenter Roeck wrote: On Thu, Jul 09, 2015 at 06:15:46PM +0800, Josh Wu wrote: As since sama5d3, to reset the chip, we don't need to shutdow

Re: [PATCH 1/2] power: reset: at91: add sama5d3 reset function

2015-07-09 Thread Josh Wu
Hi, Maxime On 7/9/2015 8:03 PM, Maxime Ripard wrote: Hi, On Thu, Jul 09, 2015 at 06:15:46PM +0800, Josh Wu wrote: As since sama5d3, to reset the chip, we don't need to shutdown the ddr controller. So add a new compatible string and new restart function for sama5d3 and later chips.

Re: [PATCH 1/2] power: reset: at91: add sama5d3 reset function

2015-07-09 Thread Josh Wu
Hi, Guenter On 7/10/2015 1:37 AM, Guenter Roeck wrote: On Thu, Jul 09, 2015 at 06:15:46PM +0800, Josh Wu wrote: As since sama5d3, to reset the chip, we don't need to shutdown the ddr controller. So add a new compatible string and new restart function for sama5d3 and later chips. As we

[PATCH 1/2] power: reset: at91: add sama5d3 reset function

2015-07-09 Thread Josh Wu
As since sama5d3, to reset the chip, we don't need to shutdown the ddr controller. So add a new compatible string and new restart function for sama5d3 and later chips. As we don't use sama5d3 ddr controller, so remove it as well. Signed-off-by: Josh Wu Acked-by: Nicolas Ferre ---

[PATCH 2/2] ARM: at91: sama5/dt: update rstc to correct compatible string

2015-07-09 Thread Josh Wu
They'll use "atmel,sama5d3-rstc" for reset function. Cc: devicet...@vger.kernel.org Signed-off-by: Josh Wu --- arch/arm/boot/dts/sama5d3.dtsi | 2 +- arch/arm/boot/dts/sama5d4.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sama5d3.

[PATCH 2/2] media: atmel-isi: move configure_geometry() to start_streaming()

2015-06-17 Thread Josh Wu
As in set_fmt() function we only need to know which format is been set, we don't need to access the ISI hardware in this moment. So move the configure_geometry(), which access the ISI hardware, to start_streaming() will make code more consistent and simpler. Signed-off-by: Josh Wu --- dr

[PATCH 1/2] media: atmel-isi: setup the ISI_CFG2 register directly

2015-06-17 Thread Josh Wu
. Signed-off-by: Josh Wu --- drivers/media/platform/soc_camera/atmel-isi.c | 20 +++- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/drivers/media/platform/soc_camera/atmel-isi.c b/drivers/media/platform/soc_camera/atmel-isi.c index 9070172..8bc40ca 100644 --- a

[PATCH] media: atmel-isi: increase timeout to disable/enable isi

2015-06-17 Thread Josh Wu
If ISI is working on a 1024x768 or higher resolution, it needs longer time to disable ISI. So this patch will increase timeout to 500ms. Signed-off-by: Josh Wu --- drivers/media/platform/soc_camera/atmel-isi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media

[PATCH v2 1/2] ARM: at91: dts: add isi & ov2640 dt nodes for at91sam9m10g45ek board

2015-06-16 Thread Josh Wu
First we group the isi data pins, and for now we only use 0~7 data pins with HSYNC and VSYNC. Also add the link for atmel-isi and ov2640 sensor node. Signed-off-by: Josh Wu --- Changes in v2: - group the isi data pin. - remove the isi_mck pin from pinctrl-isi as it will used by camera sensor

[PATCH v2 2/2] ARM: at91: at91_dt_defconfig: enable ISI and ov2640 support

2015-06-16 Thread Josh Wu
Add Atmel-isi and ov2640 driver in defconfig Signed-off-by: Josh Wu --- Changes in v2: None arch/arm/configs/at91_dt_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig index bcef49a..d089ec9 100644 --- a

[PATCH 2/2] ARM: at91: at91_dt_defconfig: enable ISI and ov2640 support

2015-06-15 Thread Josh Wu
Add Atmel-isi and ov2640 driver in defconfig Signed-off-by: Josh Wu --- arch/arm/configs/at91_dt_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig index bcef49a..d089ec9 100644 --- a/arch/arm/configs

[PATCH 1/2] ARM: at91: dts: add isi & ov2640 dt nodes for at91sam9m10g45ek board

2015-06-15 Thread Josh Wu
Add the link for atmel-isi and ov2640 sensor node. Signed-off-by: Josh Wu --- arch/arm/boot/dts/at91sam9g45.dtsi | 4 +++ arch/arm/boot/dts/at91sam9m10g45ek.dts | 45 ++ 2 files changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9g45.dtsi b

Re: [PATCH v4 2/2] ARM: at91: dts: sama5d4: add dts for sama5d4 xplained board

2015-03-04 Thread Josh Wu
On 3/4/2015 7:07 PM, Nicolas Ferre wrote: Le 04/03/2015 03:51, Josh Wu a écrit : Add at91 sama5d4 xplained board support. Signed-off-by: Josh Wu --- Changes in v4: - Thanks to Bo Shen to find following leds issues: 1. the leds' label is changed in new xplained board. 2. as

[PATCH v4 2/2] ARM: at91: dts: sama5d4: add dts for sama5d4 xplained board

2015-03-03 Thread Josh Wu
Add at91 sama5d4 xplained board support. Signed-off-by: Josh Wu --- Changes in v4: - Thanks to Bo Shen to find following leds issues: 1. the leds' label is changed in new xplained board. 2. as piod bank is disabled in sama5d4, that will whole led driver not work. So just disable th

[PATCH v4 1/2] ARM: at91: sama5d4/dts: add #{address, size}_cells properties for macb0

2015-03-03 Thread Josh Wu
macb0 DT node can have phy child nodes, so add the #{address, size}_cells for macb0 node. Signed-off-by: Josh Wu --- Changes in v4: - fix typo in commit message: cell -> cells Changes in v3: - new added Changes in v2: None arch/arm/boot/dts/sama5d4.dtsi | 2 ++ 1 file changed, 2 inserti

Re: [PATCH] mtd: atmel_nand: fix typo in dev_err error message

2015-03-01 Thread Josh Wu
Hi, Colin On 3/1/2015 4:27 AM, Colin King wrote: From: Colin Ian King Fix typo, "Unkown" -> "Unknown" Signed-off-by: Colin Ian King Thanks for the patch. Acked-by: Josh Wu --- drivers/mtd/nand/atmel_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

[PATCH v3 1/2] ARM: at91: sama5d4/dts: add #{address, size}_cell properties for macb0

2015-02-09 Thread Josh Wu
macb0 DT node can have phy child nodes, so add the #{address, size}_cell for macb0 node. Signed-off-by: Josh Wu --- Changes in v3: - new added Changes in v2: None arch/arm/boot/dts/sama5d4.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sama5d4.dtsi b/arch/arm

[PATCH v3 2/2] ARM: at91: dts: sama5d4: add dts for sama5d4 xplained board

2015-02-09 Thread Josh Wu
Add at91 sama5d4 xplained board support. Signed-off-by: Josh Wu --- Changes in v3: - add phy0 child node under macb0 - rebase on top of linux next, re-formated the arch/arm/boot/dts/Makefile Changes in v2: - to be sorted by memory address, put the adc dt node after usart4. arch/arm/boot/dts

Re: [PATCH v2] ARM: at91: dts: sama5d4: add dts for sama5d4 xplained board

2015-02-09 Thread Josh Wu
Hi, Alexandre On 2/10/2015 2:10 AM, Alexandre Belloni wrote: Hi Josh, On 09/02/2015 at 17:17:03 +0800, Josh Wu wrote : Add at91 sama5d4 xplained board support. Signed-off-by: Josh Wu --- Changes in v2: - to be sorted by memory address, put the adc dt node after usart4. arch/arm/boot/dts

Re: [PATCH v2] ARM: at91: dts: sama5d4: add dts for sama5d4 xplained board

2015-02-09 Thread Josh Wu
Hi, Boris On 2/9/2015 5:24 PM, Boris Brezillon wrote: Hi Josh, On Mon, 9 Feb 2015 17:17:03 +0800 Josh Wu wrote: Add at91 sama5d4 xplained board support. Signed-off-by: Josh Wu --- Changes in v2: - to be sorted by memory address, put the adc dt node after usart4. arch/arm/boot/dts

[PATCH] ARM: at91: dts: sama5d4ek: add leds in DT node

2015-02-09 Thread Josh Wu
Add the leds DT node in the dts file. In the leds, d10 is set as heartbeat led. Signed-off-by: Josh Wu --- arch/arm/boot/dts/at91-sama5d4ek.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/at91-sama5d4ek.dts b/arch/arm/boot/dts/at91

[PATCH v2] ARM: at91: dts: sama5d4: add dts for sama5d4 xplained board

2015-02-09 Thread Josh Wu
Add at91 sama5d4 xplained board support. Signed-off-by: Josh Wu --- Changes in v2: - to be sorted by memory address, put the adc dt node after usart4. arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/at91-sama5d4_xplained.dts | 232 2 files

[PATCH] ARM: at91: dts: sama5d4: add dts for sama5d4 xplained board

2015-02-06 Thread Josh Wu
add at91 sama5d4 xplained board support. Signed-off-by: Josh Wu --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/at91-sama5d4_xplained.dts | 234 2 files changed, 235 insertions(+) create mode 100644 arch/arm/boot/dts/at91

Re: [PATCH 2/4] mtd: nand: atmel: Update DT documentation after splitting NFC and NAND

2015-02-04 Thread Josh Wu
Hi, Boris Thanks a lot for your explanation, check my reply for more description for my suggestion. On 2/3/2015 5:37 PM, Boris Brezillon wrote: On Tue, 3 Feb 2015 16:46:15 +0800 Josh Wu wrote: Hi, Boris, Brian On 2/2/2015 5:42 PM, Boris Brezillon wrote: Hi Brian, On Sun, 1 Feb 2015 23

Re: [PATCH 2/4] mtd: nand: atmel: Update DT documentation after splitting NFC and NAND

2015-02-03 Thread Josh Wu
NFC properties --> we can make the NFC not a node, just many NFC properties. &nand chip0 &nand chip1 } This is still looks nice to me. Josh, Brian, any idea to solve this EBI/nand-chip/nand-controller dependency problem is welcome. Best Regards, Boris Best Regards, Josh Wu -

Re: [PATCH 1/2] media: v4l2-image-sizes.h: add SVGA, XGA and UXGA size definitions

2015-01-27 Thread Josh Wu
Hi, Guennadi On 11/28/2014 4:13 AM, Guennadi Liakhovetski wrote: Hi Josh, On Thu, 27 Nov 2014, Josh Wu wrote: Hi, Guennadi On 11/26/2014 6:23 AM, Guennadi Liakhovetski wrote: Hi Josh, On Tue, 25 Nov 2014, Josh Wu wrote: Add SVGA, UXGA and XGA size definitions to v4l2-image-sizes.h. The

Re: [PATCH 4/4] ARM: at91/dt: sama5: move NAND nodes into board dts/dtsi

2014-12-26 Thread Josh Wu
rror Location regs */ - >; - interrupts = <22 IRQ_TYPE_LEVEL_HIGH 6>; - atmel,nand-addr-offset = <21>; - atmel,nand-cmd-offset = <22>; - atmel,nand-has-dma; - p

Re: [PATCH 2/4] mtd: nand: atmel: Update DT documentation after splitting NFC and NAND

2014-12-26 Thread Josh Wu
Hi, Boris Thanks for the patch. You need to rebase on the top of current mtd-l2 git tree. As I had some change on the binding document. Best Regards, Josh Wu On 12/5/2014 6:30 AM, Boris Brezillon wrote: The NAND and NFC (NAND Flash Controller) were linked together with a parent <->

Re: [PATCH 1/4] mtd: nand: atmel: Rework driver to separate nfc and nand nodes

2014-12-26 Thread Josh Wu
atch. Acked-by: Josh Wu Best Regards, Josh Wu --- drivers/mtd/nand/atmel_nand.c | 76 ++- 1 file changed, 61 insertions(+), 15 deletions(-) diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 19d1e9d..0239fe6 100644 --- a/

Re: [PATCH 1/2] media: v4l2-image-sizes.h: add SVGA, XGA and UXGA size definitions

2014-11-26 Thread Josh Wu
Hi, Guennadi On 11/26/2014 6:23 AM, Guennadi Liakhovetski wrote: Hi Josh, On Tue, 25 Nov 2014, Josh Wu wrote: Add SVGA, UXGA and XGA size definitions to v4l2-image-sizes.h. The definitions are sorted by alphabet order. Signed-off-by: Josh Wu Thanks for your patches. I'm ok with thes

Re: [PATCH v2 3/3] ARM: at91: sama5d4: Add SFR

2014-11-25 Thread Josh Wu
Hi, Alexandre On 11/26/2014 12:40 AM, Alexandre Belloni wrote: The sama4d4 has Special Function Registers that allow to manage DDR, OHCI, EBI and AIC interrupt redirection. Just a nitpick, It should be sama5d4, not sama4d4. Best Regards, Josh Wu Signed-off-by: Alexandre Belloni Acked-by

Re: [PATCH 1/2] media: v4l2-image-sizes.h: add SVGA, XGA and UXGA size definitions

2014-11-25 Thread Josh Wu
Hi, Sylwester and Mauro On 11/25/2014 6:34 PM, Sylwester Nawrocki wrote: Hi Josh, On 25/11/14 09:54, Josh Wu wrote: Add SVGA, UXGA and XGA size definitions to v4l2-image-sizes.h. The definitions are sorted by alphabet order. Signed-off-by: Josh Wu --- include/media/v4l2-image-sizes.h | 9

[PATCH 2/2] media: ov2640: use the v4l2 size definitions

2014-11-25 Thread Josh Wu
Reuse the v4l2 size definitions from v4l2-image-sizes.h. So we can remove the rudundent definitions from ov2640.c. Signed-off-by: Josh Wu --- drivers/media/i2c/soc_camera/ov2640.c | 82 +-- 1 file changed, 30 insertions(+), 52 deletions(-) diff --git a/drivers

[PATCH 1/2] media: v4l2-image-sizes.h: add SVGA, XGA and UXGA size definitions

2014-11-25 Thread Josh Wu
Add SVGA, UXGA and XGA size definitions to v4l2-image-sizes.h. The definitions are sorted by alphabet order. Signed-off-by: Josh Wu --- include/media/v4l2-image-sizes.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/media/v4l2-image-sizes.h b/include/media/v4l2-image

Re: [PATCH 1/2] mtd: atmel_nand: use __iowrite32_copy for 32 bitcopy

2014-10-22 Thread Josh Wu
prepare a new patch which do above replace. Best Regards, Josh Wu -- 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 1/2] mtd: atmel_nand: use __iowrite32_copy for 32 bit copy

2014-10-21 Thread Josh Wu
Hi, Vinod On 10/21/2014 12:06 AM, Vinod Koul wrote: The driver was also using own method to do 32bit copy, turns out we have a kernel API so use that instead Signed-off-by: Vinod Koul Thanks for the patch. Acked-by: Josh Wu BTW, is there any similar kernel API that is for the read from io

[PATCH] MAINTAINERS: add atmel nand driver maintainer entry

2014-09-29 Thread Josh Wu
This patch adds an entry in MAINTAINERS file for ATMEL nand driver. Signed-off-by: Josh Wu --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 3705430..1bdf3bf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1698,6 +1698,12 @@ M

Re: [PATCHv4] mtd: nand: atmel_nand: retrieve NFC clock

2014-09-12 Thread Josh Wu
Hi, Alexandre On 9/12/2014 5:40 PM, Alexandre Belloni wrote: From: Boris BREZILLON Signed-off-by: Boris BREZILLON Signed-off-by: Alexandre Belloni --- Thanks for the patch. Acked-by: Josh Wu Best Regards, Josh Wu Changes in v4: - fix typo in the documentation .../devicetree

Re: [PATCHv3] mtd: nand: atmel_nand: retrieve NFC clock

2014-09-12 Thread Josh Wu
clocks = <&hsmc_clk> Best Regards, Josh Wu reg = < 0x7000 0x1000 /* NFC Command Registers */ 0xc000 0x0070 /* NFC HSMC regs */ diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atme

Re: [PATCHv2] mtd: nand: atmel_nand: retrieve NFC clock

2014-09-12 Thread Josh Wu
Hi, Nicolas On 9/12/2014 3:52 PM, Nicolas Ferre wrote: On 11/09/2014 19:52, Alexandre Belloni : From: Boris BREZILLON Signed-off-by: Boris BREZILLON Signed-off-by: Alexandre Belloni You may need to add Josh Wu to the list because he is the "de-facto" Maintainer of this driver

Re: [PATCHv2] mtd: nand: atmel_nand: retrieve NFC clock

2014-09-12 Thread Josh Wu
enabled, so I think nfc->is_initialized should set to false. Otherwise, the nand driver will try to use the NFC without enabled the clock. Is it better to move the code block nfc->is_initialized = true; dev_info(&pdev->dev, "NFC is probed.\n"

[PATCH] iio: adc: at91: make the function handle_adc_eoc_trigger() static

2014-08-27 Thread Josh Wu
The handle_adc_eoc_trigger() in only used in at91_adc.c. So make it static. Signed-off-by: Josh Wu --- drivers/iio/adc/at91_adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c index 772e869..7807e0e 100644 --- a

Re: [PATCH] mtd: atmel_nand: increase chip_delay

2014-07-30 Thread Josh Wu
ays ago which does almost the same thing to support 4k-page nand flash. personally I am fine with your patch. Brain, you only need to take care this patch. And drop my patch [1]. [1] http://patchwork.ozlabs.org/patch/372406/ Thanks. Best Regards, Josh Wu -- To unsubscribe from this list: send the

Re: [PATCH v2] ARM: at91: #if 0 out ISI code for AT91SAM9263

2014-06-04 Thread Josh Wu
0 as a reference so far. When the devices file is finally removed. We will add the ISI resouces to DT file. So I am ok with this. Hi, J.C. What do you think of this patch? Best Regards, Josh Wu Josh verified that this definition of at91_add_device_isi() never will be call

Re: [PATCH] ARM: at91: remove ISI code for AT91SAM9263

2014-05-15 Thread Josh Wu
ll be called. Right. There is no implement to support for at91sam9263 ISI. So in at91sam9263ek it will not call at91_add_device_isi(). Current ISI driver only support at91sam9g45 and later chips. Acked-by: Josh Wu Best Regards, Josh Wu arch/arm/mach-at91/at91sam9263_devices.c

Re: [PATCH v2] [media] ov2640: add support for async device registration

2014-03-25 Thread Josh Wu
Hi, all since v4l2_clk_get() WON'T return EPROBE_DEFER. So this version of patch is invalid. Please drop this version of the patch. Sorry for the noise. Best Regards, Josh Wu On 3/20/2014 5:01 PM, Josh Wu wrote: Since the the v4l2_clk_get() may return a EPROBE_DEFER during async probin

Re: [PATCH] [media] ov2640: add support for async device registration

2014-03-25 Thread Josh Wu
Hi, Sylwester On 3/20/2014 10:44 PM, Sylwester Nawrocki wrote: Hi Josh, On 19/03/14 10:17, Josh Wu wrote: On 3/15/2014 5:17 AM, Sylwester Nawrocki wrote: On 03/14/2014 11:12 AM, Josh Wu wrote: +clk = v4l2_clk_get(&client->dev, "mclk"); +if (IS_ERR(clk)) +ret

[PATCH v2] [media] ov2640: add support for async device registration

2014-03-20 Thread Josh Wu
Since the the v4l2_clk_get() may return a EPROBE_DEFER during async probing. So move the v4l2_clk_get() to the beginning of the probe(). Only when we get mclk successfully we continue the probe. Signed-off-by: Josh Wu --- v1 -> v2: just return PTR_ERR(clk) as it can be -EPROBE_DEFER. refi

Re: [PATCH] [media] ov2640: add support for async device registration

2014-03-19 Thread Josh Wu
Hi, Sylwester Thanks for your review. On 3/15/2014 5:17 AM, Sylwester Nawrocki wrote: Hi Josh, On 03/14/2014 11:12 AM, Josh Wu wrote: +clk = v4l2_clk_get(&client->dev, "mclk"); +if (IS_ERR(clk)) +return -EPROBE_DEFER; You should instead make it: r

[PATCH] [media] ov2640: add support for async device registration

2014-03-14 Thread Josh Wu
Move the clock detection code to the beginning of the probe(). If we meet any error in the clock detecting, then defer the probe. Signed-off-by: Josh Wu --- drivers/media/i2c/soc_camera/ov2640.c | 43 + 1 file changed, 28 insertions(+), 15 deletions(-) diff

Re: [PATCH 0/3] iio: adc: at91 fixes

2014-03-05 Thread Josh Wu
+), 6 deletions(-) Thank you for the fixes. I tested the patch series in at91sam9m10g45ek and works fine. so here is my: Tested-by: Josh Wu Acked-by: Josh Wu Best Regards, Josh Wu -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a me

Re: [PATCH] iio: adc: at91_adc: correct default shtim value

2014-03-05 Thread Josh Wu
value of 2/ADCCLK or 1/ADCCLK depending on the version. Signed-off-by: Alexandre Belloni Thanks for the fix and Acked-by: Josh Wu Best Regards, Josh Wu --- drivers/iio/adc/at91_adc.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/at91_adc.c b

[PATCH][resend] leds-gpio: of: led should not be created if its status is disabled

2013-09-26 Thread Josh Wu
_available_child_of_node() and of_get_available_child_count() to enumerate all child nodes. So the disabled node will be inavailable. Signed-off-by: Josh Wu --- resend this patch based on the patch: - http://www.spinics.net/lists/devicetree/msg05903.html drivers/leds/leds-gpio.c |6 +++--- 1 fi

[PATCH] leds-gpio: of: led should not be created if its status is disabled

2013-09-24 Thread Josh Wu
ild_of_node() to enumerate all child nodes. So the disabled node will be inavilable. Signed-off-by: Josh Wu --- drivers/leds/leds-gpio.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index e8b01e5..9bb4e04

Re: [PATCH] MTD: atmel_nand: using a stronger ECC is not dangerous

2013-06-02 Thread Josh Wu
On 5/31/2013 10:34 PM, Richard Genoud wrote: We don't have to issue a warning when a stronger error correting capability is chosen. Signed-off-by: Richard Genoud Acked-by: Josh Wu Best Regards, Josh Wu --- drivers/mtd/nand/atmel_nand.c |2 +- 1 file changed, 1 insertion(

Re: [PATCH v2] avr32: fix build error in atstk1006_defconfig

2013-04-08 Thread Josh Wu
Hi, Andrew Could you merge it for avr32? Thanks in advance. Best Regards, Josh Wu On 4/1/2013 2:26 PM, Josh Wu wrote: fixed the following compile error when use avr32 atstk1006_defconfig: drivers/mtd/nand/atmel_nand.c: In function 'pmecc_err_location': drivers/mtd/nand/atmel_

[PATCH v2] avr32: fix build error in atstk1006_defconfig

2013-03-31 Thread Josh Wu
introduced by commit: 1c7b874d33b463f7150b1ab4617f000af9b327fd mtd: at91: atmel_nand: add Programmable Multibit ECC controller support The PMECC for nand flash code uses writel_relaxed(). But in avr32, there is no macro "writel_relaxed" defined. This patch add writex_relaxed macro definitions. Signed-off-by: Josh W

Re: avr32: fix build error in atstk1006_defconfig

2013-03-31 Thread Josh Wu
Sorry, please drop this email. I will send out another one to include a...@linux-foundation.org Best Regards, Josh Wu On 4/1/2013 1:58 PM, Josh Wu wrote: fixed the following compile error when use avr32 atstk1006_defconfig: drivers/mtd/nand/atmel_nand.c: In function 'pmecc_err_loc

  1   2   >