From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) (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 053CC26AEC for ; Sat, 28 Dec 2024 23:36:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735428971; cv=none; b=sDrQo0aV188VwS1buftgj+sUqgUcCC7Aaf05fmeO5RoNBptCN5vFtPdB1QGErKy4IGCJjunMyrmKAyhLMSZgKLLhbC3m2YD+4VnXXPyR4H08c4dBlBv/sS6xnnh5ywF+J1Gf07HWthrBr/9yfP/AMFbAkEPgs+3xLmup78b29X8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735428971; c=relaxed/simple; bh=/JMLtOckqTevxOBnB08ZjbXhh60OjgqEhNLccrDKrfQ=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=T+9uzGtL+goF3zqxOg8lSJY3snkU4YRiM2PC7KD0icw2E7AiNrYTOLGjujzkfs7GiGm1i1U6xrPAI+MPFVjozQoDFj1jnOUbmxJqw8/0SZSAiU+UXVNsXOUteOQOMHjde+uiVo76fvtAv47Nm1Y+17phm0NcUqbg4cQ/auIjUaE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-25-143.elisa-laajakaista.fi [88.113.25.143]) by fgw20.mail.saunalahti.fi (Halon) with ESMTP id 804fb1d8-c574-11ef-9c75-005056bd6ce9; Sun, 29 Dec 2024 01:36:03 +0200 (EET) From: Andy Shevchenko Date: Sun, 29 Dec 2024 01:36:02 +0200 To: Prabhakar Cc: Chris Brandt , Andi Shyti , Geert Uytterhoeven , Wolfram Sang , Philipp Zabel , linux-renesas-soc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Biju Das , Fabrizio Castro , Lad Prabhakar , Claudiu Beznea Subject: Re: [PATCH v3 4/8] i2c: riic: Use GENMASK() macro for bitmask definitions Message-ID: References: <20241227115154.56154-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20241227115154.56154-5-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241227115154.56154-5-prabhakar.mahadev-lad.rj@bp.renesas.com> Fri, Dec 27, 2024 at 11:51:50AM +0000, Prabhakar kirjoitti: > From: Lad Prabhakar > > Replace raw bitmask values with the `GENMASK()` macro in the `i2c-riic` > driver to improve readability and maintain consistency. ... > -#define ICBR_RESERVED 0xe0 /* Should be 1 on writes */ > +#define ICBR_RESERVED GENMASK(7, 5) /* Should be 1 on writes */ I don't understand the comment. Does it mean the value should be 0x20? -- With Best Regards, Andy Shevchenko