From nobody Fri Jun 12 21:38:57 2026 Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.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 531AC30674C for ; Tue, 12 May 2026 14:24:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778595897; cv=none; b=qkXBuiIvZEHKnoArL+7nLSJhbMNP6Dgw8X/6kkhWhLBNwmsxSFAl7AtjkhCiMvNW8cEQK9Q8Bf7L9+DBfELu7bHua5jgH/4ScRTJitFySqS56UQy86mO4G9s9ILJyMSe4CdM1esrz00aFguSrbJOwPwFbIeavYnYcfVyDqLbhIg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778595897; c=relaxed/simple; bh=fJZFKUOghzEMeZWOVYJe5GtaC9XO6oUkZ/ybmbSiKao=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d/rq5AulNp0Bjmxxp/w8WTd34w4WpFEwnuF75amThLtBcAsCp1NNGziaW0TJsVpS5vkjjXieRo0QxRSLUTEPaToNvnse4uPu0JEL45Egbs1U5AB05FT4bwwLzBHa7TiQ6h3Hfbmpo2hUuPVQ65lfDZyjv0rU0QmstAJwBPVDUVc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=cRe/hp4K; arc=none smtp.client-ip=209.85.215.179 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cRe/hp4K" Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-c8173b2af32so4075516a12.0 for ; Tue, 12 May 2026 07:24:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778595895; x=1779200695; 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=CUjQr6FUuM03jk59EvtMyB5628RRa1MHzieg0EeaWo0=; b=cRe/hp4Kdaa23tSc43IYOCgXYMZupSu6YwsJofF191aeLXw1IgqI2uk9u5hg4lqV0w Hj7ovUryRJNq0WRyWMaRRNSR6X6QcHW0rJZvqqnmMe/u7VAaksgd6DL+iIpwlo9xgqL6 P3Feg/bLa4SFCyP6odV41W7RMIsVFJyOJqiGAZvVPh2dZ0NRYV/EzyJ5kJ+RPi1xz7o2 xejHtQjAH79mf65APCRsD7Hcgzl7VDm5QojyjqvPf0DQ/aKi0kWAUNeHFGW1IcQQmlpd PYc/jSVYGf+6EmXFESQwgUimrCONfxxM77Zk/DQb2u36WIvv6o5oxBkVNBb6cb00m6SU D0kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778595895; x=1779200695; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CUjQr6FUuM03jk59EvtMyB5628RRa1MHzieg0EeaWo0=; b=fI7jH4xhwn8zQwWP5j+zI1r0QaV7/myjc9x6dDrfKeiriwHprrq6K6gFklfk52h3qD apsUbxT80I0WliZ/yUjRNslGLeKYDbAR/lD4W5Z7N+8KUd/G2z4dguK05gSTGwHB4N8l WRyJ7cel0QeKNFj/FVneT7R8V9O3X6iStPY3YAkBssomclln2Vn/n8qS8CfHAWBeL80M 8+3ktEGERAtYv/+nRQjEmwQYx7GbumTGPqoVk8eujj1jdlZKNFQvYunsZBO4jrTuwsl1 cQNJm+z1AvO1rWcCGecGReV+ypUqVUX/JUjc5chrBxEcHznIpWWPABNHj4nv7tLafCOf yFSw== X-Forwarded-Encrypted: i=1; AFNElJ88wjMYAZqXwuxmveiRx0PvPpgUao6JEUwMkBk4+9P/QxpP3k+yFOZgxFJo8IQDAa2LTO1blkc2LIAXlj4=@vger.kernel.org X-Gm-Message-State: AOJu0YyjznvQBAOdoR5x3v9EVe4xDF2WJNyAr+nc0OisA+NQhmCTROPB /O8dOhfDj+DrvcFJPrIbIgO2yT+rn7V+KhbEePjR10Ojh8Gx07IrqaHePbSgsa2f X-Gm-Gg: Acq92OEUmbYsgOkM94K9iKQR0vUD9xV1JOBE9aSMlJzcdQ0O0+7Y+OkNKZGcD38JYHk V3YiJeyZOgtdr/wwGyO1eM21b3NkIbV6RxjxsISBut+KoeYgp0uM59psfUUSSJ8PKH8Sf7SSrDk +Rh+MzzmwrEX678vVr7fezLwqML5zVs7SVt3oJk1hNmZkhP/6zidHJxyquESMMTYo4adF4uJFbi WhUiV/b9OScc7VYPcFEvBHvkci6c7P271hSkaxkN/6T33da9Zl4n08dmSoF+ljdXLmJjyNmb4BY /ex4UoU9s+Dtc5+wAfI5CMbzGBZQsfgzwCS2hCGIixlDXdE8A8Acw3n7JxD6uAx+TLIpM3E15DA CEuuZ30lKFZtIsd3Zm8dUabuh/jwfuWMg8MKapOw2IiaqMEo6fJktQeK39FN8dV+MWtqLqXI6Zs x36jbwyr8D4BMOFet5/KyrpXDgrd+FtgZKdMYv/WsnUneg7HJf+zG3grKHnaVjtoV8UDUNW0tER WbLgkGo7QFDkUlXi+g2rVmhoRs= X-Received: by 2002:a05:6a20:430a:b0:398:7792:3882 with SMTP id adf61e73a8af0-3aad42cb96emr16411493637.16.1778595895526; Tue, 12 May 2026 07:24:55 -0700 (PDT) Received: from localhost.localdomain (zaq3d738d39.rev.zaq.ne.jp. [61.115.141.57]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-839679c861esm29850103b3a.30.2026.05.12.07.24.54 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 12 May 2026 07:24:55 -0700 (PDT) From: Atsushi Matsui To: Shuah Khan Cc: Akhilesh Patil , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Atsushi Matsui Subject: [PATCH] selftests/watchdog: mention temperature in status help Date: Tue, 12 May 2026 23:24:48 +0900 Message-ID: <20260512142448.12151-1-matsui.atsushi.home@gmail.com> X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: mattsu The status option already exercises WDIOC_GETTEMP, but the usage text does not mention that it also reports temperature. The file header also contains a stale TODO for adding WDIOC_GETTEMP coverage. Mention temperature in the status option help and remove the stale TODO. Signed-off-by: mattsu --- tools/testing/selftests/watchdog/watchdog-test.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/testing/selftests/watchdog/watchdog-test.c b/tools/testi= ng/selftests/watchdog/watchdog-test.c index 4f09c5db0c7f..0626c96f2c9f 100644 --- a/tools/testing/selftests/watchdog/watchdog-test.c +++ b/tools/testing/selftests/watchdog/watchdog-test.c @@ -5,8 +5,6 @@ * - Tests Magic Close - CONFIG_WATCHDOG_NOWAYOUT * - Could be tested against softdog driver on systems that * don't have watchdog hardware. -* - TODO: -* - Enhance test to add coverage for WDIOC_GETTEMP. * * Reference: Documentation/watchdog/watchdog-api.rst */ @@ -83,7 +81,7 @@ static void usage(char *progname) printf(" -f, --file\t\tOpen watchdog device file\n"); printf("\t\t\tDefault is /dev/watchdog\n"); printf(" -i, --info\t\tShow watchdog_info\n"); - printf(" -s, --status\t\tGet status & supported features\n"); + printf(" -s, --status\t\tGet status, supported features, and temperature\= n"); printf(" -b, --bootstatus\tGet last boot status (Watchdog/POR)\n"); printf(" -d, --disable\t\tTurn off the watchdog timer\n"); printf(" -e, --enable\t\tTurn on the watchdog timer\n"); --=20 2.54.0