lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20141022113520.GA32184@amd>
Date:	Wed, 22 Oct 2014 13:35:20 +0200
From:	Pavel Machek <pavel@....cz>
To:	akpm@...ux-foundation.org
Cc:	a.zummo@...ertech.it, ijc+devicetree@...lion.org.uk,
	jason@...edameon.net, linux@...ck-us.net, matti.vaittinen@....com,
	robh+dt@...nel.org, mike@....com,
	kernel list <linux-kernel@...r.kernel.org>,
	rtc-linux@...glegroups.com
Subject: [patch] rtc: bq3000: fix register value


Fix register value in bq32000 trickle charging. 

Mike reported that I'm using wrong value in one trickle-charging case,
and after checking docs, I must admit he's right.
    
Signed-off-by: Pavel Machek <pavel@...x.de>
Reported-by: Mike Bremford <mike@....com>

diff --git a/drivers/rtc/rtc-bq32k.c b/drivers/rtc/rtc-bq32k.c
index c02e246..54e9f7a 100644
--- a/drivers/rtc/rtc-bq32k.c
+++ b/drivers/rtc/rtc-bq32k.c
@@ -160,7 +160,7 @@ static int trickle_charger_of_init(struct device *dev, struct device_node *node)
 			dev_err(dev, "bq32k: diode and resistor mismatch\n");
 			return -EINVAL;
 		}
-		reg = 0x25;
+		reg = 0x45;
 		break;
 
 	default:

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ