Re: [PATCH] irqchip: Renesas INTC External IRQ pin driver

2013-02-18 Thread Kuninori Morimoto
kfree(p); if you used devm_, you can remove kfree() / free_irq() / iounmap() here > +err0: > + return ret; > +} > + > +static int intc_irqpin_remove(struct platform_device *pdev) > +{ > + struct intc_irqpin_priv *p = platform_get_drvdata(pdev); > + int k; > + &

Re: [PATCH] thermal: solve compilation errors in rcar_thermal

2012-08-27 Thread Kuninori Morimoto
e > make[1]: *** [drivers/thermal/rcar_thermal.o] Error 1 > make: *** [drivers/thermal/rcar_thermal.o] Error 2 > > with gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) > > Signed-off-by: Devendra Naga > --- Acked-by: Kuninori Morimoto Best regards --- Kuninori Morimoto -- To

[PATCH] gpio: pcf857x: fixup smatch WARNING

2012-09-11 Thread Kuninori Morimoto
obe() warn: variable dereferenced\ before check 'pdata' (see line 292) drivers/gpio/gpio-pcf857x.c:421 pcf857x_remove() error: we previously\ assumed 'pdata' could be null (see line 410) This patch fixes it Reported-by: Fengguang Wu Signed-off-by: Kuninori Mo

[PATCH] thermal: rcar_thermal: remove explicitly used devm_kfree/iounap()

2012-10-02 Thread Kuninori Morimoto
devm_kfree and devm_iounmap should not have to be explicitly used Signed-off-by: Kuninori Morimoto --- This patch is based on Devendra's [PATCH] thermal: solve compilation errors in rcar_thermal drivers/thermal/rcar_thermal.c | 18 ++ 1 file changed, 2 insertions(+

[PATCH 0/2][resend] genirq: export patches

2012-07-30 Thread Kuninori Morimoto
Hi all These are "resend" of genirq export patches. Kuninori Morimoto (2): genirq: export irq_set_chip_and_handler_name() genirq: export dummy_irq_chip > > Hi Thomas > > Could you please teach me current status of these patches ? > > Kuninori

[PATCH 1/2][resend] genirq: export irq_set_chip_and_handler_name()

2012-07-30 Thread Kuninori Morimoto
s a module. Signed-off-by: Kuninori Morimoto --- kernel/irq/chip.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index eebd6d5..57d86d0 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c @@ -671,6 +671,7 @@ irq_set_chip_and_ha

[PATCH 2/2][resend] genirq: export dummy_irq_chip

2012-07-30 Thread Kuninori Morimoto
.ko] undefined! when gpio-pcf857x.c is being built as a module. Signed-off-by: Kuninori Morimoto --- kernel/irq/dummychip.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kernel/irq/dummychip.c b/kernel/irq/dummychip.c index b5fcd96..988dc58 100644 --- a/kernel/irq/dum

Re: [PATCH] thermal: solve compilation errors in rcar_thermal

2012-10-30 Thread Kuninori Morimoto
&rcar_thermal_zone_ops, 0, 0); > if (IS_ERR(zone)) { > dev_err(&pdev->dev, "thermal zone device is NULL\n"); > -- > 1.7.9.5 > Best regards --- Kuninori Morimoto -- To unsubscribe from this list: sen

[PATCH] thermal: solve compilation errors in rcar_thermal

2012-10-31 Thread Kuninori Morimoto
From: Devendra Naga following were the errors reported drivers/thermal/rcar_thermal.c: In function ‘rcar_thermal_probe’: drivers/thermal/rcar_thermal.c:214:10: warning: passing argument 3 of ‘thermal_zone_device_register’ makes integer from pointer without a cast [enabled by default] include/l

Re: [PATCH v2 2/3] gpio: pcf857x: Remove pdata argument to pcf857x_irq_domain_init()

2013-08-25 Thread Kuninori Morimoto
ch applied, unless Kuninori has some objections. Acked-by: Kuninori Morimoto -- 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 v2 4/4] ASoC: rsnd: use regmap instead of original register mapping method

2013-09-17 Thread Kuninori Morimoto
re about it (block/non-block), and caller don't care it, is nice point of this function... For example, SSI device have many ports (0-8), but ADG is only 1 device. On this driver, all devices are using rsnd_write/read() to access register. I can re-check it, but it will be next week Thank y

Re: [PATCH v4 0/3] cleanup of gpio_pcf857x.c

2013-09-05 Thread Kuninori Morimoto
threaded_irq > gpio: pcf857x: remove the irq_demux_work and gpio->irq > gpio: pcf857x: call the gpio user handler iff gpio_to_irq is done > > drivers/gpio/gpio-pcf857x.c | 53 > ++--- > 1 file changed, 26 insertions(+), 27 deletion

[PATCH 0/4] add regmap_filelds and use it on Renesas Sound driver

2013-08-29 Thread Kuninori Morimoto
that regmap_filelds is good naming or not. Please let me know if you have good naming idea. These are based on below branchs regmap/for-next + asoc/for-next Kuninori Morimoto (4): regmap: add regmap_field_update_bits() regmap: Add regmap_fields APIs ASoC: rsnd: gen: rsnd_ge

[PATCH 1/4] regmap: add regmap_field_update_bits()

2013-08-29 Thread Kuninori Morimoto
Current regmap_field is supporting read/write functions. This patch adds new update_bits function for it. Signed-off-by: Kuninori Morimoto --- drivers/base/regmap/regmap.c | 20 include/linux/regmap.h |2 ++ 2 files changed, 22 insertions(+) diff --git a

[PATCH 2/4] regmap: Add regmap_fields APIs

2013-08-29 Thread Kuninori Morimoto
API needs many regmap_field for such device, but it is not good. This patch adds new regmap_fileds API which can care about multi port/offset access via regmap. Signed-off-by: Kuninori Morimoto --- drivers/base/regmap/internal.h |3 ++ drivers/base/regmap/regmap.c | 97

[PATCH 3/4] ASoC: rsnd: gen: rsnd_gen_ops cares .probe and .remove

2013-08-29 Thread Kuninori Morimoto
Current rsnd_gen_ops didn't care about .probe and .remove functions, but it was not good sense. This patch tidyup it Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/gen.c | 41 - 1 file changed, 24 insertions(+), 17 deletions(-) diff --

[PATCH 4/4] ASoC: rsnd: use regmap instead of original register mapping method

2013-08-29 Thread Kuninori Morimoto
Current Linux kernel is supporting regmap/regmap_field, and, it is good match for Renesas Sound Gen1/Gen2 register mapping. This patch uses regmap instead of original method for register access Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/core.c | 45 - sound/soc/sh/rcar

Re: [PATCH v2 1/3] gpio: pcf857x: change to devm_request_threaded_irq

2013-09-01 Thread Kuninori Morimoto
t-controller; > #interrupt-cells = <2>; I'm not sure detail, but does above "exchange interrupt-parent" and "using devm_request_threaded_irq()" have any relationship ? Separate patch seems nice ? Best regards --- Kuninori Morimoto -- To unsubscribe from

Re: [PATCH 2/4] regmap: Add regmap_fields APIs

2013-09-01 Thread Kuninori Morimoto
access is > only its address offset. > > Current API needs many regmap_field for such device, > but it is not good. > This patch adds new regmap_fileds API which can care > about multi port/offset access via regmap. > > Signed-off-by: Kuninori Morimoto I noticed that this

Re: [PATCH v2 0/4] add regmap_filelds and use it on Renesas Sound driver

2013-09-01 Thread Kuninori Morimoto
e let me know if you have good naming idea. The difference between v1 <-> v2 is EXPORT_SYMBOL_GPL() naming on regmap_filelds these are based on below branchs regmap/for-next + asoc/for-next Kuninori Morimoto (4): regmap: add regmap_field_update_bits() regmap: Add regmap_

[PATCH v2 1/4] regmap: add regmap_field_update_bits()

2013-09-01 Thread Kuninori Morimoto
Current regmap_field is supporting read/write functions. This patch adds new update_bits function for it. Signed-off-by: Kuninori Morimoto --- v1 -> v2 - fixup EXPORT_SYMBOL_GPL() naming drivers/base/regmap/regmap.c | 20 include/linux/regmap.h |2 ++ 2 fi

[PATCH v2 2/4] regmap: Add regmap_fields APIs

2013-09-01 Thread Kuninori Morimoto
needs many regmap_field for such device, but it is not good. This patch adds new regmap_fileds API which can care about multi port/offset access via regmap. Signed-off-by: Kuninori Morimoto --- v1 -> v2 - fixup EXPORT_SYMBOL_GPL() naming drivers/base/regmap/internal.h |3 ++ drivers/b

[PATCH v2 3/4] ASoC: rsnd: gen: rsnd_gen_ops cares .probe and .remove

2013-09-01 Thread Kuninori Morimoto
Current rsnd_gen_ops didn't care about .probe and .remove functions, but it was not good sense. This patch tidyup it Signed-off-by: Kuninori Morimoto --- v1 -> v2 - no change sound/soc/sh/rcar/gen.c | 41 - 1 file changed, 24 insertion

[PATCH v2 4/4] ASoC: rsnd: use regmap instead of original register mapping method

2013-09-01 Thread Kuninori Morimoto
Current Linux kernel is supporting regmap/regmap_field, and, it is good match for Renesas Sound Gen1/Gen2 register mapping. This patch uses regmap instead of original method for register access Signed-off-by: Kuninori Morimoto --- v1 -> v2 - exchange macro naming (RSND_GEN1_S_

Re: [PATCH v3 0/3] cleanup of gpio_pcf857x.c

2013-09-01 Thread Kuninori Morimoto
> +++-- > 1 file changed, 26 insertions(+), 25 deletions(-) Basically, I have no objection about these patches, but I have 2 opinions - I guess we can merge #1 and #2 patches ? ("as is" is very OK for me though) - we don't need gpio->

Re: [PATCH v3 0/2] ASoC: rsnd: use regmap instead of original register mapping method

2013-09-23 Thread Kuninori Morimoto
heck > something in the module structure rather than asking regmap. OK, new patch uses only "fields" access by using offset = 0. then, un-needed rsnd_priv_read/write/bset() are removed by 1st patch. Kuninori Morimoto (2): ASoC: rsnd: remove rsnd_priv_read/write/bset() ASoC: rs

[PATCH 2/2] ASoC: rsnd: use regmap instead of original register mapping method

2013-09-23 Thread Kuninori Morimoto
Current Linux kernel is supporting regmap/regmap_field, and, it is good match for Renesas Sound Gen1/Gen2 register mapping. This patch uses regmap instead of original method for register access Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/core.c | 45 -- sound/soc/sh/rcar

[PATCH 1/2] ASoC: rsnd: remove rsnd_priv_read/write/bset()

2013-09-23 Thread Kuninori Morimoto
adg.c only used rsnd_priv_read/write/bset() which is the only user of NULL mod. but, it can be removed. Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/adg.c | 10 +++--- sound/soc/sh/rcar/rsnd.h |4 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sound/soc

Re: [PATCH 0/6] ARM: shmobile: kzm9d-reference: migrate to common clock framework with DT

2013-09-25 Thread Kuninori Morimoto
cumentation and implementation in one patch, and dts in other patch, are normal style IMO I mean 4/6 + 5/6's implementation part, 5/6's dts part Best regards --- Kuninori Morimoto -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a messag

[PATCH] thermal: rcar: fixup compilation errors

2012-10-09 Thread Kuninori Morimoto
#x27; Signed-off-by: Devendra Naga Signed-off-by: Kuninori Morimoto --- for linus/master branch drivers/thermal/rcar_thermal.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index b13fe5d..762f637 100644 --- a/dr

[PATCH] gpio: pcf857x: use client->irq for gpio_to_irq()

2012-12-06 Thread Kuninori Morimoto
on too. This patch is tested on kzm9g board Reported-by: ENGELMAYER Christian christian.engelma...@frequentis.com Signed-off-by: Kuninori Morimoto --- >> Simon This patch modify kzm9g board settings. Please give your acked-by on this patch arch/arm/mach-shmobile/board-kzm9g.c |2 +- drive

Re: [PATCH 5/5] spi: fix return value check in hspi_probe().

2012-12-11 Thread Kuninori Morimoto
Hi > According to its documentation, clk_get() returns a "valid IS_ERR() condition > containing errno", so we should call IS_ERR() rather than a NULL check. > > Signed-off-by: Cyril Roelandt Acked-by: Kuninori Morimoto > --- > drivers/spi/spi-sh-hspi.c |

How to get actual received data size on DMAEngine ?

2013-06-24 Thread Kuninori Morimoto
Hi Vinod, and all Cc Guennadi I need your opinion Now, my USB driver is using DMAEngine, but, in "data receive" case, it doesn't know the exact received data size before DMA starting, since USB device doesn't know how many data will be sent. Then, (I think) USB driver is using enough size buffer

[PATCH] shdma: fixup sh_dmae_get_partial() calculation error

2013-07-01 Thread Kuninori Morimoto
sh_desc->hw.tcr is controlling data size, and register TCR is controlling data transfer count which was xmit_shift'ed value of hw.tcr. Current sh_dmae_get_partial() is calculating in different unit. This patch fixes it. Cc: Guennadi Liakhovetski Signed-off-by: Kuninori Morimoto --- >

Re: [PATCH -next] ASoC: rcar: fix return value check in rsnd_gen1_probe()

2013-07-29 Thread Kuninori Morimoto
undants > error message. > > Signed-off-by: Wei Yongjun > --- Acked-by: Kuninori Morimoto > sound/soc/sh/rcar/gen.c | 17 - > 1 file changed, 4 insertions(+), 13 deletions(-) > > diff --git a/sound/soc/sh/rcar/gen.c b/sound/soc/sh/rcar/gen.c > index 5e

Re: [PATCH] ASoC: generic: add simple card with devicetree support

2013-07-21 Thread Kuninori Morimoto
gest and difficult is 1) I think. It needs more discussion how to do 1) ? But someone (I forgot who is) is already trying to implement it ? I'm not sure... Best regards --- Kuninori Morimoto -- 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/

[PATCH resend] shdma: fixup sh_dmae_get_partial() calculation error

2013-07-23 Thread Kuninori Morimoto
sh_desc->hw.tcr is controlling real data size, and, register TCR is controlling data transfer count which was xmit_shifted value of hw.tcr. Current sh_dmae_get_partial() is calculating in different unit. This patch fixes it. Signed-off-by: Kuninori Morimoto --- >> Guennadi Could y

[PATCH] mtd: m25p80: add support for the Spansion s25fl008k chip

2013-05-16 Thread Kuninori Morimoto
Signed-off-by: Yusuke Goda Signed-off-by: Kuninori Morimoto --- drivers/mtd/devices/m25p80.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index 5b6b072..058172c 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd

Re: [PATCH 1/1] Add TI TCA9554 to supported devices table

2013-03-27 Thread Kuninori Morimoto
Dear Linus > > From: Nikolay Balandin > > > > > > Signed-off-by: Nikolay Balandin > > Tentatively applied. > > Kuninoro, does this look OK? > > Yours, > Linus Walleij Acked-by: Kuninori Morimoto Best regards -- Kuninori Morimoto --

Re: thermal patches in linux-next

2012-08-06 Thread Kuninori Morimoto
rcaar_thermal: tidyup thermal_zone_device_register() parameter From: Kuninori Morimoto Date: Tue, 7 Aug 2012 13:32:14 +0900 c56f5c0342dfee11a1a13d2f5bb7618de5b17590 (Thermal: Make Thermal trip points writeable) added "mask", and 062f7fed5c79b3d2f7274fcd6f05f8c8f2fa5674 (Thermal: Re

Re: linux-next: build failure after merge of the gpio-lw tree

2012-08-21 Thread Kuninori Morimoto
s ? > > Hm Thomas has to answer to that (and merge the patches, if he > likes them). Now, these fixup patches were accepted. http://git.kernel.org/tip/17d83127d4c2b322dd8f217e0ac08c66eb403779 http://git.kernel.org/tip/b3ae66f209e8929db62b5a5f874ab2cdcf5ef1d4 Could you please re

Re: linux-next: build failure after merge of the gpio-lw tree

2012-08-26 Thread Kuninori Morimoto
Yes! I've applied it. Check that it lands nicely in -next. Thank you ! It works on my board. Best regards --- Kuninori Morimoto -- 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

Re: linux-next: build failure after merge of the gpio-lw tree

2012-07-23 Thread Kuninori Morimoto
Hi Thomas Could you please teach me current status of these patches ? Kuninori Morimoto (2): genirq: export irq_set_chip_and_handler_name() genirq: export dummy_irq_chip At Mon, 9 Jul 2012 22:34:23 +0200, Linus Walleij wrote: > > On Mon, Jul 9, 2012 at 4:04 AM, Kuninori Mo

Re: [PATCH 0/2][resend] genirq: export patches

2012-08-20 Thread Kuninori Morimoto
Hi all > These are "resend" of genirq export patches. > > Kuninori Morimoto (2): > genirq: export irq_set_chip_and_handler_name() > genirq: export dummy_irq_chip get_maintainer.pl showed me that Thomas is the maintainer of ${LINUX}/kernel/irq/, but am I wr

[PATCH] thermal: add Renesas R-Car thermal sensor support

2012-07-09 Thread Kuninori Morimoto
This patch add basic Renesas R-Car thermal sensor support. It was tested on R-Car H1 Marzen board. Signed-off-by: Kuninori Morimoto --- drivers/thermal/Kconfig|8 ++ drivers/thermal/Makefile |3 +- drivers/thermal/rcar_thermal.c | 239

[PATCH v2] thermal: add Renesas R-Car thermal sensor support

2012-07-11 Thread Kuninori Morimoto
This patch add basic Renesas R-Car thermal sensor support. It was tested on R-Car H1 Marzen board. Signed-off-by: Kuninori Morimoto --- v1 -> v2 - used spin_lock - added explain of udelay(300) - used a single space before "=" drivers/thermal/Kconfig|8 ++ dr

Re: [PATCH] ARM: shmobile: armadillo800eva: set clock rates before timer init

2013-01-17 Thread Kuninori Morimoto
c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Acked-by: Kuninori Morimoto Best regards --- Kuninori Morimoto -- 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://v

Re: linux-next: build failure after merge of the gpio-lw tree

2012-07-08 Thread Kuninori Morimoto
s the second patch from your patch set. > > > > OK. I will, but it will be next week. > > And could you please show me where is your repository/branch ? > > http://git.kernel.org/?p=linux/kernel/git/linusw/linux-gpio.git;a=summary > branch devel/for-next In my check,

[PATCH 1/2] genirq: export irq_set_chip_and_handler_name()

2012-07-08 Thread Kuninori Morimoto
dler_name" \ [drivers/gpio/gpio-pcf857x.ko] undefined! when gpio-pcf857x.c is being built as a module. Signed-off-by: Kuninori Morimoto --- kernel/irq/chip.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index eebd6d5..

[PATCH 2/2] genirq: export dummy_irq_chip

2012-07-08 Thread Kuninori Morimoto
.ko] undefined! when gpio-pcf857x.c is being built as a module. Signed-off-by: Kuninori Morimoto --- kernel/irq/dummychip.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kernel/irq/dummychip.c b/kernel/irq/dummychip.c index b5fcd96..988dc58 100644 --- a/kernel/irq/dum

Re: [PATCH 2/4] thermal: rcar_gen3_thermal: Add R-Car Gen3 thermal driver support

2016-06-19 Thread Kuninori Morimoto
Hi Khiem-san Thank you for your patch > +int _linear_temp_converter(struct equation_coefs coef, > + int temp_code) > +{ > + int temp, temp1, temp2; > + > + temp1 = MCELSIUS((CODETSD(temp_code) - coef.b1)) / coef.a1; > + temp2 = MCELSIUS((CODETSD(te

[PATCH] pinctrl: sh-pfc: r8a7795: use PINMUX_SINGLE() for I2C

2016-06-21 Thread Kuninori Morimoto
From: Kuninori Morimoto Now we have PINMUX_SINGLE(). Let's use it instead of PINMUX_IPSR_NOGP() Signed-off-by: Kuninori Morimoto Reviewed-by: Geert Uytterhoeven --- drivers/pinctrl/sh-pfc/pfc-r8a7795.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dr

[PATCH] thermal: rcar-thermal: enable hwmon when thermal_zone

2016-06-21 Thread Kuninori Morimoto
From: Kuninori Morimoto rcar-thermal is supporting both thermal_zone_of_sensor_register() and thermal_zone_device_register(). But thermal_zone_of_sensor_register() doesn't enable hwmon as default. This patch enables it to keep compatibility Signed-off-by: Kuninori Morimoto --- >&g

Re: [PATCH] ASoC: simple-card: add support for aux devices

2016-09-22 Thread Kuninori Morimoto
headphones are attached. > - simple-audio-card,mic-det-gpio : Reference to GPIO that signals when > a microphone is attached. > +- simple-audio-card,aux-devs : List of phandles pointing to > auxiliary devices, such > + as amplifiers, to be added to the > sound card. > > Optional subnodes: I think it is very helpful if this document has above sample Best regards --- Kuninori Morimoto

Re: [PATCH] ASoC: cq93vc: duplicated callback function goes to component

2016-09-22 Thread Kuninori Morimoto
ed-off-by: Arnd Bergmann > --- Sorry about that Acked-by: Kuninori Morimoto

Re: [PATCH 1/3] drm: bridge: add DesignWare HDMI I2S audio support

2016-07-31 Thread Kuninori Morimoto
Hi Jose Cc: Mark, Thierry, Daniel > > From: Kuninori Morimoto > > > > Current dw-hdmi is supporting sound via AHB bus, but it has > > I2S audio feature too. This patch adds I2S audio support to dw-hdmi. > > This HDMI I2S is supported by using ALSA SoC

[PATCH 0/3] ASoC: remove snd_soc_pcm_set/get_drvdata()

2016-07-31 Thread Kuninori Morimoto
ta(rtd->dev, rtd); ... } But, ASoC has snd_soc_pcm_set/get_drvdata() to set rtd->dev. It will overwrite existing data and will break system. This patch tries to solve this issue. Intel haswell and qcom is using these functions. ** Note ** I don't have these boards, thus, I did c

[PATCH 3/3] ASoC: remove snd_soc_pcm_set/get_drvdata()

2016-07-31 Thread Kuninori Morimoto
From: Kuninori Morimoto snd_soc_pcm_set_drvdata() will set driver data to rtd->dev, but driver data of rtd->dev is already used as "rtd" on soc_post_component_init(). static int soc_post_component_init(xxx) { ... dev_set_drvda

[PATCH 2/3] ASoC: lpass-platform: don't use snd_soc_pcm_set_drvdata()

2016-07-31 Thread Kuninori Morimoto
From: Kuninori Morimoto snd_soc_pcm_set_drvdata() will set driver data to rtd->dev, but driver data of rtd->dev is already used as "rtd" on soc_post_component_init(). static int soc_post_component_init(xxx) { ... dev_set_drvda

[PATCH 1/3] ASoC: sst-haswell-pcm: don't use snd_soc_pcm_set_drvdata()

2016-07-31 Thread Kuninori Morimoto
ta(rtd->dev, rtd); ... } To remove confusion, snd_soc_pcm_set/get_drvdata() should be removed soon. This patch is for it. intel/haswell/sst-haswell-pcm.c is using snd_soc_pcm_set(), but no one use it on this driver. Let's remove it. Signed-off-by: Kuninori Morimoto --- ** Note ** I did c

Re: linux-next: build failure after merge of the sound-asoc tree

2016-08-07 Thread Kuninori Morimoto
Hi > After merging the sound-asoc tree, today's linux-next build (arm > multi_v7_defconfig build) failed like this: > > sound/soc/generic/simple-card.c: In function 'asoc_simple_card_dai_link_of': > sound/soc/generic/simple-card.c:350:8: error: implicit declaration of > function 'asoc_simple_ca

Re: [PATCH] ASoC: simple-card: fix module load "unknown symbol" issue

2016-08-08 Thread Kuninori Morimoto
Hi Sekhar > > An ASoC driver using simple-card, when built as a module gets the > > following error at module load time: > > > > [ 23.571873] simple_card_utils: Unknown symbol snd_soc_of_parse_daifmt > > (err 0) > > [ 23.712726] simple_card_utils: Unknown symbol snd_soc_of_parse_card_name

Re: [PATCH 1/3] ASoC: sst-haswell-pcm: don't use snd_soc_pcm_set_drvdata()

2016-08-08 Thread Kuninori Morimoto
Hi Mark > > snd_soc_pcm_set_drvdata() will set driver data to rtd->dev, > > but driver data of rtd->dev is already used as "rtd" on > > soc_post_component_init(). > > This doesn't apply against current code, please check and resend. Thanks. It seems current your branch already has same patch. T

Re: [PATCH 2/2] thermal: rcar-thermal: enable hwmon when thermal_zone

2016-08-24 Thread Kuninori Morimoto
Hi Zhang > > > From: Kuninori Morimoto > > > > > > rcar-thermal is supporting both thermal_zone_of_sensor_register() > > > and > > > thermal_zone_device_register(). But > > > thermal_zone_of_sensor_register() > > > doesn

Re: [PATCH 2/2] thermal: rcar-thermal: enable hwmon when thermal_zone

2016-08-24 Thread Kuninori Morimoto
Hi Zhang > > > > > From: Kuninori Morimoto > > > > > > > > > > rcar-thermal is supporting both > > > > > thermal_zone_of_sensor_register() > > > > > and > > > > > thermal_zone_device_register().

Re: [PATCH v2 2/2] MAINTAINERS: document ASoC header files

2016-08-24 Thread Kuninori Morimoto
> match them. > > Signed-off-by: Nicolas Iooss > --- Acked-by: Kuninori Morimoto

[PATCH] drm: dw-hdmi-i2s: add missing company name on Copyright

2017-06-19 Thread Kuninori Morimoto
From: Kuninori Morimoto This driver's Copyright is under Renesas Solutions Corp Signed-off-by: Kuninori Morimoto --- drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-au

[PATCH 1/3] ASoC: fsl: mpc5200_dma: remove unused psc_dma

2017-06-20 Thread Kuninori Morimoto
linux/sound/soc/fsl/mpc5200_dma.c:305:18: warning: unused variable \ psc_dma’ [-Wunused-variable] Signed-off-by: Kuninori Morimoto --- sound/soc/fsl/mpc5200_dma.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/fsl/mpc5200_dma.c b/sound/soc/fsl/mpc5200_dma.c index 93885d9

[PATCH] dmaengine: rcar-dmac: read DMATCRB instead of DMATCR for residue

2017-10-15 Thread Kuninori Morimoto
From: Kuninori Morimoto SYS/RT/Audio DMAC have both TCR/TCRB register. Its difference is transfer counter value of read (= TCR) or write (= TCRB). The relationship is like below. TCR TCRB [SOURCE] -> [DMAC] -> [DESTINATION] Thus, we want to read TCRB instead of TCR for r

Re: [PATCH] dmaengine: rcar-dmac: read DMATCRB instead of DMATCR for residue

2017-10-16 Thread Kuninori Morimoto
; > > > Thus, we want to read TCRB instead of TCR for residue. > > Otherwise, Sound Capture has noise after PluseAudio support > > (= 07b7acb51d2 ("ASoC: rsnd: update pointer more accurate")) > > > > Signed-off-by: Hiroyuki Yokoyama > > [Kuninori: adde

Re: [PATCH] dmaengine: rcar-dmac: read DMATCRB instead of DMATCR for residue

2017-10-16 Thread Kuninori Morimoto
accurate")) > >> > > >> > Signed-off-by: Hiroyuki Yokoyama > >> > [Kuninori: added detail information in log] > >> > Signed-off-by: Kuninori Morimoto > > (snip) > >> However, shouldn't the register to use depend on the DMA directi

[PATCH] dmaengine: rcar-dmac: use DMATCRB when xxx_TO_MEM direction

2017-10-16 Thread Kuninori Morimoto
From: Kuninori Morimoto SYS/RT/Audio DMAC have both TCR/TCRB. Its difference is transfer counter value of read (= TCR) or write (= TCRB). The relationship is like below. TCR TCRB [SOURCE] -> [DMAC] -> [DESTINATION] Thus, for residue calculation, we want to read TCR

Re: [PATCH] dmaengine: rcar-dmac: use DMATCRB when xxx_TO_MEM direction

2017-10-16 Thread Kuninori Morimoto
or all case. In any case, "completed" information should be used. But in MEM_TO_DEV case, I thought if is OK if data was read from MEM (= the data will be send to DEV automatically, I didn't care about interruption) But yes, your opinion is correct I think. I think MEM_TO_MEM should use TCRB. I think logic is same as your MEM_TO_DEV explanation ? Anyway, in all case I can use TCRB in v3 patch, and it needs abouve explanation. Best regards --- Kuninori Morimoto

Re: [PATCH] dmaengine: rcar-dmac: use DMATCRB when xxx_TO_MEM direction

2017-10-16 Thread Kuninori Morimoto
; and it needs abouve explanation. If so, I think v1 is enough... ? "transfer completed count is important for all case" is no doubt... ? Best regards --- Kuninori Morimoto

Re: [PATCH] dmaengine: rcar-dmac: use DMATCRB when xxx_TO_MEM direction

2017-10-17 Thread Kuninori Morimoto
;m happy to create v3 patch which includes detail reason which is explained by Laurent if you want. Best regards --- Kuninori Morimoto

Re: [PATCH v3] dmaengine: rcar-dmac: use TCRB instead of TCR for residue

2017-10-31 Thread Kuninori Morimoto
r large serial console input situation? I will ask this to HW guys. Thanks Best regards --- Kuninori Morimoto

Re: [PATCH v3] dmaengine: rcar-dmac: use TCRB instead of TCR for residue

2017-11-05 Thread Kuninori Morimoto
ps the code should use the minimum of both registers instead? TCR(= read) happen 1st, and TCRB (= write) happen next. "TCRB always contains 0x20" means, DMA didn't transfer data for some reason ? "use minimum" idea can't guarantee data transfering, same as previous topic I guess. Best regards --- Kuninori Morimoto

Re: [PATCH] dmaengine: rcar-dmac: use DMATCRB when xxx_TO_MEM direction

2017-10-18 Thread Kuninori Morimoto
x27;d be happier with v3 :-) Oops, I didn't explain this. This DMAC has buffer. thus it will take a while for TCR and TCRB to become equal. I will add this to log in v3 Best regards --- Kuninori Morimoto

[PATCH v3] dmaengine: rcar-dmac: use TCRB instead of TCR for residue

2017-10-18 Thread Kuninori Morimoto
residue counter which indicates transferred from sound device, but in reality the data was not yet put to memory and recorder will record it. Signed-off-by: Hiroyuki Yokoyama [Kuninori: added detail information in log] Signed-off-by: Kuninori Morimoto --- v2 -> v3 - Code is back to same as v1

Re: [PATCH linux-next 1/1] ASoC: rsnd: ssiu: reset SSI_MODE register

2017-10-29 Thread Kuninori Morimoto
* see +* rsnd_ssi_config_init() +*/ + rsnd_mod_write(mod, SSI_MODE, + rsnd_runtime_is_ssi_tdm(io) ? 0x1 : 0x0); if (rsnd_ssi_use_busif(io)) { rsnd_mod_write(mod, SSI_BUSIF_ADINR, Best regards --- Kuninori Morimoto

Re: [PATCH linux-next 1/1] ASoC: rsnd: ssiu: reset SSI_MODE register

2017-10-30 Thread Kuninori Morimoto
rsnd_runtime_is_ssi_tdm(io) ? 0x1 : 0x0); > > Thanks for your suggestion, > I will do some test for this change, > if it works fine, I will submit ver2 with it Thanks Best regards --- Kuninori Morimoto

Re: [PATCH][resent] PCI: rcar: Add PCIE_CONF_REGNO macro for PCIECAR register

2015-08-31 Thread Kuninori Morimoto
Hi Simon Thank you for your feedback > > From: Nobuhiro Iwamatsu > > > > The reg variable used when setting PCIECAR register need to be masked by > > 0xFC > > by restriction of the corresponding register. > > This adds PCIE_CONF_REGNO are macros for masking changes that > > PCIE_CONF_REGNO >

Re: [PATCH] ASoc: sh: Fit typo in Kconfig

2015-10-13 Thread Kuninori Morimoto
Hi Masanari Iida wrote: > > s/SUR/SRU/g > > Signed-off-by: Masanari Iida > --- Acked-by: Kuninori Morimoto Best regards --- Kuninori Morimoto -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kerne

Re: [PATCH] ASoc: sh: Fit typo in Kconfig

2015-10-13 Thread Kuninori Morimoto
Hi again > Masanari Iida wrote: > > > > s/SUR/SRU/g > > > > Signed-off-by: Masanari Iida > > --- > > Acked-by: Kuninori Morimoto I sent Acked-by, but I think below is better Subject - ASoc: sh: Fit typo in Kconfig + ASoC: rsnd: Fix SRU typo in Kconfig

Re: [PATCH v4] clk: add CS2000 Fractional-N driver

2015-10-14 Thread Kuninori Morimoto
And requested clock requests this clock too. Thus, these clocks have dead lock on probe time cs2000: clk_multiplier@4f { ... clocks = <&rcar_sound 0>, ... ... }; &rcar_sound { ... assigned-clocks = &l

[PATCH v5] clk: add CS2000 Fractional-N driver

2015-10-19 Thread Kuninori Morimoto
From: Kuninori Morimoto This patch adds CS2000 Fractional-N driver as clock provider. Signed-off-by: Kuninori Morimoto --- v4 -> v5 - remove "clock-frequency" - use dev on clk_register() - remove CLK_IS_BASIC - .enable -> .prepare since it is using I2C . .disabe -> .un

Re: [alsa-devel] [PATCH 1/2] dmaengine: OF DMAEngine API based on CONFIG_DMA_OF instead of CONFIG_OF

2015-10-01 Thread Kuninori Morimoto
Hi Vinod, Mark > > > > > 5fa422c ("dmaengine: move drivers/of/dma.c -> drivers/dma/of-dma.c") > > > > > moved OF base DMAEngine code to of-dma.c, then it based on > > > > > CONFIG_DMA_OF. > > > > > But, OF base DMAEngine API on of_dma.h still based on CONFIG_OF now. > > > > > So, current kernel c

Re: [PATCH v4] clk: add CS2000 Fractional-N driver

2015-10-01 Thread Kuninori Morimoto
Hi Stephen Thank you for your review > > + init.parent_names = parent_names; > > + init.num_parents= ARRAY_SIZE(parent_names); > > + > > + priv->hw.init = &init; > > + > > + clk = clk_register(NULL, &priv->hw); > > How about using devm_clk_register() and passing the i2c de

Re: [PATCH] ASoC: wm9712: fix replace codec to component

2018-07-20 Thread Kuninori Morimoto
ivers. E.g. on > Colibri T20 this lead to the following spew upon boot with sound/touch > being broken: Oops, my bad... The platform_driver name is not important, how about simply rename back it to "wm9712-codec" ? Best regards --- Kuninori Morimoto

Re: [PATCH] ASoC: hdmi-codec: fix spelling mistake: "deteced" -> "detected"

2017-05-14 Thread Kuninori Morimoto
t; > if (hd->cnt >= ARRAY_SIZE(hdmi_dai_name)) { > - dev_err(dev, "too many hdmi codec are deteced\n"); > + dev_err(dev, "too many hdmi codec are detected\n"); > return -EINVAL; > } Thank you for your pat

[PATCH] drm/panel: lvds: tidyup header explanation

2018-01-31 Thread Kuninori Morimoto
From: Kuninori Morimoto panel-lvds.c is for LVDS Panel Driver, not R-Car Display Unit CRTCs Reported-by: Koji Matsuoka Signed-off-by: Kuninori Morimoto --- drivers/gpu/drm/panel/panel-lvds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel

Re: PM regression in next

2018-01-14 Thread Kuninori Morimoto
ormation). However we should > be screaming loudly about the fact that the I/O we tried to do fails, > that clearly shouldn't be being ignored. I'm sorry that my patch breaks your drivers. It seems removing .read/.write callback was too much aggressive. I hope your driver will be OK by using regmap. In worst case, we can back .read/.write, but it will be component driver side. Best regards --- Kuninori Morimoto

Re: PM regression in next

2018-01-15 Thread Kuninori Morimoto
> > So to fix the regression, let's just do a partial revert adding back > the read and write function pointers. Note that other non-regmap > ASoC drivers may need similar patches. > > Fixes: 3bb0f7c31b1a ("ASoC: don't use snd_soc_write/read on twl4030") >

[PATCH v3] media: i2c: tda1997: replace codec to component

2018-04-05 Thread Kuninori Morimoto
From: Kuninori Morimoto Now we can replace Codec to Component. Let's do it. Note: xxx_codec_xxx() -> xxx_component_xxx() .idle_bias_off = 0 -> .idle_bias_on = 1 .ignore_pmdown_time = 0 -> .use_p

[PATCH 0/2] add kobject/of_node read() function

2018-04-09 Thread Kuninori Morimoto
Hi Greg, Rob, Frank We are using {kobject_/of_node_}get/put() for increment/decrement counter. But, because we don't have counter read() function, confirming it (mainly for debug purpose) is a little bit difficult. These patches add read() function for it. Kuninori Morimoto (2): kobject

[PATCH 2/2] of: add of_node_read()

2018-04-09 Thread Kuninori Morimoto
From: Kuninori Morimoto We are counting of node by using of_node_get/put(), but not have of_node_read() which can be used to check count. Let's add it Signed-off-by: Kuninori Morimoto --- drivers/of/dynamic.c | 14 ++ include/linux/of.h | 5 + 2 files change

[PATCH 1/2] kobject: add kobject_read()

2018-04-09 Thread Kuninori Morimoto
From: Kuninori Morimoto We are counting kobject by using kobject_get/put(), but not have kobject_read() which can be used to check count. Let's add Signed-off-by: Kuninori Morimoto --- include/linux/kobject.h | 1 + lib/kobject.c | 18 ++ 2 files change

Re: [BUG] Kernel crash on Allwinner H3 due to sound core changes

2018-03-07 Thread Kuninori Morimoto
Hi Jernej Thank you for your hard work > I found the issue. Commit be7ee5f32a9a ("ASoC: soc-generic-dmaengine-pcm: > replace platform to component") changes struct dmaengine_pcm: > > struct dmaengine_pcm { > struct dma_chan *chan[SNDRV_PCM_STREAM_LAST + 1]; > const struct snd_dmae

Re: [BUG] Kernel crash on Allwinner H3 due to sound core changes

2018-03-08 Thread Kuninori Morimoto
Hi Mark,Jernej > > Ahh.. indeed. Good catch ! > > How about to add such flag ? > > This is just idea. No tested, No compiled, but can help you ? > > I think this makes sense as a patch. We might want to disallow > allocating components as part of a bigger struct so everything is more > consiste

Re: [PATCH linux-next 01/10] ASoC: rsnd: ssi: Request dedicated dma channels for busif1 to 7

2018-09-27 Thread Kuninori Morimoto
Hi Jiada Cc: linux-renesas-soc ML Thank you for your patch > From: Jiada Wang > > Currently ssi driver only request dma channel for SSI_0, > which is used to transfer data to/from busif0. > > But since busif1 to busif7 also maybe used, dedicated dma channels > are request for data transfer b

  1   2   3   4   5   6   7   8   9   >