Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp942616rdb; Tue, 30 Jan 2024 03:29:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IHY9Y4lmUBX4xI99bLd9efrtQ9ToLdtKE4bZlo0LrvdecU6PAq4uxixbnF+JMV4tLPVlVlx X-Received: by 2002:a05:6870:a927:b0:214:8388:2915 with SMTP id eq39-20020a056870a92700b0021483882915mr7572314oab.1.1706614150693; Tue, 30 Jan 2024 03:29:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706614150; cv=pass; d=google.com; s=arc-20160816; b=sZv+2Y4lkdnL0LN3L1axYk9RABiQglVKVjoAe1RjD7k52qVDvVgDLjNKeUdrPn2N3+ fZho17nCuqbRnt4uomVaKNBUZDpBSADmsiQxnnCoFjyeWC9eOKgVdtCIxrasCQvMl/7D uTa8UnXbweoN/yhbol0bNnmmaSRAJfSYyd3NU+7+PNHhEiHrAopBXA1r/yjSmZR5K+te wtD6xMy1/rBYVV9Lf5FL3Nylk45wxkGNS5hAW/WcffihQB933FsYiXw8wHYaZUilMC4K VpHN4n7RYo+BwPyki0KgngOaQkr0t2o4Lq/rjZQiMhl0psm/HjsG61ygczr9Y2azExQW +fRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=lNRA8G85hsULgv0uGmfeJsSV2FBs2FxoeGapM1VIbhA=; fh=Vah08dgbhM0Bfki8eLXXKpWSRUjCAnKPuvsjtd0UU1w=; b=x6eE9f68WRN4/QzgOBYgRrWqBNs5EI30w5fNtfmDVN8Tx3yBGzbdEv8hfaDhQAGYhM vP+rNSS5/G721UYwojgBn5rZ6mELBzNSyY07LAmE9tUoai8OttMGX5Tu7fK6NIUjVL3v 9KU8PB/4WM1WIE/0hpTzYPhY+ZWB+0ur1voGpndbztNfcuv2WYWvn64czaoXhPM+AHEQ 1lMoEqtXLqPU5Xt2DFXRzquhVm3dvfUEUdFTDSvfqdhPsDXppO/xiq7n/d5151mp06lB SlYl+0mWXkoLgcQ7op8zRoVbTb4I8QV9zFOhwN8w2Zw+X/fi3BrZ4AN+xIjzCSZh//CU J98w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b="M8/8T5fh"; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-44507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44507-linux.lists.archive=gmail.com@vger.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 l7-20020a635707000000b005d8d56cd646si2467859pgb.130.2024.01.30.03.29.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 03:29:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44507-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=@sang-engineering.com header.s=k1 header.b="M8/8T5fh"; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-44507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44507-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 11E27286281 for ; Tue, 30 Jan 2024 11:27:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF86F66B36; Tue, 30 Jan 2024 11:27:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="M8/8T5fh" Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) (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 6D9D066B29 for ; Tue, 30 Jan 2024 11:27:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706614025; cv=none; b=GU3MeQnG0FbQHEiIpCRe5WFK7seReJVNm9OHzmvdFpbTmAPeJRPppexfrWWyPNR9aal8Pl7AXaCEc62nv28WmnVjPO8E638sAQrRMBHsk+bLL1dwOGELT5hs9+cqYR9ezXepI5uofTBllYmwfppIq4DXwSQ67cf73CwC8EXCUY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706614025; c=relaxed/simple; bh=muX3YxseE2TzFY8Q79IfU61c+1oWD3bJbHYy41uJG1M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oTs+VY2zP4F3vk7HTeeXuR0n2vWGPcpmA+9JeQpgltdLjOVbqMlSGZ8ugYgbax8Ci2lp16/Oc3M8oSwi2e3+RnZLoPUnwQ9IvI4owMCjXQZhG73/LAP0fGs2h8JlWo0FLuD7dORfUv5uLDy3rrHXZC86iI7uT2jVXNpNQMySzfc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=M8/8T5fh; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=k1; bh=lNRA 8G85hsULgv0uGmfeJsSV2FBs2FxoeGapM1VIbhA=; b=M8/8T5fhB13dpgX9CeNE ghKdyOTkUglY935KQRbHgrBsRzVitW3NhuONwFJN0OhH5fsCFvGeCcQZNRoYhYD/ s/yx5OtcVXLDoWV7oSiRXmb8u0dzNcrNgabX98mD4d/zYIL+Sa9+zSIfwa6KS4bY gAlZ/ZjgmsPuTjgQt5kjxa8N+7IJaiM2ZJMjRpGfB3mtA/u09RL1joAbhLGfY7o4 1ibW7WpMQnC75CpM00jC1i8yC22ABTZ7ZHw5lEXlSmxOlEusYAExVnPQwGuuKgJ6 XZqxcnhfVEJ9QVXqQSDPqeVcl6ATxhcL/BqYR9CJomMYABWXGp96SrXRzMYH6dBW Lg== Received: (qmail 2816817 invoked from network); 30 Jan 2024 12:26:54 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 30 Jan 2024 12:26:54 +0100 X-UD-Smtp-Session: l3s3148p1@g1gbCigQqL5ehhtJ Date: Tue, 30 Jan 2024 12:26:54 +0100 From: Wolfram Sang To: Geert Uytterhoeven Cc: linux-renesas-soc@vger.kernel.org, Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] spi: sh-msiof: avoid integer overflow in constants Message-ID: Mail-Followup-To: Wolfram Sang , Geert Uytterhoeven , linux-renesas-soc@vger.kernel.org, Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240130094053.10672-1-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tLJ2stAhg6obWp8F" Content-Disposition: inline In-Reply-To: --tLJ2stAhg6obWp8F Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > What about unifying the individual SIFCTR_?FWM_[0-9]* definitions > into SIFCTR_xFWM_[0-9]* instead, and using the bitfield helpers in its > sole user? But they don't match, so we can't unify them? #define SIFCTR_TFWM_1 (7UL << 29) /* Transfer Request when 1 empty stage */ vs #define SIFCTR_RFWM_1 (0 << 13) /* Transfer Request when 1 valid stages */ Also, the steps don't match (1, 4, 8, 12..) vs (1, 4, 8, 16...). --tLJ2stAhg6obWp8F Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmW43PoACgkQFA3kzBSg KbbsJg//UOga82uDR5hhkR6m2/6zD1GsGFvrFCFo1DhS+LdxOSzmsC7oxkP4AVSN w8VFjl/YnskkaUPsVhyaDpckse89Zm4cX1kp/FthiTYyp0Ne7406Bm0O6yAel3CF 0O73CrW2gKmw3q6NG7v9tnsN8RI2RlSxIN59AMSAMryxod3dDI6dCkuJc1AHEmpn loiVN99PQTvhU3REby8hSTF44I3uiez0lsYQ8YQefE8Hbo0V43YYFD9SfEI8CyPM 5+QYsscqp9WQQFwo5RpeW/5tk4nssSDpTe4DkQMfXY/JYt+51oWJPlR5xvrmqEEF jO0occLL+9YzF4S1QBxWA72DsQhNPM0hA0uW51I99RROef6b56GTgJN7BwzCLi7H zXoSstpBsgn0VdE5eqz+hR8ZZugxIFWRqWNskkMCMkQumXwA6kV+pmsk5XTndfVu S8emAMcGqMwcIGE4PYiB/IM92kC7r/kh8N4x5COk2PzNnsTD0TEWYzL2Q8/xNUJN EIe00Qd0ZL/pzvTCCS0jfmU6ByqXEpEAa+KCdDYqpIawJdWwSKcs+Y7a7DjS4SMC N/ewwerD/pBea7/c1LVMCXxCbYiUC6yi8Buv8Yy6ORV8BRxXKDz7DcRRE0IquCmI jNvLVYtn5yP/X0Q7oy7w/gaSq4gWg1M0STgq1boTxDn5uidb1JU= =/+Ku -----END PGP SIGNATURE----- --tLJ2stAhg6obWp8F--