Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp146873lqp; Tue, 21 May 2024 23:10:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzIIERwuf2wGVM1kieL9iBvlpheCbqhFAJueKErssH194JWO1aRnsyCk2VEWUauKI45GrSUdA0FfsWjNAKg0GZmTi4sEChadOf2PxN4A== X-Google-Smtp-Source: AGHT+IF6po/vM6ITA/lfj+oBwo6aX5q3PzVHDO0tBtMeeyadB/aN/mFgODvnxZt5SfxBn/Za3JbY X-Received: by 2002:a17:907:1008:b0:a59:ba2b:5921 with SMTP id a640c23a62f3a-a62281c7e99mr51891366b.72.1716358203959; Tue, 21 May 2024 23:10:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716358203; cv=pass; d=google.com; s=arc-20160816; b=Xv9uZEsBNIRiiXKLaqy9CL616ThJ5wlCOcHamcRSqPQTzH0+z5UDbHVYXZAKimbqc6 FW5MKbnTVRWYLSM70zzuFHNqWXBNlw7jSqT9c0WlX21q95P6sK3Otoc5zZ5B/6bxXCEa oXJVOw4TCbj50502lvDJUkE28Cl8uzyLxcuyxttKOu8h7Uw+8NWsasYAIE+w5Qd2odqg adgcgN2yuMT55NVCI43suRTx9knBRggoriOlzOSTW00m4VSijTSF3cTdReZDwLtoS17K CnmxvCYxv2Mvrpvhar04C/Pj8jzgrJEWkL0DmpNt+EfXTPsHoGT6v1Fl06HWG1sTXVep cFSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=yg0dNwgVIJbFrnHIEpXFbKaS8qAQ7OaX5TaUpxBRbG4=; fh=VgfEBHpNTeZc7+Z0Pnf2YT4WbH02nMC4X9Xkr/v9jc0=; b=nNEFL8w5GlAz3ctsyAf3BDltub3dnxhK8baZqYWG2fWULSl4PVPGQIe6/2F2CbaXW9 uf+WYLBCPGjARPqWFIvrJh1gqfGIDJ3sQ620hdhaUwKIL/4h9qFZ/EwGN5uFT0Btgodx wpvWVjEyLo0X+ryG+f6nplOtRRqutGOqhGRWHf9uU9BJ07pUspP0XgJZ6UbnyBrCvvQt RgckYFed9rEQbaYd9Vs7b0CME5q+mJw4MowFtnHrINUvG9Wvqm5kMFTsNfNUpRY/WqgZ TOdzPq1ZKUsEfMtW46fCSG+Lm/auKCTMCTLYXa2sK+LQ/L7T7N/GcgUM77E3jnS4tkSh z9gA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="UPBM/UY8"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-185791-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185791-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a5221e104si1264646766b.566.2024.05.21.23.10.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 23:10:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185791-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=@quicinc.com header.s=qcppdkim1 header.b="UPBM/UY8"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-185791-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185791-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 am.mirrors.kernel.org (Postfix) with ESMTPS id AFFA21F226EC for ; Wed, 22 May 2024 06:10:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4406F78289; Wed, 22 May 2024 06:09:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="UPBM/UY8" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 02C9976020; Wed, 22 May 2024 06:09:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716358192; cv=none; b=pStjdPuHA2xlgM1pZxk2HA9UHmxkZXozol/mevDPnHE66p05ZbRGPw87o2y+ljQGf6j4fHorrLEACMnPs1Ju64Pp9oAHdEeMn2Kaz49XSeu7tZZKcbVdS9e1ihmrf8XIDW1hmH+gOlV1tYnRFCIsDoyIbD3tuqFcklfD2oOmb68= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716358192; c=relaxed/simple; bh=Cn2XFMWoNjuAdqnOy+xVEewcB8yxZQdALf/VDTJWspc=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=tX1jJtt1AedOfDjYaZZJ8EUyg9Ct5YRta524FNRguoUYULgsOVD9mESsEBH+ks0QEb1pOs3jsntGPojChQzJdMPXxCkS4fAru13kx1ayD7OjPZxgbvvXcsys4FYEB0vh2cGrmJV7+cQQW+Sxyf5N5fUE5c3PcbQkBALO993JOYY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=UPBM/UY8; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44M4W1eE000805; Wed, 22 May 2024 06:09:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=yg0dNwgVIJbFrnHIEpXFbKaS8qAQ7OaX5TaUpxBRbG4=; b=UP BM/UY8kpvvroQ1RUpYj101AXdsLG4v1xbhPWUq4EncqHMuYBGuk3Cllx/tGYPLSs Z7ZfOyCrSqKrkjKNt/10MajRhQB5VssoNVoDntF34NLUeOJxm8E2fTKBADEQjf/7 Tr+DVYYCm6+Vpvb7NXcZ9LiuGefAzx9k8NsDX/HOArBtkYCsEp6cstbbnanNeXZi //xWtb5P1eDpTuhrlSZaN0iZyaNu4eFjqksMUuj2wbLPRJb0boUGklGMbB0Z/lKX K/SBGw5OCwMjO9LXy1DSkCmIP//CX2QJJ45nJFEUXo3DGaqPHGi/iGWaHCkUMWK5 Fbjdn1rHdUVyMDYfGc5g== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3y6pqaqswg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 May 2024 06:09:27 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44M69QLN023398 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 May 2024 06:09:26 GMT Received: from [10.216.52.184] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 21 May 2024 23:09:20 -0700 Message-ID: <39ccbbbb-e6f5-89e3-e11c-a2338dcd5a30@quicinc.com> Date: Wed, 22 May 2024 11:39:17 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v6 5/8] drivers: mtd: nand: use FIELD_PREP and GENMASK Content-Language: en-US To: Miquel Raynal CC: , , , , , , , , , , , , , , , References: <20240521105532.1537845-1-quic_mdalam@quicinc.com> <20240521105532.1537845-6-quic_mdalam@quicinc.com> <20240521145327.745f8b50@xps-13> From: Md Sadre Alam In-Reply-To: <20240521145327.745f8b50@xps-13> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: g9ppQNO8W1rJh15p4AUwxVFKOp3GABtu X-Proofpoint-ORIG-GUID: g9ppQNO8W1rJh15p4AUwxVFKOp3GABtu X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-22_02,2024-05-21_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 bulkscore=0 mlxscore=0 adultscore=0 spamscore=0 malwarescore=0 mlxlogscore=722 clxscore=1015 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405220043 On 5/21/2024 6:23 PM, Miquel Raynal wrote: > 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. >> >> Signed-off-by: Md Sadre Alam >> --- >> Change in [v6] >> >> * Added FIELD_PREP() and GENMASK() macro > > Maybe you want to include linux/bitfield.h now. Ok > > Otherwise that's a great improvement. > > Thanks, > Miquèl