From patchwork Fri Nov 8 13:28:41 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: 13868198 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.subspace.kernel.org (Postfix) with ESMTPS id 7A20C1EF92B for ; Fri, 8 Nov 2024 13:29:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731072566; cv=none; b=PMvzKmhTNcAjBBR51XNBhCB24YzGwPFXRwaPI2dUtdHxFK3emI6hGMx5XEMUbaUDiYrKUnyMmMqs/4fcjGR1Mj9F9G9fdKmtQNeuf+csM9XFkNc/4jAWFGHcnXSu9Ms85IyLEREIhnfSYNZX9Xf0QQq8tW7y8n+tGvOBRyjCQZM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731072566; c=relaxed/simple; bh=8xxaLaeqEAFIPs2iLJxr0JwGVdVOwPrRyzlBgb3dEzU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FuAoo9hBHcKF1GA2Zl/M5SFRL9JWYEs7p0rC4bu3AzbaDb1/zlgwW3RAtGbcl/2RSci6DaJQDmZLPZN4AtpIuAOwKYyKzq2xqpxw2E8Ch1wcFhiojnufLpnuCNDKz7PhyIGnwKIEXSdC0Dv+eldzT5I7yWkf50IhERFB/ServFg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Wc24V5K6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Wc24V5K6" Received: by smtp.kernel.org (Postfix) id 2FE3CC4AF0C; Fri, 8 Nov 2024 13:29:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B68B9C4CED5; Fri, 8 Nov 2024 13:29:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731072566; bh=8xxaLaeqEAFIPs2iLJxr0JwGVdVOwPrRyzlBgb3dEzU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wc24V5K6NOmGgBHHVV6UvSugHFUqXmenpiTWH6orzO5BlrtW+PUwiPDQD+HJ44EoE 7FMhMpj8GlWHVN7zMwdqKj6K9c3QgHC7WxRC4FO0kNgJ2d1gnqCVtyHKJl6KfZr5ya 7E6ZtfsPifyMDyrxehh+OK5jnKVOk60pIZzT3lpns+geuj6HvoqlH5UR0Fkszx3NC1 tckRNO5AlzMweNptHTsAGWGNRoSpQ3zXXaX8kpPDG6qJT4iWd22+WnDxYOpbL5Zdk0 cIFcYKD+DjAAQVPuUC6uMd7duXhCOJu6DcYPSOR9kd7I3fx+YkOzewnC5kYJSNalv/ V6MvpTSX8VHWQ== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Lee Jones 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 , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, =?utf-8?q?M?= =?utf-8?q?arek_Beh=C3=BAn?= Subject: [PATCH leds v6 08/12] platform: cznic: turris-omnia-mcu: Inform about missing LED panel brightness change interrupt feature Date: Fri, 8 Nov 2024 14:28:41 +0100 Message-ID: <20241108132845.31005-9-kabel@kernel.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241108132845.31005-1-kabel@kernel.org> References: <20241108132845.31005-1-kabel@kernel.org> Precedence: bulk X-Mailing-List: soc@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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;