From patchwork Tue Aug 15 08:38:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 110111 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp5394929qge; Tue, 15 Aug 2017 01:38:22 -0700 (PDT) X-Received: by 10.84.195.228 with SMTP id j91mr30263865pld.381.1502786302358; Tue, 15 Aug 2017 01:38:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502786302; cv=none; d=google.com; s=arc-20160816; b=py8bU7qe/Z02c7oI33et8VIxaTbePQt/HA4hHQ5W09zdGheaSkGfxlmOJ63yVZ/ePu 6d9PIo86d6q+Ac/QUmDT+WMszeqBy3olnjDffYzm0FYV4XIujnG7l2VWV9yC1Kfqhhzh vmOsxnd42KulmXJHlOWRf/CWxUPjvsv8/QTAwbaQ5y0bEoKtbomOzzEVU2WagpeQFCPf ZFse7A4UBrfsfAUwMGtxd4wMFNG8xLugRE+3exj8kvDpVd1nGfzn9Wa/Ok9TfYKiC4rm QGw55ngr0UNJbhqyCCyRvfw/zDRIDMBv6JO7aGAFQuG1a0UXTjsFfIYrjHE0YioFym3U fnjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=n+66vXaNgVWnyN8T368Gze55uYm7U8KsAxJ1bzNtfRE=; b=PSp5SmYx6wGq4Ig4dVwK2dMEW2ch7EXR0pkI40NOJyrE0gkxpM63ipE99J6kqlKuLL 9DYNwdV32ZET9TRnjeIP22xfYn0ze3MyLEBnm/SIICL2Vgkga4qdtbRDUi7k+Cp2syMN m+PZ1axeSJG+FejYECpKMicLwZawvAPId5Fq3KWs9dYewi7ZIpyxadewZsjgNziseaWy S9tXgyWwXPUvprR70/K8qB05snNYQ8CjtiDFz+bZjC4xAC7cHuC0GsDW1KMIUpQdK/f/ NGrIzoRoFi30fklN353yWLn34x8h7e/cEEUiMfuTmNtiuPq01V3KFtkmMgpkp+rHc57M acPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZuOpUwdy; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v189si5250039pgv.355.2017.08.15.01.38.22; Tue, 15 Aug 2017 01:38:22 -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; dkim=pass header.i=@linaro.org header.s=google header.b=ZuOpUwdy; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753371AbdHOIiU (ORCPT + 25 others); Tue, 15 Aug 2017 04:38:20 -0400 Received: from mail-wr0-f182.google.com ([209.85.128.182]:38085 "EHLO mail-wr0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753297AbdHOIiR (ORCPT ); Tue, 15 Aug 2017 04:38:17 -0400 Received: by mail-wr0-f182.google.com with SMTP id m57so1062499wrm.5 for ; Tue, 15 Aug 2017 01:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=n+66vXaNgVWnyN8T368Gze55uYm7U8KsAxJ1bzNtfRE=; b=ZuOpUwdyJ1KGSnyVgOIHJvr5u6Hql+Ckg6QFY7k4quBuNCfwEqSC/HiQJ/qr7IyZi9 H7hOyCCulIeqeJSdksDpkLOCFoOgraAlFYIUwL9nuMNqqVugKwNVFoWFLblIF7RrWpoc b5ofl7LvBB5TLbVe5WknQV0/JWyvMx9eY19gs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=n+66vXaNgVWnyN8T368Gze55uYm7U8KsAxJ1bzNtfRE=; b=pWCbD5fl8gN7zK/DkJnFMeZDX1/RX4h4JDrVGILc9ZwiyEUE5JcOgNfTvW/jSZ7N56 P1n/2TtgPztpn59nMX+FxhmwicytsI09bQcU9Pn8dNrA6qIcrlVALACAG1X19pLvtThx gT1QwRUdIN8TS0Iio8YDij0GrozLZgdl/lj8Rfp1iMtDnDFUABnF+JG3VbyVioxX00yS tcbRhKhi2M1tbV9LVqtpeLXKiAi7ARJ1afsL0inv9mAnjEwL7DTXw2/1Zg+Czw7ZIvGI 1RdiBBDR2TawvY6dtQI2UacgWII9HkupIk6KrcqNNDldE2qIMYpgzsFWxgE+S1pLfQ0b es3A== X-Gm-Message-State: AHYfb5hDe40M8Pms7ZKo2tD3Qs9sr5gcWAGymSmm9aq5spdX8IWGMZd/ f3XoAMQ/i0eSlgIW X-Received: by 10.223.150.139 with SMTP id u11mr2949622wrb.259.1502786295980; Tue, 15 Aug 2017 01:38:15 -0700 (PDT) Received: from localhost.localdomain ([2.31.167.231]) by smtp.gmail.com with ESMTPSA id d91sm1381139wma.23.2017.08.15.01.38.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Aug 2017 01:38:15 -0700 (PDT) From: Lee Jones To: stwiss.opensource@diasemi.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones Subject: [PATCH 1/1] Revert "mfd: da9061: Fix to remove BBAT_CONT register from chip model" Date: Tue, 15 Aug 2017 09:38:04 +0100 Message-Id: <20170815083804.26073-1-lee.jones@linaro.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch was applied to the MFD twice, causing unwanted behavour. This reverts commit b77eb79acca3203883e8d8dbc7f2b842def1bff8. Fixes: b77eb79acca3 ("mfd: da9061: Fix to remove BBAT_CONT register from chip model") Reported-by: Steve Twiss Signed-off-by: Lee Jones --- drivers/mfd/da9062-core.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.11.0 Reviewed-by: Steve Twiss Acked-by: Steve Twiss diff --git a/drivers/mfd/da9062-core.c b/drivers/mfd/da9062-core.c index fbe0f245ce8e..fe1811523e4a 100644 --- a/drivers/mfd/da9062-core.c +++ b/drivers/mfd/da9062-core.c @@ -645,6 +645,9 @@ static const struct regmap_range da9062_aa_readable_ranges[] = { .range_min = DA9062AA_VLDO1_B, .range_max = DA9062AA_VLDO4_B, }, { + .range_min = DA9062AA_BBAT_CONT, + .range_max = DA9062AA_BBAT_CONT, + }, { .range_min = DA9062AA_INTERFACE, .range_max = DA9062AA_CONFIG_E, }, { @@ -721,6 +724,9 @@ static const struct regmap_range da9062_aa_writeable_ranges[] = { .range_min = DA9062AA_VLDO1_B, .range_max = DA9062AA_VLDO4_B, }, { + .range_min = DA9062AA_BBAT_CONT, + .range_max = DA9062AA_BBAT_CONT, + }, { .range_min = DA9062AA_GP_ID_0, .range_max = DA9062AA_GP_ID_19, },