From nobody Sun Apr 5 18:17:06 2026 Received: from out-171.mta0.migadu.com (out-171.mta0.migadu.com [91.218.175.171]) (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 7169E31A045 for ; Mon, 23 Feb 2026 16:57:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771865882; cv=none; b=FrQuPI79TkRBz3+be90PqUDwGI1tfq/HF1Q3i4D/BDoxxSxwdFWbYRsO5ztHHTkO2/MmV9tA31gVG3hti4HPojyzuVCmf35xAlamqQ3/qFJegZqiPrwi7gQwlDHVS8exmF14Ldo5dV+ltjdiIN92IxldF4WRLGWyt+jjo/SNsDQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771865882; c=relaxed/simple; bh=BjmrNggJzmi66aQmqPz4UhMsNxJJxa1q16jsQjBMoRg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GnOf3P1o/s6K18EMpTYllMBY2jH9Oa/CbPH1bgQQhi3jYJZNNYsGecGQnbDnXXA4HO5a28I9Vcha5D5O9PY1YpA1LPlUCrxXB7J5iul4e9WzFA+oDfBcAQ/tfQH5rNF2sXGojWoa1STZQXx/jFBgg4pC+S+QcbfM92mZxkog+GM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=Vb8deNEs; arc=none smtp.client-ip=91.218.175.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Vb8deNEs" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1771865877; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ACKCF7Sx4cJxzVQ7Qf86A89fhl8f5q32Mam+sZ5AZeU=; b=Vb8deNEsJm+92Oqi0KPQJHpOekHoFOL0aPQg4vei7EfRHwqMJR02F+GKBKn1haGgzdmBBK Zkr0bkyuT3iJLiIZSMNGfh3sGqDB/gZazrobqOQYzQDWSHU10LMgOUapLRzGrc6Tnm4Bjz wDdTt8Tn3sxiTOU4r4Uv4VaC+jiB3mQ= From: Thorsten Blum To: Herbert Xu , "David S. Miller" , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: Thorsten Blum , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: atmel-i2c - Replace hard-coded bus clock rate with constant Date: Mon, 23 Feb 2026 17:57:37 +0100 Message-ID: <20260223165737.342015-1-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Replace 1000000L with I2C_MAX_FAST_MODE_PLUS_FREQ. Signed-off-by: Thorsten Blum --- drivers/crypto/atmel-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/atmel-i2c.c b/drivers/crypto/atmel-i2c.c index ba9d3f593601..316a0ad53cf6 100644 --- a/drivers/crypto/atmel-i2c.c +++ b/drivers/crypto/atmel-i2c.c @@ -370,7 +370,7 @@ int atmel_i2c_probe(struct i2c_client *client) } } =20 - if (bus_clk_rate > 1000000L) { + if (bus_clk_rate > I2C_MAX_FAST_MODE_PLUS_FREQ) { dev_err(dev, "%u exceeds maximum supported clock frequency (1MHz)\n", bus_clk_rate); return -EINVAL; --=20 Thorsten Blum GPG: 1D60 735E 8AEF 3BE4 73B6 9D84 7336 78FD 8DFE EAD4