Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1095202imm; Sun, 2 Sep 2018 09:31:16 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZO+PAbvkJ/qwfZB38QDtc+J+6g4Q/LPmQbmyVvYS1BVOBDCLjuqvKz8xOfoCklP+sJqFDZ X-Received: by 2002:a62:cdcf:: with SMTP id o198-v6mr5072699pfg.12.1535905876140; Sun, 02 Sep 2018 09:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535905876; cv=none; d=google.com; s=arc-20160816; b=sE3z3oDyyqR3jgZtRjHr7xcSNv+LPYLJFYmeQF1j0s9dbVmWVBUvsGKy3S0X5rnGwf P7jrFIC87GlQwaoFy9SUFzdlRQ+7VD1gmztxveYDlG2RNEUTXqTAtS65AEyO5J9NHmoz YdELMhsSafY2L6XbD4u3KZE9yq8BT8p/gMgmwbufFGVOq215yRAZC/sgBY9wqt51URNH oKcDUCG5JlwvM/5jPNdjsYY2H/+kS6a+Nbphev7syRMFpJDLixtBGaZlVuZBTETjMTWt zhOSeKx+N0X/Wd+BCQxO4Th6rr9lyzbT8vIFCqwR+vMMVyesXl8yiQVuWN0DzTMxdLq6 U5pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:importance:content-transfer-encoding :mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:arc-authentication-results; bh=7GTFYT8AgiWRGR5E1MU0gb0ShHFpUDesRgJkRLGbyao=; b=InAdcKjAcMGwBzlDaf5GdWeBr6KcPc6Op2l5JRZDM0Sv8sWFo9w2IBGBEFnDeg6u5W umhVl32T5CFnzQXm5goW0LIKW2pF/CloHaMU+vYWXwZ2gyHF7OolcLso5k8sRlXSmnt0 fiKPYYccrauDbvEkmsEGrZ7fdslzhNJ/A1BumtFMCqoGVmHFQ+7OOj8vZG8GMGrBJEUz ttfq/unjs71dQvJpUAITiBNT+WLdgdlVv1pEASdEEkPsb8cOT7N05ifz/TQd/okmSV+s 4XMWjTOH4/OxYCIY9NfkGDm+liItde17yuP9oG/sPiQ5a30RbYPcGTTA4gagytIF1j3Q 1jCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n28-v6si16370706pfg.127.2018.09.02.09.30.30; Sun, 02 Sep 2018 09:31:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726763AbeIBUny (ORCPT + 99 others); Sun, 2 Sep 2018 16:43:54 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:49091 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726065AbeIBUnx (ORCPT ); Sun, 2 Sep 2018 16:43:53 -0400 Received: from null ([172.19.249.48]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LpfQU-1fRIrR1raI-00fQaa; Sun, 02 Sep 2018 18:26:47 +0200 Date: Sun, 2 Sep 2018 18:26:44 +0200 (CEST) From: Stefan Wahren To: Guenter Roeck Cc: Florian Fainelli , linux-rpi-kernel@lists.infradead.org, Eric Anholt , Phil Elwell , Jean Delvare , Mark Rutland , Rob Herring , bcm-kernel-feedback-list@broadcom.com, devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, serge@raspberrypi.org Message-ID: <67224834.51159.1535905604770@email.1und1.de> In-Reply-To: <99ca4f6d-d2b2-36e7-9f27-189df379cfaf@roeck-us.net> References: <1535887251-29515-1-git-send-email-stefan.wahren@i2se.com> <99ca4f6d-d2b2-36e7-9f27-189df379cfaf@roeck-us.net> Subject: Re: [PATCH RFC 0/2] hwmon: Add RPi PoE HAT fan driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev36 X-Originating-Client: open-xchange-appsuite X-Provags-ID: V03:K1:LTgnAS8jHHrrF7tFzN0pG89q9GehcS3SdTfIixEUuBJgTc0m0e4 zLybO//WIkXNMXsrvOzSJ1eJxeeiaFB5oD+C3ywj04Au2gp6cNwTwt8IN+YE/IlY3pLZ5Dm rUliUjbZSne5/fQKybNct6/pc3oiDQmzFeGZV2qfPgwP5l18uFQkQN8G8l7aZP7cZ2QFaQu vOfmPEKTVTqoXNfBryMbw== X-UI-Out-Filterresults: notjunk:1;V01:K0:ntaQTbIg/yo=:DP3sxTYD6Ver9uPk2nLVVJ EyX/MaReI689PznWULWFKtUas+b5B92HwflcWMrv7tKx5Gy85PmmAVdE3aPvx9hOruHd109B9 zMuxVHtwqvdkiCl79AJ3mW1ND3PcQLu5xjqS8vIFKvMANl9z+AgF13M2FbjbOLqwrW0vws2U8 YE+MjKQsZwQQIROCexlcvwJi3YeYr6hFNcMSL7J/wY2t5Wq7vaLJ/2hYwibaCSiBwZg6gtEDu rf8mNaHxuUZG3wTDjQr3D0J5QH/Rr5DMZg2fTmEfaQA6Xfmi460wPT88V0NX4von/M5EPFLoM EEegBZwkQLxosbiZbbalkazMi3nmA7Y3KNq2lHwpVbIjGFAM6V/I2mkDHg0D1kDwZtzyFBYdP eFgvajO/Sx3dmnJ2So2JbSTAECVA24H1yllJTLqu4/vgoObkJfbMgaF9gepjue4M/BiaJ7pq5 NCM6YwC5iHi0l2riIJ47vyygidgnyAJqLpmYFHTedBlhIIXckd0V6/32n4OdB0CP4ukT5dlsh KgpwARLrps2W5X9KMPOyABtINQxn8wBkzoafw9AqwMIHsIz81joppitQk3E1uPQQkcqCa+FTV 9O7DS1SnwYyqb+IBamC6uwtBrq3k8fcsEJzfGYWStFQ5A4gokO6uOqhHBqpdyohgNQYJ7FGwD NjEpHqekKztmjjtPW6+h2Gvfmo3bYaWNylbo5KpkXApghCFof0jmjlwvosiDXfNBImgAtab8X lam19Nh8kfqOVVSq Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Guenter, > Guenter Roeck hat am 2. September 2018 um 16:23 geschrieben: > > > On 09/02/2018 04:20 AM, Stefan Wahren wrote: > > This series is an early stage of the hwmon driver for the fan on the > > Raspberry Pi Power over Ethernet HAT [1]. At the end this should use a > > Device Tree Overlay. > > > > Changes by Stefan based on [2]: > > - reformat the downstream patches for submission > > - drop reboot notification > > - fix remaining checkpatch issues > > - add COMPILE_TEST to Kconfig > > > > The driver is mostly copy & paste from pwm-fan, which isn't good. Personally > > i see two options: > > > > 1) integrate the driver function into the pwm-fan driver (new compatible) > > 2) implement the core function as a PWM driver and use the pwm-fan driver on top > > > > I don't really see the point of thise driver. Why not implement either of those ? i'm not sure about your question. Since the fan is placed over the SoC, the fan should takes care of the SoC temperature. AFAIK the firmware should have exclusive access to the I2C. So why we need this mailbox interface instead of a I2C driver. > 2) sounds like a perfect fit to me. > > Guenter > > > [1] - https://www.raspberrypi.org/products/poe-hat/ > > [2] - https://github.com/raspberrypi/linux/commit/0f937c8dc3201ebffa6c617c616fd7c65db65959 > > > > Serge Schneider (2): > > dt-bindings: hwmon: Add RPi PoE HAT documentation > > hwmon: Add RPi PoE HAT fan driver > > > > .../devicetree/bindings/hwmon/rpi-poe-fan.txt | 55 +++ > > Documentation/hwmon/rpi-poe-fan | 15 + > > drivers/hwmon/Kconfig | 11 + > > drivers/hwmon/Makefile | 1 + > > drivers/hwmon/rpi-poe-fan.c | 414 +++++++++++++++++++++ > > include/soc/bcm2835/raspberrypi-firmware.h | 2 + > > 6 files changed, 498 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/hwmon/rpi-poe-fan.txt > > create mode 100644 Documentation/hwmon/rpi-poe-fan > > create mode 100644 drivers/hwmon/rpi-poe-fan.c > > >