[PATCH] musb: omap2430: do not assume balanced enable()/disable()

2016-07-29 Thread Andreas Kemnade
-by: Andreas Kemnade --- drivers/usb/musb/omap2430.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index aecb934..c7ae117 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c @@ -415,9 +415

Re: [Letux-kernel] [PATCH v2] musb: omap2430: do not assume balanced enable()/disable()

2016-08-04 Thread Andreas Kemnade
Hi, On Thu, 4 Aug 2016 07:29:19 -0700 Tony Lindgren wrote: > Hi, > > * H. Nikolaus Schaller [160803 10:07]: > > All this prevents detection of cable plugin-events and VBUS > > measurement and setting OTG_EN before charging is attempted. > > So I gave this patch a try but it now blocks all dee

Re: [Letux-kernel] [PATCH v2] musb: omap2430: do not assume balanced enable()/disable()

2016-08-04 Thread Andreas Kemnade
On Thu, 4 Aug 2016 18:31:29 +0200 Andreas Kemnade wrote: > Hi, > > On Thu, 4 Aug 2016 07:29:19 -0700 > Tony Lindgren wrote: > > > Hi, > > > > * H. Nikolaus Schaller [160803 10:07]: > > > All this prevents detection of cable plugin-events and VBUS &

Re: [Letux-kernel] [PATCH v2] musb: omap2430: do not assume balanced enable()/disable()

2016-08-04 Thread Andreas Kemnade
On Thu, 4 Aug 2016 16:49:30 +0200 "H. Nikolaus Schaller" wrote: > > Rationale: > > > > The charger driver calls pm_runtime_get_sync(bci->transceiver->dev); > > which should indirectly call twl4030_usb_set_mode to set the > > POWER_CTRL_OTG_ENAB bit. This enables the prescaler hardware > > for AD

Re: [Letux-kernel] [PATCH v2] musb: omap2430: do not assume balanced enable()/disable()

2016-08-05 Thread Andreas Kemnade
On Fri, 5 Aug 2016 06:55:01 -0700 Tony Lindgren wrote: > * Andreas Kemnade [160804 09:44]: > > Nothing happens here, so the previous state of the phy remains. > > It would be disabled by the generic phy layer in > > drivers/phy/phy-core.c > > > > > gadget dri

Re: [Letux-kernel] [PATCH v2] musb: omap2430: do not assume balanced enable()/disable()

2016-08-08 Thread Andreas Kemnade
On Fri, 5 Aug 2016 23:21:35 -0700 Tony Lindgren wrote: > * Andreas Kemnade [160805 08:35]: > > I repeat the subject line of the patch: > > [PATCH v2] musb: omap2430: do not assume balanced enable()/disable() > > It is *not* fix charging. > > > > So you mean t

[PATCH] phy: phy-twl4030-usb: fix denied runtime access

2018-08-27 Thread Andreas Kemnade
suspend by plugging in usb. Signed-off-by: Andreas Kemnade --- drivers/phy/ti/phy-twl4030-usb.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/phy/ti/phy-twl4030-usb.c b/drivers/phy/ti/phy-twl4030-usb.c index a44680d64f9b..1f3cf4e48383 100644 --- a/drivers/phy/ti/phy-twl4030

bloated defconfigs

2018-07-28 Thread Andreas Kemnade
Hi, I just stumbled upon our defconfigs. andi@aktux:~/gta04/gta04-kernel$ ls -l arch/arm/configs/ -Sr | tail -n 10 -rw-r--r-- 1 andi andi 9524 Apr 7 14:53 imote2_defconfig -rw-r--r-- 1 andi andi 9985 Jul 28 13:34 imx_v6_v7_defconfig -rw-r--r-- 1 andi andi 10118 Apr 7 14:53 ezx_defconfig -r

Re: bloated defconfigs

2018-07-28 Thread Andreas Kemnade
Hi, On Sat, 28 Jul 2018 16:01:41 +0300 Andy Shevchenko wrote: > On Sat, Jul 28, 2018 at 3:59 PM, Andreas Kemnade wrote: > > Hi, > > > > I just stumbled upon our defconfigs. > > > > andi@aktux:~/gta04/gta04-kernel$ ls -l arch/arm/configs/ -Sr | tail -n > &g

[PATCH] pwm: pwm-omap-dmtimer: fix probing problems by returning EPROBE_DEFER

2018-07-28 Thread Andreas Kemnade
defer probing Fixes: b7290cf6ff78 (pwm: pwm-omap-dmtimer: Adapt driver to utilize dmtimer pdata ops) Signed-off-by: Andreas Kemnade --- drivers/pwm/pwm-omap-dmtimer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pwm/pwm-omap-dmtimer.c b/drivers/pwm/pwm-omap

Re: [Letux-kernel] [PATCH 09/32] ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot

2018-07-25 Thread Andreas Kemnade
On Wed, 25 Jul 2018 10:33:05 +0200 Ladislav Michl wrote: > On Wed, Jul 25, 2018 at 10:18:28AM +0200, H. Nikolaus Schaller wrote: > > > > > Am 25.07.2018 um 10:07 schrieb Ladislav Michl : > > > > > > On Wed, Jul 25, 2018 at 08:58:41AM +0200, H. Nikolaus Schaller wrote: > > >> Vendor defined

Re: [Letux-kernel] [PATCH v5 3/5] misc serdev: Add w2sg0004 (gps receiver) power control driver

2018-01-12 Thread Andreas Kemnade
On Fri, 12 Jan 2018 15:46:47 +0100 Johan Hovold wrote: > On Tue, Jan 09, 2018 at 06:43:47PM +0100, Andreas Kemnade wrote: > > On Fri, 22 Dec 2017 13:44:27 +0100 > > Johan Hovold wrote: > > > > [...] > > > I'd suggest reiterating the problem you

[PATCH] usb: musb: fix enumeration after resume

2018-01-27 Thread Andreas Kemnade
lated stuff which needs to be enabled. Also interrupts are enabled, as it was the original idea of calling musb_start() in musb_resume() according to Commit 6fc6f4b87cb3 ("usb: musb: Disable interrupts on suspend, enable them on resume") Signed-off-by: Andreas Kemnade --- drivers/usb/musb/

Re: [Letux-kernel] [PATCH v5 3/5] misc serdev: Add w2sg0004 (gps receiver) power control driver

2018-01-09 Thread Andreas Kemnade
On Fri, 22 Dec 2017 13:44:27 +0100 Johan Hovold wrote: [...] > I'd suggest reiterating the problem you're trying to solve and > enumerating the previously discussed potential solutions in order to > find a proper abstraction level for this (before getting lost in > implementation details). > The

Re: [Letux-kernel] [Bug]: mtd: onenand: omap2plus: kernel panic with OneNAND on OMAP3 (DM3730) device GTA04A5

2018-04-10 Thread Andreas Kemnade
Hi Ladis, On Tue, 10 Apr 2018 22:56:43 +0200 Ladislav Michl wrote: > Hi Nikolaus, > > On Tue, Apr 10, 2018 at 06:25:17PM +0200, H. Nikolaus Schaller wrote: > > Hi, > > we just started testing the v4.16 kernel and found the > > device no longer bootable (works with v4.15). It turned > > out that

Re: [Letux-kernel] [PATCH v5 3/5] misc serdev: Add w2sg0004 (gps receiver) power control driver

2018-03-07 Thread Andreas Kemnade
Hi, On Thu, 18 Jan 2018 17:47:36 +1100 Johan Hovold wrote: [...] > > > > So to avoid having hardware information spread all over the table at least > > these information would need to be in devicetree. But that also all feels > > like a hack and hard to maintain. > > Having the device descri

Re: [Letux-kernel] [PATCH 0/5] gnss: sirf: add support for w2sg0004 + lna

2018-11-19 Thread Andreas Kemnade
Hi, On Mon, 19 Nov 2018 09:22:59 +0100 "H. Nikolaus Schaller" wrote: > Hi, > > > Am 18.11.2018 um 22:57 schrieb Andreas Kemnade : > > > > Here is another chapter of the story to get gta04 gnss power > > management into the mainline kernel. > > Th

Re: [PATCH v2 2/3] clk: ti: check clock type before doing autoidle ops

2018-11-29 Thread Andreas Kemnade
Hi Stephen, On Thu, 29 Nov 2018 16:25:05 -0800 Stephen Boyd wrote: > Quoting Andreas Kemnade (2018-11-10 12:31:14) > > Code might use autoidle api with clocks not being omap2 clocks, > > so check if clock type is not basic > > > > Signed-off-by: Andreas Kem

Re: [PATCH RFC 4/5] gnss: sirf: add a separate supply for a lna

2018-11-29 Thread Andreas Kemnade
Hi, On Tue, 27 Nov 2018 19:03:57 +0100 Pavel Machek wrote: > Hi! > > > Devices might have a separate lna between antenna output of the gps > > chip and the antenna which might have a separate supply > > Might have. > > > @@ -340,6 +349,12 @@ static int sirf_probe(struct serdev_device *serde

Re: [PATCH v2 2/3] clk: ti: check clock type before doing autoidle ops

2018-11-30 Thread Andreas Kemnade
Hi Tero, On Fri, 30 Nov 2018 11:20:49 +0200 Tero Kristo wrote: > On 30/11/2018 09:57, Stephen Boyd wrote: > > Quoting Tero Kristo (2018-11-29 23:35:35) > >> On 30/11/2018 09:20, Stephen Boyd wrote: > >>> Quoting Andreas Kemnade (2018-11-29 22:15:34) > >

Re: [Letux-kernel] [PATCH RFC] bluetooth: add uart h4 devices via serdev/devicetree

2018-11-16 Thread Andreas Kemnade
Hi Marcel, On Wed, 14 Nov 2018 08:51:17 +0100 Marcel Holtmann wrote: [...[ > Btw. I see nothing standing in the way of merging btuart.c driver and then go > from there. Either I dig this out and submit or someone else does. > Do you mean this? https://patchwork.kernel.org/patch/10490651/ Regar

[PATCH 3/5] dt-bindings: gnss: add w2sg0004 compatible string

2018-11-18 Thread Andreas Kemnade
Add w2sg0004 compatible string since devices without wakeup pins are now supported. Signed-off-by: Andreas Kemnade --- Documentation/devicetree/bindings/gnss/sirfstar.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/gnss/sirfstar.txt b/Documentation

[PATCH RFC 4/5] gnss: sirf: add a separate supply for a lna

2018-11-18 Thread Andreas Kemnade
Devices might have a separate lna between antenna output of the gps chip and the antenna which might have a separate supply Signed-off-by: Andreas Kemnade --- drivers/gnss/sirf.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gnss/sirf.c b/drivers/gnss/sirf.c index

[PATCH RFC 5/5] dt-bindings: gnss: add lna-supply property

2018-11-18 Thread Andreas Kemnade
Add lna-supply property. Signed-off-by: Andreas Kemnade --- Documentation/devicetree/bindings/gnss/sirfstar.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/gnss/sirfstar.txt b/Documentation/devicetree/bindings/gnss/sirfstar.txt index 1be7597ae884

[PATCH 2/5] gnss: sirf: power on logic for devices without wakeup signal

2018-11-18 Thread Andreas Kemnade
, because the reaction on serial line is slower and are in line with previous patches by Neil Brown and H. Nikolaus Schaller . Signed-off-by: Andreas Kemnade --- drivers/gnss/sirf.c | 97 +++-- 1 file changed, 65 insertions(+), 32 deletions(-) diff

[PATCH 0/5] gnss: sirf: add support for w2sg0004 + lna

2018-11-18 Thread Andreas Kemnade
that chip without an additional lna power supply can already benefit from it if we should do more discussion first. I just kept them together so that the full picture can be seen. Andreas Kemnade (5): gnss: sirf: write data to gnss only when the gnss device is open gnss: sirf: power on logic for

[PATCH 1/5] gnss: sirf: write data to gnss only when the gnss device is open

2018-11-18 Thread Andreas Kemnade
The api forbids writing data there otherwise. Prepare for the serdev_open()/close() being a part of runtime pm. Signed-off-by: Andreas Kemnade --- drivers/gnss/sirf.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/gnss/sirf.c b/drivers/gnss/sirf.c

Re: [PATCH RFC] bluetooth: add uart h4 devices via serdev/devicetree

2018-11-12 Thread Andreas Kemnade
Hi, On Sun, 11 Nov 2018 03:46:48 +0100 Sebastian Reichel wrote: > Hi, > > On Sun, Nov 11, 2018 at 12:20:34AM +0100, Andreas Kemnade wrote: > > This is a first try to be able to use h4 devices specified in > > the devicetree, so you do not need to call hciattach and > &

Re: [Letux-kernel] [PATCH RFC] bluetooth: add uart h4 devices via serdev/devicetree

2018-11-13 Thread Andreas Kemnade
On Mon, 12 Nov 2018 18:17:38 -0600 Rob Herring wrote: > On Mon, Nov 12, 2018 at 4:27 PM Sebastian Reichel > wrote: > > > > Hi, > > > > On Mon, Nov 12, 2018 at 10:19:02PM +0100, H. Nikolaus Schaller wrote: > > > > Am 12.11.2018 um 21:59 schrieb Andrea

Re: [Letux-kernel] [PATCH RFC] bluetooth: add uart h4 devices via serdev/devicetree

2018-11-14 Thread Andreas Kemnade
On Wed, 14 Nov 2018 08:51:17 +0100 Marcel Holtmann wrote: > Hi Andreas, > > >>>>> Am 12.11.2018 um 21:59 schrieb Andreas Kemnade : > >>>>> On Sun, 11 Nov 2018 03:46:48 +0100 > >>>>> Sebastian Reichel wrote: > >>

Re: [PATCH 1/5] gnss: sirf: write data to gnss only when the gnss device is open

2018-12-05 Thread Andreas Kemnade
On Wed, 5 Dec 2018 15:47:39 +0100 Johan Hovold wrote: > On Sun, Nov 18, 2018 at 10:57:57PM +0100, Andreas Kemnade wrote: > > The api forbids writing data there otherwise. Prepare for the > > serdev_open()/close() being a part of runtime pm. > > > > Sig

Re: [PATCH 2/5] gnss: sirf: power on logic for devices without wakeup signal

2018-12-05 Thread Andreas Kemnade
On Wed, 5 Dec 2018 16:01:16 +0100 Johan Hovold wrote: > On Sun, Nov 18, 2018 at 10:57:58PM +0100, Andreas Kemnade wrote: > > Some Wi2Wi devices do not have a wakeup output, so device state can > > only be indirectly detected by looking whether there is communitcation > >

Re: [PATCH RFC 5/5] dt-bindings: gnss: add lna-supply property

2018-12-09 Thread Andreas Kemnade
On Wed, 5 Dec 2018 16:09:39 +0100 Johan Hovold wrote: > On Sun, Nov 18, 2018 at 10:58:01PM +0100, Andreas Kemnade wrote: > > Add lna-supply property. > > > > Signed-off-by: Andreas Kemnade > > --- > > Documentation/devicetree/bindings/gnss/sirfstar.txt | 1 +

[PATCH v2 1/5] gnss: sirf: write data to gnss only when the gnss device is open

2018-12-09 Thread Andreas Kemnade
The api forbids writing data there otherwise. Prepare for the serdev_open()/close() being a part of runtime pm. Signed-off-by: Andreas Kemnade --- Changes in v2: add locking drivers/gnss/sirf.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a

[PATCH v2 0/5] gnss: sirf: add support for w2sg0004 + lna

2018-12-09 Thread Andreas Kemnade
reordering Andreas Kemnade (5): gnss: sirf: write data to gnss only when the gnss device is open gnss: sirf: power on logic for devices without wakeup signal dt-bindings: gnss: add w2sg0004 compatible string gnss: sirf: add a separate supply for a lna dt-bindings: gnss: add lna-supply property

[PATCH v2 2/5] gnss: sirf: power on logic for devices without wakeup signal

2018-12-09 Thread Andreas Kemnade
, because the reaction on serial line is slower and are in line with previous patches by Neil Brown and H. Nikolaus Schaller . Signed-off-by: Andreas Kemnade --- Changes in v2: - style cleanup - do not keep serdev open just because runtime is active, only when needed (gnss device is opened or

[PATCH v2 3/5] dt-bindings: gnss: add w2sg0004 compatible string

2018-12-09 Thread Andreas Kemnade
Add w2sg0004 compatible string since devices without wakeup pins are now supported. Signed-off-by: Andreas Kemnade --- Changes in v2: - reordering of entries With the original order there was a Reviewed-by: Rob Herring Documentation/devicetree/bindings/gnss/sirfstar.txt | 1 + 1 file changed

[PATCH v2 4/5] gnss: sirf: add a separate supply for a lna

2018-12-09 Thread Andreas Kemnade
Devices might have a separate lna between antenna output of the gps chip and the antenna which might have a separate supply. Signed-off-by: Andreas Kemnade --- Changes in v2: - handle lna also if there is no on-off gpio - rebase on changed 2/5 drivers/gnss/sirf.c | 26

[PATCH v2 5/5] dt-bindings: gnss: add lna-supply property

2018-12-09 Thread Andreas Kemnade
Add lna-supply property. Signed-off-by: Andreas Kemnade --- Changes in v2: - reordering Original order had a Reviewed-by: Rob Herring Documentation/devicetree/bindings/gnss/sirfstar.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/gnss/sirfstar.txt b

Re: [PATCH] gnss: sirf: fix activation retry handling

2018-12-09 Thread Andreas Kemnade
Hi, On Wed, 5 Dec 2018 11:21:49 +0100 Johan Hovold wrote: > Fix activation helper which would return -ETIMEDOUT even if the last > retry attempt was successful. > > Also change the semantics of the retries variable so that it actually > holds the number of retries (rather than tries). > Sound

Re: [PATCH v2 2/3] clk: ti: check clock type before doing autoidle ops

2018-12-03 Thread Andreas Kemnade
On Mon, 3 Dec 2018 07:39:10 -0800 Tony Lindgren wrote: > * Stephen Boyd [181130 23:52]: > > Quoting Tony Lindgren (2018-11-30 07:37:29) > > > Hi, > > > > > > * Tero Kristo [181130 09:21]: > > > > On 30/11/2018 09:57, Stephen Boyd wrote: > > > > > No that is not preferred. Can the omap2_c

Re: [PATCH 1/2] clk: ti: add a usecount for autoidle

2018-11-09 Thread Andreas Kemnade
On Thu, 8 Nov 2018 12:36:35 +0200 Tero Kristo wrote: > On 04/10/2018 23:38, Andreas Kemnade wrote: > > We have the scenario that first autoidle is disabled for all clocks, > > then it is disabled for selected ones and then enabled for all. So > > we should have some counting

[PATCH v2 1/3] clk: ti: add a usecount for autoidle

2018-11-10 Thread Andreas Kemnade
Multiple users might deny autoidle on a clock. So we should have some counting here, also according to the comment in _setup_iclk_autoidle(). Also setting autoidle regs is not atomic, so there is another reason for locking. Signed-off-by: Andreas Kemnade --- Changes since v1: - use spinlocks

[PATCH v2 0/3] mach-omap2: handle autoidle denial

2018-11-10 Thread Andreas Kemnade
logic - check whether clock type is basic Andreas Kemnade (3): clk: ti: add a usecount for autoidle clk: ti: check clock type before doing autoidle ops arm: omap_hwmod disable ick autoidling when a hwmod requires that arch/arm/mach-omap2/omap_hwmod.c | 16 ++ drivers/clk/ti

[PATCH v2 3/3] arm: omap_hwmod disable ick autoidling when a hwmod requires that

2018-11-10 Thread Andreas Kemnade
_setup_iclk_autoidle. dss_ick is an example for that. Signed-off-by: Andreas Kemnade --- Comments to v1 to this patch were worked into a new 2/3 --- arch/arm/mach-omap2/omap_hwmod.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2

[PATCH v2 2/3] clk: ti: check clock type before doing autoidle ops

2018-11-10 Thread Andreas Kemnade
Code might use autoidle api with clocks not being omap2 clocks, so check if clock type is not basic Signed-off-by: Andreas Kemnade --- New in v2 --- drivers/clk/ti/autoidle.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/clk/ti/autoidle.c b/drivers

[PATCH RFC] bluetooth: add uart h4 devices via serdev/devicetree

2018-11-10 Thread Andreas Kemnade
proceeding further it should be checked if the general way of doing things is right. Signed-off-by: Andreas Kemnade --- drivers/bluetooth/hci_h4.c | 78 ++ 1 file changed, 78 insertions(+) diff --git a/drivers/bluetooth/hci_h4.c b/drivers/bluetooth/hci_h4

Re: [Letux-kernel] [PATCH RFC] bluetooth: add uart h4 devices via serdev/devicetree

2019-01-04 Thread Andreas Kemnade
Hi Marcel, On Fri, 4 Jan 2019 10:07:34 +0100 Marcel Holtmann wrote: > Hi Andreas, > > Btw. I see nothing standing in the way of merging btuart.c driver and > then go from there. Either I dig this out and submit or someone else > does. > > >>> Do you mean this? > >>> htt

Re: [PATCH v2 2/3] clk: ti: check clock type before doing autoidle ops

2018-12-31 Thread Andreas Kemnade
On Mon, 31 Dec 2018 09:23:01 +0200 Tero Kristo wrote: > On 28/12/2018 22:02, Tony Lindgren wrote: > > * Andreas Kemnade [181227 20:13]: > >> Hi, > >> > >> On Tue, 4 Dec 2018 08:45:57 -0800 > >> Tony Lindgren wrote: > >> > >>&

Re: [Letux-kernel] [PATCH RFC] bluetooth: add uart h4 devices via serdev/devicetree

2019-01-03 Thread Andreas Kemnade
Hi Marcel, On Fri, 16 Nov 2018 20:58:24 +0100 Marcel Holtmann wrote: > Hi Andreas, > > >> Btw. I see nothing standing in the way of merging btuart.c driver and then > >> go from there. Either I dig this out and submit or someone else does. > >> > > Do you mean this? > > https://patchwork.ke

[PATCH 1/2] hwmon: (hih6130) add dtb compatibility tables

2018-12-27 Thread Andreas Kemnade
This allows the hih6130 to be used in devicetree files and auto-probed that way. Signed-off-by: Andreas Kemnade --- drivers/hwmon/hih6130.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/hih6130.c b/drivers/hwmon/hih6130.c index 0ae1ee1dbf76

[PATCH 2/2] devicetree: hwmon: Add bindings documentation for HIH6130

2018-12-27 Thread Andreas Kemnade
Add bindings documentation for HIH6130 driver. Signed-off-by: Andreas Kemnade --- Documentation/devicetree/bindings/hwmon/hih6130.txt | 12 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/hih6130.txt diff --git a/Documentation

[PATCH 0/2] hwmon: devicetree support for hih6130

2018-12-27 Thread Andreas Kemnade
This patch set adds devicetree support for hih6130, so it can be properly auto-probed using devicetree files Andreas Kemnade (2): hwmon: (hih6130) add dtb compatibility tables devicetree: hwmon: Add bindings documentation for HIH6130 Documentation/devicetree/bindings/hwmon/hih6130.txt | 12

Re: [PATCH v2 2/3] clk: ti: check clock type before doing autoidle ops

2018-12-27 Thread Andreas Kemnade
Hi, On Tue, 4 Dec 2018 08:45:57 -0800 Tony Lindgren wrote: > * Andreas Kemnade [181204 06:17]: > > On Mon, 3 Dec 2018 07:39:10 -0800 > > Tony Lindgren wrote: > > > The consumer device stays active just fine with PM runtime > > > calls. So yes, the prob

Re: [PATCH 0/2] mach-omap2: handle autoidle denial

2018-11-07 Thread Andreas Kemnade
ping. ..after stumbling again about that problem during testing with 4.20-rc1. will retest it there. On Thu, 4 Oct 2018 22:38:15 +0200 Andreas Kemnade wrote: > On the gta04 with a dm3730 omap_hdq does not work properly when the > device enters lower power states. Idling uart1 and 2 is

Re: [PATCH 2/2] arm: omap_hwmod disable ick autoidling when a hwmod requires that

2018-11-08 Thread Andreas Kemnade
Hi, On Thu, 8 Nov 2018 12:26:08 +0200 Tero Kristo wrote: > On 04/10/2018 23:38, Andreas Kemnade wrote: > > Deny autoidle for hwmods with the OCPIF_SWSUP_IDLE flag, > > that makes hwmods working properly which cannot handle > > autoidle properly in lower power states. >

[PATCH RFC 0/2] mach-omap2: handle autoidle denial

2018-10-03 Thread Andreas Kemnade
changing order. Andreas Kemnade (2): clk: ti: add a usecount for autoidle arm: mach-omap2: setup iclk autoidle according to flags arch/arm/mach-omap2/omap_hwmod.c | 8 ++-- drivers/clk/ti/autoidle.c| 20 include/linux/clk/ti.h | 1 + 3 files changed

[PATCH RFC 1/2] clk: ti: add a usecount for autoidle

2018-10-03 Thread Andreas Kemnade
We have the scenario that first autoidle is disabled for all clocks, then it is disabled for selected ones and then enabled for all. So we should have some counting here, also according to the comment in _setup_iclk_autoidle() Signed-off-by: Andreas Kemnade --- drivers/clk/ti/autoidle.c | 20

[PATCH RFC 2/2] arm: mach-omap2: setup iclk autoidle according to flags

2018-10-03 Thread Andreas Kemnade
explicitly because there might be clocks which do not support that operation and it is enabled afterwards in arm/mach-omap2/pm.c anyways. Signed-off-by: Andreas Kemnade --- arch/arm/mach-omap2/omap_hwmod.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2

Re: [PATCH RFC 1/2] clk: ti: add a usecount for autoidle

2018-10-04 Thread Andreas Kemnade
Hi, On Thu, 4 Oct 2018 17:40:06 +0300 Tero Kristo wrote: > On 04/10/18 08:51, Andreas Kemnade wrote: > > We have the scenario that first autoidle is disabled for all clocks, > > then it is disabled for selected ones and then enabled for all. So > > we should have som

[PATCH 2/2] arm: omap_hwmod disable ick autoidling when a hwmod requires that

2018-10-04 Thread Andreas Kemnade
_setup_iclk_autoidle. dss_ick is an example for that. Signed-off-by: Andreas Kemnade --- arch/arm/mach-omap2/omap_hwmod.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index bb641e6c93d0

[PATCH 0/2] mach-omap2: handle autoidle denial

2018-10-04 Thread Andreas Kemnade
- deny_idle/allow_idle calls moved to clock enable/disable of the individual modules Andreas Kemnade (2): clk: ti: add a usecount for autoidle arm: omap_hwmod disable ick autoidling when a hwmod requires that arch/arm/mach-omap2/omap_hwmod.c | 16 drivers/clk/ti/autoidle.c

[PATCH 1/2] clk: ti: add a usecount for autoidle

2018-10-04 Thread Andreas Kemnade
We have the scenario that first autoidle is disabled for all clocks, then it is disabled for selected ones and then enabled for all. So we should have some counting here, also according to the comment in _setup_iclk_autoidle() Signed-off-by: Andreas Kemnade --- drivers/clk/ti/autoidle.c | 32

[PATCH RESEND] twl4030_charger: fix charging current out-of-bounds

2018-09-16 Thread Andreas Kemnade
the charging current uses unsigned int variables, if we step back if the current is still low, we would run into negative which means setting the target to a huge value. Better add checks here. Signed-off-by: Andreas Kemnade --- drivers/power/supply/twl4030_charger.c | 3 ++- 1 file changed, 2

[PATCH RESEND] phy: phy-twl4030-usb: fix denied runtime access

2018-09-16 Thread Andreas Kemnade
suspend by plugging in usb. Signed-off-by: Andreas Kemnade --- drivers/phy/ti/phy-twl4030-usb.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/phy/ti/phy-twl4030-usb.c b/drivers/phy/ti/phy-twl4030-usb.c index a44680d64f9b..1f3cf4e48383 100644 --- a/drivers/phy/ti/phy-twl4030

Re: [PATCH RESEND] phy: phy-twl4030-usb: fix denied runtime access

2018-09-17 Thread Andreas Kemnade
Hi Dmitry, On Mon, 17 Sep 2018 10:51:31 -0700 Dmitry Torokhov wrote: > Hi Andreas, > > On Mon, Sep 17, 2018 at 07:22:54AM +0200, Andreas Kemnade wrote: > > When runtime is not enabled, pm_runtime_get_sync() returns -EACCESS, > > the counter will be incremented but th

Re: [PATCH RESEND] phy: phy-twl4030-usb: fix denied runtime access

2018-09-18 Thread Andreas Kemnade
Hi, On Mon, 17 Sep 2018 15:23:45 -0700 Dmitry Torokhov wrote: > On Mon, Sep 17, 2018 at 08:56:34PM +0200, Andreas Kemnade wrote: > > Hi Dmitry, > > > > On Mon, 17 Sep 2018 10:51:31 -0700 > > Dmitry Torokhov wrote: > > > > > Hi Andreas, > > &

Re: [PATCH 0/7] gnss: add new GNSS subsystem

2018-04-24 Thread Andreas Kemnade
On Tue, 24 Apr 2018 22:13:19 +0200 Pavel Machek wrote: > Hi! > > > This series adds a new subsystem for GNSS receivers (e.g. GPS > > receivers). > > Actually... I'd just call it GPS subsystem. Yes, GPS is a bit > misleading, but so is GNSS. We'd like Loran to use similar interface, > right? W

[PATCH] ARM: sun8i: h3: bluetooth for Banana Pi M2 Zero board

2019-02-28 Thread Andreas Kemnade
The Banana Pi M2 Zero board has an AP6212 BT+Wifi combo chip with broadcom internals attached to UART1 and some gpios. This addition is in line with similar boards Signed-off-by: Andreas Kemnade --- .../boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts| 29 ++ 1 file changed

Re: [PATCH] mfd: twl-core: disable irq while suspended

2019-02-28 Thread Andreas Kemnade
Hi, On Sat, 23 Feb 2019 10:23:23 -0800 Tony Lindgren wrote: > * Andreas Kemnade [190223 11:48]: > > Since commit > > 6e2bd956936 ("i2c: omap: Use noirq system sleep pm ops to idle device for > > suspend") > > on gta04 we have handle_twl4030_pih() called in

Re: [PATCH] ARM: sun8i: h3: bluetooth for Banana Pi M2 Zero board

2019-03-01 Thread Andreas Kemnade
On Fri, 1 Mar 2019 15:36:32 +0100 Maxime Ripard wrote: > Hi, > > Thanks for your patch > > On Thu, Feb 28, 2019 at 10:28:40PM +0100, Andreas Kemnade wrote: > > The Banana Pi M2 Zero board has an AP6212 BT+Wifi combo chip > > with broadcom internals attached to UAR

[PATCH v2] ARM: sun8i: h3: bluetooth for Banana Pi M2 Zero board

2019-03-01 Thread Andreas Kemnade
The Banana Pi M2 Zero board has an AP6212 BT+Wifi combo chip with broadcom internals attached to UART1 and some gpios. This addition is in line with similar boards Signed-off-by: Andreas Kemnade --- changes in v2: remove pinctrl things arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 15

[PATCH v2 0/2] drm/omap: panel-tpo-td028ttec1: add backlight support

2019-02-04 Thread Andreas Kemnade
This panel has a backlight, so add a property describing that and add the code to use that. This makes things like xset dpms force off also turn off the backlight, so we do not need to rely on additional userspace programs to do that. Andreas Kemnade (2): drm/omap: panel-tpo-td028ttec1: add

[PATCH v2 1/2] drm/omap: panel-tpo-td028ttec1: add backlight support

2019-02-04 Thread Andreas Kemnade
-by: Andreas Kemnade --- Changes in v2: - do not reorder initialisation - fix commit message drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c b/drivers/gpu/drm/omapdrm

[PATCH v2 2/2] dt-bindings: panel: td028ttec1: add backlight property

2019-02-04 Thread Andreas Kemnade
This adds an additional backlight property as described in panel-common.txt Signed-off-by: Andreas Kemnade --- Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/tpo,td028ttec1

Re: [PATCH] omap3: give off mode enable a more prominent place

2019-02-05 Thread Andreas Kemnade
On Mon, 4 Feb 2019 10:43:17 -0800 Tony Lindgren wrote: > * Andreas Kemnade [190204 18:33]: > > On Mon, 4 Feb 2019 07:56:04 -0800 > > Tony Lindgren wrote: > > > > > * Andreas Kemnade [190202 06:01]: > > > > Enabling off mode was only reachabl

[PATCH] arm: dts: gta04: add gps support

2019-01-25 Thread Andreas Kemnade
The GTA04 has a w2sg0004 or w2sg0084 gps chip. Not detectable which one is mounted so use the compatibility entry for w2sg0004 for all which will work for both. Signed-off-by: Andreas Kemnade --- w2sg0004 bindings (together with the corresponding support is in https://git.kernel.org/pub/scm

Re: [PATCH 1/3] clocksource: timer-ti-dm: Fix pwm dmtimer usage of fck reparenting

2019-01-26 Thread Andreas Kemnade
imer_of_set_source with clean-up patches later on. > But for now, let's just fix it first by checking if parent and fck > are the same and bail out of so. > together with 2/3 it fixes things on pyra Tested-By: Andreas Kemnade pgp_fCL4xAXI5.pgp Description: OpenPGP digital signature

Re: [PATCH 2/3] bus: ti-sysc: Fix timer handling with drop pm_runtime_irq_safe()

2019-01-26 Thread Andreas Kemnade
se count on the parent device blocking the parent > devices from idling and has been forcing ti-sysc driver to use a > quirk flag. > > Note that we will move the timer data to DEBUG section later on in > clean-up patches. > together with 1/3 it fixes things on pyra. Tested-By: Andreas Kemnade pgp9kROwg4G9L.pgp Description: OpenPGP digital signature

Re: [PATCH] arm: dts: gta04: add gps support

2019-01-28 Thread Andreas Kemnade
On Mon, 28 Jan 2019 08:53:56 +0100 Johan Hovold wrote: > On Fri, Jan 25, 2019 at 08:43:10PM +0100, Andreas Kemnade wrote: > > The GTA04 has a w2sg0004 or w2sg0084 gps chip. Not detectable > > which one is mounted so use the compatibility entry for w2sg0004 > > for all whi

[PATCH] Bluetooth: hci_bcm: fix double-free irq on removal

2019-02-25 Thread Andreas Kemnade
b6edab26 [ 231.251688] ---[ end trace dc4caa46c945c791 ]--- Signed-off-by: Andreas Kemnade --- drivers/bluetooth/hci_bcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c index ddbe518c3e5b..97a8ba607d0c 100644 --- a

Re: [PATCH] Bluetooth: hci_bcm: fix double-free irq on removal

2019-02-26 Thread Andreas Kemnade
4 [hci_uart]) > > [ 231.207793] [] (hci_uart_exit [hci_uart]) from [] > > (sys_delete_module+0x135/0x178) > > [ 231.217005] [] (sys_delete_module) from [] > > (ret_fast_syscall+0x1/0x62) > > [ 231.225256] Exception stack(0xd66b7fa8 to 0xd66b7ff0) > > [

Re: [PATCH 1/3] power: supply: bq27xxx: fix sign of current_now for newer ICs

2021-02-23 Thread Andreas Kemnade
> The GTA04/Openmoko device that was used for testing uses a BQ27000 or > BQ27010 IC, so I assume only the BQ27XXX_O_ZERO code path was incorrect. > Revert the behaviour for newer ICs. > > Fixes: cd060b4d0868 "power: supply: bq27xxx: fix polarity of current_now" > Signed

[PATCH RESEND v2] dt-bindings: mfd: Convert rn5t618 to json-schema

2021-01-31 Thread Andreas Kemnade
Convert the RN5T618 binding to DT schema format. Also clearly state which regulators are available. Signed-off-by: Andreas Kemnade Reviewed-by: Rob Herring --- https://lore.kernel.org/lkml/cal_jsqjwt91+azwaweuvjobqgsyw6gbhqmohwu_t5qzabxx...@mail.gmail.com/ Changes in v2: - drop irq description

Re: [PATCH v9 0/7] Netronix embedded controller driver for Kobo and Tolino ebook readers

2021-02-08 Thread Andreas Kemnade
On Sun, 24 Jan 2021 22:41:20 +0100 Jonathan Neuschäfer wrote: > This patchset adds basic support for the embedded controller found on > older ebook reader boards designed by/with the ODM Netronix Inc.[1] and > sold by Kobo or Tolino, for example the Kobo Aura and the Tolino Shine. > These drivers

[PATCH] ARM: omap2plus_defconfig: enable twl4030_madc as a loadable module

2020-08-19 Thread Andreas Kemnade
The ADC is used by twl4030_charger to read voltages. If a dtb contains the ADC but the module is not build, probing twl4030_charger will be endlessly deferred, so just enable CONFIG_TWL4030_MADC in the config. Signed-off-by: Andreas Kemnade --- arch/arm/configs/omap2plus_defconfig | 1 + 1 file

Re: [PATCH V2 1/2] thermal: ti-soc-thermal: Enable addition power management

2020-08-19 Thread Andreas Kemnade
dss_clkdm->dss_pwrdm (1) d2d_clkdm->core_pwrdm (0) iva2_clkdm->iva2_pwrdm (0) mpu_clkdm->mpu_pwrdm (0) core_l4_clkdm->core_pwrdm (20) core_l3_clkdm->core_pwrdm (1) neon_clkdm->neon_pwrdm (0) root@(none):/# So things still turn off. Tested-by: Andreas Kemnade # GTA04 > diff --git

Re: [PATCH v7 3/7] mfd: Add base driver for Netronix embedded controller

2021-01-12 Thread Andreas Kemnade
On Sat, 9 Jan 2021 19:02:16 +0100 Jonathan Neuschäfer wrote: > The Netronix embedded controller is a microcontroller found in some > e-book readers designed by the original design manufacturer Netronix, > Inc. It contains RTC, battery monitoring, system power management, and > PWM functionality.

Re: [PATCH v7 4/7] pwm: ntxec: Add driver for PWM function in Netronix EC

2021-01-12 Thread Andreas Kemnade
On Sat, 9 Jan 2021 19:02:17 +0100 Jonathan Neuschäfer wrote: > The Netronix EC provides a PWM output which is used for the backlight > on some ebook readers. This patches adds a driver for the PWM output. > > The .get_state callback is not implemented, because the PWM state can't > be read back

[PATCH 0/4] ARM: dts: imx: uart improvements for ebookreaders

2021-01-12 Thread Andreas Kemnade
- add second uart - correct pinmux for console uart (it was working before because of setup by uboot) - document locations on board Andreas Kemnade (4): ARM: dts: imx6sl-tolino-shine2hd: correct console uart pinmux ARM: dts: imx6sl-tolino-shine2hd: add second uart ARM: dts: imx6sl-tolino

[PATCH 2/4] ARM: dts: imx6sl-tolino-shine2hd: add second uart

2021-01-12 Thread Andreas Kemnade
There is another uart next to the console uart used by vendor uboot and kernel, enable it and document its location. Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot

[PATCH 3/4] ARM: dts: imx6sl-tolino-shine2hd: correct console uart pinmux

2021-01-12 Thread Andreas Kemnade
Configuration was correct enough to work with the pre-configuration done by uboot. While at it, also document the location. Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/imx6sl-tolino-shine3.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6sl

[PATCH 3/4] ARM: dts: imx6sl-tolino-shine3: correct console uart pinmux

2021-01-12 Thread Andreas Kemnade
Configuration was correct enough to work with the pre-configuration done by uboot. While at it, also document the location. Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/imx6sl-tolino-shine3.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6sl

[PATCH 4/4] ARM: dts: imx: e60k02: add second uart

2021-01-12 Thread Andreas Kemnade
There is another uart next to the console uart used by vendor uboot and kernel, enable it and document its location. Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/e60k02.dtsi | 6 ++ arch/arm/boot/dts/imx6sl-tolino-shine3.dts | 13 - arch/arm/boot/dts

[PATCH 1/4] ARM: dts: imx6sl-tolino-shine2hd: correct console uart pinmux

2021-01-12 Thread Andreas Kemnade
Configuration was correct enough to work with the pre-configuration done by uboot. While at it, also document the location. Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts

Re: [PATCH 3/4] ARM: dts: imx6sl-tolino-shine2hd: correct console uart pinmux

2021-01-13 Thread Andreas Kemnade
please ignore, that was accidentially sent. On Wed, 13 Jan 2021 00:15:47 +0100 Andreas Kemnade wrote: > Configuration was correct enough to work with the pre-configuration done by > uboot. While at it, also document the location. > > Signed-off-by: Andreas Kemnade > --- >

Re: [PATCH] ARM: OMAP2+: omap_device: fix idling of devices during probe

2021-01-08 Thread Andreas Kemnade
Hi, On Fri, 8 Jan 2021 13:17:06 -0600 Adam Ford wrote: > On Mon, Dec 7, 2020 at 8:01 AM Tony Lindgren wrote: > > > > * Doug Anderson [201204 16:43]: > > > Hi, > > > > > > On Fri, Dec 4, 2020 at 8:14 AM Andreas Kemnade > > > wrote: &

Re: [PATCH v7 4/7] pwm: ntxec: Add driver for PWM function in Netronix EC

2021-01-13 Thread Andreas Kemnade
On Tue, 12 Jan 2021 20:39:02 +0100 Andreas Kemnade wrote: [...] > > +static int ntxec_pwm_probe(struct platform_device *pdev) > > +{ > > + struct ntxec *ec = dev_get_drvdata(pdev->dev.parent); > > + struct ntxec_pwm *priv; > > + struct pwm_chip *chip;

[PATCH v4] mfd: ntxec: Support for EC in Tolino Shine 2 HD

2021-03-15 Thread Andreas Kemnade
successfully configured despite of that error. Signed-off-by: Andreas Kemnade Reviewed-by: Jonathan Neuschäfer --- Changes in v4: - rename subdevices back to v2 (suggested by Jonathan) - initialize subdevs in switch Changes in v3: - remove have_rtc variable - rename subdevices again Changes in v2

[PATCH] mfd: rn5t618: fix IRQ trigger by changing it to level mode

2021-04-05 Thread Andreas Kemnade
: Add IRQ support") Signed-off-by: Andreas Kemnade --- drivers/mfd/rn5t618.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/rn5t618.c b/drivers/mfd/rn5t618.c index ecddd7b6500e..a852eef1f4d2 100644 --- a/drivers/mfd/rn5t618.c +++ b/drivers/mfd/rn5t618.c @@ -10

  1   2   3   4   >