Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1028428lqd; Thu, 25 Apr 2024 04:09:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVriiPAbijjLPBAn5s/7d6cA7JfWkvdBDBgYFd+G3XMpzlnOg3c5PoqVu99UIUySF8ld4ltRrRcgjW9Se1xt3PjcHs5gqpBYFGZhYm3NA== X-Google-Smtp-Source: AGHT+IE3AvSDA+kOD+i/TH0NoH24FQ1f3kEp/0xlpfX3D1PASic7GHaisGp3nFAxIAs95vvFw+mo X-Received: by 2002:a17:90b:33ce:b0:2a0:215f:dc9c with SMTP id lk14-20020a17090b33ce00b002a0215fdc9cmr5346180pjb.35.1714043346258; Thu, 25 Apr 2024 04:09:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714043346; cv=pass; d=google.com; s=arc-20160816; b=AoHLc7gpaZ5Ae58txFIEbUYRwADqzZYYOTr/zGr9pGGzWmIQBmiwmonepe9P82GSLx zTpzvrmIpiADowLW/2iZc+jxejmIV0wtlJao+J8qCaaFw+wBZpfWwCDzp7Hr/4+qLUwr KNSfcD01JJW6tiHqZ69LXQ7gPe2ZDZzFtkAOUqfTe3TbM0w/9Hh/MilNfrqPINhcbiC3 h3XS2t18wCGHRZPt6SMH87YVZ3c5KBgDGV+sw7BeQNrIWD1H1hN93qdpUqjYoaFgisGN nNHiM9k4LOpwetLnZV90Oi7M5b2sL2NG6QtFoVG1TVbspMvAcM76Q15W02B2JB4ZO9T5 7DPQ== 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:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=CUCPur5xfnpHyy4pY/Lo921lQAfll0iCmGR0ZdzeedI=; fh=PBvZ5hIMtHrD9IVPN/STVEv6qBsgtMgLCrMq4/xYE7I=; b=K0mIWqasI7kdzux4hbm3r8gacIIRwmuIM2zvDeRylmC8Jiv7a7c1p0ut4oK0ckXyJQ FNTMn4ouC4kJhP0Adf9bgojsBUL6CLpyJ/ZBbZswOkLRyvfvuFh2MdyEC2msyQST+PXC 139NzlfXDoP5TWYFkQn67LTOM0m+nbrflgQBed6XLJJIX7N+73kB62QN4lykQjLRbwXs IqjrhxwxA415rNJ+pODOP0FzCFOK5HblG1cXxVkJJppyV69fL4jJyoOX2Y6gRE7gvkXI XfpSxCc/6Xm7bDOVdJCd18hEUrVoTspaMFiMKw7JiGAG5IWqX+iC4KHy2kp4uXuDGuON Nnjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=ZZBGxiQh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-3848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3848-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id go22-20020a17090b03d600b002a25aafae6bsi14743115pjb.48.2024.04.25.04.09.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 04:09:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-3848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=ZZBGxiQh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-3848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3848-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E26C4B2187B for ; Thu, 25 Apr 2024 10:41:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F1621DDF4; Thu, 25 Apr 2024 10:41:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZZBGxiQh" X-Original-To: linux-crypto@vger.kernel.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.subspace.kernel.org (Postfix) with ESMTPS id F31CB1CFA9 for ; Thu, 25 Apr 2024 10:41:35 +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=1714041696; cv=none; b=btjNtIwarL9YEaTUxgP7sewcOk+pU1DYh+O+kYNtG515wxCnoirWRvPaJwya5pGWHTg45VfKwls1X4RZFyDzIy8pmICh1X08t5lP8XqABzS883b295WCf+21Q2HmybWpRbhNmT+wCLXkBS8TfGqOmdLmq6Y+cwmxIrMobUiysi0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714041696; c=relaxed/simple; bh=iv7SUIiaG9s3NVPGgli4gIp/ZnPvi4cNgaMFQtY+byk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=N6xTSVkCZ5+MPWtvvAONwKjcFLTLTLH1eKHgyHiIXbh3XO9Rditv7M6aXPeHbfBrWH5vz0Vs6twEgbQf7IaESpg43yc1QtzSgfd+PRFeCsslvPHCe38sX3qLlr8KEtYGBDFZKhOWSHw4FqAYRDZOU2BA0PPDTAoA2h0lRPiyj/A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZZBGxiQh; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57289C113CE; Thu, 25 Apr 2024 10:41:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714041695; bh=iv7SUIiaG9s3NVPGgli4gIp/ZnPvi4cNgaMFQtY+byk=; h=Date:From:To:List-Id:Cc:Subject:In-Reply-To:References:From; b=ZZBGxiQhHpjKRskelCMvza4VK8UoRlAXvP+wVoXNvcSOS1xd8zmnxQ+EKfw9JnZSH gQOnpjjUenCi1O/QuAM57Scw9eCpw8KxgYQUBOuEY1BuRtFEO0aTzSL2Wuxb3DTSBU YvwmyYhcqpIX/dCveRtCiNry2qwslldOGNyz3oaUGGQ7Hn+tDetHvq9z0MwEDxywaO OUrAQHyY893fLSH61HgXnZNQJPBVu7F0b/G0CFXmhhqZixfM4JYX6B3tZ4gGKK46WL kYxp2G5rcovPXNGGzNR2keKoTWMc+umnwmG7i0yi1xAsrS2rOxV15U5c+D63IgONUl 23vNHsI13d4qA== Date: Thu, 25 Apr 2024 12:41:30 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Andy Shevchenko Cc: Gregory CLEMENT , Arnd Bergmann , soc@kernel.org, arm@kernel.org, Hans de Goede , Ilpo =?UTF-8?B?SsOkcnZpbmVu?= , Olivia Mackall , Herbert Xu , Greg Kroah-Hartman , linux-crypto@vger.kernel.org Subject: Re: [PATCH v7 6/9] platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG Message-ID: <20240425124130.6c96e273@dellmb> In-Reply-To: References: <20240424173809.7214-1-kabel@kernel.org> <20240424173809.7214-7-kabel@kernel.org> <20240424205123.5fc82a1a@dellmb> <20240425113447.5d4b21f4@dellmb> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.41; x86_64-pc-linux-gnu) 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 On Thu, 25 Apr 2024 13:04:07 +0300 Andy Shevchenko wrote: > On Thu, Apr 25, 2024 at 11:34:47AM +0200, Marek Beh=C3=BAn wrote: > > On Wed, 24 Apr 2024 22:47:10 +0300 > > Andy Shevchenko wrote: =20 > > > On Wed, Apr 24, 2024 at 08:51:23PM +0200, Marek Beh=C3=BAn wrote: =20 >=20 > ... >=20 > > > For what purpose? I don't see drivers doing that. Are you expecting t= hat > > > the same IRQ mapping will be reused for something else? Can you elabo= rate > > > how? (I can imagine one theoretical / weird case how to achieve that, > > > but impractical.) =20 > >=20 > > I do a lot of binding/unbinding of that driver. I was under the > > impression that all resources should be dropped on driver unbind. > > =20 > > > Besides above, this is asymmetrical call to gpiod_to_irq(). If we rea= lly care > > > about this, it should be provided by GPIO library. =20 > >=20 > > Something like the following? =20 >=20 > Not needed. IRQ mappings are per domain, and GPIO chip has its own associ= ated > with the respective lifetime, AFAIU when you remove the GPIO chip, all ma= ppings > will be disposed (as I pointed out in previous mail). >=20 OMG you are right :) of course. OK, I shall drop this. Marek