Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp191289iob; Mon, 2 May 2022 16:46:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfvWtoeYSHvJ2RATdZ1fT5JD9imnSVc8Vq3jkMiX4vOYUrwAXKF2lSSFgfsW8WjGfHVgzw X-Received: by 2002:a05:6a00:1487:b0:50e:7:451 with SMTP id v7-20020a056a00148700b0050e00070451mr3365764pfu.43.1651535187858; Mon, 02 May 2022 16:46:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651535187; cv=none; d=google.com; s=arc-20160816; b=OXkYIdiTZz7xw1m/a94kbOU3bxXiaeoojaLpnijrUXl60PSsyxbenfZWIiw9uAkIdJ ISwqIq4TBEtaEloDIRWlTGMXt/eZa9mpl7Yk1YfXTEH5DoxLoyvnjn3q6tsSpj2ZqGfU WqEhHHu3xagcZOtALkdZ8vRXANmH0kQAFqopbDv5n5ePRma5u7Np/kpmXB17Xz6eyb9c smrgcCgoQoA+bl+YEn7cJ2XPmFqnf3R8XExMH7bg/10wtoPMIeP3CmW5WPvd5nKfBuUG ohjKiwUiR3N3CTCpnnUeIfrGEPJBboEIO98pg3sornRAUSi1HsGL+03QtyNJMgNiqssw KNwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:sender:dkim-signature; bh=bX/h5IsZDrnxmlUVa9F2X9NUwrp0LlnAzchdCe0mKX0=; b=unGSKqbpzzGHnPFe80yl61vi/8z/lOLNwjg3DG25vsMvD9vQuEEtSRWpWJloOCizwG X4wI0/Zvy17Jl1ubJt9+cO4Bdgc+w88JhCVvgTVC2Wn7kCJNe/yAE8oAlHBkEr2zvxzz a5fuc2NKmrvlESghIzDNxmovbYxD5Eu9vvA1vCAfwrS6ie2M7NnH/W8Qn7yPExK5cGUn W+P3WLzrfMj91ex1kVqzepbsX/IHuIwZkEg7gNHWXJ2FNfOYJTxK69OePyp2BgWy/JD6 eSbHcFuBR6eYiNSHPQz0jdmJ/5gJekEQsZvXorFAnehZahqKcd6RELB1XGSXv1Iy5SfY T6Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="SOsC0KS/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y190-20020a6264c7000000b00505bd8d1dc7si13628242pfb.245.2022.05.02.16.46.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:46:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="SOsC0KS/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5C0AA33898; Mon, 2 May 2022 16:46:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236586AbiEBOBX (ORCPT + 99 others); Mon, 2 May 2022 10:01:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236498AbiEBOBW (ORCPT ); Mon, 2 May 2022 10:01:22 -0400 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB61911C38; Mon, 2 May 2022 06:57:53 -0700 (PDT) Received: by mail-oi1-x22b.google.com with SMTP id y63so15270344oia.7; Mon, 02 May 2022 06:57:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:content-language:to :cc:references:from:subject:in-reply-to:content-transfer-encoding; bh=bX/h5IsZDrnxmlUVa9F2X9NUwrp0LlnAzchdCe0mKX0=; b=SOsC0KS/w47RPhQBd2bRxJ2bMnKiigwAu7L6xLSIxViPFcmz3ses0vdhxom2coTIY7 lNjtU5HYybmu0AR+m4kqYeixrGgC5CaN4exky6juY35po3lSWfxhfJXfErvwxIRYSIVU Q6RQ9CETbMD4WBd2Joy1I8Ue9TF4j+lakqg4eNH858OvIaXOCOIt46qQfgbQxpv103FG 6n64vJ1f4dvjaMLNyY3ygcKsnxKu3i6PrzUydWkx2uAaH+svHmPkxSJAmQKk9KCQ+FQd p2tpdw5uLMbZe16UYQ/NVfbuaYWAS0X490MQGKz/JKNgfNmW2ZmktMe2p1cxYZ6OVCrS nzIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :content-language:to:cc:references:from:subject:in-reply-to :content-transfer-encoding; bh=bX/h5IsZDrnxmlUVa9F2X9NUwrp0LlnAzchdCe0mKX0=; b=pq/4dC1BKyuFXuz1b60zvSVbBEIFeoxOppwT4ipNvPeUsQRBg3EJIjLm1To0a/T4os u/6NMk5BM02JWat/s+U6Dqru/MEh8C4siEPMSxLR2IDxeRXaGXZ0eRPH/Y8FQbqJLJnq hlrwFi+wHXWgQyHN8ke3nZaPEs2n6AFULMHRvGj4aftY6mVejBZN6fhcd0RRqNLk8cLj u+1eQcGJM+Rebv4CiKdiDuBhk8Tqscza+GhbJgegOavNHRASh6iSty7WHq9lfr96eInb km49mRt1AruEsk3DJigfORNobuFrNFfe+yQpLOZiOXlqSH5bRBgg3fwO+Hlp1clCsfaB D7kg== X-Gm-Message-State: AOAM531A7IiGhZAC9VSbdec2NYNeApEoZ70TmF2yszOzIQVJn8M8K0rB cy2EBHW/C15buBlFLA7YamI= X-Received: by 2002:a05:6808:e8c:b0:322:4b82:d33d with SMTP id k12-20020a0568080e8c00b003224b82d33dmr7250278oil.21.1651499873009; Mon, 02 May 2022 06:57:53 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id c2-20020a056830000200b006060322126dsm2867394otp.61.2022.05.02.06.57.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 May 2022 06:57:52 -0700 (PDT) Sender: Guenter Roeck Message-ID: Date: Mon, 2 May 2022 06:57:50 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US To: Camel Guo , Jean Delvare Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@axis.com References: <20220502091942.1083067-1-camel.guo@axis.com> From: Guenter Roeck Subject: Re: [PATCH v2] hwmon: (tmp401) Add of_match_table In-Reply-To: <20220502091942.1083067-1-camel.guo@axis.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 5/2/22 02:19, Camel Guo wrote: > When tmp401 is built as kernel module, it won't be automatically loaded > even through there is a device node in the devicetree. e.g: > i2c { > #address-cells = <1>; > #size-cells = <0>; > > sensor@4c { > compatible = "ti,tmp401"; > reg = <0x4c>; > }; > }; > In order to make sure it is loaded automatically, this commit adds > of_match_table for tmp401. > As mentioned before, historically i2c devices would instantiate based on the i2c match table. You are claiming that this is no longer the case. The above is no evidence; that would require a log output on an affected system showing that the sensors are not or no longer longer instantiated. I am not absolutely opposed to adding the nodes, but the explanation needs to match reality. If you can not provide evidence from an actual boot log, I'll have to implement a tmp401 device model in qemu and test myself. That will take a while. Guenter