CIP-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@nabladev.com>
To: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Cc: cip-dev@lists.cip-project.org,
	Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>,
	Pavel Machek <pavel@nabladev.com>,
	Biju Das <biju.das.jz@bp.renesas.com>,
	Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>,
	tomm.merciai@gmail.com
Subject: Re: [PATCH 6.1.y-cip 14/23] hwmon: (lm75) Fix tmp112 default config
Date: Mon, 20 Jul 2026 22:14:57 +0200	[thread overview]
Message-ID: <al6BwdhAv7oaLPTh@duo.ucw.cz> (raw)
In-Reply-To: <20260717131241.2233788-15-tommaso.merciai.xr@bp.renesas.com>

[-- Attachment #1: Type: text/plain, Size: 1277 bytes --]

Hi!

> From: Abdel Alkuor <alkuor@gmail.com>
> 
> commit 8249a0e25dd2972e919a2552425bf4faa2581d24 upstream.
> 
> Set tmp112 conversion rate to 8 HZ and 12-bit mode.
> 
> Fixes: 35cd18048542 ("hwmon: (lm75) Aproximate sample times to data-sheet values")
> Signed-off-by: Abdel Alkuor <alkuor@gmail.com>
> Link: https://lore.kernel.org/r/20240106030254.384963-1-alkuor@gmail.com
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
> ---
>  drivers/hwmon/lm75.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
> index f6e16dfa11c5..5eba180b66a0 100644
> --- a/drivers/hwmon/lm75.c
> +++ b/drivers/hwmon/lm75.c
> @@ -270,8 +270,9 @@ static const struct lm75_params device_params[] = {
>  		.resolutions = (u8 []) {9, 10, 11, 12 },
>  	},
>  	[tmp112] = {
> -		.set_mask = 3 << 5,	/* 8 samples / second */
> -		.clr_mask = 1 << 7,	/* no one-shot mode*/
> +		.config_reg_16bits = true,
> +		.set_mask = 0x60C0,	/* 12-bit mode, 8 samples / second */
> +		.clr_mask = 1 << 15,	/* no one-shot mode*/

I would not mind space before "*/". But not your code and not your
patch...

Best regards,
								Pavel

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

  reply	other threads:[~2026-07-20 20:15 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-17 13:12 [PATCH 6.1.y-cip 00/23] Add p3t1085 and p3t1755 support Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 01/23] dt-bindings: hwmon: ti,tmp108: document V+ supply, add short description Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 02/23] dt-bindings: hwmon: ti,tmp108: Add nxp,p3t1085 compatible string Tommaso Merciai
2026-07-20 20:15   ` Pavel Machek
2026-07-17 13:12 ` [PATCH 6.1.y-cip 03/23] hwmon: (tmp108) Add NXP p3t1085 support Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 04/23] hwmon: (tmp108) Add helper function tmp108_common_probe() to prepare I3C support Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 05/23] hwmon: (tmp108) Add support for I3C device Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 06/23] hwmon: (tmp108) Do not fail in I3C probe when I3C regmap is a module Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 07/23] hwmon: (tmp108) Add basic regulator support Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 08/23] dt-bindings: hwmon: (lm75) Add AMS AS6200 temperature sensor Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 09/23] dt-bindings: hwmon: lm75: use common hwmon schema Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 10/23] dt-bindings: hwmon: lm75: Add NXP P3T1755 Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 11/23] hwmon: (lm75) fix Wvoid-pointer-to-enum-cast warning Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 12/23] hwmon: (lm75) remove now-unused include Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 13/23] hwmon: (lm75) Add AMS AS6200 temperature sensor Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 14/23] hwmon: (lm75) Fix tmp112 default config Tommaso Merciai
2026-07-20 20:14   ` Pavel Machek [this message]
2026-07-17 13:12 ` [PATCH 6.1.y-cip 15/23] hwmon: (lm75) Remove use of i2c_match_id() Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 16/23] hwmon: (lm75) Add NXP P3T1755 support Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 17/23] hwmon: (lm75) Hide register size differences in regmap access functions Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 18/23] hwmon: (lm75) simplify lm75_write_config() Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 19/23] hwmon: (lm75) simplify regulator handling Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 20/23] hwmon: (lm75) Remove superfluous 'client' member from private struct Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 21/23] hwmon: (lm75) separate probe into common and I2C parts Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 22/23] hwmon: (lm75) add I3C support for P3T1755 Tommaso Merciai
2026-07-17 13:12 ` [PATCH 6.1.y-cip 23/23] hwmon: (lm75) Fix I3C transfer buffer pointer for incoming data Tommaso Merciai
2026-07-20 20:14 ` [PATCH 6.1.y-cip 00/23] Add p3t1085 and p3t1755 support Pavel Machek
2026-07-21 10:29   ` Tommaso Merciai
2026-07-21 21:00 ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=al6BwdhAv7oaLPTh@duo.ucw.cz \
    --to=pavel@nabladev.com \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=cip-dev@lists.cip-project.org \
    --cc=nobuhiro1.iwamatsu@toshiba.co.jp \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    --cc=tomm.merciai@gmail.com \
    --cc=tommaso.merciai.xr@bp.renesas.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox