Re: ARC no console output (was Re: [PATCH 1/2] init/console: Use ttynull as a fallback when there is no console)

2021-01-13 Thread Peter Korsgaard
gt; is defined on the command line. > What happens in my case is console_on_rootfs() doesn't find > /dev/console and switching to ttynull. /dev is not present because > devtmpfs doesn't automount for initramfs. But our initramfs/cpio logic ensures that the initramfs has a static /dev/console device node, so how can that be? https://git.buildroot.net/buildroot/tree/fs/cpio/cpio.mk#n25 -- Bye, Peter Korsgaard

Re: [PATCH v4 1/1] i2c: ocores: fix polling mode workaround on FU540-C000 SoC

2020-10-21 Thread Peter Korsgaard
ot;i2c: ocores: add polling mode workaround > for Sifive FU540-C000 SoC") > Signed-off-by: Sagar Shrikant Kadam LGTM, thanks. Acked-by: Peter Korsgaard -- Bye, Peter Korsgaard

Re: [PATCH v3 1/1] i2c: ocores: fix polling mode workaround on FU540-C000 SoC

2020-10-15 Thread Peter Korsgaard
irq = platform_get_irq(pdev, 0); > -if (irq == -ENXIO) { > +if (i2c->flags & OCORES_FLAG_BROKEN_IRQ || irq == -ENXIO) { Alternatively you can move it after the irq = platform_get_irq(pdev, 0) line and just clear irq, E.G.: irq = platform_get_irq(pdev, 0); if (of_device_is_compatible(..)) { i2c->flags |= OCORES_FLAG_BROKEN_IRQ; irq = -ENXIO; } if (irq == -ENXIO) { .. -- Bye, Peter Korsgaard

Re: [PATCH 1/1] i2c: ocores: fix polling mode workaround on FU540-C000 SoC

2020-10-08 Thread Peter Korsgaard
"sifive,fu540-c000-i2c")) > Please let me know if this is okay. Yes, that sounds sensible. Thanks. -- Bye, Peter Korsgaard

Re: [PATCH 1/1] i2c: ocores: fix polling mode workaround on FU540-C000 SoC

2020-10-07 Thread Peter Korsgaard
her flags. TYPE_SIFIVE_REV0 is also set for two compatibles: { .compatible = "sifive,fu540-c000-i2c", .data = (void *)TYPE_SIFIVE_REV0, }, { .compatible = "sifive,i2c0", .data = (void *)TYPE_SIFIVE_REV0, }, Are both affected by this issue? if not, we will need to extend the code to handle them differently. Other than that, it looks OK to me. -- Bye, Peter Korsgaard

Re: [PATCH 4/4] arm: dts: owl-s500: Add RoseapplePi

2020-08-27 Thread Peter Korsgaard
>>>>> "Cristian" == Cristian Ciocaltea writes: > Hi Peter, > Thanks for the review! > On Thu, Aug 27, 2020 at 08:44:40AM +0200, Peter Korsgaard wrote: >> >>>>> "Cristian" == Cristian Ciocaltea >> >>>&

Re: [PATCH 4/4] arm: dts: owl-s500: Add RoseapplePi

2020-08-27 Thread Peter Korsgaard
>>>>> "Cristian" == Cristian Ciocaltea writes: > Add a Device Tree for the RoseapplePi SBC. > Signed-off-by: Cristian Ciocaltea Reviewed-by: Peter Korsgaard On a related note: There is now an owl-mmc driver for the s900. From a quick look at th

Re: [PATCH 1/4] arm: dts: owl-s500: Fix incorrect PPI interrupt specifiers

2020-08-27 Thread Peter Korsgaard
>>>>> "Cristian" == Cristian Ciocaltea writes: > The PPI interrupts for cortex-a9 were incorrectly specified, fix them. > Fixes: fdfe7f4f9d85 ("ARM: dts: Add Actions Semi S500 and LeMaker Guitar") > Signed-off-by: Cristian Ciocaltea Reviewed-by: Peter Korsgaard -- Bye, Peter Korsgaard

Re: [PATCH] i2c: ocores: use request_any_context_irq() to register IRQ handler

2019-08-22 Thread Peter Korsgaard
o this > patch the IRQ controller behind this device, and its driver, can have > different implementations (nested threads). For this reason, it is safer > to use `request_any_context_irq()` to avoid errors at probe time. > Signed-off-by: Federico Vaga Reviewed-by: Peter Korsgaard -- Bye, Peter Korsgaard

Re: [PATCH] Revert "firmware: dmi_scan: Use lowercase letters for UUID"

2018-12-11 Thread Peter Korsgaard
>>>>> "Jean" == Jean Delvare writes: > On Tue, 2018-12-11 at 13:06 +0100, Peter Korsgaard wrote: >> > > > > > "Peter" == Peter Korsgaard writes: >> >> Hi Jean, >> >> >> Look, you can imagine

Re: [PATCH] Revert "firmware: dmi_scan: Use lowercase letters for UUID"

2018-12-11 Thread Peter Korsgaard
>>>>> "Peter" == Peter Korsgaard writes: Hi Jean, >> Look, you can imagine that I was perfectly aware of what I was doing >> when I made that change, and that I pondered the decision carefully at >> that time. And my decision was that the change

Re: [PATCH] Revert "firmware: dmi_scan: Use lowercase letters for UUID"

2018-12-06 Thread Peter Korsgaard
LTS. > I can't see how this is related with kernel 4.19 becoming LTS. Only in the sense that that LTS kernels see wider use than non-LTS kernels (E.G. I discovered this when moving from 4.14.x to 4.19.x). > Look, you can imagine that I was perfectly aware of what I was doing > when I made that change, and that I pondered the decision carefully at > that time. And my decision was that the change should be made. As far > as I'm concerned, this ship has sailed already, sorry. Sorry, what is the perceived risk of reverting this change? Just the minor inconsistency between the dmidecode and sysfs output? As stated above, the RFC requires conforming parsers to handle upper case as well. -- Bye, Peter Korsgaard

Re: [PATCH] Revert "firmware: dmi_scan: Use lowercase letters for UUID"

2018-12-06 Thread Peter Korsgaard
LTS. > I can't see how this is related with kernel 4.19 becoming LTS. Only in the sense that that LTS kernels see wider use than non-LTS kernels (E.G. I discovered this when moving from 4.14.x to 4.19.x). > Look, you can imagine that I was perfectly aware of what I was doing > when I made that change, and that I pondered the decision carefully at > that time. And my decision was that the change should be made. As far > as I'm concerned, this ship has sailed already, sorry. Sorry, what is the perceived risk of reverting this change? Just the minor inconsistency between the dmidecode and sysfs output? As stated above, the RFC requires conforming parsers to handle upper case as well. -- Bye, Peter Korsgaard

Re: [PATCH] Revert "firmware: dmi_scan: Use lowercase letters for UUID"

2018-12-06 Thread Peter Korsgaard
>>>>> "Jean" == Jean Delvare writes: > On Wed, 2018-12-05 at 22:13 +0100, Peter Korsgaard wrote: >> This reverts commit 712ff25450bd01366301eef81c33e865d901e7b7. >> >> The output of dmi_save_uuid() is exposed to user space as >> /sys/dev

Re: [PATCH] Revert "firmware: dmi_scan: Use lowercase letters for UUID"

2018-12-06 Thread Peter Korsgaard
>>>>> "Jean" == Jean Delvare writes: > On Wed, 2018-12-05 at 22:13 +0100, Peter Korsgaard wrote: >> This reverts commit 712ff25450bd01366301eef81c33e865d901e7b7. >> >> The output of dmi_save_uuid() is exposed to user space as >> /sys/dev

Re: [PATCH] Revert "firmware: dmi_scan: Use lowercase letters for UUID"

2018-12-05 Thread Peter Korsgaard
>>>>> "Peter" == Peter Korsgaard writes: > This reverts commit 712ff25450bd01366301eef81c33e865d901e7b7. > The output of dmi_save_uuid() is exposed to user space as > /sys/devices/virtual/dmi/id/*_uuid, so this breaks backwards compatibility, > E.G. I

Re: [PATCH] Revert "firmware: dmi_scan: Use lowercase letters for UUID"

2018-12-05 Thread Peter Korsgaard
>>>>> "Peter" == Peter Korsgaard writes: > This reverts commit 712ff25450bd01366301eef81c33e865d901e7b7. > The output of dmi_save_uuid() is exposed to user space as > /sys/devices/virtual/dmi/id/*_uuid, so this breaks backwards compatibility, > E.G. I

[PATCH] Revert "firmware: dmi_scan: Use lowercase letters for UUID"

2018-12-05 Thread Peter Korsgaard
for cryptsetup luksOpen. As the change was purely cosmetical, revert it to fix such breakage. Signed-off-by: Peter Korsgaard --- drivers/firmware/dmi_scan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c index

[PATCH] Revert "firmware: dmi_scan: Use lowercase letters for UUID"

2018-12-05 Thread Peter Korsgaard
for cryptsetup luksOpen. As the change was purely cosmetical, revert it to fix such breakage. Signed-off-by: Peter Korsgaard --- drivers/firmware/dmi_scan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c index

Re: [PATCH RESEND v2 2/2] arm64: dts: meson: add libretech aml-s805x-ac board

2018-11-16 Thread Peter Korsgaard
>>>>> "Jerome" == Jerome Brunet writes: > From: Neil Armstrong > Add Libretech aml-s805x-ac board (aka 'La Frite') support > Signed-off-by: Neil Armstrong > Signed-off-by: Jerome Brunet Reviewed-by: Peter Korsgaard -- Bye, Peter Korsgaard

Re: [PATCH RESEND v2 2/2] arm64: dts: meson: add libretech aml-s805x-ac board

2018-11-16 Thread Peter Korsgaard
>>>>> "Jerome" == Jerome Brunet writes: > From: Neil Armstrong > Add Libretech aml-s805x-ac board (aka 'La Frite') support > Signed-off-by: Neil Armstrong > Signed-off-by: Jerome Brunet Reviewed-by: Peter Korsgaard -- Bye, Peter Korsgaard

Re: [PATCH v2 2/2] arm64: dts: meson: add libretech aml-s805x-ac board

2018-11-16 Thread Peter Korsgaard
* This is controlled by GPIOAO_9 we reserve this but > + * claiming it as done bellow reset the board anyway The 'bellow' typo is still here? -- Bye, Peter Korsgaard

Re: [PATCH v2 2/2] arm64: dts: meson: add libretech aml-s805x-ac board

2018-11-16 Thread Peter Korsgaard
* This is controlled by GPIOAO_9 we reserve this but > + * claiming it as done bellow reset the board anyway The 'bellow' typo is still here? -- Bye, Peter Korsgaard

Re: [PATCH RESEND 2/2] arm64: dts: meson: add libretech aml-s805x-ac board

2018-11-14 Thread Peter Korsgaard
* claiming it as done bellow reset the board anyway s/bellow/below/ > + { > +status = "okay"; > +pinctrl-0 = <_pins>; > +pinctrl-names = "default"; > + > +w25q32: spi-flash@0 { > +#address-cells = <1>; > +#size-cells = <1>; > +compatible = "jedec,spi-nor"; > +reg = <0>; > +spi-max-frequency = <300>; Is this 3MHz a limitation of the flash, board layout or SPI controller? -- Bye, Peter Korsgaard

Re: [PATCH RESEND 2/2] arm64: dts: meson: add libretech aml-s805x-ac board

2018-11-14 Thread Peter Korsgaard
* claiming it as done bellow reset the board anyway s/bellow/below/ > + { > +status = "okay"; > +pinctrl-0 = <_pins>; > +pinctrl-names = "default"; > + > +w25q32: spi-flash@0 { > +#address-cells = <1>; > +#size-cells = <1>; > +compatible = "jedec,spi-nor"; > +reg = <0>; > +spi-max-frequency = <300>; Is this 3MHz a limitation of the flash, board layout or SPI controller? -- Bye, Peter Korsgaard

[RESEND PATCH v2] ttyprintk: make the printk log level configurable

2018-11-06 Thread Peter Korsgaard
For some use cases it is handy to use a different printk log level than the default (info) for the messages written to ttyprintk, so add a Kconfig option similar to what we have for default console loglevel. Signed-off-by: Peter Korsgaard --- Changes since v1: - Leave [U] prefix in printk

[RESEND PATCH v2] ttyprintk: make the printk log level configurable

2018-11-06 Thread Peter Korsgaard
For some use cases it is handy to use a different printk log level than the default (info) for the messages written to ttyprintk, so add a Kconfig option similar to what we have for default console loglevel. Signed-off-by: Peter Korsgaard --- Changes since v1: - Leave [U] prefix in printk

Re: [PATCH 3/3] i2c:ocores: add polling interface

2018-10-29 Thread Peter Korsgaard
in > atomic context where we can't sleep at all. Great! BTW I noticed that your sleep_min calculation looked odd: int sleep_min = (8/i2c->bus_clock_khz) * 1000; /* us for 8bits bus_clock_khz almost certainly will be bigger than 8 (E.G. likely 100KHz), so the above set sleep_min to 0. Please move the * 1000 before the division. -- Bye, Peter Korsgaard

Re: [PATCH 3/3] i2c:ocores: add polling interface

2018-10-29 Thread Peter Korsgaard
in > atomic context where we can't sleep at all. Great! BTW I noticed that your sleep_min calculation looked odd: int sleep_min = (8/i2c->bus_clock_khz) * 1000; /* us for 8bits bus_clock_khz almost certainly will be bigger than 8 (E.G. likely 100KHz), so the above set sleep_min to 0. Please move the * 1000 before the division. -- Bye, Peter Korsgaard

Re: [PATCH 1/3] i2c:ocores: stop transfer on timeout

2018-10-26 Thread Peter Korsgaard
>>>>> "Federico" == Federico Vaga writes: Hi, > I had another look at the HDL code and apparently my assumption was wrong, > and > STOP just do stop, and IACK is still necessary. > So, yes, without try is better because we save an extra, useless,

Re: [PATCH 1/3] i2c:ocores: stop transfer on timeout

2018-10-26 Thread Peter Korsgaard
>>>>> "Federico" == Federico Vaga writes: Hi, > I had another look at the HDL code and apparently my assumption was wrong, > and > STOP just do stop, and IACK is still necessary. > So, yes, without try is better because we save an extra, useless,

Re: [PATCH 3/3] i2c:ocores: add polling interface

2018-10-26 Thread Peter Korsgaard
the hardware is alive and what we read from > oc_getreg() is correct. With this assumption, when there is a timeout this > will happen: > 1. STOP command (previous patch) > 2. both TIP and BUSY will become zero at some point and we get out from the > loop > I can see now that there are cases when it may loop forever: for example if > the device is broken and it does answer always with 0x: we should not > break the host as well :) > I can fix this. Thanks! -- Bye, Peter Korsgaard

Re: [PATCH 3/3] i2c:ocores: add polling interface

2018-10-26 Thread Peter Korsgaard
the hardware is alive and what we read from > oc_getreg() is correct. With this assumption, when there is a timeout this > will happen: > 1. STOP command (previous patch) > 2. both TIP and BUSY will become zero at some point and we get out from the > loop > I can see now that there are cases when it may loop forever: for example if > the device is broken and it does answer always with 0x: we should not > break the host as well :) > I can fix this. Thanks! -- Bye, Peter Korsgaard

[RESEND PATCH v2] ttyprintk: make the printk log level configurable

2018-10-25 Thread Peter Korsgaard
For some use cases it is handy to use a different printk log level than the default (info) for the messages written to ttyprintk, so add a Kconfig option similar to what we have for default console loglevel. Signed-off-by: Peter Korsgaard --- Changes since v1: - Leave [U] prefix in printk

[RESEND PATCH v2] ttyprintk: make the printk log level configurable

2018-10-25 Thread Peter Korsgaard
For some use cases it is handy to use a different printk log level than the default (info) for the messages written to ttyprintk, so add a Kconfig option similar to what we have for default console loglevel. Signed-off-by: Peter Korsgaard --- Changes since v1: - Leave [U] prefix in printk

Re: [PATCH 3/3] i2c:ocores: add polling interface

2018-10-21 Thread Peter Korsgaard
); > + oc_setreg(i2c, OCI2C_CONTROL, ctrl); This looks unrelated to $SUBJECT > > prescale = (i2c->ip_clock_khz / (5 * i2c->bus_clock_khz)) - 1; > prescale = clamp(prescale, 0, 0x); > @@ -277,12 +332,16 @@ static int ocores_init(struct device *dev, struct > ocores_i2c *i2c) > return -EINVAL; > } > > + Here as well. > @@ -538,6 +600,8 @@ static int ocores_i2c_remove(struct platform_device *pdev) > { > struct ocores_i2c *i2c = platform_get_drvdata(pdev); > > + flush_scheduled_work(); > + Why not cancel_work_sync(>xfer_work)? -- Bye, Peter Korsgaard

Re: [PATCH 3/3] i2c:ocores: add polling interface

2018-10-21 Thread Peter Korsgaard
); > + oc_setreg(i2c, OCI2C_CONTROL, ctrl); This looks unrelated to $SUBJECT > > prescale = (i2c->ip_clock_khz / (5 * i2c->bus_clock_khz)) - 1; > prescale = clamp(prescale, 0, 0x); > @@ -277,12 +332,16 @@ static int ocores_init(struct device *dev, struct > ocores_i2c *i2c) > return -EINVAL; > } > > + Here as well. > @@ -538,6 +600,8 @@ static int ocores_i2c_remove(struct platform_device *pdev) > { > struct ocores_i2c *i2c = platform_get_drvdata(pdev); > > + flush_scheduled_work(); > + Why not cancel_work_sync(>xfer_work)? -- Bye, Peter Korsgaard

Re: [PATCH 2/3] i2c:ocores: do not handle IRQ if IF is not set

2018-10-21 Thread Peter Korsgaard
function > expects it to be read by the caller. > > Signed-off-by: Federico Vaga Looks good. Acked-by: Peter Korsgaard -- Bye, Peter Korsgaard

Re: [PATCH 2/3] i2c:ocores: do not handle IRQ if IF is not set

2018-10-21 Thread Peter Korsgaard
function > expects it to be read by the caller. > > Signed-off-by: Federico Vaga Looks good. Acked-by: Peter Korsgaard -- Bye, Peter Korsgaard

Re: [PATCH 1/3] i2c:ocores: stop transfer on timeout

2018-10-21 Thread Peter Korsgaard
l don't quite understand this trylock logic. If we end up here with the lock taken, then that must mean that we are on SMP system. We still need to ack the interrupt, so just spinning until the other CPU releases the lock seems more sensible? -- Bye, Peter Korsgaard

Re: [PATCH 1/3] i2c:ocores: stop transfer on timeout

2018-10-21 Thread Peter Korsgaard
l don't quite understand this trylock logic. If we end up here with the lock taken, then that must mean that we are on SMP system. We still need to ack the interrupt, so just spinning until the other CPU releases the lock seems more sensible? -- Bye, Peter Korsgaard

[RESEND PATCH v2] ttyprintk: make the printk log level configurable

2018-10-10 Thread Peter Korsgaard
For some use cases it is handy to use a different printk log level than the default (info) for the messages written to ttyprintk, so add a Kconfig option similar to what we have for default console loglevel. Signed-off-by: Peter Korsgaard --- Changes since v1: - Leave [U] prefix in printk

[RESEND PATCH v2] ttyprintk: make the printk log level configurable

2018-10-10 Thread Peter Korsgaard
For some use cases it is handy to use a different printk log level than the default (info) for the messages written to ttyprintk, so add a Kconfig option similar to what we have for default console loglevel. Signed-off-by: Peter Korsgaard --- Changes since v1: - Leave [U] prefix in printk

Re: i2c:ocores: fixes and polling mechanism

2018-09-18 Thread Peter Korsgaard
>>>>> "Wolfram" == Wolfram Sang writes: >> Thanks! I'll take a look at the patches now. > Ping :) I'm terribly sorry. I didn't manage to review before leaving on travel. I'm back next week and then I'll review, OK? -- Bye, Peter Korsgaard

Re: i2c:ocores: fixes and polling mechanism

2018-09-18 Thread Peter Korsgaard
>>>>> "Wolfram" == Wolfram Sang writes: >> Thanks! I'll take a look at the patches now. > Ping :) I'm terribly sorry. I didn't manage to review before leaving on travel. I'm back next week and then I'll review, OK? -- Bye, Peter Korsgaard

Re: [PATCH v2] ttyprintk: make the printk log level configurable

2018-09-17 Thread Peter Korsgaard
On Fri, Sep 7, 2018 at 10:18 AM Peter Korsgaard wrote: > > For some use cases it is handy to use a different printk log level than the > default (info) for the messages written to ttyprintk, so add a Kconfig > option similar to what we have for default console loglevel. > > Si

Re: [PATCH v2] ttyprintk: make the printk log level configurable

2018-09-17 Thread Peter Korsgaard
On Fri, Sep 7, 2018 at 10:18 AM Peter Korsgaard wrote: > > For some use cases it is handy to use a different printk log level than the > default (info) for the messages written to ttyprintk, so add a Kconfig > option similar to what we have for default console loglevel. > > Si

[PATCH v2] ttyprintk: make the printk log level configurable

2018-09-07 Thread Peter Korsgaard
For some use cases it is handy to use a different printk log level than the default (info) for the messages written to ttyprintk, so add a Kconfig option similar to what we have for default console loglevel. Signed-off-by: Peter Korsgaard --- Changes since v1: - Leave [U] prefix in printk

[PATCH v2] ttyprintk: make the printk log level configurable

2018-09-07 Thread Peter Korsgaard
For some use cases it is handy to use a different printk log level than the default (info) for the messages written to ttyprintk, so add a Kconfig option similar to what we have for default console loglevel. Signed-off-by: Peter Korsgaard --- Changes since v1: - Leave [U] prefix in printk

Re: [PATCH] ttyprintk: make the printk log level configurable

2018-09-07 Thread Peter Korsgaard
>>>>> "Joe" == Joe Perches writes: > On Fri, 2018-09-07 at 09:50 +0200, Peter Korsgaard wrote: >> On Tue, Aug 21, 2018 at 7:28 PM Peter Korsgaard wrote: >> > >> > For some use cases it is handy to use a different printk log level t

Re: [PATCH] ttyprintk: make the printk log level configurable

2018-09-07 Thread Peter Korsgaard
>>>>> "Joe" == Joe Perches writes: > On Fri, 2018-09-07 at 09:50 +0200, Peter Korsgaard wrote: >> On Tue, Aug 21, 2018 at 7:28 PM Peter Korsgaard wrote: >> > >> > For some use cases it is handy to use a different printk log level t

Re: [PATCH] ttyprintk: make the printk log level configurable

2018-09-07 Thread Peter Korsgaard
On Tue, Aug 21, 2018 at 7:28 PM Peter Korsgaard wrote: > > For some use cases it is handy to use a different printk log level than the > default (info) for the messages written to ttyprintk, so add a Kconfig > option similar to what we have for default console loglevel. Ping? Feedba

Re: [PATCH] ttyprintk: make the printk log level configurable

2018-09-07 Thread Peter Korsgaard
On Tue, Aug 21, 2018 at 7:28 PM Peter Korsgaard wrote: > > For some use cases it is handy to use a different printk log level than the > default (info) for the messages written to ttyprintk, so add a Kconfig > option similar to what we have for default console loglevel. Ping? Feedba

Re: i2c:ocores: fixes and polling mechanism

2018-08-22 Thread Peter Korsgaard
it or not. > Adding Peter to CC using his latest EMail address. Thanks! I'll take a look at the patches now. > Peter, you said you wanted to update MAINTAINERs with the new address? Sorry, I forgot about it when I left on holidays. Will send now. -- Bye, Peter Korsgaard

Re: i2c:ocores: fixes and polling mechanism

2018-08-22 Thread Peter Korsgaard
it or not. > Adding Peter to CC using his latest EMail address. Thanks! I'll take a look at the patches now. > Peter, you said you wanted to update MAINTAINERs with the new address? Sorry, I forgot about it when I left on holidays. Will send now. -- Bye, Peter Korsgaard

[PATCH] ttyprintk: make the printk log level configurable

2018-08-21 Thread Peter Korsgaard
For some use cases it is handy to use a different printk log level than the default (info) for the messages written to ttyprintk, so add a Kconfig option similar to what we have for default console loglevel. Signed-off-by: Peter Korsgaard --- drivers/char/Kconfig | 8 drivers/char

[PATCH] ttyprintk: make the printk log level configurable

2018-08-21 Thread Peter Korsgaard
For some use cases it is handy to use a different printk log level than the default (info) for the messages written to ttyprintk, so add a Kconfig option similar to what we have for default console loglevel. Signed-off-by: Peter Korsgaard --- drivers/char/Kconfig | 8 drivers/char

Re: [PATCH V2] i2c: ocores: update HDL sources URL

2018-06-22 Thread Peter Korsgaard
t, thanks! > @Peter: since the patch is trivial and nice to have in 4.17 already, I > took the liberty to apply it right away. Hope this is fine with you. Sorry for the slow response - Yes it is indeed. -- Bye, Peter Korsgaard

Re: [PATCH V2] i2c: ocores: update HDL sources URL

2018-06-22 Thread Peter Korsgaard
t, thanks! > @Peter: since the patch is trivial and nice to have in 4.17 already, I > took the liberty to apply it right away. Hope this is fine with you. Sorry for the slow response - Yes it is indeed. -- Bye, Peter Korsgaard

Re: [PATCH 2/7] i2c: i2c-mux-gpio: move header to platform_data

2018-04-19 Thread Peter Korsgaard
>>>>> "WS" == Wolfram Sang <w...@the-dreams.de> writes: WS> This header only contains platform_data. Move it to the proper directory. WS> Signed-off-by: Wolfram Sang <w...@the-dreams.de> Thanks, Acked-by: Peter Korsgaard <peter.korsga...@ba

Re: [PATCH 2/7] i2c: i2c-mux-gpio: move header to platform_data

2018-04-19 Thread Peter Korsgaard
>>>>> "WS" == Wolfram Sang writes: WS> This header only contains platform_data. Move it to the proper directory. WS> Signed-off-by: Wolfram Sang Thanks, Acked-by: Peter Korsgaard -- Bye, Peter Korsgaard This message is subject to the following terms and co

Re: [linux-sunxi] [PATCH 03/21] net-next: stmmac: add optional setup function

2017-02-16 Thread Peter Korsgaard
>>>>> "Corentin" == Corentin Labbe <clabbe.montj...@gmail.com> writes: > Instead of ading more ifthen login for adding a new mac_device_info s/login/logic/ -- Bye, Peter Korsgaard

Re: [linux-sunxi] [PATCH 03/21] net-next: stmmac: add optional setup function

2017-02-16 Thread Peter Korsgaard
>>>>> "Corentin" == Corentin Labbe writes: > Instead of ading more ifthen login for adding a new mac_device_info s/login/logic/ -- Bye, Peter Korsgaard

Re: [PATCH 0/2] ARM: v7-A !MMU fixes for fun ()

2016-12-12 Thread Peter Korsgaard
reach till prompt for want of user space executables >> >> So far i have not come across a toolchain (or a way to create toolchain) >> to create !MMU user space executables for Cortex-A. > Now able to reach prompt using buildroot initramfs, Thanks to > Peter Korsgaard for sug

Re: [PATCH 0/2] ARM: v7-A !MMU fixes for fun ()

2016-12-12 Thread Peter Korsgaard
ace executables >> >> So far i have not come across a toolchain (or a way to create toolchain) >> to create !MMU user space executables for Cortex-A. > Now able to reach prompt using buildroot initramfs, Thanks to > Peter Korsgaard for suggesting the way to create

Re: [linux-sunxi] [PATCH v2 4/9] drm/sun4i: Add a DRC driver

2016-09-06 Thread Peter Korsgaard
ne to carry the video signal all the way. > Add a minimal driver for it that just claim the needed resources for the > pipeline to operate properly. > Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Acked-by: Peter Korsgaard <pe...@korsgaard.com> -- Bye, Peter Korsgaard

Re: [linux-sunxi] [PATCH v2 4/9] drm/sun4i: Add a DRC driver

2016-09-06 Thread Peter Korsgaard
the way. > Add a minimal driver for it that just claim the needed resources for the > pipeline to operate properly. > Signed-off-by: Maxime Ripard Acked-by: Peter Korsgaard -- Bye, Peter Korsgaard

Re: [linux-sunxi] [PATCH 3/7] drm/sun4i: Add SAT and DRC drivers

2016-09-04 Thread Peter Korsgaard
g.com/article/2010/04/content-adaptive-lcd-backlight-control You spell out what DRC and SAT stands for in the driver source code, perhaps it also makes sense to do it here? Perhaps rewording it to something like this is clearer: .. allows to dynamically adjust pixel brightness/contrast based on histogram measurements for LCD content adaptive backlight control. -- Bye, Peter Korsgaard

Re: [linux-sunxi] [PATCH 3/7] drm/sun4i: Add SAT and DRC drivers

2016-09-04 Thread Peter Korsgaard
DRC and SAT stands for in the driver source code, perhaps it also makes sense to do it here? Perhaps rewording it to something like this is clearer: .. allows to dynamically adjust pixel brightness/contrast based on histogram measurements for LCD content adaptive backlight control. -- Bye, Peter Korsgaard

Re: [PATCH] i2c: don't print error when adding adapter fails

2016-08-09 Thread Peter Korsgaard
>>>>> "Wolfram" == Wolfram Sang <wsa-...@sang-engineering.com> writes: > The core will do this for us now. > Signed-off-by: Wolfram Sang <wsa-...@sang-engineering.com> > --- > drivers/i2c/busses/i2c-ocores.c | 4 +--- For i2c-ocores.c

Re: [PATCH] i2c: don't print error when adding adapter fails

2016-08-09 Thread Peter Korsgaard
>>>>> "Wolfram" == Wolfram Sang writes: > The core will do this for us now. > Signed-off-by: Wolfram Sang > --- > drivers/i2c/busses/i2c-ocores.c | 4 +--- For i2c-ocores.c: Acked-by: Peter Korsgaard -- Bye, Peter Korsgaard

Re: [PATCH] i2c: ocores: add missed clk_disable_unprepare() on failure paths

2016-08-04 Thread Peter Korsgaard
<khoroshi...@ispras.ru> Acked-by: Peter Korsgaard <pe...@korsgaard.com> -- Bye, Peter Korsgaard

Re: [PATCH] i2c: ocores: add missed clk_disable_unprepare() on failure paths

2016-08-04 Thread Peter Korsgaard
>>>>> "Alexey" == Alexey Khoroshilov writes: > clk_disable_unprepare() is missed on failure paths in ocores_i2c_probe(). > Found by Linux Driver Verification project (linuxtesting.org). > Signed-off-by: Alexey Khoroshilov Acked-by: Peter Korsgaard -- Bye, Peter Korsgaard

Re: [PATCH 1/3] dm9601: enable EP3 interrupt

2016-03-10 Thread Peter Korsgaard
8-bytes data to host per interrupt-interval */ > +dm_write_reg(dev, DM_USB_CTRL, USB_CTRL_EP3ACK); Why would we want to do that instead of the current setup that afaik only returns data when the link status changes? -- Bye, Peter Korsgaard

Re: [PATCH 1/3] dm9601: enable EP3 interrupt

2016-03-10 Thread Peter Korsgaard
l */ > +dm_write_reg(dev, DM_USB_CTRL, USB_CTRL_EP3ACK); Why would we want to do that instead of the current setup that afaik only returns data when the link status changes? -- Bye, Peter Korsgaard

Re: [PATCH 2/3] dm9601: manage eeprom to assure the chip for correct operation

2016-03-10 Thread Peter Korsgaard
do this automatically without an explicit action from the user. How common are these adapters without valid eeprom? What happens if the eeprom content isn't fixed? Do we need to reset the device once the eeprom is updated? -- Bye, Peter Korsgaard

Re: [PATCH 2/3] dm9601: manage eeprom to assure the chip for correct operation

2016-03-10 Thread Peter Korsgaard
How common are these adapters without valid eeprom? What happens if the eeprom content isn't fixed? Do we need to reset the device once the eeprom is updated? -- Bye, Peter Korsgaard

Re: [linux-sunxi] [PATCH 1/4] gpio: Add AXP209 GPIO driver

2016-03-09 Thread Peter Korsgaard
regmap = axp20x->regmap; This could just use dev_get_regmap(pdev.dev->parent, NULL) instead of fiddling in the parent driver data. > + > +ret = gpiochip_add(>chip); > +if (ret) { > + dev_err(>dev, "Failed to register GPIO chip\n"); > +return ret; > +} > + > +dev_info(>dev, "AXP209 GPIO driver loaded\n"); Any reason to be so noisy? -- Bye, Peter Korsgaard

Re: [linux-sunxi] [PATCH 1/4] gpio: Add AXP209 GPIO driver

2016-03-09 Thread Peter Korsgaard
d just use dev_get_regmap(pdev.dev->parent, NULL) instead of fiddling in the parent driver data. > + > +ret = gpiochip_add(>chip); > +if (ret) { > + dev_err(>dev, "Failed to register GPIO chip\n"); > +return ret; > +} > + > +dev_info(>dev, "AXP209 GPIO driver loaded\n"); Any reason to be so noisy? -- Bye, Peter Korsgaard

Re: [PATCH 1/1] dm9601: enable EP3 interrupt and enhance eeprom functions

2016-03-09 Thread Peter Korsgaard
d function dm9601_set_eeprom which tested good with ethtool > utility. Thanks for the patch. This sounds like 3 seperate changes, could you please restructure it as 3 patches each doing one of the changes? -- Bye, Peter Korsgaard

Re: [PATCH 1/1] dm9601: enable EP3 interrupt and enhance eeprom functions

2016-03-09 Thread Peter Korsgaard
hich tested good with ethtool > utility. Thanks for the patch. This sounds like 3 seperate changes, could you please restructure it as 3 patches each doing one of the changes? -- Bye, Peter Korsgaard

Re: [PATCH v4 1/2] regulator: act8945a: add regulator driver for ACT8945A

2016-02-02 Thread Peter Korsgaard
le will do nothing. To add to the confusion, the regulator part of the chip is actually identical to act8865, so it could use the existing regulator driver / compatible, except that it binds to the platform bus instead of i2c. -- Bye, Peter Korsgaard

Re: [PATCH v4 1/2] regulator: act8945a: add regulator driver for ACT8945A

2016-02-02 Thread Peter Korsgaard
tely to that MFD) an OF table will do nothing. To add to the confusion, the regulator part of the chip is actually identical to act8865, so it could use the existing regulator driver / compatible, except that it binds to the platform bus instead of i2c. -- Bye, Peter Korsgaard

Re: [PATCH v8 1/2] mfd: act8945a: add Active-semi ACT8945A PMIC MFD driver

2016-01-27 Thread Peter Korsgaard
With that removed (and the logic to devm_kzalloc it) you can add my: Acked-by: Peter Korsgaard > +static const struct mfd_cell act8945a_devs[] = { > +{ > +.name = "act8945a-regulator", > +.of_compatible = "active-

Re: [PATCH v8 1/2] mfd: act8945a: add Active-semi ACT8945A PMIC MFD driver

2016-01-27 Thread Peter Korsgaard
gt; +struct regmap *regmap; > +}; You don't need this structure as you used devm. With that removed (and the logic to devm_kzalloc it) you can add my: Acked-by: Peter Korsgaard <pe...@korsgaard.com> > +static const struct mfd_cell act8945a_devs[] = { > +{ > +

Re: [PATCH v6 1/2] power: act8945a: add charger driver for ACT8945A

2016-01-20 Thread Peter Korsgaard
break; > +case 80: > +value |= APCH_CFG_PRETIMO_80_MIN; > +break; > +case 0: > +value |= APCH_CFG_PRETIMO_DISABLED; > +break; > +case 40: > +default: > +value |= APCH_CFG_PRETIMO_40_MIN; > +break; > +} > + > +switch (charger->tolal_time_out) { > +case 4: > +value |= APCH_CFG_TOTTIMO_4_HOUR; > +break; > +case 5: > +value |= APCH_CFG_TOTTIMO_5_HOUR; > +break; > +case 0: > +value |= APCH_CFG_TOTTIMO_DISABLED; > +break; > +case 3: > +default: > +value |= APCH_CFG_TOTTIMO_3_HOUR; > +break; > +} > + > +return regmap_write(regmap, ACT8945A_APCH_CFG, value); > +} > + > +static int act8945a_charger_probe(struct platform_device *pdev) > +{ > +struct act8945a_dev *act8945a_dev = dev_get_drvdata(pdev->dev.parent); > +struct act8945a_charger *charger; > +struct power_supply_config psy_cfg = {}; > +int ret; > + > +charger = devm_kzalloc(>dev, sizeof(*charger), GFP_KERNEL); > +if (!charger) > +return -ENOMEM; > + > +platform_set_drvdata(pdev, charger); Never used, so you can drop this. > + > +charger->act8945a_dev = act8945a_dev; Once again, why can't you just do something like: charger->regmap = dev_get_regmap(pdev->dev.parent); And drop this act8945_dev structure? -- Bye, Peter Korsgaard

Re: [PATCH v6 1/2] power: act8945a: add charger driver for ACT8945A

2016-01-20 Thread Peter Korsgaard
+case 40: > +default: > +value |= APCH_CFG_PRETIMO_40_MIN; > +break; > +} > + > +switch (charger->tolal_time_out) { > +case 4: > +value |= APCH_CFG_TOTTIMO_4_HOUR; > +break; > +case 5: > +value |= APCH_CFG_TOTTIMO_5_HOUR; > +break; > +case 0: > +value |= APCH_CFG_TOTTIMO_DISABLED; > +break; > +case 3: > +default: > +value |= APCH_CFG_TOTTIMO_3_HOUR; > +break; > +} > + > +return regmap_write(regmap, ACT8945A_APCH_CFG, value); > +} > + > +static int act8945a_charger_probe(struct platform_device *pdev) > +{ > +struct act8945a_dev *act8945a_dev = dev_get_drvdata(pdev->dev.parent); > +struct act8945a_charger *charger; > +struct power_supply_config psy_cfg = {}; > +int ret; > + > +charger = devm_kzalloc(>dev, sizeof(*charger), GFP_KERNEL); > +if (!charger) > +return -ENOMEM; > + > +platform_set_drvdata(pdev, charger); Never used, so you can drop this. > + > +charger->act8945a_dev = act8945a_dev; Once again, why can't you just do something like: charger->regmap = dev_get_regmap(pdev->dev.parent); And drop this act8945_dev structure? -- Bye, Peter Korsgaard

Re: [linux-sunxi] Re: [PATCH 0/6] ARM: sunxi: Introduce Allwinner H3 support

2015-10-27 Thread Peter Korsgaard
ation isn't critical to get something running. -- Bye, Peter Korsgaard -- 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: [linux-sunxi] Re: [PATCH 0/6] ARM: sunxi: Introduce Allwinner H3 support

2015-10-27 Thread Peter Korsgaard
, so it sounds like i2c configuration isn't critical to get something running. -- Bye, Peter Korsgaard -- 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: [RESEND PATCH 0/9] eeprom: at24: at24cs series serial number read

2015-10-21 Thread Peter Korsgaard
ad. It needs to be fixed as >> > both memory blocks share the same address pointer. >> >> > I'll resend the series. >> >> But we're protected by the i2c bus lock, right? You do a single >> i2c_transfer to read the serial number. > Why the at24->

Re: [RESEND PATCH 0/9] eeprom: at24: at24cs series serial number read

2015-10-21 Thread Peter Korsgaard
mory blocks share the same address pointer. > I'll resend the series. But we're protected by the i2c bus lock, right? You do a single i2c_transfer to read the serial number. -- Venlig hilsen, Peter Korsgaard -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: [RESEND PATCH 0/9] eeprom: at24: at24cs series serial number read

2015-10-21 Thread Peter Korsgaard
> pointers). As the serial number is available on a separate i2c address, wouldn't it be simpler to handle these as special (read only) device variants and instantiate E.G. a 24c64 (for the normal data) and a 24cs64 (for the serial)? -- Bye, Peter Korsgaard -- To unsubscribe from this list:

Re: [RESEND PATCH 0/9] eeprom: at24: at24cs series serial number read

2015-10-21 Thread Peter Korsgaard
in the serial read function - my bad. It needs to be fixed as >> > both memory blocks share the same address pointer. >> >> > I'll resend the series. >> >> But we're protected by the i2c bus lock, right? You do a single >> i2c_transfer to re

Re: [RESEND PATCH 0/9] eeprom: at24: at24cs series serial number read

2015-10-21 Thread Peter Korsgaard
needs to be fixed as > both memory blocks share the same address pointer. > I'll resend the series. But we're protected by the i2c bus lock, right? You do a single i2c_transfer to read the serial number. -- Venlig hilsen, Peter Korsgaard -- To unsubscribe from this list: send the line "

Re: [RESEND PATCH 0/9] eeprom: at24: at24cs series serial number read

2015-10-21 Thread Peter Korsgaard
24cs02 chips (for both 16 and 8 bit address > pointers). As the serial number is available on a separate i2c address, wouldn't it be simpler to handle these as special (read only) device variants and instantiate E.G. a 24c64 (for the normal data) and a 24cs64 (for the serial)? -- Bye, Peter Korsgaard --

Re: [alsa-devel] [PATCH] ASoC: atmel-classd: fix odd_ptr_err.cocci warnings

2015-09-28 Thread Peter Korsgaard
t; +ret = PTR_ERR(dd->aclk); It looks like it is the other way around. It should test IS_ERR(dd->gclk) instead. -- Bye, Peter Korsgaard -- 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: [alsa-devel] [PATCH] ASoC: atmel-classd: fix odd_ptr_err.cocci warnings

2015-09-28 Thread Peter Korsgaard
if (IS_ERR(dd->aclk)) { > -ret = PTR_ERR(dd->gclk); > +ret = PTR_ERR(dd->aclk); It looks like it is the other way around. It should test IS_ERR(dd->gclk) instead. -- Bye, Peter Korsgaard -- To unsubscribe from this list: send the line "unsubscri

Re: [PATCH v2] i2c-ocores: support big-endian register layout

2015-09-24 Thread Peter Korsgaard
documented > in the Documentation/devicetree/bindings/common-properties.txt Ok, then it looks good to me. -- Bye, Peter Korsgaard -- 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 htt

Re: [PATCH v2] i2c-ocores: support big-endian register layout

2015-09-24 Thread Peter Korsgaard
> Changes v1->v2: > - expand changelog with motivation for the change. You should also document the big-endian property in Documentation/devicetree/bindings/i2c/i2c-ocores.txt, otherwise it looks good. With that added: Acked-by: Peter Korsgaard -- Bye, Peter Korsgaard -- To unsubscribe from t

Re: [PATCH v2] i2c-ocores: support big-endian register layout

2015-09-24 Thread Peter Korsgaard
and 'native-endian' are common properties documented > in the Documentation/devicetree/bindings/common-properties.txt Ok, then it looks good to me. -- Bye, Peter Korsgaard -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org M

  1   2   3   >