Received: by 2002:ab2:1c04:0:b0:1f7:53ba:1ebe with SMTP id f4csp79509lqg; Fri, 26 Apr 2024 09:13:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVsetr+ojLRwuwMf6v8QLwyVNNjfgFKk6EmoOhp4xmKHqtd2gBqyW7qjraJD3VMs9UKC8jolKSDhluoW7aoBHJjfj5ZzKusTDW2lT71zg== X-Google-Smtp-Source: AGHT+IH3Oz1Sv0xlPF5APxrQzfy8ecLijJoeLvk1POEboO8PvGUvSBmgfl0n+0uc0XFBgLSgCZPS X-Received: by 2002:a05:6102:508d:b0:47b:d6c8:a1fa with SMTP id bl13-20020a056102508d00b0047bd6c8a1famr392834vsb.1.1714148036314; Fri, 26 Apr 2024 09:13:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714148036; cv=pass; d=google.com; s=arc-20160816; b=u0iVz+xai+hDhc7RCLPglPPCd/h7rx3CuvyCizUIC70edaHsMZ+xIM+aMnLjC8k0s+ x4YHljWtYaq7T4954GNtso1+gFfsm0LH6PTMEZOhD59ODfjvQixG/p6GQszm/X7Wxzzx 5g6VsBeGYUHFIoPzs8urVJREy6uD6ccc6+dM977YO7/eFCllYKBdKwEJ6cWVSc76nteT abzb1brpP9XAZ19+zMC3JL0oa89hR//4E6ppozZxIe1p0K3CFliiKVJCIKLPkuKnQb31 A0luRxWr9tpWXO3cPrAVEZ3hvP55XqcDW6THiNBqfddEMkfZyM+svN5uc/ZIg23PhMRE SMKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=iHq0a5TYFF7yrLXeX6BIAdFUmvRofAskO9re+BiJUcg=; fh=KFzPgYEU594H8EplFKV7J+FTPnduLNAYEN/21zhNTb0=; b=W36hKESt/GVVC0bTteOEHDtHp6sqEGJTvDO46zAVk53OYcFR0gfleBQknJAfNakGkF iMlO9hloFlTsx8RVrLGvCO4V82NX+yXRiP82/53D5+VghHcUk5erahy/iB8xbNfQwTdN YAWvBxhJ3cIL23+CUkHPMsgL8NFxg/9jIVv1+x9ibkuU99dOmKIQy4dbUx9Z3Vd1HSZK LMnl2PtqHTmVN+3AeZibYaHo7Z/4ms3bQT03EaZd/8PIMt3kbcFYAV1KT5YTHjkOVcLD sV7L7irjGKu4RIjyooKDJnLBN+H3LSIwyAg5itze6yOznotbhRTAygM0fOlDW6JouJOi 6rFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=fNojwqBb; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-crypto+bounces-3889-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3889-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ia9-20020a0561024b0900b0047bcf48f87fsi4102559vsb.729.2024.04.26.09.13.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 09:13:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-3889-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=fNojwqBb; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-crypto+bounces-3889-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3889-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9CC791C20DA7 for ; Fri, 26 Apr 2024 16:13:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5533152E1C; Fri, 26 Apr 2024 16:13:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="fNojwqBb" X-Original-To: linux-crypto@vger.kernel.org Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 9D66E14EC4C; Fri, 26 Apr 2024 16:13:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714148028; cv=none; b=DfBAB5Dcog/quTFai6GvPUMm7ZCoU33dzUltkB4l/uho7Cx5Gf1vJHGHyJ7GMrE2PlmphrF5btNrZ0k5DXa0IA2UovjZaExls4TaHHD4qVz6JjkJr3YTYZwFWOxRrhq8+qK2ik90yQYJXjaLYf0o9U6lsxqM/sUL8nVrxv9ZKWs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714148028; c=relaxed/simple; bh=KAubqwrj4NqoRfG/h9VYz+cm7v93zo2oflPFobx0vQc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=J1AxrKQ92/LFGHvFAI4RTNuNUtMgckfjYZSP9dS07rdNHy/A4h4oCgJhYXjsXg+PEju4+MuGvzzrubPZPor7mGFwTGvYbWhvzj2CsFXQlkh2Ttex4C97f4Ia0H9ecyOa9a2MZmhPoYEkbN9YrNzFQJFjkYMqHL0xttY/SzbGp/I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=fNojwqBb; arc=none smtp.client-ip=217.70.183.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 949E120002; Fri, 26 Apr 2024 16:13:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1714148018; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iHq0a5TYFF7yrLXeX6BIAdFUmvRofAskO9re+BiJUcg=; b=fNojwqBbgjVi8+uUgbS7dQ3VT+jboqmKA/OOumXC1o+9UTHoXNi5NIM+IKveAdoe8uVZ/H 8FNblc7Ig09gQOhAFQmDasKExhFMRaCAruTqEO51OwdvHCCPe8QsiyqqQEKoCNMPj2xAoc XEC5yvUoNDkMZ8mXylxxj0vkheELgBQGMRd8uqI0hOCI/Ht+xSIsJrmm2fzSFlUsDELyK7 wH22z+CBJpLHGhpaiYFfysHrio67/bxr8BHnYcgM9T6JEpza4io6OEGnaEJqEzPgOY/vU9 9izwgVmU8xG9NCEDX3OncYDEjpODVCEkAxsV0RZYsTFzD8FOcGzklzZS2XmTdA== From: Gregory CLEMENT To: Marek =?utf-8?Q?Beh=C3=BAn?= , Arnd Bergmann , soc@kernel.org, arm@kernel.org, Andy Shevchenko , Hans de Goede , Ilpo =?utf-8?Q?J=C3=A4rvinen?= , Alessandro Zummo , Alexandre Belloni , Bartosz Golaszewski , Christophe JAILLET , Dan Carpenter , devicetree@vger.kernel.org, Greg Kroah-Hartman , Guenter Roeck , Herbert Xu , Krzysztof Kozlowski , Linus Walleij , linux-crypto@vger.kernel.org, linux-gpio@vger.kernel.org, linux-rtc@vger.kernel.org, linux-watchdog@vger.kernel.org, Olivia Mackall , Rob Herring , Wim Van Sebroeck Cc: Marek =?utf-8?Q?Beh=C3=BAn?= , Andrew Lunn , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Sebastian Hesselbarth , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Subject: Re: [PATCH v7 0/9] Turris Omnia MCU driver In-Reply-To: <20240424173809.7214-1-kabel@kernel.org> References: <20240424173809.7214-1-kabel@kernel.org> Date: Fri, 26 Apr 2024 18:13:32 +0200 Message-ID: <875xw45cgj.fsf@BLaptop.bootlin.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: gregory.clement@bootlin.com Hello all, > Hello Andy, Hans, Ilpo, Arnd, Gregory, and others, > > this is v7 of the series adding Turris Omnia MCU driver. > > This series depends on the immutable branch between LEDs and locking, > introducing devm_mutex_init(), see the PR > https://lore.kernel.org/linux-leds/20240412084616.GR2399047@google.com/ > > See also cover letters for v1, v2, v3, v4, v5 and v6: > https://patchwork.kernel.org/project/linux-soc/cover/20230823161012.698= 6-1-kabel@kernel.org/ > https://patchwork.kernel.org/project/linux-soc/cover/20230919103815.168= 18-1-kabel@kernel.org/ > https://patchwork.kernel.org/project/linux-soc/cover/20231023143130.116= 02-1-kabel@kernel.org/ > https://patchwork.kernel.org/project/linux-soc/cover/20231026161803.167= 50-1-kabel@kernel.org/ > https://patchwork.kernel.org/project/linux-soc/cover/20240323164359.216= 42-1-kabel@kernel.org/ > https://patchwork.kernel.org/project/linux-soc/cover/20240418121116.221= 84-1-kabel@kernel.org/ > > Changes since v6: > - moved the DT binding from arm/cznic,turris-omnia-mcu.yaml to > firmware/cznic,turris-omnia-mcu.yaml, as suggested by Conor Dooley > (patch 1) > - dropped the devm-helpers.h additions, for the reasons see > https://lore.kernel.org/soc/20240423184346.37eb0915@thinkpad/ > - use gpiod_to_irq(gpiochip_get_desc(...)) instead of > irq_create_mapping(), as suggested by Andy Shevchenko (patches 6 and > 7) > - added a dummy read of TRNG entropy when registering TRNG, in case > someone cleared the TRNG interrupt before probing the driver, but did > not read the entropy (the MCU won't send a new TRNG interrupt if the > entropy is not collected) (patch 6) > - fixed a bug in TRNG probing, wherein if the=20 > > Marek Beh=C3=BAn (9): > dt-bindings: arm: add cznic,turris-omnia-mcu binding > platform: cznic: Add preliminary support for Turris Omnia MCU > platform: cznic: turris-omnia-mcu: Add support for MCU connected GPIOs > platform: cznic: turris-omnia-mcu: Add support for poweroff and wakeup > platform: cznic: turris-omnia-mcu: Add support for MCU watchdog > platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG > platform: cznic: turris-omnia-mcu: Add support for digital message > signing via debugfs It is still early as there are some comment pending but I wonder who will responsible of merging all theses patches ? Arnd ? Hans ? Ilpo ? me ? Gregory > ARM: dts: turris-omnia: Add MCU system-controller node > ARM: dts: turris-omnia: Add GPIO key node for front button > > .../ABI/testing/debugfs-turris-omnia-mcu | 13 + > .../sysfs-bus-i2c-devices-turris-omnia-mcu | 126 ++ > .../firmware/cznic,turris-omnia-mcu.yaml | 86 ++ > MAINTAINERS | 5 + > .../dts/marvell/armada-385-turris-omnia.dts | 35 +- > drivers/platform/Kconfig | 2 + > drivers/platform/Makefile | 1 + > drivers/platform/cznic/Kconfig | 51 + > drivers/platform/cznic/Makefile | 9 + > .../platform/cznic/turris-omnia-mcu-base.c | 439 +++++++ > .../platform/cznic/turris-omnia-mcu-debugfs.c | 216 ++++ > .../platform/cznic/turris-omnia-mcu-gpio.c | 1047 +++++++++++++++++ > .../cznic/turris-omnia-mcu-sys-off-wakeup.c | 258 ++++ > .../platform/cznic/turris-omnia-mcu-trng.c | 109 ++ > .../cznic/turris-omnia-mcu-watchdog.c | 123 ++ > drivers/platform/cznic/turris-omnia-mcu.h | 188 +++ > include/linux/turris-omnia-mcu-interface.h | 249 ++++ > 17 files changed, 2956 insertions(+), 1 deletion(-) > create mode 100644 Documentation/ABI/testing/debugfs-turris-omnia-mcu > create mode 100644 Documentation/ABI/testing/sysfs-bus-i2c-devices-turri= s-omnia-mcu > create mode 100644 Documentation/devicetree/bindings/firmware/cznic,turr= is-omnia-mcu.yaml > create mode 100644 drivers/platform/cznic/Kconfig > create mode 100644 drivers/platform/cznic/Makefile > create mode 100644 drivers/platform/cznic/turris-omnia-mcu-base.c > create mode 100644 drivers/platform/cznic/turris-omnia-mcu-debugfs.c > create mode 100644 drivers/platform/cznic/turris-omnia-mcu-gpio.c > create mode 100644 drivers/platform/cznic/turris-omnia-mcu-sys-off-wakeu= p.c > create mode 100644 drivers/platform/cznic/turris-omnia-mcu-trng.c > create mode 100644 drivers/platform/cznic/turris-omnia-mcu-watchdog.c > create mode 100644 drivers/platform/cznic/turris-omnia-mcu.h > create mode 100644 include/linux/turris-omnia-mcu-interface.h > > --=20 > 2.43.2