From patchwork Sat Oct 22 07:25:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7502 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1104927wrr; Sat, 22 Oct 2022 01:33:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4w03sVN1QoaCG3FdUUZiEuSGZMJLBGbrQHfrTsLfzSFCnu6/vM8cy8f0yFpg143OT40aiV X-Received: by 2002:a17:902:f60a:b0:186:5d06:8da4 with SMTP id n10-20020a170902f60a00b001865d068da4mr16413135plg.106.1666427623681; Sat, 22 Oct 2022 01:33:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666427623; cv=none; d=google.com; s=arc-20160816; b=Vwq2AQB7pgfEYodyEFbOoAy5ol7N8+L7NEK1YHUWZP4B7LiNb2mVhXuDp/GSDH2bYx bfSCR9QaCo8M3hEGHStfvtGS3u5LlTAx84eSY7yd6DKBjqQCLKNA4j5VvNF444uUek88 nVSfmRSdR+igvujQMGCDoCsX/oW+pjqR+xpHmTbsAFOMgsT+mzsjVbbxF3WKKfqXR9be GcWolze0mC7M/MgTNiOjs0GDL9MYYyjiTOdcOP9BH2ZVE21dzZT1SjP84/G5b8aMqvxs SEYdjFlnyuxLvHwsqFBrx89t5Ihr6C1uzbNRjvlnOHO0JX94ezQ6mT9YOjIblu00k8rH DyhQ== 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=UAuL58kk6mMQxx3X3XMmrJP37wpSUuTzuOeEjadujXvfEDk0yKPKe9j+JBYGf4QX/o u6egF3F6ze5tvhPIzeMREORYbg8EKaEqdoJrdxVFiUDzB/gM98tuhl4TsvCci1Nl7rp4 VAmSF+f3h5yPwv/j8OuimY0Dg1sMwSLDTTd2BSi0p/C7Sv+IBQJOBUIHrV9cE7Q4AdJx 4QtUaY1ehIEr0DnRqYKEP93Fd9teDATs3hrT5u2SEtdBPedpgP7KbuxBRR9o/+M/Alj4 D4yfNJQfbDmGiN59Wks7Zx/A3RBwifJIAbDivKVX3hRnbBlPw0J9Q+vGtfhldXjc8Ul3 nMuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WUKWoFb9; 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 cm4-20020a17090afa0400b00208606154f7si7280267pjb.117.2022.10.22.01.33.29; Sat, 22 Oct 2022 01:33:43 -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=WUKWoFb9; 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 S233705AbiJVITK (ORCPT + 99 others); Sat, 22 Oct 2022 04:19:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233335AbiJVIQk (ORCPT ); Sat, 22 Oct 2022 04:16:40 -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 272702DCB09; Sat, 22 Oct 2022 00:57:24 -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 4696ECE01BE; Sat, 22 Oct 2022 07:55:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 446B2C433D6; Sat, 22 Oct 2022 07:55:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666425347; bh=1Ex0IhPVO/kdm+4mY+F4aJIeYW5QUwl8qdfY4dthjZE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WUKWoFb9wQyrUa3wHcJSg6HfrTlw+9/W48okB/V+NxPJPdYOrBZoxh42SwVb11Jo/ uKaWy0t3kmo/UfES1e+6lqHEnHJOPMXWj4eBgevsIr66r5QsIXGsBqh5rM0UWpsIjY irj/IeA1w2AGNsfUHQRrcM11LLn7TIHSbPMpInWQ= 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 5.19 472/717] mfd: da9061: Fix Failed to set Two-Wire Bus Mode. Date: Sat, 22 Oct 2022 09:25:51 +0200 Message-Id: <20221022072519.210039111@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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?1747376011868480050?= X-GMAIL-MSGID: =?utf-8?q?1747376011868480050?= 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), };