Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3171524rwj; Mon, 19 Dec 2022 14:15:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf4DhXFfZq4ZsAS8cDlH2sXGeFad1uXWjxd0GGF4lUAuNuId3vF/GDfmwrKMwUwTzuv2YhTX X-Received: by 2002:a17:906:7116:b0:7c1:8450:f963 with SMTP id x22-20020a170906711600b007c18450f963mr31084443ejj.34.1671488121825; Mon, 19 Dec 2022 14:15:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671488121; cv=none; d=google.com; s=arc-20160816; b=mrCgTJ1p3fCXyUuDkCkNPGZiXfw+7EX0oFLHSFtM9LAVv8XGf2FCuWYz9W2pvP3ioe YSJw/R/Hto/NEdxITnOSls/FqUGdtoI0NOLuJc9tPQanmEWFM16woNpqhT/+QScbn7JY UWmQbX1yTKf4tRjdENHajVK7LbI96QNz70tubtFpbky4TMIMTdSkRB/zJkEpzeqdAUV5 ql9P20cXSYMG9V2gorzKKoGlvKGS0LVqaMc1z5RDb/yU91QW8DPid/X8K8b/QCx58+3j AkUrS1bcXtHID9gpHIp6objdSUjRRdjS+pY2BvDgq3g5vjdEDAPaiw5tj1BHR21HXXVF rmFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:dkim-signature:from; bh=hudZqOrBEaddBZ/61inAb3CGcE6gzrCDqCvsJDXJUIM=; b=qfIOZHnGBQuskvd6I4p0fzQ9uPQ/Ut6+otOrkXafO2UGHECQIguIbBbOItJ8ARw+P+ 2PqhagK1QCMIeG5zeKsfaGqKIV0e+MYdxwXtaAHOt1KqqKr1UnVYl/4j4jA93+0i/V16 Wmz/1FlKQpPbF92SDLsugEAOkriaOfge+QhIjIKgYmtzsdbWf0duTs3d6UYyoztS2koR XBz1C1f9fYv4foEyl20xNlqhP4bQvT7KkzbiSylyLh+qdJFJuCRI7vTPsf2e0vITpxb+ AW1IhDFtsAc2vAX1i1rY/WN7LwOLJWpZIyhHjw1ynENSRSh2JCbJVMEKaNTMihujSbU1 pS/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=HzKDeDIP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr21-20020a170907721500b007c0cb833625si10821376ejc.478.2022.12.19.14.15.05; Mon, 19 Dec 2022 14:15:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=HzKDeDIP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232332AbiLSVa7 (ORCPT + 70 others); Mon, 19 Dec 2022 16:30:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232772AbiLSVa4 (ORCPT ); Mon, 19 Dec 2022 16:30:56 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64046BF72; Mon, 19 Dec 2022 13:30:53 -0800 (PST) From: Thomas =?utf-8?q?Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1671485450; bh=yefAqOnQbgEx61M7zaR6i9RsAQ8hT0AF7ceHjpBPcXU=; h=From:Subject:Date:To:Cc:From; b=HzKDeDIP2wU4OBYwDCD4KwAW6ItQkwkL6PW9946IeEf6VhTDLhPlur+Du3Ec6n36O YxXHLVcKROXbFQDrQHQ5A4DN4eribbC4FdUY4HBDEs7rHro5tbdC8FSjNts5qm8b6g TXwg+MezKUsX7JPRPKBNvJ8Esof+tYswW65BqSpw= Subject: [PATCH v2 0/2] watchdog: report all watchdog_ident information via sysfs Date: Mon, 19 Dec 2022 21:30:39 +0000 Message-Id: <20221216-watchdog-sysfs-v2-0-6189311103a9@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAP/XoGMC/w3LSQqAMAwAwK9IzgY0FFF/0yVdQFpoXJDi3+1xD tNAuCYW2IcGle8kqeQOGgewUefAmFw30EQ007zgo08bXQkor3hBQ5Y3v3qlNgM9GS2MpupsY2/5 Oo7v+wEaHPmVZQAAAA== To: Wim Van Sebroeck , Guenter Roeck Cc: linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, Thomas =?utf-8?q?Wei=C3=9Fschuh?= , Wim Van Sebroeck X-Mailer: b4 0.11.0-dev-e429b X-Developer-Signature: v=1; a=ed25519-sha256; t=1671485447; l=1210; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=yefAqOnQbgEx61M7zaR6i9RsAQ8hT0AF7ceHjpBPcXU=; b=9PhPfNhBZIiSbkv2LYuf5R1E5d6pohWsQQ/4501FH4TFJxCgVtE6kkuR3ky7W8VX3Sg+EiqVuovl xGEtgBV0BpKdJrW94g4PsQSIQ+bDZjO0ndbnPSQVmMUu6vlM/Xx1 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This synchronizes the information reported by ioctl and sysfs. The mismatch is confusing because "wdctl" from util-linux uses the ioctl when used with root privileges and sysfs without. Userspace implementation: https://github.com/util-linux/util-linux/pull/1927 To: Wim Van Sebroeck To: Guenter Roeck Cc: linux-kernel@vger.kernel.org Cc: linux-watchdog@vger.kernel.org Signed-off-by: Thomas Weißschuh --- Changes in v2: - Report options in addition to firmware_version - Add documentation - Rename firmware_version to fw_version to avoid conflicts - Link to v1: https://lore.kernel.org/r/20221214-nsfs-ioctl-compat-v1-0-b169796000b2@weissschuh.net --- Thomas Weißschuh (2): watchdog: report fw_version in sysfs watchdog: report options in sysfs Documentation/ABI/testing/sysfs-class-watchdog | 13 +++++++++++++ drivers/watchdog/watchdog_dev.c | 20 ++++++++++++++++++++ 2 files changed, 33 insertions(+) --- base-commit: 6feb57c2fd7c787aecf2846a535248899e7b70fa change-id: 20221216-watchdog-sysfs-b2ce9f8f449b Best regards, -- Thomas Weißschuh