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
("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
re currently doesn't exist any other 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-26 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 the datashe

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

2020-08-26 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
4.19 has only recently become >> 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-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
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 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
we reserve this but > + * claiming it as done bellow reset the board anyway s/bellow/below/ > +&spifc { > +status = "okay"; > +pinctrl-0 = <&nor_pins>; > +pinctrl-names = "default"; > + > +w25q32: spi-fla

[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
s may run 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 3/3] i2c:ocores: add polling interface

2018-10-26 Thread Peter Korsgaard
tion that 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

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

2018-10-21 Thread Peter Korsgaard
_CTRL_IEN); > + 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(&i2c->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
ction > 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
ng - But I still 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

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-16 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

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: 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

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

2018-06-21 Thread Peter Korsgaard
hanks! > @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 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 writes: > Instead of ading more ifthen login for adding a new mac_device_info s/login/logic/ -- Bye, Peter Korsgaard

linux-kernel@vger.kernel.org

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
y. > 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
ll 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: [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
>>>>> "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
terrupt-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 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
+gpio->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(&gpio->chip); > + if (ret) { > +dev_err(&pdev->dev, "Failed to register GPIO chip\n"); > +return ret; > +} > + > +dev_info(&pdev->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
t_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 v4 1/2] regulator: act8945a: add regulator driver for ACT8945A

2016-02-02 Thread Peter Korsgaard
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
devm. 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 = "ac

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

2016-01-20 Thread Peter Korsgaard
TIMO_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(&pdev->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
c 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
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 read the serial number. > Wh

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

2015-10-21 Thread Peter Korsgaard
t; 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 "unsubscrib

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

2015-10-21 Thread Peter Korsgaard
ss > 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

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: [PATCH v2] i2c-ocores: support big-endian register layout

2015-09-24 Thread Peter Korsgaard
re 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 More major

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 this

Re: [PATCH v2 3/7] hwrng: core: Simplify RNG switching from sysfs

2015-09-17 Thread Peter Korsgaard
list_for_each_entry(rng, &rng_list, list) { > -if (strcmp(rng->name, buf) == 0) { > + if (sysfs_streq(rng->name, buf)) { Looks good. Acked-by: Peter Korsgaard -- Venlig hilsen, Peter Korsgaard -- To unsubscribe from this list: send the line "unsubscr

Re: [PATCH 2/4] ARM: sun8i: Add the A33 AHB1 gates clock driver

2015-09-13 Thread Peter Korsgaard
>>>>> "Peter" == Peter Korsgaard writes: >>>>> "Maxime" == Maxime Ripard writes: >> The A33 has different a different gates array than the A23, add the node to >> the DT. > NIT: 2x different. > Shouldn't the a23 o

Re: [PATCH 2/4] ARM: sun8i: Add the A33 AHB1 gates clock driver

2015-09-13 Thread Peter Korsgaard
>>>>> "Maxime" == Maxime Ripard writes: > The A33 has different a different gates array than the A23, add the node to > the DT. NIT: 2x different. Shouldn't the a23 one then move from sun8i-a23-a33.dtsi to sun8i-a23.dtsi? -- Bye, Peter Korsgaard -- To

Re: [PATCH 2/6] hwrng: core: Simplify RNG switching from sysfs

2015-09-13 Thread Peter Korsgaard
t; err = -ENODEV; > list_for_each_entry(rng, &rng_list, list) { > -if (strcmp(rng->name, buf) == 0) { > + > +if (buf[len-1] == '\n') > +snip = 1; /* Snip one character */ > + How about using sysfs_streq() instead, whic

Re: [PATCHv7 0/2] INPUT: Route keyboard LEDs through the generic LEDs layer

2015-06-25 Thread Peter Korsgaard
>>>>> "Samuel" == Samuel Thibault writes: > Hello, > Just to give an update to people who where Cc-ed at some point in the > discussion: a version reworked by Dmitry got pulled into Linus' tree, so > it should get into 4.2! > Thanks to ever

Re: [PATCH v2] i2c: i2c-mux-gpio: remove error messages for probe deferrals

2015-04-02 Thread Peter Korsgaard
message when a driver >> requests probe deferral, so this can be traced in the logs >> without these error prints. >> >> This patch removes the error messages for these deferral cases. >> >> Signed-off-by: Ionut Nicu AS> Acked-by: Alexander Sverdlin Acked-by:

Re: [PATCH] i2c: i2c-mux-gpio: Change log level to debug for probe deferrals

2015-03-25 Thread Peter Korsgaard
d in the logs IN> without these error prints. IN> This patch changes the error messages from these deferral cases IN> to debug messages. IN> Signed-off-by: Ionut Nicu Acked-by: Peter Korsgaard -- Sorry about disclaimer - It's out of my control. Bye, Peter Korsgaard This me

Re: [PATCH 05/35 linux-next] tty: constify of_device_id array

2015-03-16 Thread Peter Korsgaard
>>>>> "Fabian" == Fabian Frederick writes: > of_device_id is always used as const. > (See driver.of_match_table and open firmware functions) > Signed-off-by: Fabian Frederick > --- For this: > drivers/tty/serial/uartlite.c | 2 +- Ac

Re: [PATCH] i2c-ocores: add common clock support

2015-01-22 Thread Peter Korsgaard
the history, the device tree patch originally used a custom "clock_khz" property until some guy told him to use clock-frequency ;) https://lists.ozlabs.org/pipermail/devicetree-discuss/2010-November/003650.html As far as I can see I wasn't CC'ed on that patch. -- Bye, Peter Korsg

Re: [PATCH] i2c-ocores: add common clock support

2015-01-22 Thread Peter Korsgaard
the value of > the clock assigned to this platform_device? > The usual thing to do when 'clock-frequency' is not set is to default to > 100kHz. The confusion comes from the fact that the device tree bindings uses clock-frequency for the clock frequency of the IP core and NOT

Re: [PATCH 7/8] gpio/mpc8xxx: Convert to platform device interface.

2015-01-20 Thread Peter Korsgaard
; otherwise continue. Indeed - Sorry, I must have been confused yesterday. -- 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-in

Re: [PATCH 8/8] gpio/mpc8xxx: Use of_mm_gpiochip_remove

2015-01-20 Thread Peter Korsgaard
option. The > original code did also continue Ahh yes, you are right. Sorry, it's been a while since I wrote that code (2008). > If you still want to abort if no irq I can of course make the change. No, it is fine. -- Bye, Peter Korsgaard -- To unsubscribe from this list: sen

Re: [PATCH 8/8] gpio/mpc8xxx: Use of_mm_gpiochip_remove

2015-01-19 Thread Peter Korsgaard
Walleij > Cc: Alexandre Courbot > Cc: Peter Korsgaard > Signed-off-by: Ricardo Ribalda Delgado > --- > drivers/gpio/gpio-mpc8xxx.c | 28 +++- > 1 file changed, 23 insertions(+), 5 deletions(-) > diff --git a/drivers/gpio/gpio-mpc8xxx.c b/

Re: [PATCH 7/8] gpio/mpc8xxx: Convert to platform device interface.

2015-01-19 Thread Peter Korsgaard
>>>>> "Ricardo" == Ricardo Ribalda Delgado writes: > This way we do not need to transverse the device tree manually. > Cc: Linus Walleij > Cc: Alexandre Courbot > Cc: Grant Likely > Cc: Rob Herring > Cc: Peter Korsgaard > Cc: device

Re: [PATCH 7/8] gpio/mpc8xxx: Convert to platform device interface.

2015-01-19 Thread Peter Korsgaard
>>>>> "Ricardo" == Ricardo Ribalda Delgado writes: > This way we do not need to transverse the device tree manually. > Cc: Linus Walleij > Cc: Alexandre Courbot > Cc: Grant Likely > Cc: Rob Herring > Cc: Peter Korsgaard > Cc: device

Re: [PATCH] i2c-ocores: add common clock support

2015-01-16 Thread Peter Korsgaard
>>>>> "Max" == Max Filippov writes: > Allow bus clock specification as a common clock handle. This makes this > controller easier to use in a setup based on common clock framework. > Signed-off-by: Max Filippov Looks sensible to me - Thanks. Acked-by

Re: [PATCH] Route keyboard LEDs through the generic LEDs layer.

2014-12-09 Thread Peter Korsgaard
iew since April 2014! Hah, I'm pretty sure it dates back to 2010 atleast. -- 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: [PATCH 4/6] hwrng: atmel: Add TRNG DT binding doc

2014-09-30 Thread Peter Korsgaard
der to wait for data as > requested by hwrng code when the wait argument is true). > Thus I prefer to keep it as required. Ok, fine by me. -- Bye, Peter Korsgaard -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.k

Re: [PATCH 4/6] hwrng: atmel: Add TRNG DT binding doc

2014-09-30 Thread Peter Korsgaard
h of the register set of this block > +- interrupts : the interrupt number for the TRNG block The interrupt isn't strictly speaking required as it isn't used by the driver, but as 9G45 has the signal wired up I guess it makes sense. Acked-by: Peter Korsgaard -- Bye, Peter Korsg

Re: [PATCH 3/6] hwrng: atmel: add DT support

2014-09-30 Thread Peter Korsgaard
>>>>> "Boris" == Boris Brezillon writes: > Add DT support. > Make the driver depend on CONFIG_OF as at91sam9g45 was the only SoC making > use of the TRNG block and this SoC is now fully migrated to DT. > Signed-off-by: Boris Brezillon Acked-by: Peter

Re: [PATCH 2/6] hwrng: atmel: use clk_prepapre_enable/_disable_unprepare

2014-09-30 Thread Peter Korsgaard
>>>>> "Boris" == Boris Brezillon writes: > Use clk_prepapre_enable/_disable_unprepare instead of clk_enable/disable > to work properly with the CCF. s/prepapre/prepare/ Other than that, looks fine to me. Acked-by: Peter Korsgaard > Signed-off-by: Boris

Re: [PATCH 2/2] tty: serial: uartlite: Remove .owner field for driver

2014-08-16 Thread Peter Korsgaard
drivers which > use the module_platform_driver API, as this is overriden in > platform_driver_register anyway." > Signed-off-by: Michal Simek It would be good with a reference to the commit adding this to platform_driver_register (9447057eaff8) - But Ok. Acked-by: Peter K

Re: [PATCH 09/16] i2c: i2c-ocores: Drop class based scanning to improve bootup time

2014-07-10 Thread Peter Korsgaard
eak after some time. > Signed-off-by: Wolfram Sang Acked-by: Peter Korsgaard -- 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: [PATCH] tty: serial: uartlite: Specify time for sending chars

2014-05-05 Thread Peter Korsgaard
gt; Just that this 1s is here because of mdm uart. Something like: /* * Spin waiting for TX fifo to have space available. * When using the Microblaze Debug Module this can take up to 1s */ -- 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: [PATCH] tty: serial: uartlite: Specify time for sending chars

2014-05-05 Thread Peter Korsgaard
= 0; i < 10; i++) { It would be good to add a note about the slow jtag variant here. Otherwise: Acked-by: Peter Korsgaard > +timeout = jiffies + msecs_to_jiffies(1000); > +while (1) { > val = uart_in32(ULITE_STATUS, port); >

Re: [PATCH 1/5] hwrng: atmel - Use devm_clk_get()

2014-02-27 Thread Peter Korsgaard
>>>>> "Jingoo" == Jingoo Han writes: > Use devm_clk_get() to make cleanup paths simpler. > Signed-off-by: Jingoo Han Acked-by: Peter Korsgaard -- Bye, Peter Korsgaard -- To unsubscribe from this list: send the line "unsubscribe linux-kernel

Re: [PATCH 1/2] hwrng: atmel - Use devm_ioremap_resource()

2014-02-11 Thread Peter Korsgaard
>>>>> "Jingoo" == Jingoo Han writes: > Use devm_ioremap_resource() in order to make the code simpler, > and remove redundant return value check of platform_get_resource() > because the value is checked by devm_ioremap_resource(). > Signed-off-by: J

Re: [PATCH 11/17] i2c: i2c-ocores: deprecate class based instantiation

2014-02-10 Thread Peter Korsgaard
>>>>> "Wolfram" == Wolfram Sang writes: > Warn users that class based instantiation is going away soon in favour > of more robust probing and faster bootup times. > Signed-off-by: Wolfram Sang > Cc: Peter Korsgaard > --- > This patch is a su

Re: [PATCH] Make the mtdblock read/write skip the bad nand sector

2013-11-25 Thread Peter Korsgaard
ashfs/cramfs/readonly ext2/.. on a NOR flash? -- 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: [PATCH 1/2] i2c-mux-gpio: use gpio_set_value_cansleep()

2013-10-11 Thread Peter Korsgaard
ta.n_gpios; i++) IN> - gpio_set_value(mux->gpio_base + mux->data.gpios[i], IN> - val & (1 << i)); IN> + gpio_set_value_cansleep(mux->gpio_base + mux->data.gpios[i], IN> + val & (1 << i

Re: [PATCH 1/2] i2c-mux-gpio: use deferred probing

2013-10-09 Thread Peter Korsgaard
>>>>> "IN" == Ionut Nicu writes: IN> If the i2c-parent bus driver is not loaded, returning IN> -ENODEV will force people to unload and then reload the IN> module again to get it working. IN> Signed-off-by: Ionut Nicu Acked-by: Peter Korsgaard -- So

Re: [PATCH 1/2] i2c-mux-gpio: use deferred probing with the device tree

2013-10-08 Thread Peter Korsgaard
>> >> Signed-off-by: Ionut Nicu WS> Doesn't the non-DT case need fixing, too? Arguably yes. -- Bye, Peter Korsgaard This message is subject to the following terms and conditions: MAIL DISCLAIMER<http://www.barco.com/en/maildisclaimer> -- To unsubscribe from this li

Re: [PATCH 2/2] i2c-mux-gpio: don't ignore of_get_named_gpio errors

2013-10-08 Thread Peter Korsgaard
>>>>> "IN" == Ionut Nicu writes: IN> of_get_named_gpio could return -E_PROBE_DEFER or another IN> error code. This error should be passed further instead IN> of being ignored. Acked-by: Peter Korsgaard -- Sorry about disclaimer - It's out of my contro

Re: [PATCH 1/2] i2c-mux-gpio: use deferred probing with the device tree

2013-10-08 Thread Peter Korsgaard
>>>>> "IN" == Ionut Nicu writes: IN> If the i2c-parent bus driver is not loaded, returning IN> -EINVAL will force people to unload and then reload the IN> module again to get it working. IN> Signed-off-by: Ionut Nicu Acked-by: Peter Korsgaard -- So

Re: [PATCH] i2c-mux-gpio: use deferred probing with the device tree

2013-10-08 Thread Peter Korsgaard
another error code. This error should be passed further IN> instead of being ignored. Two different fixes, so should be 2 separate patches. Other that that, it looks good. Acked-by: Peter Korsgaard -- Sorry about disclaimer - It's out of my control. Bye, Peter Korsgaard This message is sub

Re: [PATCH] Route kbd LEDs through the generic LEDs layer

2013-07-15 Thread Peter Korsgaard
d-off-by: Evan Broder Looks good to me. Samuel, thanks for picking this up again. Acked-by: Peter Korsgaard -- 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 in

Re: [PATCH 1/1] net: add dm9620 net usb driver

2013-07-05 Thread Peter Korsgaard
nt compare to DM9601 & DM9620. And will get the same Joseph> issue. If you can provide me with a dm9633 datasheet and a sample device then I can look into writing a driver for it / extending dm9601.c. Please contact me off list for that. Thanks! -- Bye, Peter Korsgaard -- To unsubscribe

Re: [PATCH 1/1] net: add dm9620 net usb driver

2013-06-23 Thread Peter Korsgaard
usbnet_resume, Joseph> + .disable_hub_initiated_lpm = 1, Joseph> +}; Joseph> + Joseph> +module_usb_driver(dm9620_driver); Joseph> + Joseph> +MODULE_AUTHOR("Peter Korsgaard "); I'm not the author of this file. -- Bye, Peter Korsgaard -- To unsubscribe from t

Re: [PATCH] dts: am33xx: Correct properties on gpmc node

2013-05-28 Thread Peter Korsgaard
he properties in the dts to provide the right values for the Lars> gpmc driver. Lars> Signed-off-by: Lars Poeschel Acked-by: Peter Korsgaard -- Bye, Peter Korsgaard -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord

Re: [PATCH v5 1/3] i2c: mux: Add i2c-arb-gpio-challenge 'mux' driver

2013-04-16 Thread Peter Korsgaard
master is supported"? Also there's a typo: s/use the claim/use to claim/ -- 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: Caps lock XOR on multiple keyboards?

2013-03-26 Thread Peter Korsgaard
issue for Xorg, but it'd still be a good Samuel> thing to at last apply it :) Agreed. -- 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:

Re: [PATCH v3] gpio: mcp23s08: convert driver to DT

2013-03-25 Thread Peter Korsgaard
any significant work on that driver since David.. -- 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: [PATCH 2/2] pwm: pwm-tiehrpwm: Update device-tree binding document

2013-03-25 Thread Peter Korsgaard
>>>>> "Philip" == Philip Avinash writes: Philip> Update binding document of pwm-tiehrpwm to reflect the usage of similar Philip> modules in da850 and am3xx SOCs. Acked-by: Peter Korsgaard Philip> Signed-off-by: Philip Avinash Philip> Cc: Grant Like

Re: [PATCH 1/2] pwm: pwm-tiecap: Update device-tree binding document

2013-03-25 Thread Peter Korsgaard
>>>>> "Philip" == Philip Avinash writes: Philip> Update binding document of pwm-tiecap to reflect the usage of similar Philip> modules in da850 and am3xx SOCs. Acked-by: Peter Korsgaard Philip> Signed-off-by: Philip Avinash Philip> Cc: Grant Likely

  1   2   >