Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp647737pxx; Thu, 29 Oct 2020 11:00:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiv6QM8J3iDg3cBRMVJ37diBcukzUf9Nb9uIqblWswLAZwzIiZFxHeZKAMzAfdEMPPBg0h X-Received: by 2002:a17:906:e116:: with SMTP id gj22mr5445279ejb.313.1603994411679; Thu, 29 Oct 2020 11:00:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603994411; cv=none; d=google.com; s=arc-20160816; b=SkP8z/G2guyFke02NPVAcZLgdXvvZgAOjkjjmxJDcx/iIEumeuExXPIfsQqHf9dZBX /Wj3iDByv0wGpwpRdF5YMWDfzRiXtUz/iSNXtPDhQsa8+cy/S8u3QSAw3u86QxZGVe1a Fxkhp7OQQje2JbGGKrsVPxFTKbmB/f91vwR3J7Q2kAOrM5avJe/STzELO6bcrJCuGep1 zKhix6qgm4J+18iWWkwvfmqsyqCMb/sQOlHvPVWD+23x/izVx2TFuVfEAqGzyBUDBSdK g8CtHP7jAjZY0GC6dazKe5ealUWIApmol+LmyQr4yn9bmWIsNhO1j4qYLqXeTSLcALEh XxVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=db+qdJNHE2ChdXrgrl28poIMeakgzbNXCs1Tp4QPXSU=; b=LIe0QAKo3MvHZpaVbkO2ShOAj2LXfMwhvLjCgNkX12aDHY19r2YV72xBLvaArVCvCi g8fNbVeVYnZl35tsH+Ey+Dmldb3e4b6xQcCinyrhTmqRaN9DAh/qfYX0rMRiSDphk701 jkxDpo3QsT2IHOa7qwiogouOgPuN6NP3mJXFQVwi2aZ9nsIQ0dC8GJeIx2Uq0beW8ok7 jGKXS96IHxK2h/RDH0ElRBjk2BB9HxiDSMEBfp3bwBKml6CSxBzj+iMxIaOpaNOmca94 7Tg+85P8TZk+x4ZmSubav4KERkzq1iYxjupW7wn0FPUR+n/bm4u81MqF7+WGKpiW1oMV ToWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si2677844edp.174.2020.10.29.10.59.47; Thu, 29 Oct 2020 11:00:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727105AbgJ2R60 (ORCPT + 99 others); Thu, 29 Oct 2020 13:58:26 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:34492 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725805AbgJ2R60 (ORCPT ); Thu, 29 Oct 2020 13:58:26 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 860BE1C0B7A; Thu, 29 Oct 2020 18:58:23 +0100 (CET) Date: Thu, 29 Oct 2020 18:58:23 +0100 From: Pavel Machek To: Luka Kovacic Cc: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, lee.jones@linaro.org, dmurphy@ti.com, robh+dt@kernel.org, jdelvare@suse.com, linux@roeck-us.net, marek.behun@nic.cz, luka.perkov@sartura.hr, andy.shevchenko@gmail.com, robert.marko@sartura.hr Subject: Re: [PATCH v7 4/6] drivers: leds: Add the IEI WT61P803 PUZZLE LED driver Message-ID: <20201029175823.GC26053@duo.ucw.cz> References: <20201025005916.64747-1-luka.kovacic@sartura.hr> <20201025005916.64747-5-luka.kovacic@sartura.hr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E13BgyNx05feLLmH" Content-Disposition: inline In-Reply-To: <20201025005916.64747-5-luka.kovacic@sartura.hr> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --E13BgyNx05feLLmH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > Add support for the IEI WT61P803 PUZZLE LED driver. > Currently only the front panel power LED is supported, > since it is the only LED on this board wired through the > MCU. >=20 > The LED is wired directly to the on-board MCU controller > and is toggled using an MCU command. >=20 > Support for more LEDs is going to be added in case more > boards implement this microcontroller, as LEDs use many > different GPIOs. Not too bad. > This driver depends on the IEI WT61P803 PUZZLE MFD driver. >=20 > Signed-off-by: Luka Kovacic > Cc: Luka Perkov > Cc: Robert Marko > --- > drivers/leds/Kconfig | 8 ++ > drivers/leds/Makefile | 1 + > drivers/leds/leds-iei-wt61p803-puzzle.c | 161 ++++++++++++++++++++++++ > 3 files changed, 170 insertions(+) Can you put it into drivers/leds/simple? You'll have to create it. > +++ b/drivers/leds/leds-iei-wt61p803-puzzle.c > @@ -0,0 +1,161 @@ > +// SPDX-License-Identifier: GPL-2.0-only Make sure this is consistent with MODULE_LICENSE("GPL");. GPLv2+ would be nicer if you can. > + struct mutex lock; Mutex is _way_ overkill for this. Please check that locking provided by LED core is not sufficient. If not, please use atomic_t or something. Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --E13BgyNx05feLLmH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCX5sCvwAKCRAw5/Bqldv6 8j2+AJ0YFU6C6xHNPs7C8KJPePRrlhWVKACeIeZqPPBPkCkofGyaQ0peDTHv+P8= =3yWr -----END PGP SIGNATURE----- --E13BgyNx05feLLmH--