Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1822561pxb; Mon, 13 Sep 2021 06:21:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBrTO8aWhXlBgi6w+Jz6eBf7WYOhSRIbsd741Elxln3V4N+XC5+zDkWGegTMpJ+ErHrxCI X-Received: by 2002:a05:600c:350f:: with SMTP id h15mr3293983wmq.144.1631539263271; Mon, 13 Sep 2021 06:21:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631539263; cv=none; d=google.com; s=arc-20160816; b=OpkRuEahQQkfbmL+N1jqjWGHPpIjQ/IluFg8xo8atoGokQsi+7CYj7PclJ7EAsJK+Y f1a3Mg1M5v1cTiga1XRswIUW2eO48ZOBuwdBV+4cwpiocPupm++WAL2ODHaFOKCHg6nn hTw8BM2b5cT2sVVKqICR+7J2LGUa8S4uVMs0eYMilRUceJJGLGqgiJ0mMCNjdOwL9Bfn B2Th8z3aF7+xHnweRmJJCF1W72OB7eevhiS+o+mzguVvEWC03QgsKkuPUIwSr+VU1bd0 epiWiQn/6ZTalcTY45GHi0T1dO4qWi5e2ICtuUrEWsNAoVTjDNhxYEqPXRdNK2ohDwp+ G9Tw== 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=a+UVa2nj8uDWY5bJ2uKwuAR5+Ph9VZ0KirPEVJ6FwaE=; b=nZcsSnUFJFJXi2VqtmvIjKjrDmO7ErvKU2PBW3XnZveWIJnYgqmov3t4jpldnXRwEy /jl4TwGoCUiStOekE2YUuQ/QXy+JbS10hhaA35crKqn4McrpwjmBamZ5Y/PuWeZ8nF5I 2IHOyRAZcg/uUvEYdBzc0TGf2IN0w7R9v+zpluacYktwKGzjmQRnJDdzxQ+N9u5gIqrc v8BtJVWBQG6/AXWyuxAj14LKh3eSoR0b6Czxywyw37pYFFM9EQI9dWwttg7DkHI5Wos4 kuLXYQ/kZ3OaMF8QanPuHStwyQrzOctjg9DAYdx1tAsTsupNhM3cM64UFItzjoaWr2Yu AOIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=B8v+rogX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 ee26si8755774edb.511.2021.09.13.06.20.36; Mon, 13 Sep 2021 06:21:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=B8v+rogX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S239600AbhIMNTv (ORCPT + 99 others); Mon, 13 Sep 2021 09:19:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:33156 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237451AbhIMNSL (ORCPT ); Mon, 13 Sep 2021 09:18:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 517D560698; Mon, 13 Sep 2021 13:16:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539015; bh=ncDBB8v6ZZ296ieyuz/ySpKYoMXkYRaSFXZR0cBsyxQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B8v+rogXv0VFjwxUGq9BfiH7r7Qudhs7c0zWjx2xDpl2TNL34znz1LOPrAbOwLkh0 XDvc1rplsM3oaweA3OI9bHXbnPqnKs7IByq0TQa8Orgzv+rtpv+D9yrfHUOj9+ToUy +XIFu0qXldbvDz5QaGlEeA2tRq1nvMwTYYNuaPco= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jeongtae Park , Mark Brown , Sasha Levin Subject: [PATCH 5.4 002/144] regmap: fix the offset of register error log Date: Mon, 13 Sep 2021 15:13:03 +0200 Message-Id: <20210913131048.056865165@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131047.974309396@linuxfoundation.org> References: <20210913131047.974309396@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jeongtae Park [ Upstream commit 1852f5ed358147095297a09cc3c6f160208a676d ] This patch fixes the offset of register error log by using regmap_get_offset(). Signed-off-by: Jeongtae Park Link: https://lore.kernel.org/r/20210701142630.44936-1-jeongtae.park@gmail.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/base/regmap/regmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index e0893f1b1452..43c0452a8ba9 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -1505,7 +1505,7 @@ static int _regmap_raw_write_impl(struct regmap *map, unsigned int reg, if (ret) { dev_err(map->dev, "Error in caching of register: %x ret: %d\n", - reg + i, ret); + reg + regmap_get_offset(map, i), ret); return ret; } } -- 2.30.2