Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3057897lqo; Tue, 21 May 2024 05:53:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWgVHQjy8Yk3ZroCnSwzrtfruQvkL/Nj8pWmSvtmb/jlAp7ddMOeixwQD3xdNMwS4NXwLehvr2CJBK4EI7xZBDFa8IkhN+7uG9ptxdoxQ== X-Google-Smtp-Source: AGHT+IELSAgJZ908Wvi0z1YjBy51caXPMLGpbwtsRf4Jdg6kYuJSni/xfjwhwJwWchNI4G4oRuHr X-Received: by 2002:a05:6808:d2:b0:3c9:9385:d2fc with SMTP id 5614622812f47-3c99703929cmr34134707b6e.8.1716296025161; Tue, 21 May 2024 05:53:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716296025; cv=pass; d=google.com; s=arc-20160816; b=CPy3OTK/Ie9E2s2hnTclfMx9Q+k1+txUasOxEDnMBhMwOiY4+AA5A6HGYWZBA2Ft4H cq+FFcZSsi2OLEkdNDT5ryL96NJUNgSYJFzjg7HN3Yp57jxHLb7Ox1h83rlSdOWzJS6z Vm1Rvr6Rw4VRO7WK1LLCy8fhNtwcMmM+Dk+wT98d+FsNzdgM4msf53bY3LeyO0LklYe8 bU+nUdkqfqK5QAdaBY86IG0LjbSJrORt4XVUz5ki5ET8H4/aulOXSr9hSsLjb2PPKk/1 m2KIGCSfPusT+dFdSKFMrU3OTYH0T3QkByk+3w10huuq3SBx5AVV7vll31I+jho8EMw6 bBbw== 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:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=lgDiOgPFq8VFi3B4aIXbFrjhcBMxVHtHlXhQpFMcXhU=; fh=vvZEF92MqtUYwN/fm4g6eIs2oe3HJQ+eeyRL3InbA3g=; b=Fn2k4U7Ie4/X8z806O5zGvD3dCMkedeyqDarO4KgQfIL8el/OiWwhA9KGY9xo5sCBy /CjCPVJxtGj3q8N+DCVNoI1RzC30ViKfmAginSOYarTDsfBF0tfCr573RwEw+/LZAMvo GnWsIaQbJgXewzqgoJMtTiqeASKGaNtYPVnyLU2a2CiBIrUm50noKEadjOhE75//oP7F 3fVQMVFkcOguxIc/T2BE+kyBM0iBI1GabfQ2baIlkSTs26eJ8q57ZlFQCZuUtfG3OARS 60Is2s+Yl8rkrxGniDfFLUXu1Hy/NydwfH/y2mujh65adSbuhKBJK3e9tcH9fr0o2ooe jtEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=NxecRWZ9; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-184966-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184966-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf364f6bsi532901585a.628.2024.05.21.05.53.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 05:53:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184966-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=NxecRWZ9; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-184966-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184966-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D78871C20971 for ; Tue, 21 May 2024 12:53:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1843D77103; Tue, 21 May 2024 12:53:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="NxecRWZ9" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 D73131E48B; Tue, 21 May 2024 12:53:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716296016; cv=none; b=m/p5qppq0UG/yaWVPzDZWNLdbSJO5Mj+1GeL9+R0cD1I0wGVZt8sr5i1RmFnd7CjbHdqY/oaJUoj9mpqEmNikann/ubVUw1dcRoNxP9MT9HCzrAZ+nq4UbY6IujazdxdBRCTURxMK/JIhFlxsJF+nHuKd/dXJw8LoL7jfZN49Vw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716296016; c=relaxed/simple; bh=lgDiOgPFq8VFi3B4aIXbFrjhcBMxVHtHlXhQpFMcXhU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Z/LZwOsVPYYOnP1t268PRAoyV/cwzn62DCuSfh2TcUROxvzZrbA9T72qIcsDnsr6GeIyBJ1P+K0DOKOxFqhQqjNoDhVqejXXRyOSRQIPzLDYtZ6PT7n1LV6yMW0fxjPtcB/6mP257WQXH7SlMBejYSHCM5SZT33DQKZDAuHvgs0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=NxecRWZ9; arc=none smtp.client-ip=217.70.183.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 5F7FE2000F; Tue, 21 May 2024 12:53:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1716296012; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lgDiOgPFq8VFi3B4aIXbFrjhcBMxVHtHlXhQpFMcXhU=; b=NxecRWZ90FMduVzjE8WaLnyMzssesC41tfBRcOF3bxHW+6C0AwIS1e+GrufILjbKDVdBT7 fD3QWNVhis1s/9ok7VGH5A3TulZdgYHtQkp23PpSGV4bGviVmi0l8ur+2WjzF3h+q9aDaY 9LvwWQGVIPQn6mHgi883Xq0Pn2ENocGZDc/dgKfBE44z8G9Jp32l8Mn6RXxtxXWpZs8uHy LKw6yohy6QxNwnpwGPgwx0BMvGDG5/PTLRF24mPJCnu5jnfqor9T2fKwVAtJ2n/0zZ/JiC gBG3OGw13uPoSy8wOyEvMm3Uk19NHOSPvhaE9BOZp4Tu6TY4/5ppK1Jgw83v1g== Date: Tue, 21 May 2024 14:53:27 +0200 From: Miquel Raynal To: Md Sadre Alam Cc: broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, richard@nod.at, vigneshr@ti.com, manivannan.sadhasivam@linaro.org, linux-arm-msm@vger.kernel.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, quic_srichara@quicinc.com, quic_varada@quicinc.com Subject: Re: [PATCH v6 5/8] drivers: mtd: nand: use FIELD_PREP and GENMASK Message-ID: <20240521145327.745f8b50@xps-13> In-Reply-To: <20240521105532.1537845-6-quic_mdalam@quicinc.com> References: <20240521105532.1537845-1-quic_mdalam@quicinc.com> <20240521105532.1537845-6-quic_mdalam@quicinc.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) 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 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com Hi, quic_mdalam@quicinc.com wrote on Tue, 21 May 2024 16:25:29 +0530: > Use the bitfield macro FIELD_PREP, and GENMASK to > do the shift and mask in one go. This makes the code > more readable. >=20 > Signed-off-by: Md Sadre Alam > --- > Change in [v6] >=20 > * Added FIELD_PREP() and GENMASK() macro Maybe you want to include linux/bitfield.h now. Otherwise that's a great improvement. Thanks, Miqu=C3=A8l