Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp45678pxb; Mon, 13 Sep 2021 12:30:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVDzDPNH+tZcd53hbDaI19YjwIn8sOrAjuWEihJFgHucuJIB/sQqzHkYZXLrD4XcM1E1we X-Received: by 2002:a17:906:980e:: with SMTP id lm14mr10390100ejb.464.1631561435049; Mon, 13 Sep 2021 12:30:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631561435; cv=none; d=google.com; s=arc-20160816; b=pu57CBEAYMXA1epQ+3RTDBq+DyBVB6x9GioTBjTpBjrY1WbeNs0PoAIQrWFsaGJ0bB PascHyq3qNpK1YESC0wE97YQaviUkxVcoc2vjtKDxMS7dGT7KvikftkPdn5xWe3v1qIF XNGxRiLsGOr/P7ZINn5mKPQu9gShxDufU+oAZ+8VuhIY8FydM27w3dgXyPApgNQS+LbD WvLHhc8OBiEnq42DEWr+wHtjnEWLIpLTi6Lz0ohvF/kAKTeHVMUnnntircnErDP4K1WW m7h/DNC5BiF3+UmNIR1cHb/eGj6CDSKTVcFxv/glNBs0LG44uYqmohpqahCU/HCcr06d UbfA== 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=wGITQR/3GqOm16a+R90uIXRPnJ0Uw2npZtTUPTV/A0Q=; b=ekbKpLiRY1UUtepttc4PqP71Y66vUBSwIEqIUQP+VStt8rETD6YNlpfG+72IdhdqGH VIXbf4jjuRRt4YNBqzemSvpDxfH7F8nGKwwOWfOn0jDokeP4I2pxe+9kSAV1rEIIHjz8 1iW08m6/yOpdu7uXTxpwQDZtPYeVM1u7SXgJSatLdj/fSXwfhRlOSxS/rjsybLaSlBI7 7CDwET+eTQAMy6a0qf5q+LMU0pO4zkqK4zngM1xH93uKFhRpybgNdNImjPGnyQCovSWk LlBTPGsWcx8N/euj1+w7vwdPhlYbHk6nP0D4+vti/PDfeCN/F8mwOn33OL2MOMubBxB4 47MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=srf9gxHM; 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 e5si8562804edm.299.2021.09.13.12.30.11; Mon, 13 Sep 2021 12:30:35 -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=srf9gxHM; 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 S242010AbhIMNbq (ORCPT + 99 others); Mon, 13 Sep 2021 09:31:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:53406 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242250AbhIMN2c (ORCPT ); Mon, 13 Sep 2021 09:28:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1BE6861261; Mon, 13 Sep 2021 13:23:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539424; bh=SEHDyJufO6NEyM38WzYmIsRCTyI6KfpW3u6zvfVA5MY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=srf9gxHM0XFtbvefV1Roay1b2+65qJA70z4e48MGuytxflxUrAHKOxMK2LLTDSEUL +71D9p4Cucl4GO3xqExO9lnFXV+ZJwSKpG2fqUmIxVhS4fqhY0AtozFf8j5IuFhAUv ptO93kR0QNwpoxBEWSb+T8aLhhmLZ1S3UF9XLkxQ= 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.10 002/236] regmap: fix the offset of register error log Date: Mon, 13 Sep 2021 15:11:47 +0200 Message-Id: <20210913131100.402760320@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131100.316353015@linuxfoundation.org> References: <20210913131100.316353015@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 5db536ccfcd6..456a1787e18d 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -1652,7 +1652,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