Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp505171rdb; Fri, 5 Jan 2024 19:03:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/ofWiTzMsxw75SDwoBZf3u8Wi7Gks751utbYSlpY8ZjJTT1F08+NfAoKjkj2ByyWsD4u1 X-Received: by 2002:a05:600c:4453:b0:40d:6293:fc69 with SMTP id v19-20020a05600c445300b0040d6293fc69mr98225wmn.28.1704510228567; Fri, 05 Jan 2024 19:03:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704510228; cv=none; d=google.com; s=arc-20160816; b=dscByI3u+h+4zy6lEMX7ofcXp87RFuSW3qwLGHVW62u1DQg6uMcRLrM+auvumlIXOE H2Xosp8iZriqYMpV2Mqh9f73ELankqmW8LTCLOrMg//iuXn4KrsDbQb4s497sOm6w6KX YE9fYvcX2vTU7LrcRWXSP833CSOQfjDP8vismnf0YXAureIS5I8ikcgu4nQ8/f4EI8ZN PovAcjR/qgbpVMEQnk2CbcRMBLEbfaLJXnzQPxMVcsxDmkUovIS3CQU35gUdVQ0YH+TF Dl11CgdxKMsfPq2BpbK6+6cPun1jrawWw8Wj+l+6speBR3KpnC0VWmXsKNCFrZ8vlCLU rpOA== ARC-Message-Signature: i=1; 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:message-id:date:subject:cc:to :from:dkim-signature; bh=20TqVhAB8vPYJO1AMqhc8T0gziZeUwh10Ilg/gZn7uI=; fh=3vXRdfW8G/g9HVrQm8s6xXG0kO25raGDlA2QNphujbg=; b=YKVfOlUv/a1exyaCMwtPmg5csB+grnkPN5azF81EuJ4i4D63uIwJSIGNVIMDAx4okO 3nKdbjiPVgU76V6aNlDHuAQBSaUszuXM7pmgqL+zEda5+KVN90jpjKTFvdsVRQ18oSgm sh4UBpLm8KwvgT2PKdwf0SzCL4RykCCy14iMPbuX3YgYs8L5OdbqCpkAuwtOyj6UStl+ sLw9+0SPtf4MsCgxyO0y4mbggSHPUDFyyij/wgB/AOSB1edg2Jk/BvlqQx/ap289xXSt jGx+D6FWzx1WfPCk9fHdrRhN5Z82lLkuQ/DvzX93fBW6uCVgZnsw9MfioWucjkQXH/kl 2wkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="PB/W4Ec3"; spf=pass (google.com: domain of linux-kernel+bounces-18463-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18463-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ka3-20020a170907990300b00a2361a30b82si1088003ejc.875.2024.01.05.19.03.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 19:03:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18463-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="PB/W4Ec3"; spf=pass (google.com: domain of linux-kernel+bounces-18463-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18463-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 49DB81F244D0 for ; Sat, 6 Jan 2024 03:03:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 65A0415BE; Sat, 6 Jan 2024 03:03:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PB/W4Ec3" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5ACEC15AC; Sat, 6 Jan 2024 03:03:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-f179.google.com with SMTP id af79cd13be357-781706de787so21414385a.0; Fri, 05 Jan 2024 19:03:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704510218; x=1705115018; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=20TqVhAB8vPYJO1AMqhc8T0gziZeUwh10Ilg/gZn7uI=; b=PB/W4Ec3hpCZl80Re0dy7/HHBrRLka/QHwka5RoomoEshlhxWxX7zSJWeLA/40J6ju DSSU+qq/PUhflywFUhy/1mRyrAUYfhjLabYw8M60miUTCeaYuI5Htjb7p5NS5546wdp9 Vr0n9IxL69DuDDBsgVuL9BE2RmxitxxyrFsrhs2qA7AHrszLrBe4IHu0c4Qql0hSgpWB jwVywUj8R0YDX68tAasgaopG6UlFSwePXSEeGt96Llj44MfMamIN0tmglgwHXka4AtQE roxNWtuvgyXe4NQpZ3III/DZzrrpACq3MC8g3b99MGbI22XiGT1nIATegwzVGIN3cchU jbKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704510218; x=1705115018; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=20TqVhAB8vPYJO1AMqhc8T0gziZeUwh10Ilg/gZn7uI=; b=Sc14momfRNqvCiKPAkq0Va443KuuBWUtBZOkjfqvvLOR30dM8dBNoieuyZvLvH2V/t hbHZiJClIDKlpszquO6S4RtWkiFCWv8Io4ztjnhkkq50oSIH8GD29DRiytG9lmZ15RkO Sd6JLiFkfPZOp5aId1DgKxgYW5+L/Bcm3TPec/pVgWbYMsYO//rwcWYpspsyOi7vfu20 2pYWqcUc0Tdznn5JAcn4cIOkmFKfeST4CjhPkyuZkeJK6Ih736IPJpwvNi5UcQwFH+2j lNkpZZxfQf/LogK4Juav5rh9+Zaf7psKAFmDOs/UqqKSeA9s/DMEMb2kiZeJHqAx+1iS 6BjA== X-Gm-Message-State: AOJu0YxsB2LyTEJcSetBBMc29DY1C1PfmretVslQKHBV4H8Ddi9OyVnT sCg5WgoKlH7+hLaGO6VwRVivynSkyWMQzg== X-Received: by 2002:a05:620a:258f:b0:781:6e32:a894 with SMTP id x15-20020a05620a258f00b007816e32a894mr532104qko.39.1704510218160; Fri, 05 Jan 2024 19:03:38 -0800 (PST) Received: from localhost.localdomain ([174.95.13.129]) by smtp.gmail.com with ESMTPSA id v3-20020a05620a0a8300b007816e3ed3a5sm1026313qkg.51.2024.01.05.19.03.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 19:03:37 -0800 (PST) From: Abdel Alkuor To: Jean Delvare , Guenter Roeck , Iker Perez del Palomar Sustatxa Cc: Abdel Alkuor , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] hwmon: (lm75) Fix tmp112 default config Date: Fri, 5 Jan 2024 22:02:53 -0500 Message-Id: <20240106030254.384963-1-alkuor@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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 d3b0d8bf1654..e00750718536 100644 --- a/drivers/hwmon/lm75.c +++ b/drivers/hwmon/lm75.c @@ -269,8 +269,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*/ .default_resolution = 12, .default_sample_time = 125, .num_sample_times = 4, -- 2.34.1