Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98AC7C433F5 for ; Sun, 12 Dec 2021 11:43:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230214AbhLLLns convert rfc822-to-8bit (ORCPT ); Sun, 12 Dec 2021 06:43:48 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:47447 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbhLLLnq (ORCPT ); Sun, 12 Dec 2021 06:43:46 -0500 Received: from [192.168.1.107] ([37.4.249.122]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MKt3r-1nEk8115DR-00LGy7; Sun, 12 Dec 2021 12:43:32 +0100 Subject: Re: [PATCH V5 1/6] drivers/mfd: sensehat: Raspberry Pi Sense HAT core driver To: Charles Mirabile , linux-kernel@vger.kernel.org Cc: Lee Jones , Serge Schneider , Nicolas Saenz Julienne , Mattias Brugger , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, fedora-rpi@googlegroups.com, Mwesigwa Guma , Joel Savitz References: <20211210221033.912430-1-cmirabil@redhat.com> <20211210221033.912430-2-cmirabil@redhat.com> From: Stefan Wahren Autocrypt: addr=stefan.wahren@i2se.com; keydata= LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tClZlcnNpb246IEdudVBHIHYy CgptUUlOQkZ0NmdCTUJFQUN1Yi9wQmV2SHhidkplZnlaRzMySklObW4yYnNFUFgyNVY2ZmVq bXlZd21DR0tqRnRMCi9Eb1VNRVZIRHhDSjQ3Qk1YbzM0NGZIVjFDM0FudWRnTjFCZWhMb0J0 TEh4bW5lQ3pnSDNLY1B0V1c3cHRqNEcKdEp2OUNR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DNHZnbDM3dApocHg4aDU1WWhKbjZIU3VVelBnaGFLdFZCMmsrajdaZXlaK1NGeHA3SXVi SEN3TEhsUWhUNzVSd1EzaUF4S242CjBxajUxY1lUbnF4ZFpYVzZmSDNQa3VNellVNUdwcVIv MU9sNWMvd2ZJNmc2QW04eUtXLzBFVUx0K0tuNExGc1MKbTdZM201SDV2MTJVNkpCWXZWK3Ix M2paaW9zNEVFREU5M0Q1c05IMk1JeVJ6Q0RxMXpkZHQ0WHV5S0ZqUEtXMQo5aWJaRGZGVjdL dUNzdnVMMjNzQmMxc0NNb3ArRTFtVC9ReE9JQTZvRFQxTVFzdHdPVnVReURDdi9PdktTZ2Z6 CjhGWEdMNkFQY2xqQ3FqOEFKaHhReXN4ZG9pUVA4bS92dStialdHR3Z4dzVzMWxncGlSRFRS VVBnY0pKTmFHWTIKVklEclpRaTROU2lOUTBOSWkrZGp1NGZOTW1DcFFxZzh0YkMzY0FhNnl3 bTZvUUIxU0JobURYMmUxMWdSbGx1SQpPblRHUEUwSFRvM2w3MmxoYmc9PQo9cVpNVgotLS0t LUVORCBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCg== Message-ID: <50355fae-0745-c8a9-87f9-2a7491cd2c17@i2se.com> Date: Sun, 12 Dec 2021 12:43:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20211210221033.912430-2-cmirabil@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Content-Language: en-US X-Provags-ID: V03:K1:ap3LejeeeEHv3bxWxyIQgf4Kw4swzz6SMwzRq83qETVLGtzjV2s uye8Cmf9o4UwubjOExMXrfcMty4/Ezjumm8L0Cooicji1Hbuk2k+u7X2mQPz16/vsOJSbI7 yOh7GiRtzG367n7MZjD7nTc1Dsmk7IKjUGaJ1un0OOcfGYE2Jdzu1c3L72hL6FTleVRFYSb 7VR2Ra1P9QjSfzJolIgWA== X-UI-Out-Filterresults: notjunk:1;V03:K0:rqqvGPPwaL0=:Ksr9trLk4VXJid0e+sBCzi 7E58omUNAlBNmXVlNIYep6V4YdkGpviNGdv6EpQhWzDWRmeAn6ijcFL8W+WrsjnbAZTTlZSId bF33Zm4MAKKr8iKDWvZkdOR+nL9o1Je1jzQ3gJZxNoC4nYEJ+e8mdnkFOdbtdTe3dUi/Yyztq LsKPU88rcUAPz9NqHYdrIU0zNN0y5jAIHz9XDRtB1TztpoPdH+v7tMO31Cx1hucEzk2spebOc NH4Ik/5/pmS2uhriqBQUPY0gHZpF1zjisZXEuNFL3AIWxnrfrfBLAHtLu/Nu+q9QjWV6E5obq qhsm36jtapwoy/ZNtogwHcqFbvph1NmEUqU+2ggIu47IRrpx9HsxcTUvTFYHWIqbGKUoHMXbv ASsqPB9nNJ+BN4dhI1IhvdhxVjP8NLmTFRoDpUfAa73od/YSHvKLAd3z2SRf5LfFTYd2iA96O zl3p+BjVCqLnbSEb9YYTKo0ZZjW75gljQBK4ky8Ex2LTiAaURYVbdVhLruvWOWkSTEgvI7w+t RqK7s1gHY9rl8xZqy6wANKfpA0jMFT0SyqYAQf3lXn/IKTRXg80SQlPSH63kzbfkPl6qpk0R5 hbcWsWKuy7crsgG42az7VlPjMtvO0s1D7RUxz4vsoOh84ub7n7chjJO/Tgu7FwDCeCcLrDsEm snJKF/uTYHMDTxCKNnCUVchcrmFhzSj6VfgACJki2a+615PPO5s/sIG5WiCp/0Brwm9YoLzfR rvm3e9TOpYHCGcxR Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 10.12.21 um 23:10 schrieb Charles Mirabile: > This patch adds the core driver file, containing the regmap configuration > needed to communicate with the board over I2C. We also add the header > file shared by all three drivers, containing common data and definitions. > In addition, we add a config option to toggle compilation of the driver. > > Signed-off-by: Charles Mirabile > Co-developed-by: Mwesigwa Guma > Signed-off-by: Mwesigwa Guma > Co-developed-by: Joel Savitz > Signed-off-by: Joel Savitz > --- > drivers/mfd/Kconfig | 8 ++ > drivers/mfd/Makefile | 1 + > drivers/mfd/sensehat-core.c | 157 +++++++++++++++++++++++++++++++++++ > include/linux/mfd/sensehat.h | 51 ++++++++++++ > 4 files changed, 217 insertions(+) > create mode 100644 drivers/mfd/sensehat-core.c > create mode 100644 include/linux/mfd/sensehat.h > ... > diff --git a/drivers/mfd/sensehat-core.c b/drivers/mfd/sensehat-core.c > new file mode 100644 > index 000000000000..c5b6f4648d88 > --- /dev/null > +++ b/drivers/mfd/sensehat-core.c > @@ -0,0 +1,157 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > +/* > + * Raspberry Pi Sense HAT core driver > + * http://raspberrypi.org > + * > + * Copyright (C) 2015 Raspberry Pi > + * Copyright (C) 2021 Charles Mirabile, Mwesigwa Guma, Joel Savitz > + * > + * Original Author: Serge Schneider > + * Revised for upstream Linux by: Charles Mirabile, Mwesigwa Guma, Joel Savitz > + * > + * This driver is based on wm8350 implementation and was refactored to use the > + * misc device subsystem rather than the deprecated framebuffer subsystem. > + */ > + > +#include > +#include Is this header really necessary? > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#define SENSEHAT_WAI 0xF0 > +#define SENSEHAT_VER 0xF1 > + > +#define SENSEHAT_ID 's' > + > +static struct platform_device * > +sensehat_client_dev_register(struct sensehat *sensehat, const char *name); Please avoid this forward declaration > + > +static struct regmap_config sensehat_config; Is there a specific reason, why the driver only supports one sense hat? > + > +static int sensehat_probe(struct i2c_client *i2c, > + const struct i2c_device_id *id) > +{ > + int ret; > + unsigned int reg; > + > + struct sensehat *sensehat = > + devm_kzalloc(&i2c->dev, sizeof(*sensehat), GFP_KERNEL); > + > + if (!sensehat) > + return -ENOMEM; > + > + i2c_set_clientdata(i2c, sensehat); > + sensehat->dev = &i2c->dev; > + sensehat->i2c_client = i2c; > + > + sensehat->regmap = > + devm_regmap_init_i2c(sensehat->i2c_client, &sensehat_config); > + > + if (IS_ERR(sensehat->regmap)) { > + dev_err(sensehat->dev, "Failed to initialize sensehat regmap"); > + return PTR_ERR(sensehat->regmap); > + } > + > + ret = regmap_read(sensehat->regmap, SENSEHAT_WAI, ®); > + if (ret < 0) { > + dev_err(sensehat->dev, "failed to read from device"); I think the return code of regmap_read could be helpful in the log entry. > + return ret; > + } > + > + if (reg != SENSEHAT_ID) { > + dev_err(sensehat->dev, "expected device ID %i, got %i", > + SENSEHAT_ID, ret); > + return -EINVAL; > + } > + > + ret = regmap_read(sensehat->regmap, SENSEHAT_VER, ®); > + if (ret < 0) { > + dev_err(sensehat->dev, > + "Unable to get sensehat firmware version"); > + return ret; > + } > + > + dev_info(sensehat->dev, "Raspberry Pi Sense HAT firmware version %i\n", > + reg); > + > +#ifdef CONFIG_JOYSTICK_SENSEHAT > + sensehat->joystick.pdev = > + sensehat_client_dev_register(sensehat, "sensehat-joystick"); > + > + if (IS_ERR(sensehat->joystick.pdev)) { > + dev_err(sensehat->dev, "failed to register sensehat-joystick"); > + return PTR_ERR(sensehat->joystick.pdev); > + } > +#endif Please replace the #ifdev blocks with IS_ENABLED() to increase compile coverage