Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1159542imm; Wed, 4 Jul 2018 12:53:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpde5os5MeQhBXwQ7xf+dlu3Mdmr+IsraCRMNGY4EBA70bZQFmZVnVxqDw+PM482Lm03lnb9 X-Received: by 2002:a65:654d:: with SMTP id a13-v6mr3041006pgw.132.1530734012953; Wed, 04 Jul 2018 12:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530734012; cv=none; d=google.com; s=arc-20160816; b=D6zbmjp1YiZsnyTGNCHj15Civqfj+5MpwGJUrVGAhzs6/mANIR+E9nxD2kI1jlM0Tl +dESe8li5UsYpdYj7pme5EaWc0r+cjKLoPnBp+PLIPzdGP0y1dBnq8F9gxgaDRuD38a8 X9/gYVqT/2JZ3SkZ4nQI2dDLSZDFtMo1ori4cemvxFAvPvUQeI+WCcpIe9rxOyvSOXus eWlkjshZ8RN9jj8sR/yFJo4xzy4BJv2litU2CcgiUbueiCu6k9mWuuysnjz/2GT6hgRE tNPQ8UvKW1GriTBt5nlSa/f2QdGltcMNrdZ7R+rqJYqJN2I0Ff0cNs7djTAF1G3zO22t tc0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=dnBCEj44Ve0ivZTpPtcMKm1hxwwIp5GlzukfCKhbB6k=; b=tNptYkzYIpZs7iQxUlkDgtEITLJQ2Fb6WTVxK3v9hoO8dmh09udOIalPcdqaTb5Zaa nVY3BwxU15+2YtmmtOQ7Z0GREjGvVv9p+ydPse95zRuXrH2K8HUP1dRQJuE22umNpYLs sj//T5Kw7r85duIxf2UEDDykq3pIrkRncToL3BIrsYtU4jAQbArEO5NbDVrd21B/OqaX 9aQMK+yKuphqYKILj7MJxjYGcOG1oUzHVmhMKmBTUUtnL9Nrs4bWve2yniDXLMzgfjIH YW0HFVnTco9OlF0Tocgm+2fKD99ItglKQmo0LIZAUp78A2BfeaofcQyTHOO1aH+qK2N4 ZSog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r10-v6si757412pgt.583.2018.07.04.12.53.17; Wed, 04 Jul 2018 12:53:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752826AbeGDTwl (ORCPT + 99 others); Wed, 4 Jul 2018 15:52:41 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:41922 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752634AbeGDTwk (ORCPT ); Wed, 4 Jul 2018 15:52:40 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 7637E80564; Wed, 4 Jul 2018 21:52:38 +0200 (CEST) Date: Wed, 4 Jul 2018 21:52:38 +0200 From: Pavel Machek To: Ladislav Michl Cc: kernel list , linux-pm@vger.kernel.org, linux-arm-kernel , linux-omap@vger.kernel.org, tony@atomide.com, sre@kernel.org, nekit1000@gmail.com, mpartap@gmx.net, merlijn@wizzup.org Subject: Re: droid 4: connection refused from voltage_now Message-ID: <20180704195238.GA13932@amd> References: <20180704171156.GA3158@amd> <20180704194556.GA9189@lenoch> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline In-Reply-To: <20180704194556.GA9189@lenoch> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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! > >=20 > > 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... >=20 > 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 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAls9JYYACgkQMOfwapXb+vIBdwCfbj4nu3YHaW3iY6DJSonTbMSi eN4AoK8RudLJUGz1umI+ETLc1jelA/xn =6BUt -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO--