[PATCH] USB: gadget: udc: atmel: fix possible oops when unloading module

2014-12-30 Thread Songjun Wu
[] *pgd=3ede5831, *pte=, *ppte= Internal error: Oops: 8007 [#1] ARM Modules linked in: g_hid(-) usb_f_hid libcomposite Signed-off-by: Songjun Wu songjun...@atmel.com --- drivers/usb/gadget/udc/atmel_usba_udc.c | 12 +++- 1 file changed, 11 insertions(+), 1

[PATCH] USB: gadget: udc: atmel: fix possible oops when unloading module

2014-12-22 Thread Songjun Wu
issue. Add the code to check the urb request is in the endpoint queue or not. If the urb request is not in the endpoint queue, a negative error code will be returned. Signed-off-by: Songjun Wu songjun...@atmel.com --- drivers/usb/gadget/udc/atmel_usba_udc.c | 12 +++- 1 file changed, 11

[RFC PATCH] ASoC: wm8731: let codec to manage clock by itself

2015-03-11 Thread Songjun Wu
Enable WM8731 to support common clock framework. Signed-off-by: Songjun Wu songjun...@atmel.com --- sound/soc/codecs/wm8731.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c index 098c143..8df1550

[RESEND PATCH v3 0/2] ASoC: atmel-classd: add driver for Atmel CLASSD

2015-10-08 Thread Songjun Wu
ot;clk_prepare_enable". - Remove the "dev_info" in function "atmel_classd_probe". - Add some code to create a sound card in function "atmel_classd_probe". - Remove the DT node "Sound" and the related code. - Delete the device node "Sound&q

[RESEND PATCH v3 2/2] ASoC: atmel-classd: DT binding for Class D audio amplifier driver

2015-10-08 Thread Songjun Wu
DT binding documentation for this new ASoC driver. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- Changes in v3: None Changes in v2: - Delete the device node "Sound" in dts. .../devicetree/bindings/sound/atmel-classd.txt | 52 1 file change

[RESEND PATCH v3 1/2] ASoC: atmel-classd: add the Audio Class D Amplifier

2015-10-08 Thread Songjun Wu
Add driver for the digital imput to PWM output stereo class D amplifier. It comes with filter, digitally controlled gain, an equalizer and a dmphase filter. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- Changes in v3: - Remove '.owner' field in variable 'atmel_classd_driver',

[PATCH 1/2] ASoC: atmel-classd: add the Audio Class D Amplifier code

2015-08-31 Thread Songjun Wu
Add driver for the digital imput to PWM output stereo class D amplifier. It comes with filter, digitally controlled gain, an equalizer and a dmphase filter. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- sound/soc/atmel/Kconfig|9 + sound/soc/atmel/Makefile

[PATCH 2/2] ASoC: atmel-classd: DT binding for Class D audio amplifier driver

2015-08-31 Thread Songjun Wu
DT binding documentation for this new ASoC driver. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- .../devicetree/bindings/sound/atmel-classd.txt | 73 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/atmel-clas

[PATCH 0/2] ASoC: atmel-classd: add the Audio Class D Amplifier

2015-08-31 Thread Songjun Wu
The Audio Class D Amplifier driver includes two parts. 1) Driver code to implement the Audio Class D Amplifier function. 2) Device tree binding document, it describes how to add the Audio Class D Amplifier in device tree. Songjun Wu (2): ASoC: atmel-classd: add the Audio Class D Amplifier code

[RESEND PATCH v2 2/2] SoC: atmel-classd: DT binding for Class D audio amplifier driver

2015-09-27 Thread Songjun Wu
DT binding documentation for this new ASoC driver. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- Changes in v2: - Delete the device node "Sound" in dts. .../devicetree/bindings/sound/atmel-classd.txt | 52 1 file changed, 52 insertions(+) cr

[RESEND PATCH v2 1/2] ASoC: atmel-classd: add the Audio Class D Amplifier

2015-09-27 Thread Songjun Wu
Add driver for the digital imput to PWM output stereo class D amplifier. It comes with filter, digitally controlled gain, an equalizer and a dmphase filter. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- Changes in v2: - Change the "Mono", "Swap" and "Deempha

[RESEND PATCH v2 0/2] ASoC: atmel-classd: add driver for Atmel CLASSD

2015-09-27 Thread Songjun Wu
ion "atmel_classd_codec_get_remap". - Check for errors when invoking the "clk_prepare_enable". - Remove the "dev_info" in function "atmel_classd_probe". - Add some code to create a sound card in function "atmel_classd_probe". - Remove the DT nod

[PATCH v2 1/2] ASoC: atmel-classd: add the Audio Class D Amplifier

2015-09-23 Thread Songjun Wu
Add driver for the digital imput to PWM output stereo class D amplifier. It comes with filter, digitally controlled gain, an equalizer and a dmphase filter. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- Changes in v2: - Change the "Mono", "Swap" and "Deempha

[PATCH v2 0/2] ASoC: atmel-classd: add driver for Atmel CLASSD

2015-09-23 Thread Songjun Wu
ion "atmel_classd_codec_get_remap". - Check for errors when invoking the "clk_prepare_enable". - Remove the "dev_info" in function "atmel_classd_probe". - Add some code to create a sound card in function "atmel_classd_probe". - Remove the

[PATCH v2 2/2] ASoC: atmel-classd: DT binding for Class D audio amplifier driver

2015-09-23 Thread Songjun Wu
DT binding documentation for this new ASoC driver. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- Changes in v2: - Delete the device node "Sound". .../devicetree/bindings/sound/atmel-classd.txt | 52 1 file changed, 52 insertions(+) cr

[PATCH v2 1/2] ASoC: atmel-pdmic: add the Pulse Density Modulation Interface Controller

2015-12-17 Thread Songjun Wu
Add driver for the Pulse Density Modulation Interface Controller. It comes with digitallly controlled gain, a High-Pass and a SINCC filter. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- Changes in v2: - Remove the function 'atmel_pdmic_codec_get_remap', since the regmap is initi

[PATCH v2 2/2] ASoC: atmel-classd: DT binding for PDMIC driver

2015-12-17 Thread Songjun Wu
DT binding documentation for this new ASoC driver. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- Changes in v2: None .../devicetree/bindings/sound/atmel-pdmic.txt | 55 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bi

[RESEND PATCH v2 1/2] ASoC: atmel-pdmic: add the Pulse Density Modulation Interface Controller

2015-12-17 Thread Songjun Wu
Add driver for the Pulse Density Modulation Interface Controller. It comes with digitallly controlled gain, a High-Pass and a SINCC filter. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- Changes in v2: - Remove the function 'atmel_pdmic_codec_get_remap', since the regmap is initi

[RESEND PATCH v2 2/2] ASoC: atmel-classd: DT binding for PDMIC driver

2015-12-17 Thread Songjun Wu
DT binding documentation for this new ASoC driver. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- Changes in v2: None .../devicetree/bindings/sound/atmel-pdmic.txt | 55 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bi

[RESEND PATCH v2 0/2] ASoC: atmel-pdmic: add driver for Atmel PDMIC

2015-12-17 Thread Songjun Wu
' and 'atmel_pdmic_codec_dai_hw_params'. Songjun Wu (2): ASoC: atmel-pdmic: add the Pulse Density Modulation Interface Controller ASoC: atmel-classd: DT binding for PDMIC driver .../devicetree/bindings/sound/atmel-pdmic.txt | 55 ++ sound/soc/atmel/Kconfig|9 + sound/soc/atmel

[PATCH] ASoC: Atmel: ClassD: unregister codec when error occurs

2015-12-10 Thread Songjun Wu
Add code to unregister codec in probe function, when the error occurs after the codec is registered. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- sound/soc/atmel/atmel-classd.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/sound/soc/atmel

[PATCH 0/2] ASoC: atmel-pdmic: add driver for Atmel PDMIC

2015-12-14 Thread Songjun Wu
The Pulse Density Modulation Inteface Controller driver includes two parts. 1) Driver code to implement the PDMIC function. 2) Device tree binding documentation, it describes how to add the PDMIC in device tree. Songjun Wu (2): ASoC: atmel-pdmic: add the Pulse Density Modulation Interface

[PATCH 2/2] ASoC: atmel-pdmic: DT binding for PDMIC driver

2015-12-14 Thread Songjun Wu
DT binding documentation for this new ASoC driver. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- .../devicetree/bindings/sound/atmel-pdmic.txt | 55 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/atmel-pdm

[PATCH 1/2] ASoC: atmel-pdmic: add the Pulse Density Modulation Interface Controller

2015-12-14 Thread Songjun Wu
Add driver for the Pulse Density Modulation Interface Controller. It comes with digitallly controlled gain, a High-Pass and a SINCC filter. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- sound/soc/atmel/Kconfig |9 + sound/soc/atmel/Makefile |2 + sound/soc/atmel

[PATCH] ASoC: atmel_wm8904: add snd_soc_pm_ops

2015-12-21 Thread Songjun Wu
Sometimes the audio play can not be resumed after it is suspended. Add snd_soc_pm_ops to execute power management operations, then this issue is fixed. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- sound/soc/atmel/atmel_wm8904.c |1 + 1 file changed, 1 insertion(+) diff

[PATCH 2/2] ARM: at91/dt: sama5d2 Xplained: add pdmic node

2015-12-22 Thread Songjun Wu
Add pdmic node on sama5d2-xplained board.The pdmic pins conflict with ISC_D0 & ISC_D1 data pins. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boo

[PATCH 1/2] ARM: at91/dt: sama5d2: add pdmic node

2015-12-22 Thread Songjun Wu
Add pdmic node.` Signed-off-by: Songjun Wu <songjun...@atmel.com> --- arch/arm/boot/dts/sama5d2.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index 545264b..3f750f6 100644 --- a/arch/ar

[PATCH] ASoC: Atmel: ClassD: supports mono audio

2015-11-18 Thread Songjun Wu
Modify the code to support mono audio. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- sound/soc/atmel/atmel-classd.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/sound/soc/atmel/atmel-classd.c b/sound/soc/atmel/atmel-classd.c index 2f5190b..1

[PATCH] ASoC: Atmel: ClassD: Set GCK's parent clock

2015-11-18 Thread Songjun Wu
Set GCK's parent clock as audio clock, make sure the GCK's parent clock is audio clock. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- sound/soc/atmel/atmel-classd.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/atmel/atmel-classd.c b/sound/soc/atmel

[PATCH] ASoC: Atmel: ClassD: add GCK's parent clock in DT binding

2015-11-23 Thread Songjun Wu
Set GCK's parent as audio clock. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- .../devicetree/bindings/sound/atmel-classd.txt |6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/atmel-classd.txt b/Documentation/devicetree/bi

[PATCH v4 2/2] [media] atmel-isc: DT binding for Image Sensor Controller driver

2016-06-07 Thread Songjun Wu
DT binding documentation for ISC driver. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- Changes in v4: - Remove the isc clock nodes. Changes in v3: - Remove the 'atmel,sensor-preferred'. - Modify the isc clock node according to the Rob's remarks. Changes in v2: - Remove the unit a

[PATCH v4 1/2] [media] atmel-isc: add the Image Sensor Controller code

2016-06-07 Thread Songjun Wu
Add driver for the Image Sensor Controller. It manages incoming data from a parallel based CMOS/CCD sensor. It has an internal image processor, also integrates a triple channel direct memory access controller master interface. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- Changes

[PATCH v4 0/2] [media] atmel-isc: add driver for Atmel ISC

2016-06-07 Thread Songjun Wu
ferred'. - Add the description for the ISC internal clock. Songjun Wu (2): [media] atmel-isc: add the Image Sensor Controller code [media] atmel-isc: DT binding for Image Sensor Controller driver .../devicetree/bindings/media/atmel-isc.txt| 69 + drivers/media/platform/Kcon

[PATCH v3 1/2] [media] atmel-isc: add the Image Sensor Controller code

2016-05-31 Thread Songjun Wu
Add driver for the Image Sensor Controller. It manages incoming data from a parallel based CMOS/CCD sensor. It has an internal image processor, also integrates a triple channel direct memory access controller master interface. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- Changes

[PATCH v3 0/2] [media] atmel-isc: add driver for Atmel ISC

2016-05-31 Thread Songjun Wu
atmel,sensor-preferred'. - Add the description for the ISC internal clock. Songjun Wu (2): [media] atmel-isc: add the Image Sensor Controller code [media] atmel-isc: DT binding for Image Sensor Controller driver .../devicetree/bindings/media/atmel-isc.txt| 88 ++ drivers/media/platform/Kcon

[PATCH v3 2/2] [media] atmel-isc: DT binding for Image Sensor Controller driver

2016-05-31 Thread Songjun Wu
DT binding documentation for ISC driver. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- Changes in v3: - Remove the 'atmel,sensor-preferred'. - Modify the isc clock node according to the Rob's remarks. Changes in v2: - Remove the unit address of the endpoint. - Add the unit a

[PATCH v5 2/2] [media] atmel-isc: DT binding for Image Sensor Controller driver

2016-06-17 Thread Songjun Wu
DT binding documentation for ISC driver. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- Changes in v5: - Add clock names. Changes in v4: - Remove the isc clock nodes. Changes in v3: - Remove the 'atmel,sensor-preferred'. - Modify the isc clock node according to the Rob's r

[PATCH v5 1/2] [media] atmel-isc: add the Image Sensor Controller code

2016-06-17 Thread Songjun Wu
Add driver for the Image Sensor Controller. It manages incoming data from a parallel based CMOS/CCD sensor. It has an internal image processor, also integrates a triple channel direct memory access controller master interface. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- Changes

[PATCH v5 0/2] [media] atmel-isc: add driver for Atmel ISC

2016-06-17 Thread Songjun Wu
oint. - Add the unit address to the clock node. - Avoid using underscores in node names. - Drop the "0x" in the unit address of the i2c node. - Modify the description of 'atmel,sensor-preferred'. - Add the description for the ISC internal clock. Songjun Wu (2): [media] atmel-isc: add th

[PATCH 2/2] [media] atmel-isc: DT binding for Image Sensor Controller driver

2016-04-13 Thread Songjun Wu
DT binding documentation for ISC driver. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- .../devicetree/bindings/media/atmel-isc.txt| 84 ++ 1 file changed, 84 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/atmel-isc.txt diff

[PATCH 1/2] [media] atmel-isc: add the Image Sensor Controller code

2016-04-13 Thread Songjun Wu
Add driver for the Image Sensor Controller. It manages incoming data from a parallel based CMOS/CCD sensor. It has an internal image processor, also integrates a triple channel direct memory access controller master interface. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- drivers

[PATCH 0/2] [media] atmel-isc: add driver for Atmel ISC

2016-04-13 Thread Songjun Wu
The Image Sensor Controller driver includes two parts. 1) Driver code to implement the ISC function. 2) Device tree binding documentation, it describes how to add the ISC in device tree. Songjun Wu (2): [media] atmel-isc: add the Image Sensor Controller code [media] atmel-isc: DT binding

[PATCH v2 0/2] [media] atmel-isc: add driver for Atmel ISC

2016-05-18 Thread Songjun Wu
description of "atmel,sensor-preferred". - Add the description for the ISC internal clock. Songjun Wu (2): [media] atmel-isc: add the Image Sensor Controller code [media] atmel-isc: DT binding for Image Sensor Controller driver .../devicetree/bindings/media/atmel-isc.txt|

[PATCH v2 2/2] [media] atmel-isc: DT binding for Image Sensor Controller driver

2016-05-18 Thread Songjun Wu
DT binding documentation for ISC driver. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- Changes in v2: - Remove the unit address of the endpoint. - Add the unit address to the clock node. - Avoid using underscores in node names. - Drop the "0x" in the unit address of the i2

[PATCH v2 1/2] [media] atmel-isc: add the Image Sensor Controller code

2016-05-18 Thread Songjun Wu
Add driver for the Image Sensor Controller. It manages incoming data from a parallel based CMOS/CCD sensor. It has an internal image processor, also integrates a triple channel direct memory access controller master interface. Signed-off-by: Songjun Wu <songjun...@atmel.com> --- Changes

[PATCH v7 0/2] [media] atmel-isc: add driver for Atmel ISC

2016-07-29 Thread Songjun Wu
of 'atmel,sensor-preferred'. - Add the description for the ISC internal clock. Songjun Wu (2): [media] atmel-isc: add the Image Sensor Controller code [media] atmel-isc: DT binding for Image Sensor Controller driver .../devicetree/bindings/media/atmel-isc.txt| 65 + drivers

[PATCH v7 1/2] [media] atmel-isc: add the Image Sensor Controller code

2016-07-29 Thread Songjun Wu
Add driver for the Image Sensor Controller. It manages incoming data from a parallel based CMOS/CCD sensor. It has an internal image processor, also integrates a triple channel direct memory access controller master interface. Signed-off-by: Songjun Wu <songjun...@microchip.com> --- C

[PATCH v7 2/2] [media] atmel-isc: DT binding for Image Sensor Controller driver

2016-07-29 Thread Songjun Wu
DT binding documentation for ISC driver. Signed-off-by: Songjun Wu <songjun...@microchip.com> --- Changes in v7: None Changes in v6: - Add "iscck" and "gck" to clock-names. Changes in v5: - Add clock-output-names. Changes in v4: - Remove the isc clock nodes. Changes

[PATCH v8 1/2] [media] atmel-isc: add the Image Sensor Controller code

2016-08-03 Thread Songjun Wu
Add driver for the Image Sensor Controller. It manages incoming data from a parallel based CMOS/CCD sensor. It has an internal image processor, also integrates a triple channel direct memory access controller master interface. Signed-off-by: Songjun Wu <songjun...@microchip.com> --- C

[PATCH v8 0/2] [media] atmel-isc: add driver for Atmel ISC

2016-08-03 Thread Songjun Wu
address of the endpoint. - Add the unit address to the clock node. - Avoid using underscores in node names. - Drop the "0x" in the unit address of the i2c node. - Modify the description of 'atmel,sensor-preferred'. - Add the description for the ISC internal clock. Songjun Wu (2): [medi

[PATCH v8 2/2] [media] atmel-isc: DT binding for Image Sensor Controller driver

2016-08-03 Thread Songjun Wu
DT binding documentation for ISC driver. Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Songjun Wu <songjun...@microchip.com> --- Changes in v8: None Changes in v7: None Changes in v6: - Add "iscck" and "gck" to clock-names. Changes in v5: - Add cl

[PATCH v9 1/2] [media] atmel-isc: add the Image Sensor Controller code

2016-08-11 Thread Songjun Wu
Add driver for the Image Sensor Controller. It manages incoming data from a parallel based CMOS/CCD sensor. It has an internal image processor, also integrates a triple channel direct memory access controller master interface. Signed-off-by: Songjun Wu <songjun...@microchip.com> --- C

[PATCH v9 0/2] [media] atmel-isc: add driver for Atmel ISC

2016-08-11 Thread Songjun Wu
address of the i2c node. - Modify the description of 'atmel,sensor-preferred'. - Add the description for the ISC internal clock. Songjun Wu (2): [media] atmel-isc: add the Image Sensor Controller code [media] atmel-isc: DT binding for Image Sensor Controller driver .../devicetree/bindings/

[PATCH v9 2/2] [media] atmel-isc: DT binding for Image Sensor Controller driver

2016-08-11 Thread Songjun Wu
DT binding documentation for ISC driver. Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Songjun Wu <songjun...@microchip.com> --- Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: - Add "iscck" and "gck" to clock-names. Changes

[PATCH v6 1/2] [media] atmel-isc: add the Image Sensor Controller code

2016-07-21 Thread Songjun Wu
Add driver for the Image Sensor Controller. It manages incoming data from a parallel based CMOS/CCD sensor. It has an internal image processor, also integrates a triple channel direct memory access controller master interface. Signed-off-by: Songjun Wu <songjun...@microchip.com> --- C

[PATCH v6 0/2] [media] atmel-isc: add driver for Atmel ISC

2016-07-21 Thread Songjun Wu
he clock node. - Avoid using underscores in node names. - Drop the "0x" in the unit address of the i2c node. - Modify the description of 'atmel,sensor-preferred'. - Add the description for the ISC internal clock. Songjun Wu (2): [media] atmel-isc: add the Image Sensor Controller code [media]

[PATCH v6 2/2] [media] atmel-isc: DT binding for Image Sensor Controller driver

2016-07-21 Thread Songjun Wu
DT binding documentation for ISC driver. Signed-off-by: Songjun Wu <songjun...@microchip.com> --- Changes in v6: - Add "iscck" and "gck" to clock-names. Changes in v5: - Add clock-output-names. Changes in v4: - Remove the isc clock nodes. Changes in v3: - Remove t

[PATCH v2] [media] atmel-isc: add the isc pipeline function

2017-01-24 Thread Songjun Wu
is enabled. Signed-off-by: Songjun Wu <songjun...@microchip.com> --- Changes in v2: - Fix the gama and contrast controls. - Fix some code style issue. drivers/media/platform/atmel/atmel-isc-regs.h | 102 - drivers/media/platform/atmel/atmel-isc.c | 627 +- 2

[PATCH] ASoC: atmel-classd: fix audio clock rate

2017-02-23 Thread Songjun Wu
Fix the audio clock rate according to the datasheet. Reported-by: Dushara Jayasinghe <dush...@successful.com.au> Signed-off-by: Songjun Wu <songjun...@microchip.com> --- sound/soc/atmel/atmel-classd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc

[RESEND PATCH] [media] atmel-isc: remove the warning

2016-08-24 Thread Songjun Wu
Replace the 'IS_ERR_VALUE(irq)' with 'ret < 0' in function 'atmel_isc_probe'. Reported-by: Hans Verkuil <hverk...@xs4all.nl> Signed-off-by: Songjun Wu <songjun...@microchip.com> --- drivers/media/platform/atmel/atmel-isc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] [media] atmel-isc: set the format on the first open

2016-09-12 Thread Songjun Wu
Set the current format on the first open. Signed-off-by: Songjun Wu <songjun...@microchip.com> --- drivers/media/platform/atmel/atmel-isc.c | 30 ++ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/drivers/media/platform/atmel/atmel-isc.c b/d

[PATCH v10 0/3] [media] atmel-isc: add driver for Atmel ISC

2016-08-17 Thread Songjun Wu
Modify the description of 'atmel,sensor-preferred'. - Add the description for the ISC internal clock. Songjun Wu (3): [media] atmel-isc: add the Image Sensor Controller code [media] atmel-isc: DT binding for Image Sensor Controller driver MAINTAINERS: atmel-isc: add entry for Atmel ISC .../dev

[PATCH v10 1/3] [media] atmel-isc: add the Image Sensor Controller code

2016-08-17 Thread Songjun Wu
Add driver for the Image Sensor Controller. It manages incoming data from a parallel based CMOS/CCD sensor. It has an internal image processor, also integrates a triple channel direct memory access controller master interface. Signed-off-by: Songjun Wu <songjun...@microchip.com> --- C

[PATCH v10 3/3] MAINTAINERS: atmel-isc: add entry for Atmel ISC

2016-08-17 Thread Songjun Wu
Add the MAINTAINERS' entry for Microchip / Atmel Image Sensor Controller. Signed-off-by: Songjun Wu <songjun...@microchip.com> --- Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3

[PATCH v10 2/3] [media] atmel-isc: DT binding for Image Sensor Controller driver

2016-08-17 Thread Songjun Wu
DT binding documentation for ISC driver. Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Songjun Wu <songjun...@microchip.com> --- Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: - Add "iscck" and "gck" to cl

[PATCH] [media] atmel-isc: remove the warning

2016-08-23 Thread Songjun Wu
Replace the 'IS_ERR_VALUE(irq)' with 'ret < 0' in function 'atmel_isc_probe'. Reported-by: hverk...@xs4all.nl Signed-off-by: Songjun Wu <songjun...@microchip.com> --- drivers/media/platform/atmel/atmel-isc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driv

[PATCH] [media] atmel-isc: start dma in some scenario

2016-09-27 Thread Songjun Wu
If a new vb buf is added to vb queue, the queue is empty and steaming, dma should be started. Signed-off-by: Songjun Wu <songjun...@microchip.com> --- drivers/media/platform/atmel/atmel-isc.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform

[RESEND][PATCH] [media] atmel-isc: start dma in some scenario

2016-09-28 Thread Songjun Wu
If a new vb buf is added to vb queue, the queue is empty and steaming, dma should be started. Signed-off-by: Songjun Wu <songjun...@microchip.com> --- drivers/media/platform/atmel/atmel-isc.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/media/pl

[RESEND][PATCH] [media] atmel-isc: start dma in some scenario

2016-10-18 Thread Songjun Wu
If a new vb buf is added to vb queue, the queue is empty and steaming, dma should be started. Signed-off-by: Songjun Wu <songjun...@microchip.com> --- drivers/media/platform/atmel/atmel-isc.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/media/pl

[PATCH] [media] atmel-isc: release the filehandle if it's not the only one.

2016-11-01 Thread Songjun Wu
Release the filehandle in 'isc_open' if it's not the only filehandle opened for the associated video_device. Signed-off-by: Songjun Wu <songjun...@microchip.com> --- drivers/media/platform/atmel/atmel-isc.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff

[PATCH] kobject: set state_initialized to 0 in kobject_cleanup

2016-11-01 Thread Songjun Wu
If state_initialized is not set to 0 when a kobject is released, a device is registered, unregistered, and registered again, the error below will occur. kobject (dec04bb0): tried to init an initialized object, something is seriously wrong. Signed-off-by: Songjun Wu <songjun...@microchip.

[RFC][PATCH] [media] atmel-isc: add the isc pipeline function

2016-12-02 Thread Songjun Wu
is enabled. Signed-off-by: Songjun Wu <songjun...@microchip.com> --- drivers/media/platform/atmel/atmel-isc-regs.h | 77 - drivers/media/platform/atmel/atmel-isc.c | 460 +- 2 files changed, 449 insertions(+), 88 deletions(-) diff --git a/drivers/media/platform

[PATCH] [media] atmel-isc: add the isc pipeline function

2016-12-23 Thread Songjun Wu
is enabled. Signed-off-by: Songjun Wu <songjun...@microchip.com> --- drivers/media/platform/atmel/atmel-isc-regs.h | 102 - drivers/media/platform/atmel/atmel-isc.c | 629 +- 2 files changed, 623 insertions(+), 108 deletions(-) diff --git a/drivers/media/pl

[PATCH] [media] atmel-isc: Fix the static checker warning

2017-04-17 Thread Songjun Wu
Initialize the pointer 'fmt' before the start of the loop. Reported-by: Dan Carpenter <dan.carpen...@oracle.com> Signed-off-by: Songjun Wu <songjun...@microchip.com> --- drivers/media/platform/atmel/atmel-isc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/pl

[PATCH] [media] atmel-isc: Set the default DMA memory burst size

2017-04-20 Thread Songjun Wu
Sometimes 'DMA single access' is not enough to transfer a frame of image, '8-beat burst access' is set as the default DMA memory burst size. Signed-off-by: Songjun Wu <songjun...@microchip.com> --- drivers/media/platform/atmel/atmel-isc.c | 23 --- 1 file chang

[PATCH 3/7] MIPS: intel: Add initial support for Intel MIPS SoCs

2018-06-11 Thread Songjun Wu
From: Hua Ma Add initial support for Intel MIPS interAptiv SoCs made by Intel. This series will add support for the GRX500 family. The series allows booting a minimal system using a initramfs. Signed-off-by: Hua ma Signed-off-by: Songjun Wu --- arch/mips/Kbuild.platforms

[PATCH 5/7] tty: serial: lantiq: Convert global lock to per device lock

2018-06-11 Thread Songjun Wu
protection. Signed-off-by: Songjun Wu --- drivers/tty/serial/lantiq.c | 51 ++--- 1 file changed, 34 insertions(+), 17 deletions(-) diff --git a/drivers/tty/serial/lantiq.c b/drivers/tty/serial/lantiq.c index 1127586dbc94..72aab1b05265 100644

[PATCH 4/7] tty: serial: lantiq: Always use readl()/writel()

2018-06-11 Thread Songjun Wu
-by: Songjun Wu --- arch/mips/Kconfig | 1 - drivers/tty/serial/lantiq.c | 236 2 files changed, 128 insertions(+), 109 deletions(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index c82cebeb6192..7bae259edd0b 100644 --- a/arch/mips

[PATCH 1/7] MIPS: dts: Add aliases node for lantiq danube serial

2018-06-11 Thread Songjun Wu
Previous implementation uses a hard-coded register value to check if the current serial entity is the console entity. Now the lantiq serial driver uses the aliases for the index of the serial port. The lantiq danube serial dts are updated with aliases to support this. Signed-off-by: Songjun Wu

[PATCH 6/7] tty: serial: lantiq: Remove unneeded header includes and macros

2018-06-11 Thread Songjun Wu
Update the author list with Intel Corporation. Sort the header includes in alphabetical orders. Remove unneeded header includes and macros. Signed-off-by: Songjun Wu --- drivers/tty/serial/lantiq.c | 29 +++-- 1 file changed, 11 insertions(+), 18 deletions(-) diff

[PATCH 7/7] tty: serial: lantiq: Add CCF support

2018-06-11 Thread Songjun Wu
the same driver. Clocks and clock-names are updated in device tree binding. Signed-off-by: Songjun Wu --- .../devicetree/bindings/serial/lantiq_asc.txt | 15 +++ drivers/tty/serial/Kconfig | 2 +- drivers/tty/serial/lantiq.c| 101

[PATCH 2/7] clk: intel: Add clock driver for GRX500 SoC

2018-06-11 Thread Songjun Wu
ogrammed. DDR PHY clock is created to show correct clock rate in software point of view. CPU clock of 1Ghz from PLL0B otherwise from PLL0A. Signed-off-by: Yixin Zhu Signed-off-by: Songjun Wu --- .../devicetree/bindings/clock/intel,grx500-clk.txt | 46 ++ drivers/clk/Kconfig

[PATCH 0/7] MIPS: intel: add initial support for Intel MIPS SoCs

2018-06-11 Thread Songjun Wu
be appreciated. We propose merging this patch series into MIPS Linux tree. Hua Ma (1): MIPS: intel: Add initial support for Intel MIPS SoCs Songjun Wu (5): MIPS: dts: Add aliases node for lantiq danube serial tty: serial: lantiq: Always use readl()/writel() tty: serial: lantiq: Convert global

[PATCH v2 17/18] serial: intel: Change init_lqasc to static declaration

2018-08-02 Thread Songjun Wu
init_lqasc() is only used internally, change to static declaration. Signed-off-by: Songjun Wu --- Changes in v2: None drivers/tty/serial/lantiq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/lantiq.c b/drivers/tty/serial/lantiq.c index 804aad60ed80

[PATCH v2 18/18] dt-bindings: serial: lantiq: Add optional properties for CCF

2018-08-02 Thread Songjun Wu
Clocks and clock-names are updated in device tree binding. Signed-off-by: Songjun Wu --- Changes in v2: None Documentation/devicetree/bindings/serial/lantiq_asc.txt | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/lantiq_asc.txt b

[PATCH v2 12/18] serial: intel: Rename fpiclk to freqclk

2018-08-02 Thread Songjun Wu
Rename fpiclk to freqclk. Signed-off-by: Songjun Wu --- Changes in v2: None drivers/tty/serial/lantiq.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/lantiq.c b/drivers/tty/serial/lantiq.c index 2e1b35b1cf4d..28086d52e980 100644

[PATCH v2 02/18] clk: intel: Add clock driver for Intel MIPS SoCs

2018-08-02 Thread Songjun Wu
; |3|--CBM clk--> +-+ Signed-off-by: Yixin Zhu Signed-off-by: Songjun Wu --- Changes in v2: - Rewrite clock driver, add platform clock description details in clock driver. drivers/clk/Kconfig | 1 + drivers/

[PATCH v2 01/18] MIPS: intel: Add initial support for Intel MIPS SoCs

2018-08-02 Thread Songjun Wu
From: Hua Ma Add initial support for Intel MIPS interAptiv SoCs made by Intel. This series will add support for the grx500 family. The series allows booting a minimal system using a initramfs. Signed-off-by: Hua Ma Signed-off-by: Songjun Wu --- Changes in v2: - Remove unused _END macros

[PATCH v2 00/18] MIPS: intel: add initial support for Intel MIPS SoCs

2018-08-02 Thread Songjun Wu
Ma (3): MIPS: intel: Add initial support for Intel MIPS SoCs MIPS: dts: Add initial support for Intel MIPS SoCs dt-binding: MIPS: Add documentation of Intel MIPS SoCs Songjun Wu (13): MIPS: dts: Change upper case to lower case MIPS: dts: Add aliases node for lantiq danube serial serial

[PATCH v2 16/18] serial: intel: Reorder the head files

2018-08-02 Thread Songjun Wu
Reorder the head files according to the coding style. Signed-off-by: Songjun Wu --- Changes in v2: - New patch to reorder the head files according to the coding style. drivers/tty/serial/lantiq.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git

[PATCH v2 06/18] MIPS: dts: Change upper case to lower case

2018-08-02 Thread Songjun Wu
All the upper case in unit-address and hex constants are changed to lower case according to the Linux conventions. Signed-off-by: Songjun Wu --- Changes in v2: None arch/mips/boot/dts/lantiq/danube.dtsi | 42 - arch/mips/boot/dts/lantiq/easy50712.dts | 14

[PATCH v2 13/18] serial: intel: Replace clk_enable/clk_disable with clk generic API

2018-08-02 Thread Songjun Wu
The clk driver has introduced new clock APIs that replace the existing clk_enable and clk_disable. -clk_enable() APIs is replaced with clk_prepare_enable(). -clk_disable() API is replaced with clk_disable_unprepare(). Signed-off-by: Songjun Wu --- Changes in v2: None drivers/tty/serial

[PATCH v2 10/18] MIPS: lantiq: Unselect SWAP_IO_SPACE when LANTIQ is selected

2018-08-02 Thread Songjun Wu
impacts other peripheral like USB. ltq_r32/ltq_w32 is not impacted in other device drivers based on MIPS when SWAP_IO_SPACE is not selected as they use non-byte swapping OS API (__raw_read/__raw_writel). Signed-off-by: Songjun Wu --- Changes in v2: None arch/mips/Kconfig | 1 - 1 file changed

[PATCH v2 14/18] serial: intel: Add CCF support

2018-08-02 Thread Songjun Wu
as well. Change to use CCF APIs to get clock and rate. So that different SoCs can use the same driver. Signed-off-by: Songjun Wu --- Changes in v2: None drivers/tty/serial/lantiq.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/tty/serial/lantiq.c b/drivers/tty/serial

[PATCH v2 07/18] MIPS: dts: Add aliases node for lantiq danube serial

2018-08-02 Thread Songjun Wu
Previous implementation uses a hard-coded register value to check if the current serial entity is the console entity. Now the lantiq serial driver uses the aliases for the index of the serial port. The lantiq danube serial dts are updated with aliases to support this. Signed-off-by: Songjun Wu

[PATCH v2 09/18] serial: intel: Change ltq_w32_mask to asc_update_bits

2018-08-02 Thread Songjun Wu
ltq prefix is platform specific function, asc prefix is more generic. Signed-off-by: Songjun Wu --- Changes in v2: None drivers/tty/serial/lantiq.c | 33 - 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/drivers/tty/serial/lantiq.c b/drivers/tty

[PATCH v2 05/18] dt-binding: MIPS: Add documentation of Intel MIPS SoCs

2018-08-02 Thread Songjun Wu
From: Hua Ma This patch adds binding documentation for the compatible values of the Intel MIPS SoCs. Signed-off-by: Hua Ma Signed-off-by: Songjun Wu --- Changes in v2: - New patch split from previous patch - Add the board and chip compatible in dt document Documentation/devicetree/bindings

[PATCH v2 03/18] dt-bindings: clk: Add documentation of grx500 clock controller

2018-08-02 Thread Songjun Wu
From: Yixin Zhu This patch adds binding documentation for grx500 clock controller. Signed-off-by: YiXin Zhu Signed-off-by: Songjun Wu --- Changes in v2: - Rewrite clock driver's dt-binding document according to Rob Herring's comments. - Simplify device tree docoment, remove some clock

[PATCH v2 04/18] MIPS: dts: Add initial support for Intel MIPS SoCs

2018-08-02 Thread Songjun Wu
From: Hua Ma Add dts files to support Intel MIPS SoCs: - xrx500.dtsi is the chip dts - easy350_anywan.dts is the board dts Signed-off-by: Hua Ma Signed-off-by: Songjun Wu --- Changes in v2: - New patch split from previous patch - The memory address is changed to @2000 - Update to obj

[PATCH v2 15/18] serial: intel: Support more platform

2018-08-02 Thread Songjun Wu
Support more platform. Signed-off-by: Songjun Wu --- Changes in v2: None drivers/tty/serial/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index df8bd0c7b97d..564c71fc24bb 100644 --- a/drivers/tty/serial

  1   2   3   >