From patchwork Mon Mar 1 16:07:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 388698 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp3599358jap; Mon, 1 Mar 2021 10:44:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJz33OYbRIxnJi3UswEv6e48P1hAy7xU79Kz2uoJ7A9mCisf/NjZy6bRA/gT9Kt7wLuFMRAH X-Received: by 2002:aa7:d94c:: with SMTP id l12mr6662843eds.311.1614624244552; Mon, 01 Mar 2021 10:44:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614624244; cv=none; d=google.com; s=arc-20160816; b=J89MK+0zuXwZi+VwVb6f7xLuz4da7SjTqNGA1CCnDZUFDK+P6cxLHwTTZTzWkrat+M LfGltxCk6sbD6VvHeMgsHxYSQTmML0Lt93dE7nxNv6ImzohZs1DPODzdE67m1vpc0F7d zs6Wjd4SHlx/aN4Aw5XdChiG7gDE9wPrt3PXrC1GJlDGTDIzEEYNpc7AXsOgGRzG8NfB oIn+qoDeqC8iJRskRdKiIo16LEjXLJcamdBU6wW/OzbZqHxP9v3A7UUcRZTxeEO6fs9U gEqDR4nhvTrwfXFkVIYntze9CiSMCi7fZ8KpYU1GMZp4bym3LFeK79lNHj+EogCXQerc wEHQ== 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=EL3r39P1SPq0Vl/NFIOX6wJfJsGZgaBVyOnsF5IJx1Q=; b=dwz7BzX4NdJkEpIgWMD/JoTyKd/BahkMXPtYHEIWeXXpyXt4v+NBS5kQCUJlzWkmQv RO/VEVYKKSot/4RdCdNIDrHj2rpyCuMTXr4G0iU2Fr+lSrgA8rRlx938CM+QAtxj0idP JNZ+LzL/M+6I7maLSi2B7LJbBcMhk9LADezboe253fmqfB9xaoyYmck6npXOGPYTP1Xs uft1g0nN3rcb5FyUzwEGSmPfBGCWd5cKc+TL8IkjR+9beNVgYbe43YggwJ/Vi7bpuQNq UkMjQqiGaqt0qXqOwK14dLm3brzfmAS1qbw3Pw1jZVH9yvy9YcjdSJF95i64rzE1Hd6K 7dUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Izc7h/n2"; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 e23si11772137edu.203.2021.03.01.10.44.04; Mon, 01 Mar 2021 10:44:04 -0800 (PST) Received-SPF: pass (google.com: domain of stable-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="Izc7h/n2"; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 S240541AbhCASna (ORCPT + 13 others); Mon, 1 Mar 2021 13:43:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:51240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240355AbhCASit (ORCPT ); Mon, 1 Mar 2021 13:38:49 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 316AB651B4; Mon, 1 Mar 2021 17:12:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614618765; bh=GvD+pCt/CIV3sJKGMWi1Duu9EOg35dH4ZvSVMHmzIDk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Izc7h/n2S4UYxQaPygvdP+VvUyZu4FavEZys9EWBeZhmKUtxUDmR0N1K7TVsp5cz7 9cd3ZGEVX/v/J+WEknZKQDR0j/mxJEAdZqy1Z9IhpKk+9nPg7nPkni+FZsEX3b/2Vh n7bHg7eO1Qx83PN6Hm2Goc0jWIZKBjMexmMAGFmk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Srinivas Kandagatla , Mark Brown , Sasha Levin Subject: [PATCH 5.10 209/663] ASoC: codecs: add missing max_register in regmap config Date: Mon, 1 Mar 2021 17:07:37 +0100 Message-Id: <20210301161152.128557363@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Srinivas Kandagatla [ Upstream commit e8820dbddbcad7e91daacf7d42a49d1d04a4e489 ] For some reason setting max_register was missed from regmap_config. Without this cat /sys/kernel/debug/regmap/sdw:0:217:2010:0:1/range actually throws below Warning. WARNING: CPU: 7 PID: 540 at drivers/base/regmap/regmap-debugfs.c:160 regmap_debugfs_get_dump_start.part.10+0x1e0/0x220 ... Call trace: regmap_debugfs_get_dump_start.part.10+0x1e0/0x220 regmap_reg_ranges_read_file+0xc0/0x2e0 full_proxy_read+0x64/0x98 vfs_read+0xa8/0x1e0 ksys_read+0x6c/0x100 __arm64_sys_read+0x1c/0x28 el0_svc_common.constprop.3+0x6c/0x190 do_el0_svc+0x24/0x90 el0_svc+0x14/0x20 el0_sync_handler+0x90/0xb8 el0_sync+0x158/0x180 ... Fixes: a0aab9e1404a ("ASoC: codecs: add wsa881x amplifier support") Signed-off-by: Srinivas Kandagatla Link: https://lore.kernel.org/r/20210201161429.28060-1-srinivas.kandagatla@linaro.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/wsa881x.c | 1 + 1 file changed, 1 insertion(+) -- 2.27.0 diff --git a/sound/soc/codecs/wsa881x.c b/sound/soc/codecs/wsa881x.c index 4530b74f5921b..db87e07b11c94 100644 --- a/sound/soc/codecs/wsa881x.c +++ b/sound/soc/codecs/wsa881x.c @@ -640,6 +640,7 @@ static struct regmap_config wsa881x_regmap_config = { .val_bits = 8, .cache_type = REGCACHE_RBTREE, .reg_defaults = wsa881x_defaults, + .max_register = WSA881X_SPKR_STATUS3, .num_reg_defaults = ARRAY_SIZE(wsa881x_defaults), .volatile_reg = wsa881x_volatile_register, .readable_reg = wsa881x_readable_register,