Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9083413pxu; Mon, 28 Dec 2020 06:14:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDwWG/vYYJvpmqjHKfnyoVKEtFKpfhbCEUZj1JbshhM30BN4yLJYPBPXShLzcbB19rrXPC X-Received: by 2002:a17:906:814a:: with SMTP id z10mr40593687ejw.96.1609164848303; Mon, 28 Dec 2020 06:14:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609164848; cv=none; d=google.com; s=arc-20160816; b=AbDArvXLdvwOem+JDly4pHSxSBNSWoRAxQmuxjjoCwagMCkBnBASqQQZ7WvfAy3DSx HzEmpvN1ct1cbswZGKoo2LDrnKl/2YSO4JGiPNV8sTr568y4wiN6X7tMXTvMzcfLbhUI UxiS2Knwdgvbady5RO+In/zCQ+jwxcethXTb9TLP6W4lVpIbT8iaYTO+zZxGrJ5Lxkur /X9dokosUTahrEfmeF4AtfTqQ81aA9BWu2zh5QgRsCe1oBMmPlMBpG/+YsmyLa9SQ9H7 b7PaxDqJbjv+ky3NgtcgbLeNcJ+QADRQbQXan9glG9Pe4/G2+nV9SAhytn8EhxFTzfZ3 F94Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MxYBXBMY8nK91Clhv1DUJbUVDMrnFfjB1d0OEBQRyjw=; b=GJV6xt6OMHaxKS7aODWKFcZ4OPmpTPduLKG1bZtQxRTzIl5LchvGS4INidkN9R6Uop kn4DIMJHpbgrQ8weJkboI/IT0w7TyblWroodb5yM0SXve043aXLdswL3yh7NsKrGdpl/ aLLOjXmMYg0vQojQLU5o0fHctgbqF958ZQamESvfcToA6BU0wwNf76HMfdZUq+iMJCNQ mo+8Q9CvcR8+S3QMrk4plqtkaYehiSaIZAreAQyi7GVjJgfQygWNq9ofDXz/hz+uM1Li QPjDRSV/m40Uodar74HJbofbze2ix6hj9OAzhla4RWdjV0cn5uBcDmI40aYL/NzTyUgH +/PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="di/xp2N7"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw4si18501222ejb.196.2020.12.28.06.13.43; Mon, 28 Dec 2020 06:14:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="di/xp2N7"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439088AbgL1OKm (ORCPT + 99 others); Mon, 28 Dec 2020 09:10:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:44976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439036AbgL1OKb (ORCPT ); Mon, 28 Dec 2020 09:10:31 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 02C5020731; Mon, 28 Dec 2020 14:09:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164590; bh=S8sMrHdDg2ydeurMPLXxMaseCJmh6DdF930ZHZWsMPA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=di/xp2N7cseM3NjIStmZ94TXKO+5A5zxao6r1Tpy7RjvjE3ut9EZV3X28u/qZ2+Nh Ei/eDskj9SwqCs2HOjSVZLx5+ZIvRVOC7qL/8AAGdD0RmkgIdmadxtzEBlazeFQUzx KoXO9ffIqmTWf+F5jyhQf8+AHJthZjTmuOfYn2qU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sebastian Krzyszkowiak , =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= , Sebastian Reichel , Sasha Levin Subject: [PATCH 5.10 228/717] power: supply: bq25890: Use the correct range for IILIM register Date: Mon, 28 Dec 2020 13:43:46 +0100 Message-Id: <20201228125031.911777430@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sebastian Krzyszkowiak [ Upstream commit d4e9e7b6f7ae37a99bc11ce9efe6e8bdc711362f ] I've checked bq25890, bq25892, bq25895 and bq25896 datasheets and they all define IILIM to be between 100mA-3.25A with 50mA steps. Fixes: 478efc79ee32 ("power: bq25890: implement INPUT_CURRENT_LIMIT property") Signed-off-by: Sebastian Krzyszkowiak Reviewed-by: Michał Mirosław Signed-off-by: Sebastian Reichel Signed-off-by: Sasha Levin --- drivers/power/supply/bq25890_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index 34c21c51bac10..945c3257ca931 100644 --- a/drivers/power/supply/bq25890_charger.c +++ b/drivers/power/supply/bq25890_charger.c @@ -299,7 +299,7 @@ static const union { /* TODO: BQ25896 has max ICHG 3008 mA */ [TBL_ICHG] = { .rt = {0, 5056000, 64000} }, /* uA */ [TBL_ITERM] = { .rt = {64000, 1024000, 64000} }, /* uA */ - [TBL_IILIM] = { .rt = {50000, 3200000, 50000} }, /* uA */ + [TBL_IILIM] = { .rt = {100000, 3250000, 50000} }, /* uA */ [TBL_VREG] = { .rt = {3840000, 4608000, 16000} }, /* uV */ [TBL_BOOSTV] = { .rt = {4550000, 5510000, 64000} }, /* uV */ [TBL_SYSVMIN] = { .rt = {3000000, 3700000, 100000} }, /* uV */ -- 2.27.0