From patchwork Wed Oct 19 08:31:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 5285 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp281070wrs; Wed, 19 Oct 2022 05:01:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4i7xDVaePG8OwT3k0Vwz6IPof55ZyKUQKVTFmpdIK5v/Q+jM9ctwSMZE/977OjrA1OspAE X-Received: by 2002:a17:907:2711:b0:78e:c2a:a3fb with SMTP id w17-20020a170907271100b0078e0c2aa3fbmr6356265ejk.556.1666180896810; Wed, 19 Oct 2022 05:01:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666180896; cv=none; d=google.com; s=arc-20160816; b=esf1hXGIvbiBKRPgT8WG/6UrUIvdyl0O9rh2xOa4gr4V+uwqqdYOvExX2eNSuyb+zk NOV1qfaPfiUTZ9T+q/Ay5PNRLO1efhk7cRy4O01n6zOynBNUZKd5vJw/oSsuv0dfJYuS u/AOygmwEcbNH5SBgMNEZR32vXW7ac/XRNNjZ7kFDl21uyv23eZfLVxG8pD1GMOvbKOl bGWJE4okh3m5iT+ZQVaG2BQY52tubicE/jzliLXCEViwWBqO3KUEbYWNY++OcRgpgimc Ao47z2aLYzidIVmfVTMDgD04WZHdOci8TVMlzbVOoCvEcWJKL8mW5NSgVDPxG+pwdF6l l0fA== 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=6lTb0eKTiMxmfcHJM9/oa7dpHu3BOlegrHT8hcIg9yQ=; b=z6Zhr/tVlgkNlmPAZLv219njrxAKSpvgmLZX3DsqLhHBmuua70Tiujxr0NSSb2EW3M eEXx6c/pFdJfT3ArhewrC+Pk90Rz6MnwVWQR9marZLKjPI7CKYehRbZ07Mis+R4X239t 21gxS1vSX9eEeDuQvxkpIg/M/fbTELRpzWp/kppw6qbVUvdAcOPkE/OROs2QJJ+DASE4 XPh/pNvtTYhWvQLbFFIkUaFLiM7+aX00OXR5MZb5uWUivKxm8WdPIr669H+AN1FR/hRB /HVe7K6tEt/KxEZNGMg75afd+r7xnYAXZkwc2v7T+BwCRrbPckTA+C5LO7pjWZ5u9w+u mVEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="F3Ar/MPv"; 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=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i29-20020a50871d000000b0045cbe41a837si12898120edb.308.2022.10.19.05.01.08; Wed, 19 Oct 2022 05:01:36 -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=@linuxfoundation.org header.s=korg header.b="F3Ar/MPv"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232317AbiJSL4W (ORCPT + 99 others); Wed, 19 Oct 2022 07:56:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232666AbiJSLyy (ORCPT ); Wed, 19 Oct 2022 07:54:54 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFD621B94CA; Wed, 19 Oct 2022 04:34:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id B2B4BCE20EA; Wed, 19 Oct 2022 09:04:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B89AAC433C1; Wed, 19 Oct 2022 09:04:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666170241; bh=1Ex0IhPVO/kdm+4mY+F4aJIeYW5QUwl8qdfY4dthjZE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F3Ar/MPv7RVXaYR1KdIjxJqg4CDkBUD5gug8ZM7ZxXao8ilBRwZpT0nHtRgbelNie FEoG33fb/is3D4VDA4EEfIIquzNGPl7g1lq5HdRmATfTGzw5uXU0oHXjGwXGCrduMi q0kgOD8QZsFeUyD617fA0CkyMG3RvXJhAPfqu4+g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jens Hillenstedt , Adam Ward , Lee Jones , Sasha Levin Subject: [PATCH 6.0 580/862] mfd: da9061: Fix Failed to set Two-Wire Bus Mode. Date: Wed, 19 Oct 2022 10:31:07 +0200 Message-Id: <20221019083315.577464035@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747117300278344027?= X-GMAIL-MSGID: =?utf-8?q?1747117300278344027?= From: Jens Hillenstedt [ Upstream commit 834382ea32865a4bdeae83ec2dcb9321dc9489f2 ] In da9062_i2c_probe() regmap_clear_bits() tries to access CONFIG_J register. As CONFIG_J is not present in da9061_aa_writeable_ranges[] probe of da9061 fails: da9062 2-0058: Entering I2C mode! da9062 2-0058: Failed to set Two-Wire Bus Mode. da9062: probe of 2-0058 failed with error -5 Add CONFIG_J register to da9061_aa_writeable_ranges[]. Fixes: 5c6f0f456351 ("mfd: da9062: Support SMBus and I2C mode") Signed-off-by: Jens Hillenstedt Reviewed-by: Adam Ward Signed-off-by: Lee Jones Link: https://lore.kernel.org/r/20220915092004.168744-1-jens.hillenstedt@ise.de Signed-off-by: Sasha Levin --- drivers/mfd/da9062-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/da9062-core.c b/drivers/mfd/da9062-core.c index 2774b2cbaea6..c2acdbcd5d6b 100644 --- a/drivers/mfd/da9062-core.c +++ b/drivers/mfd/da9062-core.c @@ -453,6 +453,7 @@ static const struct regmap_range da9061_aa_writeable_ranges[] = { regmap_reg_range(DA9062AA_VBUCK1_B, DA9062AA_VBUCK4_B), regmap_reg_range(DA9062AA_VBUCK3_B, DA9062AA_VBUCK3_B), regmap_reg_range(DA9062AA_VLDO1_B, DA9062AA_VLDO4_B), + regmap_reg_range(DA9062AA_CONFIG_J, DA9062AA_CONFIG_J), regmap_reg_range(DA9062AA_GP_ID_0, DA9062AA_GP_ID_19), };