* Re: droid 4: connection refused from voltage_now [not found] <20180704171156.GA3158@amd> @ 2018-07-04 19:45 ` Ladislav Michl 2018-07-04 19:52 ` Pavel Machek 0 siblings, 1 reply; 4+ messages in thread From: Ladislav Michl @ 2018-07-04 19:45 UTC (permalink / raw) To: Pavel Machek Cc: kernel list, linux-pm, linux-arm-kernel, linux-omap, tony, sre, nekit1000, mpartap, merlijn On Wed, Jul 04, 2018 at 07:11:56PM +0200, Pavel Machek wrote: > Hi! > > I started to use droid 4 as my primary phone... so I have battery > monitor running for hours... Once every few days it dies with > "connection refused" error reading battery's "voltage_now". I restart > it and it continues working... Ha! What exactly that "connection refused" means? Is it ECONNREFUSED (111)? I have custom at91 based board here with few custom power supply drivers and it sometimes ends with voltage_now of my driver being unreadable. (I modified userspace code and waiting what's in errno in case reading fails) > That was with v4.17; in v4.18, I'm getting "red screen" a lot. Tests are also done v4.17. Adding linux-pm@vger.kernel.org as it seems to be subsytem, specific. ladis ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: droid 4: connection refused from voltage_now 2018-07-04 19:45 ` droid 4: connection refused from voltage_now Ladislav Michl @ 2018-07-04 19:52 ` Pavel Machek 2018-07-06 11:16 ` Sebastian Reichel 0 siblings, 1 reply; 4+ messages in thread From: Pavel Machek @ 2018-07-04 19:52 UTC (permalink / raw) To: Ladislav Michl Cc: kernel list, linux-pm, linux-arm-kernel, linux-omap, tony, sre, nekit1000, mpartap, merlijn [-- Attachment #1: Type: text/plain, Size: 1531 bytes --] On Wed 2018-07-04 21:45:56, Ladislav Michl wrote: > On Wed, Jul 04, 2018 at 07:11:56PM +0200, Pavel Machek wrote: > > Hi! > > > > I started to use droid 4 as my primary phone... so I have battery > > monitor running for hours... Once every few days it dies with > > "connection refused" error reading battery's "voltage_now". I restart > > it and it continues working... > > Ha! What exactly that "connection refused" means? Is it ECONNREFUSED (111)? > I have custom at91 based board here with few custom power supply drivers > and it sometimes ends with voltage_now of my driver being unreadable. > (I modified userspace code and waiting what's in errno in case > reading fails) It seems to be -110: Jul 4 11:48:29 devuan kernel: [ 2908.602600] cpcap_adc cpcap_adc.0: error reading ADC: -110 Jul 4 11:48:29 devuan kernel: [ 2908.608123] cpcap_battery cpcap_battery.0: cpcap_battery_get_current failed: -110 Jul 4 11:48:30 devuan kernel: [ 2908.922576] cpcap_adc cpcap_adc.0: error reading ADC: -110 Jul 4 11:48:30 devuan kernel: [ 2908.928100] cpcap_battery cpcap_battery.0: cpcap_charger_battery_temperature failed: -110 Jul 4 11:48:30 devuan kernel: [ 2908.936340] power_supply battery: driver failed to report `voltage_now' property: -110 > Adding linux-pm@vger.kernel.org as it seems to be subsytem, specific. Good idea. Thanks! pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 181 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: droid 4: connection refused from voltage_now 2018-07-04 19:52 ` Pavel Machek @ 2018-07-06 11:16 ` Sebastian Reichel 2018-07-06 11:23 ` Tony Lindgren 0 siblings, 1 reply; 4+ messages in thread From: Sebastian Reichel @ 2018-07-06 11:16 UTC (permalink / raw) To: Pavel Machek Cc: Ladislav Michl, kernel list, linux-pm, linux-arm-kernel, linux-omap, tony, nekit1000, mpartap, merlijn [-- Attachment #1: Type: text/plain, Size: 1561 bytes --] Hi, On Wed, Jul 04, 2018 at 09:52:38PM +0200, Pavel Machek wrote: > On Wed 2018-07-04 21:45:56, Ladislav Michl wrote: > > On Wed, Jul 04, 2018 at 07:11:56PM +0200, Pavel Machek wrote: > > > Hi! > > > > > > I started to use droid 4 as my primary phone... so I have battery > > > monitor running for hours... Once every few days it dies with > > > "connection refused" error reading battery's "voltage_now". I restart > > > it and it continues working... > > > > Ha! What exactly that "connection refused" means? Is it ECONNREFUSED (111)? > > I have custom at91 based board here with few custom power supply drivers > > and it sometimes ends with voltage_now of my driver being unreadable. > > (I modified userspace code and waiting what's in errno in case > > reading fails) > > It seems to be -110: > Jul 4 11:48:29 devuan kernel: [ 2908.602600] cpcap_adc cpcap_adc.0: error reading ADC: -110 > Jul 4 11:48:29 devuan kernel: [ 2908.608123] cpcap_battery cpcap_battery.0: cpcap_battery_get_current failed: -110 > Jul 4 11:48:30 devuan kernel: [ 2908.922576] cpcap_adc cpcap_adc.0: error reading ADC: -110 > Jul 4 11:48:30 devuan kernel: [ 2908.928100] cpcap_battery cpcap_battery.0: cpcap_charger_battery_temperature failed: -110 > Jul 4 11:48:30 devuan kernel: [ 2908.936340] power_supply battery: driver failed to report `voltage_now' property: -110 The error above is obviously generated by cpcap_adc and only propageted by cpcap_battery. Have a look for -ETIMEDOUT (-110) in drivers/iio/adc/cpcap-adc.c. -- Sebastian [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: droid 4: connection refused from voltage_now 2018-07-06 11:16 ` Sebastian Reichel @ 2018-07-06 11:23 ` Tony Lindgren 0 siblings, 0 replies; 4+ messages in thread From: Tony Lindgren @ 2018-07-06 11:23 UTC (permalink / raw) To: Sebastian Reichel Cc: Pavel Machek, Ladislav Michl, kernel list, linux-pm, linux-arm-kernel, linux-omap, nekit1000, mpartap, merlijn * Sebastian Reichel <sebastian.reichel@collabora.co.uk> [180706 11:19]: > Hi, > > On Wed, Jul 04, 2018 at 09:52:38PM +0200, Pavel Machek wrote: > > On Wed 2018-07-04 21:45:56, Ladislav Michl wrote: > > > On Wed, Jul 04, 2018 at 07:11:56PM +0200, Pavel Machek wrote: > > > > Hi! > > > > > > > > I started to use droid 4 as my primary phone... so I have battery > > > > monitor running for hours... Once every few days it dies with > > > > "connection refused" error reading battery's "voltage_now". I restart > > > > it and it continues working... > > > > > > Ha! What exactly that "connection refused" means? Is it ECONNREFUSED (111)? > > > I have custom at91 based board here with few custom power supply drivers > > > and it sometimes ends with voltage_now of my driver being unreadable. > > > (I modified userspace code and waiting what's in errno in case > > > reading fails) > > > > It seems to be -110: > > Jul 4 11:48:29 devuan kernel: [ 2908.602600] cpcap_adc cpcap_adc.0: error reading ADC: -110 > > Jul 4 11:48:29 devuan kernel: [ 2908.608123] cpcap_battery cpcap_battery.0: cpcap_battery_get_current failed: -110 > > Jul 4 11:48:30 devuan kernel: [ 2908.922576] cpcap_adc cpcap_adc.0: error reading ADC: -110 > > Jul 4 11:48:30 devuan kernel: [ 2908.928100] cpcap_battery cpcap_battery.0: cpcap_charger_battery_temperature failed: -110 > > Jul 4 11:48:30 devuan kernel: [ 2908.936340] power_supply battery: driver failed to report `voltage_now' property: -110 > > The error above is obviously generated by cpcap_adc and only > propageted by cpcap_battery. Have a look for -ETIMEDOUT (-110) > in drivers/iio/adc/cpcap-adc.c. Hmm yeah maybe first try to increase the timeout value a bit and see if that helps. If increasing the timeout does not help, try reverting commit 9d965236fe9b ("iio: adc: cpcap: Remove hung interrupt quirk"). Regards, Tony ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-07-06 11:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20180704171156.GA3158@amd>
2018-07-04 19:45 ` droid 4: connection refused from voltage_now Ladislav Michl
2018-07-04 19:52 ` Pavel Machek
2018-07-06 11:16 ` Sebastian Reichel
2018-07-06 11:23 ` Tony Lindgren
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).