Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1004922rwr; Fri, 5 May 2023 07:56:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5FAU/2JixXzJHLpE9x6fQgpu1iYspfWM69qao0tLmMfIXUOUhcFqMmYQWIOwqjBPLx/HXf X-Received: by 2002:a17:90b:85:b0:247:a3ed:63b3 with SMTP id bb5-20020a17090b008500b00247a3ed63b3mr1738717pjb.31.1683298607657; Fri, 05 May 2023 07:56:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683298607; cv=none; d=google.com; s=arc-20160816; b=EhNbENl/VAfbVgUTutXFFp3MoSz4dAhy7MOoWDU85ERmb/P3NmN8xMlBx/wnVF75WE +P1/V8bJlqfuDXG2UElwEcIbjHlDNNlHZiQBvg8W3KDtjxFO7D1/TKI20paPvH0NFyip SkpG2zTlo6J2HLH1G+0oLAMbqaNb5d5T2BdQWqa0zhZD2YdfCsKLZ+sYJLUWgb6vM1lg 6O9MvwwABhpkmFBeLmIpgmDIbcK12cku6vuKNlQtwpMQ9wqEdUeqFjG3LIfZvoZQJAPz 81XQJu9QQXDlPC0Ev640zK6/Zf7erPziCkMuaedxJ6vuWgSZ4M972p65Pwl9QoDO/zUw I88Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=EK1JydfP+yDGRYuOn6HFDzhJ0o/Eh62PlPzIuRHXoLQ=; b=SaSCw1VyadYEOiNnQsz4hZ6PG5zuh4yf0+jCvAyFS328sWVJ/2pCjW12v9dEKX7Q3z OwqUXqDNOlzEz8RvITJzN/li5+B+9f2PXeQDte1e3oV2vFqtomGsS3ojrZSfzqAqMNDP M42hqcON9IBLrbLvtIlHXAdVqxgApIZZ6CU79cYUNaC06fwUYvyz0/K9Qe55nVvG7Y9H NprXC+YZU33ib8CVkqwzIcOujoh3eAHP2/GXAl20cfrdAClpHGPvTUPev9tokqyu348C ZtTo/5Y3cfRcgiD7R3kzmtkq9F+g2WkV/VFbs1FC9DBd8N8TTSQ9EP/UUSqZ3YLK/Cp6 NkWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@equiv.tech header.s=mx header.b=PbMDolKV; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=equiv.tech Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l65-20020a633e44000000b00524d1d335bbsi2314322pga.56.2023.05.05.07.56.32; Fri, 05 May 2023 07:56:47 -0700 (PDT) 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=pass header.i=@equiv.tech header.s=mx header.b=PbMDolKV; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=equiv.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232060AbjEEOur (ORCPT + 99 others); Fri, 5 May 2023 10:50:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232221AbjEEOup (ORCPT ); Fri, 5 May 2023 10:50:45 -0400 Received: from m228-4.mailgun.net (m228-4.mailgun.net [159.135.228.4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1EBC17DE1 for ; Fri, 5 May 2023 07:50:42 -0700 (PDT) DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=equiv.tech; q=dns/txt; s=mx; t=1683298241; x=1683305441; h=In-Reply-To: Content-Type: MIME-Version: References: Message-ID: Subject: Subject: Cc: To: To: From: From: Date: Sender: Sender; bh=EK1JydfP+yDGRYuOn6HFDzhJ0o/Eh62PlPzIuRHXoLQ=; b=PbMDolKVXgUqRXif2rABTxGo3KYghGDttEzbjFIBqyqoO8b6+8YqO29s/DEELWrjA9m+zGPI9lrhmC3kppjlFJCtMQah454H/V9WClcOgKQpyylyrZQfEl2PrtnxnRQGTXwIllgcakDlTdKplpu5/1pYxPpUaaEZMVo6KOZR5QvgwiI9V3AKc2aIsPU8bVkJTRlItZCoeQM8aAPDdr5Q6+9nLmxhqBYpKbx8/WLfafBbgPqowUvTFnoJ4QBrywPXfhCjooZXECcafGQdM+QQgsWa/iSJrY9DoKDe1Wn06+nXj2cPk/Fwe2h9ONAz+aS56u4zEe1xLQG0P5qWhk4V1g== X-Mailgun-Sending-Ip: 159.135.228.4 X-Mailgun-Sid: WyI4ZWI3MiIsImxpbnV4LWtlcm5lbEB2Z2VyLmtlcm5lbC5vcmciLCI5M2Q1YWIiXQ== Received: from mail.equiv.tech (equiv.tech [142.93.28.83]) by 43f335790acc with SMTP id 645517c1dd415858cb8b0911 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 05 May 2023 14:50:41 GMT Sender: james@equiv.tech Date: Fri, 5 May 2023 07:50:40 -0700 From: James Seo To: Bagas Sanjaya Cc: James Seo , Jean Delvare , Guenter Roeck , Jonathan Corbet , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC 06/11] Documentation/hwmon: Revise patch submission checklist Message-ID: References: <20230504075752.1320967-1-james@equiv.tech> <20230504075752.1320967-7-james@equiv.tech> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Fri, May 05, 2023 at 11:34:51AM +0700, Bagas Sanjaya wrote: > On Thu, May 04, 2023 at 12:57:47AM -0700, James Seo wrote: >> -* Only the following I2C addresses shall be probed: 0x18-0x1f, 0x28-0x2f, >> - 0x48-0x4f, 0x58, 0x5c, 0x73 and 0x77. Probing other addresses is strongly >> - discouraged as it is known to cause trouble with other (non-hwmon) I2C >> - chips. If your chip lives at an address which can't be probed then the >> - device will have to be instantiated explicitly (which is always better >> - anyway.) >> +* Only the following I2C addresses shall be probed: ``0x18``-``0x1f``, >> + ``0x28``-``0x2f``, ``0x48``-``0x4f``, ``0x58``, ``0x5c``, ``0x73``, >> + and ``0x77``. Probing other addresses is strongly discouraged, as it is >> + known to cause trouble with other (non-``hwmon``) I2C chips. If your chip >> + lives at an address which can't be probed, then the device will have to be >> + instantiated explicitly (which is always better anyway). > > IMO hwmon here refers to the subsystem (not code identifier name), so > inlining here isn't needed. > >> * Make sure there are no race conditions in the probe function. Specifically, >> completely initialize your chip and your driver first, then register with >> - the hwmon subsystem. >> + the ``hwmon`` subsystem. > > Also here. > >> >> -* Use devm_hwmon_device_register_with_info() or, if your driver needs a remove >> - function, hwmon_device_register_with_info() to register your driver with the >> - hwmon subsystem. Try using devm_add_action() instead of a remove function if >> - possible. Do not use any of the deprecated registration functions. >> +* Use >> + :ref:`devm_hwmon_device_register_with_info() ` >> + or, if your driver needs a remove function, >> + :ref:`hwmon_device_register_with_info() ` to >> + register your driver with the ``hwmon`` subsystem. Try using devm_add_action() >> + instead of a remove function if possible. Do not use any of the deprecated >> + registration functions. > > And here. > >> -* Do not provide support for deprecated sysfs attributes. >> +* Do not provide support for deprecated ``sysfs`` attributes. > > Dunno if sysfs (as subsystem name) also needs to be inlined. > > Thanks. > > -- > An old man doll... just what I always wanted! - Clara Good point. I will remove inline references to hwmon and sysfs.