From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fgw21-7.mail.saunalahti.fi (fgw21-7.mail.saunalahti.fi [62.142.5.82]) (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 4E8DF26AEC for ; Sat, 28 Dec 2024 23:36:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.82 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735428967; cv=none; b=FNlEPmcTXhxh8RQx/ciz0J4QazOc77q2VPqRaDo76/JUxYGfGdh4BU09/CIDvXHupQa66f6wG2hnlkph+aRFlJFPRrgZ3IX7ZVBT4hNzgWK8wVUPW//FtZtj/Ozi5+piYbNhOSOSYn3hNgFbHYYJ52oj+zOQZ67PnoCYjcFpEmM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735428967; c=relaxed/simple; bh=/JMLtOckqTevxOBnB08ZjbXhh60OjgqEhNLccrDKrfQ=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=S92ZV/jsTYFK24DmYKIXhKqgOQehuKcD8dpnL27uZJEHXBKw4T0EhMzQa3CpMxcIQkBrr+5rd9JvwPlHA8MrPBTBLMuKbRDRQXrnSA0wgUYMzLZgc9mnu751j6sk2Xj+Uwpm8e9Rx7HdhHpc60pphHGaoLWMIawfBjwqPelFg8I= 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.82 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-kernel@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