Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5911431imu; Sun, 20 Jan 2019 23:15:00 -0800 (PST) X-Google-Smtp-Source: ALg8bN7YUTrw6IODhURYSD3H5rxdwr9er6UO4vsQJRF2JzWj6Cn4e69Ry03moowbEkF8Iu2c3Ud1 X-Received: by 2002:a62:be0c:: with SMTP id l12mr28106745pff.51.1548054900566; Sun, 20 Jan 2019 23:15:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548054900; cv=none; d=google.com; s=arc-20160816; b=YJKuYCZutUF54KTLBGr9pt9teriZW7t+AN3vFODYgTDc1ZQ3ms5KvHNI2BJQomw/J1 Rk1tY+W6eQVu+4qA+3SgUqaXEkpfrdM4pldyK1W4Zy22ef++urLGSL3Fr3gfbyQwFPec yb3aKAwFaNWhs1OajlmMdZv1teNqyQmNWiAhZwQDv4rCL1xPhHDDocRY42gWyS+Nt4Qh D3gkfqX3Vhsh9SbC6AOyjR2EtRlMvZdKr3I1JTSYZAr2El1/wbXfXOGn4nFZW0cGL5Bw qlTKvQesVYyzYXu77F6/jB1q0lDlBTzbPs0g49ofba6CbMgRV0UGYqVTXS42NEBceCnT KG6w== 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:dkim-signature; bh=g+/Pkaj6EJUx/HnDHFqRK40lVizFDTFrnlaei+gtqU4=; b=WG3kNgUzbglJo40bJn4K3F0Z44WGb/T2kUV3IW3e/u2/nKl0Vtlmhit6QDKeRcltsi yUSjUJuSk1X5hcx364iV1bMmsQvAqbLa+9soeCkO/NbSoPPfJW12xqTGtDKvm3GrugvE aNs0xJ7iB4Bs0isHPP5kWmteGVeX+ErU66ho17ruvceYKNbfqiZ1vcuI2eCr1G/Lda46 Q8CinPQpxhEACiAmxRg2cOjlLtJpdlTnuDXINnnswwkweSw8cpG0e/DW3T2yabU2AmuH fnPosvu68Z7Q1Id7wAnqpbshzuHaaKaxoO0B/X9MNJSsf8TxVssbTf9enAS9Oj5ynvzG 2g3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BwziozCq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si3288124pgq.207.2019.01.20.23.14.45; Sun, 20 Jan 2019 23:15:00 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=BwziozCq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727977AbfAUHM7 (ORCPT + 99 others); Mon, 21 Jan 2019 02:12:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:38070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727600AbfAUHM6 (ORCPT ); Mon, 21 Jan 2019 02:12:58 -0500 Received: from earth.universe (unknown [194.136.232.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 93502214DA; Mon, 21 Jan 2019 00:06:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548029191; bh=fYPq9sDIcxuXj2oJeKKmDJtZAaGnP2MKcLuIoeufuXk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BwziozCqczajUflZPoLAeZOyamMhL1ETYu/dYCmGCQK5TjJdVHyOW28UW0zO5xHm9 d2rT4GufPmoAeNUH+uALga7MlMxLzjUco12ORfD51Ghr6ade9KRzKjGbPNSqPevUAn YOYKSAuyBg7gQIrITQi/Ri1NFMDIPTlZFMp1mVU8= Received: by earth.universe (Postfix, from userid 1000) id 71D543C08EA; Sun, 20 Jan 2019 22:41:07 +0100 (CET) Date: Sun, 20 Jan 2019 22:41:07 +0100 From: Sebastian Reichel To: Pavel Machek Cc: linux-pm@vger.kernel.org, kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, tony@atomide.com, nekit1000@gmail.com, mpartap@gmx.net, merlijn@wizzup.org Subject: Re: cpcap-charger: generate events for userspace Message-ID: <20190120214107.n2ot5mvggub4aehn@earth.universe> References: <20181227195221.GA11920@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="byreiu6z4ngijxep" Content-Disposition: inline In-Reply-To: <20181227195221.GA11920@amd> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --byreiu6z4ngijxep Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Thu, Dec 27, 2018 at 08:52:21PM +0100, Pavel Machek wrote: > The driver doesn't generate uevents on charger connect/disconnect. > This leads to UPower not detecting when AC is on or off... and that is > bad. > =20 > Reported by Arthur D. on github ( > https://github.com/maemo-leste/bugtracker/issues/206 ), thanks to > Merlijn Wajer for suggesting a fix. > =20 > Cc: stable@kernel.org > Signed-off-by: Pavel Machek Thanks, queued to power-supply-next. -- Sebastian > diff --git a/drivers/power/supply/cpcap-charger.c b/drivers/power/supply/= cpcap-charger.c > index 9e8ff5c..7d8b4d5 100644 > --- a/drivers/power/supply/cpcap-charger.c > +++ b/drivers/power/supply/cpcap-charger.c > @@ -576,6 +576,7 @@ static void cpcap_usb_detect(struct work_struct *work) > goto out_err; > } > =20 > + power_supply_changed(ddata->usb); > return; > =20 > out_err: >=20 > --=20 > (english) http://www.livejournal.com/~pavelmachek > (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/b= log.html --byreiu6z4ngijxep Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAlxE6vMACgkQ2O7X88g7 +prkABAApFEELQA6AnpA5CNX/WpKDkKWb7dVv+2gvum+GwIZR/+c4idPzHOzHHLr MTDkNE4AoTi/GA06Q7Ed2PE8NNgrLtDKC8edu8KMDM4TW4oo3d1RIS4JPvBDpewy 8KkeHBEPgBT0PDzFc379lAfXYr6V38GhMOR3b/Jqcu81F9jAeOk/gmOLIgdIXjIL BS/CJMABO3yX5zoFdxiOYM1pkoKGf+bw+un7NW0RSkrSCaxUiDHvfl7+Et0N7ouI zTSL54vGGvyXGmUE0PXujLrgUQ9jYPedxotL8GlA5uHsIa4mma36My6I4ldowppa Y5Ys2+bglHbYnk0onp3GbpP4obdXaugsyPs18wpk6lVfxpYQ1hcY33v/E6hhKpLk rM6urwQ4Fin81txDMMHIuhnXdf4V+BfVQH02B0+iDYjF/0FUs4n9jmHY6nuezXAq RMMgMZ8sgTtllr4M7OxL2f9ZRrliqb3fAfSXgq7YFYqHQvgjAJUuSuP8OrCHvxUO woFPWgjhxEjrreS9mzWFQp0EWlfSqGWA2WDbVzwvOMXrZAYnavr5Sjw+4jz9gS/v yjLJyebiKu1k0558op7GbgwYJkdZO3CSPRvsRv1dnzuMf7cWYhUT5BH5UuUVmXaa n/Bvcb2knDgaybIWF9gd8nodRBnBbrIwjRsBSj9I+DBOqDiSx+c= =h22h -----END PGP SIGNATURE----- --byreiu6z4ngijxep--