Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1177941rwl; Wed, 29 Mar 2023 13:58:39 -0700 (PDT) X-Google-Smtp-Source: AKy350afi7mHBKhQA+4AFxxE2WTyuNUqlyCQ1i+0Jl5YQRp73AynzDwEo8IDxkNKY1DRaZiSiBVy X-Received: by 2002:a17:907:6d8d:b0:946:a14e:23a5 with SMTP id sb13-20020a1709076d8d00b00946a14e23a5mr10206958ejc.45.1680123519289; Wed, 29 Mar 2023 13:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680123519; cv=none; d=google.com; s=arc-20160816; b=0sjpvCn/vyeY6gDicQf7kwi8N2gAKuYcjKZBy6dA0guguMd908CQ5KYGpcgvt9vzKS VvU5XOyynhNGSv/azb6qCMmOqf5lVK6tAitfWoE/w7Kddwac1srsTEGSI6PAObGeEPa+ Eqo55P17syrV6zgisxVc26RRO1ZjtwTYm0+l9a+cOQ64h5iVQo6gfgS0Zy7KPllUSIoi 118rxpLFUIMo3LtA5e9//e2v6kxdXk7dXSACIezTIu9YAEZhOZmTI7k38tTQE8bl9mxz WC4PnW7w/zPRhTBrqqCE04xzvy/Db/shcnghnc4Y/TeWW5hrM6dd/P0f6/Jl8n7a3TPW fm0Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Nte51xjXiIM8Lvgz0EuSk0mf1Y4mOMuFslnvcEmaPvU=; b=PLT3/w56sGkVnvE6dCbqpBuEXaNuDAXN4npbPeodz+Gjcl/a/ZHxZU0By7MHch77vF ZCddyAArgXG/rW2+DtPb52W5EyNSMtCMERSe1sX8LtIXcrDsTbVBzSfTd91nfuaWhwvD OEsIs12CPaeVq9zxlnXS2PgS0v+GEpAO5rKKMhiyrN7zxI0chKl7V6djE0GNFzHjQAy3 EUSOGGGuwMN8WjMC2WJo/ZUiQ3Xe6le1mI7m1JWrBpR+yLWujwsn8MeMdCXL5FO5xQgS FVhfHL0cr6WmGfAvhBrHfTKi1P0701JhR21kpwzGA2TUetpzWKmwaL42M8jdM+guuXov hHLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gdnmDalk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp17-20020a1709073e1100b0093cd9603fcbsi18705518ejc.721.2023.03.29.13.58.13; Wed, 29 Mar 2023 13:58:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gdnmDalk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229981AbjC2U4f (ORCPT + 99 others); Wed, 29 Mar 2023 16:56:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbjC2U4d (ORCPT ); Wed, 29 Mar 2023 16:56:33 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CBD210FA for ; Wed, 29 Mar 2023 13:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680123350; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Nte51xjXiIM8Lvgz0EuSk0mf1Y4mOMuFslnvcEmaPvU=; b=gdnmDalkEm8C8unwHbT7UEs1M7JvGfYcOqoZftcYXutX9KUJ+x3AHM+XeXNyza3pKjvvVV nhVadv23DdAuGUyW2qsvYIHM0/wtKhIhnV/3R/ZaPr0rZ3+u5+8hCdhTYYSQwjPmGx6LIr dfoSC6+/hFuPC9m3ru0iWgdQR4qmmhc= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-158-WRpWoYE3NUiF0AduRmvItQ-1; Wed, 29 Mar 2023 16:55:46 -0400 X-MC-Unique: WRpWoYE3NUiF0AduRmvItQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0975485A588; Wed, 29 Mar 2023 20:55:46 +0000 (UTC) Received: from shalem.redhat.com (unknown [10.39.192.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6584A40BC797; Wed, 29 Mar 2023 20:55:45 +0000 (UTC) From: Hans de Goede To: Lee Jones , Chen-Yu Tsai Cc: Hans de Goede , linux-kernel@vger.kernel.org Subject: [PATCH] mfd: axp20x: Fix axp288 writable-ranges Date: Wed, 29 Mar 2023 22:55:44 +0200 Message-Id: <20230329205544.1051393-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Register AXP288_POWER_REASON is writable and needs to be written to reset the reset- / power-on-reason bits. Add it to the axp288 writable-ranges so that the extcon-axp288 driver can properly clear the reset- / power-on-reason bits. Signed-off-by: Hans de Goede --- drivers/mfd/axp20x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 01a6bbb6d266..7720ac15c7d4 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -119,6 +119,7 @@ static const struct regmap_access_table axp22x_volatile_table = { /* AXP288 ranges are shared with the AXP803, as they cover the same range */ static const struct regmap_range axp288_writeable_ranges[] = { + regmap_reg_range(AXP288_POWER_REASON, AXP288_POWER_REASON), regmap_reg_range(AXP20X_DATACACHE(0), AXP20X_IRQ6_STATE), regmap_reg_range(AXP20X_DCDC_MODE, AXP288_FG_TUNE5), }; -- 2.39.1