From patchwork Mon Sep 2 12:41:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 13787229 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 smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 039B8CD13CF for ; Mon, 2 Sep 2024 12:41:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) id D7EF5C4AF0E; Mon, 2 Sep 2024 12:41:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16A1CC4CECB; Mon, 2 Sep 2024 12:41:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725280889; bh=FxPKGWWRKbnhjKzH3b2LpLpPDFpRJp5XiJc4PKVXMLI=; h=From:To:List-Id:Cc:Subject:Date:In-Reply-To:References:From; b=QMYd37xbwdXjQmo5aXiTwUllE1/0slL2Q3a/d13ZYiGqG7ZwwUjOHZFnuPkFvepmK vYABZAGxVUcZzxqIvPd155wNqxvXj2dog/Kjzy2MwOsJtrvZYma+MxKkS5Si/KWedt 97vhc0IHo7CfKw6WFEQe1d8OX62yq+L1wk2vhNMjd3Ep7Hll4YMUmb01q0HbcG5vls iAftGjuwrYEzkMVgfZxtR0k2LQzQ+cTel4mOOxQidGRSb+D7RA83v3G9NrmGu+gAf/ Ht3qQcMRthwzYU7f1/5GXXbfY9KKDZJnrB4lxb5yXT6GKvtwPCnwDKfnVFC1hmF6Nr B+avQQnT8eR7Q== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Lee Jones List-Id: Cc: Pavel Machek , linux-leds@vger.kernel.org, Arnd Bergmann , soc@kernel.org, Gregory CLEMENT , arm@kernel.org, Andy Shevchenko , Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , Andrew Lunn , Sebastian Hesselbarth , =?utf-8?q?Marek_Be?= =?utf-8?q?h=C3=BAn?= Subject: [PATCH leds 6/8] platform: cznic: turris-omnia-mcu: Inform about missing LED panel brightness change interrupt feature Date: Mon, 2 Sep 2024 14:41:02 +0200 Message-ID: <20240902124104.14297-7-kabel@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240902124104.14297-1-kabel@kernel.org> References: <20240902124104.14297-1-kabel@kernel.org> MIME-Version: 1.0 When reading MCU firmware features, check also for the LED panel brightness change interrupt feature, and suggest upgrading the firmware if it is missing. Signed-off-by: Marek BehĂșn --- drivers/platform/cznic/turris-omnia-mcu-base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/cznic/turris-omnia-mcu-base.c b/drivers/platform/cznic/turris-omnia-mcu-base.c index bb871226e357..3bb4a3cfdb29 100644 --- a/drivers/platform/cznic/turris-omnia-mcu-base.c +++ b/drivers/platform/cznic/turris-omnia-mcu-base.c @@ -258,6 +258,7 @@ static int omnia_mcu_read_features(struct omnia_mcu *mcu) _DEF_FEAT(NEW_INT_API, "new interrupt API"), _DEF_FEAT(POWEROFF_WAKEUP, "poweroff and wakeup"), _DEF_FEAT(TRNG, "true random number generator"), + _DEF_FEAT(BRIGHTNESS_INT, "LED panel brightness change interrupt"), #undef _DEF_FEAT }; struct i2c_client *client = mcu->client;