Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp221039lqp; Fri, 12 Apr 2024 15:53:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUK7cicwIJVW5ZY87wERloMBjMAHCd9DJO9cRQClwlLEdrYYVvfrCjI2Hb1fJXwWdaH1/aQYWcCufJMamkz0m1LKKx1yY/KLoHEY1Ys6A== X-Google-Smtp-Source: AGHT+IF588ZszvsZxzGjiM2mH37oAz01E9o5L0hsuqJgY1jar5nKPagGEm6afPwCc++/1pnqWluh X-Received: by 2002:a05:6402:3895:b0:56f:db50:f2ca with SMTP id fd21-20020a056402389500b0056fdb50f2camr6489297edb.4.1712962385681; Fri, 12 Apr 2024 15:53:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712962385; cv=pass; d=google.com; s=arc-20160816; b=xPJeOBuH77UcU+RBxlkQu71ZRUzcyANc91olFOXfgllG9m38E5Yj5oeEOdORH6IjLc Mee/u0s16hH1udmKAL6pHdteKAh+cip51ppcO44o12l7x1rlChFluNfbhw40g+zod+7A mYRWEhpDsAPnVfd/EhnsqajWrjwXwi1yUOLDo0262cmHwdHavor4onfEsAQDRmdz6rSV iPClvRs8sT7idkSmDqwQD+84y2XPcqD5TMDHRUNeicR/U8TthVd5GzesMWEV9th/eUHH NwjcDJHCQHqwbKRoiiUeyGHHnnoZqiNuMf5gYRcVFoBTDzKGcDws2fVRdQVi4rRajy/9 m7kA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=CSa8cz5wAyIGJBJ5fRcr8/LXYX8g0rZDA9Kkuso4nz0=; fh=E4tZklmzt5rGMvGcx20Yxca85GlVMuMhrheHwZJidA4=; b=ApjZFQRKN6G/nOIi0cE+7FgixxZu68lM/E0JSuEJkZKlBPz4m6tnKaWFvDH/aYJhbQ A3M5tRENHWqFHer6kOJKBlzJ29YG95rtT3L7Vj3QGu/2/PJEhWo2hP0a7Ufp0/yEH7Tk JwyFoYKNYZKdvppvjVJYpg86VYP/Li4CQHV2GRFqm/5zC3BsGqJenPQKFytM0ya0LHNe LiD4QfTw5iaa9ajVZLQhP8YsoSVldwbxY74qzFDQvz064bSbepm+ZgpXBPijgaDoD5YS dp+QhRsic0W3GIuH0XyTl1U+9+UqTA5KTq/Cwx+OqNR92DEz0g8irrYObZap5eJRbmqc SmXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=bd9ksUEN; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-143420-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143420-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z12-20020a50cd0c000000b0056e7896644asi2098339edi.638.2024.04.12.15.53.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 15:53:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143420-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=bd9ksUEN; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-143420-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143420-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6B5EC1F23859 for ; Fri, 12 Apr 2024 22:53:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A73091514F8; Fri, 12 Apr 2024 22:53:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="bd9ksUEN" Received: from mail-oi1-f174.google.com (mail-oi1-f174.google.com [209.85.167.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D61C61514CB for ; Fri, 12 Apr 2024 22:52:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712962380; cv=none; b=gHVXer6/ZQoJr58AEfLEE//PbndNi+BTaAn+AawACCFizf+mxOrEqRsan/7SwiEp3J13fQoI1uKm/wu9RKu9Nlw54+Qbc0LuvUsSebUuMG2Gx7SXS/qWdnFIdGP+zx1fcf497hHecqGlLrUd1VELCdf/Tuhcon3HjRgv6vamwi0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712962380; c=relaxed/simple; bh=nlYllQc3OeesLara5AXWDxvl2J/1cEj76GK6KvJeHiY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=HUy1+c/vkG/yldRPxNcNrZMzj3HmS02ApmCaZ7RfBxvcPcKNk6ohV/6XQ7OuzaYWyjNfZ4fTQbZkHF8S+WasA7aktYxpclBtiCt/Ebod0MdDmtX5a5/WRDq/3NFJzZ2KjSHrexXPepkMyh/59lhWLtdus49YtFXFtTCg/mKS9rQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=bd9ksUEN; arc=none smtp.client-ip=209.85.167.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-oi1-f174.google.com with SMTP id 5614622812f47-3bbd6ea06f5so881400b6e.1 for ; Fri, 12 Apr 2024 15:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1712962377; x=1713567177; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CSa8cz5wAyIGJBJ5fRcr8/LXYX8g0rZDA9Kkuso4nz0=; b=bd9ksUENWE+Ag+zeAUhB+1lYEOBamyYJfNoLdH0uhJF/lEcb49mqR/8Edk0+JOxYm+ wqQqj0DxKVPvlpoSIB4tT76vzUbDRGpUuM0tkdIzG+0cYerWlhw9s7i8V8UF6gEWiolb mTmdG3LVVsEJqXdf+WRnOtyheyFkzq9JZcOl9tu8cnEJE1EDyxUhgTzMyU6DjcayYycI +tqEH3ieUPG9dDsh2p4XgXmMXV8Y5uN+BHlBTUC1MEQR6RQZNHe+ydNHhgTaR779ah7y 62Ll1OzVQsEa6D3pxh48hnWoV0E9vQRjA6msoI9zHGjdHAIDi0BfL5PE4DZM80FKR8RR xwKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712962377; x=1713567177; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CSa8cz5wAyIGJBJ5fRcr8/LXYX8g0rZDA9Kkuso4nz0=; b=rj74MvIFLLyv1CjQi+aMecY2G94oJK/Gm8JFGPKu53MCbTamZ9yKJjqvd+fRNAfUeo KSEvvMWz3LDhNEuWNA4IlfGsk5hTJrpHRjm6j34EXN5q86z6VEh0u7JDQ2/mauU4Dxpb EWiDRrn58zbgtUvP7QXdK2cKb+ZTu5bJ4+rbNaYOXElvPvFKigQZVJrBOBhQfkYHPywc 56XFSezfa6Yjv8nU0QdfX3ZWvWcDzkubd8zlMGMB4xPoDgcrP7uqFLREMOGjhbHHaFmi n72bmhrVthQgKBLBLGzLntjv294mlBFR0IYq+SbIT4QTaC20oYdKv2mhpf7SsVLth9Sg guJg== X-Forwarded-Encrypted: i=1; AJvYcCVo0ZvTcWU0VV5JmYW2COpIuPKswV/GV4I923NFSrjFkymwmikhIKetU1md7jnNfrfLE6XFZ2MtEdZjN/cXU9Qw1dZtF62A4t9qF8bJ X-Gm-Message-State: AOJu0YxS+f/JnGU7OqNWwNEFb9oM56Z7NEGKxOHbe1+KL23N0IF4NqNp odloCcV51yO4ulxxg52ErdbtfZKZf4Wr5eLlI6ZyURbuq1gIiA8gpy4s9a0lsr7Hg982QD6prkV v X-Received: by 2002:a05:6808:f14:b0:3c6:fe91:1dea with SMTP id m20-20020a0568080f1400b003c6fe911deamr404579oiw.5.1712962376890; Fri, 12 Apr 2024 15:52:56 -0700 (PDT) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 22-20020aca1016000000b003c5f3c1895esm749906oiq.49.2024.04.12.15.52.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 15:52:56 -0700 (PDT) From: David Lechner To: Mark Brown Cc: David Lechner , Lars-Peter Clausen , Michael Hennerich , =?utf-8?q?Nuno_S=C3=A1?= , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] spi: axi-spi-engine: fix version format string Date: Fri, 12 Apr 2024 17:52:48 -0500 Message-ID: <20240412-axi-spi-engine-version-printf-v1-1-95e1e842c1a6@baylibre.com> X-Mailer: git-send-email 2.43.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Mailer: b4 0.12.4 Content-Transfer-Encoding: 8bit The version format string in the AXI SPI Engine driver was probably intended to print the version number in the same format as the DT compatible string (e.g. 1.00.a). However, the version just uses semantic versioning so formatting the patch number as a character is not correct and would result in printing control characters for patch numbers less than 32. Fixes: b1353d1c1d45 ("spi: Add Analog Devices AXI SPI Engine controller support") Signed-off-by: David Lechner --- drivers/spi/spi-axi-spi-engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-axi-spi-engine.c b/drivers/spi/spi-axi-spi-engine.c index 7cc219d78551..e358ac5b4509 100644 --- a/drivers/spi/spi-axi-spi-engine.c +++ b/drivers/spi/spi-axi-spi-engine.c @@ -623,7 +623,7 @@ static int spi_engine_probe(struct platform_device *pdev) version = readl(spi_engine->base + ADI_AXI_REG_VERSION); if (ADI_AXI_PCORE_VER_MAJOR(version) != 1) { - dev_err(&pdev->dev, "Unsupported peripheral version %u.%u.%c\n", + dev_err(&pdev->dev, "Unsupported peripheral version %u.%u.%u\n", ADI_AXI_PCORE_VER_MAJOR(version), ADI_AXI_PCORE_VER_MINOR(version), ADI_AXI_PCORE_VER_PATCH(version)); --- base-commit: 637ced031d3c490f0c37c1e826574f39909647a5 change-id: 20240412-axi-spi-engine-version-printf-c5204b657a9f