[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191217003453.GU35479@atomide.com>
Date: Mon, 16 Dec 2019 16:34:53 -0800
From: Tony Lindgren <tony@...mide.com>
To: Adam Ford <aford173@...il.com>
Cc: Evgeniy Polyakov <zbr@...emap.net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux-OMAP <linux-omap@...r.kernel.org>,
"Andrew F . Davis" <afd@...com>,
Andreas Kemnade <andreas@...nade.info>,
"H . Nikolaus Schaller" <hns@...delico.com>,
Vignesh R <vigneshr@...com>
Subject: Re: [PATCHv2] w1: omap-hdq: Simplify driver with PM runtime
autosuspend
* Adam Ford <aford173@...il.com> [191216 19:04]:
> On Mon, Dec 16, 2019 at 10:43 AM Tony Lindgren <tony@...mide.com> wrote:
> >
> > * Tony Lindgren <tony@...mide.com> [191216 14:54]:
> > > Vignesh, any comments on the ti,mode = "1w" and removal of the call to
> > > hdq_disable_interrupt()? Is there some specific section where we need
> > > to have interrupts disabled and then re-enabled?
> >
> > OK I got "1w" mode working too now. We need to clear the irqstatus before
> > calling wait_event_timeout() on it, and we're now missing it in the
> > hdq_read_byte().
> >
> > Looks like we should not tinker with the actual irstatus register though,
> > that's up to the hdq_isr() to manage.
> >
> > So the following helper is probably what we want to do additionally.
> > I'll be posting v3 of the $subject patch.
>
> I manually attempted to apply the patches. I 'think' I did it right.
>
> For testing, I ran:
> watch cat /sys/devices/w1_bus_master1/01-000000000000/power_supply/bq27000-battery/voltage_now
>
> I inserted and removed the power cable several times and observed the
> voltage readings with the battery connected.
> The numbers looked reasonable.
>
> I then put the board to suspend, waited a few seconds and woke the
> board from sleep. I resumed my 'watch' function from above and it
> worked just fine.
> If there is nothing else you want me to test, go ahead and add:
>
> Tested-by: Adam Ford <aford173@...il.com> #logicpd-torpedo-37xx-devkit
Thanks for testing, will post v3 shortly with the acks.
Regards,
Tony
Powered by blists - more mailing lists