Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2385639lqp; Sun, 24 Mar 2024 17:06:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUH66nF2ufGjYxEp8Ld/wohcGuVRknxrrTSv4Ww88JeCquF4WHG7LN2yrwG/bjLmL3bwBN5c8RDLT1vWQAzaF6CIP9M+whl0Qq5LGAs2g== X-Google-Smtp-Source: AGHT+IE69X8gKY6QNYmj9x42W5E9p39xNjlE65UuQ/JlSLM1XdZ0gZFHQqcFBYf8c44QD3xl/dFc X-Received: by 2002:a17:90a:2c0e:b0:29e:c3d:c3fc with SMTP id m14-20020a17090a2c0e00b0029e0c3dc3fcmr3679317pjd.18.1711325180083; Sun, 24 Mar 2024 17:06:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711325180; cv=pass; d=google.com; s=arc-20160816; b=AKHgXnc4S/XlVQwNfLEYdMCyrM94su/sW/SWKsn2uslWvVKQEbVZqjMmavsgrZ4wrv M03ck9oJCeuMRkSXIYkh2MfPVPH02t1NYac8qIEIbaG+L0CRt4uWP48REzjLXP4YMfs8 khMzJBdez2eIjbav3fwod1e8rj7iDpR9s07iH9pIKco0XIYqSYKqbxYr6Gd4fxevezDm NIN/J0kj3U0j8pI14f6K6lX9Td99IPs+fOXSt4LB3g8x+1aC8jyeFkxVqRBSE6bUB1kV DbHdbpgpWL7BX2aWdpEZcXTVB8L23zMV4d6/SRd8+V2jonAz4SQRRZyFdblgDsl3yd0n 6Icg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=aAttzlcZmpHzNsWlPVfCiS6jNakN3OjowXwQCyT8guU=; fh=z2I4z6EwgLbOJAIGuBskLHtLg3j7oq5M72/Leyco8Kw=; b=v8sHlYQGWme+aqWO0qUeCBFmcBQinHVDFWiqwmy05/izQQTVHMz1eEZzt3t9Derpef hdQDb9G6fRzEZh79O7YdyAFNlowvlPZ6a6Pec/xE909UMJmZ9jBBR3NuzfZYsFPNZg2d K4y4KCuQQYOmASEZXQnk+BPX4oobYeLEBCqvmj1XkgDM3lQPmxGyXu2TajC3WLa5ht7u O3N7afp1koB9Fr/cUAv1A1hmFhkMakBDF7AjRmZtAhBYjya+smzd+/gB4vFRwlya96Vq oAeiCPZQ5z/oYamrVoHJDRzmjyQ+xXYmH5+2AaYFGZ9zti9CPK+O2gFZtHdf7zpKaTbt x01w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CJBZyrsi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113280-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z5-20020a17090a980500b0029acb9d5bffsi6352798pjo.189.2024.03.24.17.06.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:06:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CJBZyrsi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113280-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4F53B286841 for ; Sun, 24 Mar 2024 23:59:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1E6118C9D1; Sun, 24 Mar 2024 22:41:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CJBZyrsi" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DDD6C18C220; Sun, 24 Mar 2024 22:41:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320081; cv=none; b=hdPXrg5mJF1U33V9IFunQQLnmliMXDrADmuCamKQUf7KEJwn6ua4U/mXxL/5vrlm21LuRbATRLXlA+KMhjXCefEM4dbuwWBc/5x7nUiEwwQtuk9fv2Vgadwt3ynTJZn+ZXkVt03e/sHAoqlhxSI6fCdrEgkExnW1VLuEdq2O9DA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320081; c=relaxed/simple; bh=i6qbJ0YigLE3yuZNNmqK6Rf7CvUlWxagcLz5SoaV904=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hkRgilwQ/co63ps1pWTbQv+DQKLQIjhEyMNm4j1OXoQcSFKQM9v2b9WX3Rh568FuCchhWU16h2mZFuyieALOSl07dZXpiM4d+WaCwQ90RcJ4EGJAOtSd2QFXlpmb95KwPAMJW4xaJsz30u1/tb6Znroe+W57EO7A8JMyqAbYNAk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CJBZyrsi; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E08EC43399; Sun, 24 Mar 2024 22:41:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320080; bh=i6qbJ0YigLE3yuZNNmqK6Rf7CvUlWxagcLz5SoaV904=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CJBZyrsigbHvBUEUNRc7cGemNZ98NP6fy5O5R/LlUATIXv3YNTVe4VzsWzLnem5rP t3g+dJ/VJRiGH8owtz1wy+g+xtaX1V3BQETq52ZJRqcUkAy/XbgWP8CelPXFcTRqcA bUTEwMBbqcPwJuKt5ui/9eBaz54DM1Fwys7HITiW71JeO/0ffHmZuBGJOqW23nxRWa 2Npi+8CvELsLCVgXEfBthDaOHidDjROOoBBX9Jd0AIARUNFtf7qepNfI8fqjlClUms F4NYVsKpvGOWwbz5lJbjgnAKcFhTM1t1P0Q0+0tIbRcTbKlWxSybSoxbbLwiYrPdEG WsHdy++AdaL+w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Julien Massot , Hans de Goede , Sakari Ailus , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 6.8 389/715] media: v4l2: cci: print leading 0 on error Date: Sun, 24 Mar 2024 18:29:28 -0400 Message-ID: <20240324223455.1342824-390-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Julien Massot [ Upstream commit 58ab1f9e140006e9e5686640f1773260038fe889 ] In some error cases leading '0' for register address were missing. Fixes: 613cbb91e9ce ("media: Add MIPI CCI register access helper functions") Signed-off-by: Julien Massot Reviewed-by: Hans de Goede Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/v4l2-core/v4l2-cci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-cci.c b/drivers/media/v4l2-core/v4l2-cci.c index 10005c80f43b5..ee3475bed37fa 100644 --- a/drivers/media/v4l2-core/v4l2-cci.c +++ b/drivers/media/v4l2-core/v4l2-cci.c @@ -32,7 +32,7 @@ int cci_read(struct regmap *map, u32 reg, u64 *val, int *err) ret = regmap_bulk_read(map, reg, buf, len); if (ret) { - dev_err(regmap_get_device(map), "Error reading reg 0x%4x: %d\n", + dev_err(regmap_get_device(map), "Error reading reg 0x%04x: %d\n", reg, ret); goto out; } @@ -131,7 +131,7 @@ int cci_write(struct regmap *map, u32 reg, u64 val, int *err) ret = regmap_bulk_write(map, reg, buf, len); if (ret) - dev_err(regmap_get_device(map), "Error writing reg 0x%4x: %d\n", + dev_err(regmap_get_device(map), "Error writing reg 0x%04x: %d\n", reg, ret); out: -- 2.43.0