Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5817889rwp; Mon, 17 Jul 2023 09:53:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlFUS2SXDanaCOu/K3lrcs4GnMTvbpA3PTVFr4cJMHZuRAdTcQnj4EKI3Szi4mGUZZFtuLYn X-Received: by 2002:a17:906:208d:b0:993:ce9d:6fc1 with SMTP id 13-20020a170906208d00b00993ce9d6fc1mr11510009ejq.3.1689612785045; Mon, 17 Jul 2023 09:53:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689612785; cv=none; d=google.com; s=arc-20160816; b=lJ4iBii+f/GPyJujCUQ8NL/GBntDQAf8suaTV8ZesUrQ/m6FzB9/qZ+ftztn5JaxOi f7rQ87WSMm5ChF7GHnLJXcoGOZFzUFRtlS5z6JBG6uVMOGfws8MnVs882byV13bPG/en hScS+eAq/fuKHhne0R3NEg9lNXyjFHww+WtcjcyvY2rEs5aC1WBbRu5hvxx6lAC7P5wd PApMtRXA0TZ5PCAyLVM6/1RJhhhR6MpvObTfv7nA0JNh8EZpEPeZ6uSCwoczGzOdXPfA YseZMSDQmxAY7BOlZvC0VCPGC0vYdSmvkxyXCLeDyLkWw9egKozrBYylJLwaIghtFEk6 +l5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=dMb9H4PkmkiPa0FVYqc3RLn9o2P2FrhAS3xYXAFVgv8=; fh=YrQQ1yb4hCv4TxiTsyWsJuU9V2Or2BNc/XMB5/rs6X0=; b=Q6e9Hdye/63NbDh4Fjfd69otcJRKkaOavpbi/Xf8tXP4SyOTtIge7Lekwa1fZKAra3 lPtOKK8zwGP2xtesFAnSwk3vsRpFdy14BiIMSCtSW3Tiqst+s6xXEttGNnNftuRGogqm DNjFoS6ZX53X/Jde4fxt36rwz2tJGoq+Kki43ApQL+BdBDV2WIhmX7w6efSqbDfRjGQe Y6rr3q4RrBqwx6GA5HfB+pknI8QHJxNx8UE4OE3CFo7I9Hy1eROlWpc/CG4iq0uVUGmK P+NrquCN1h+h4RktnxCoa3KlZKHijZPlleHn2zrUBqWa+OxnczahGehxeXbZ4qt0VNWM cf2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=iwI61Pnc; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r15-20020a17090638cf00b0099331b3e790si12862076ejd.654.2023.07.17.09.52.40; Mon, 17 Jul 2023 09:53:05 -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=@gmail.com header.s=20221208 header.b=iwI61Pnc; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230159AbjGQQko (ORCPT + 99 others); Mon, 17 Jul 2023 12:40:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230116AbjGQQkm (ORCPT ); Mon, 17 Jul 2023 12:40:42 -0400 Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4F0CA9; Mon, 17 Jul 2023 09:40:41 -0700 (PDT) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-57a8080e4a7so47447217b3.0; Mon, 17 Jul 2023 09:40:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689612041; x=1692204041; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dMb9H4PkmkiPa0FVYqc3RLn9o2P2FrhAS3xYXAFVgv8=; b=iwI61PncG4Y3Zzb2Zm6QxwurzzIJc/IRk72CpUeXExIe5JmlGi28GseD9dT/g1gQlF hmiIZi0JD1BWJZvxWxup0d6oFd87nHipIRPqquXqb2dLQ3ewE++qic5bGzt7G6FB8mJE 8JgOgdrur0OsbCiMNZpnNehsSlCxWtzQP/rEA+XARRsijNVWa/sYRfguLY2Ekqx2WOFU VsDSaQwZnTi3fv8/+Ca/caWoq4KEEt4aG6Hii4cKL+LNuhAd4VV5oCgnLVkECB0p3Qfc zJikZUQ0QMn2+OITKj8kv5gEv7ypfbiO0rAvDJR7xy0ozhwmDm+ehzPOM4rCrcYm9+wc Iimg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689612041; x=1692204041; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dMb9H4PkmkiPa0FVYqc3RLn9o2P2FrhAS3xYXAFVgv8=; b=VlPMHic73jwsHrJsv3yB0XyvT0R881HYjdzLk/pQMV6Ywb8eILQ+N5v8r7xd6D+jH5 8uA/3DMfgz9xmgy+lxZcuxVAjA7wRGGyOLFvkdXSxudlqxC9teHODutuPSA+g1TYJ22P teah0ZTRoG1DEGU91UHx4fkxvZlw+Hd+2EaN+Yizr1TQPJWecg8fvYd1F65OUwib7nTK 7DSnZNW+qEko+8yKKUdCLGpSBP1ABhY83TPGkAWT4zBJ8/UD1jXI/BRcBEQXnMKQmsHv jXeFH2bqOHP8wR50PkLkKVgiXJx3hj4ehM6U6j5X8QDqcq3JrolPiqnO4/hz83bNelH1 YzHg== X-Gm-Message-State: ABy/qLYCPpWlhv48w6+flzFqqS74wxWygV3oJlPxdAfGJ5Fxdvon3sgk +/zcv+uQFuHHcKpwdaJu/ypi6abHq0FJ/RFo4HUE0tWdbAw= X-Received: by 2002:a81:c30b:0:b0:56d:2e22:8b31 with SMTP id r11-20020a81c30b000000b0056d2e228b31mr11778471ywk.41.1689612041047; Mon, 17 Jul 2023 09:40:41 -0700 (PDT) MIME-Version: 1.0 References: <20230717124013.38796-2-samsagax@gmail.com> <20230717124013.38796-5-samsagax@gmail.com> <2023071739-remedy-sloping-64f6@gregkh> <89c6c7e8-0407-b6bb-7085-be11efce2524@roeck-us.net> In-Reply-To: <89c6c7e8-0407-b6bb-7085-be11efce2524@roeck-us.net> From: Joaquin Aramendia Date: Mon, 17 Jul 2023 13:40:30 -0300 Message-ID: Subject: Re: [PATCH 3/3] hwmon: (oxp-sensors) Refactor init() and remove probe() To: Guenter Roeck Cc: Greg KH , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 Hello Guenter and Greg: > > Again, as in patch 2/3, you forgot a signed-off-by line. Will resubmit with proper Sign-off > > You are creating a fake platform device out of no where here, which is > > tied to nothing, which isn't ok. Keep it in the proper device tree and > > have it be passed to you by the driver core in the probe() function. > > > > This is a system with dmi data, so it won't support devicetree. Other > than that, you are correct, this patch is definitely not a good idea > and needs to be dropped. > > Thanks, > Guenter > > > I think you will see that this changed where in /sys/devices/ your > > device is now, right? The attribute is created in the same place as before this patch. And works the same as before this patch. I can drop this patch and only resubmit 1 and 2. Thanks for the review to both of you. --=20 Joaqu=C3=ADn I. Aramend=C3=ADa