Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp997855lqd; Thu, 25 Apr 2024 03:04:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVoPVdpPHZyLecFZDi5mtczGvHIocJhXL6D4PN8o4oGgnrehS1fiDd8mYH7AS6eJj6sq5hkakqnqL/FSZ0FrBloKf17IrnIa4/Mdm/Dcw== X-Google-Smtp-Source: AGHT+IHoUHiz4uaQ1+cYdh7H2/FEZ/m/wG/B3YkByRLAHPpWd3cMfFMtgJKlg/v9bk0JXFFSBN1t X-Received: by 2002:a05:6102:308f:b0:47b:c95f:d433 with SMTP id l15-20020a056102308f00b0047bc95fd433mr4980525vsb.2.1714039478463; Thu, 25 Apr 2024 03:04:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714039478; cv=pass; d=google.com; s=arc-20160816; b=xsUxhABbk6Ejt/teYt9Lb2GRzgTUOGtONNbxZS2jEx+YPLZw3lu3J8RbjcfM6OzpsV adhh05OQKmWlV4QliGhKZho9quA7q9rRCcstrprFtgvmw6Jq/naAF664diInoFnQq7o5 bt4Xnvi/m0XOoMC/pAKYGSvqaQ64QGKAyfPo238Xh3jSLJzfXgqXKRhMi1fT58/TaS2+ +2gF3eHTnhPEKCFvkf46oDX+680gGTuYW61rD0Y00tRaIJDHsNmUjsHoaTlM236Rp//k EnXhZjdQflrHkKlH5HjvuEwT7dzyGlCxcDMlmqCVvQAAsAKBow5o+X/w4n0cCj9fecHX BMPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date; bh=0Dn7ZWln2ASw92eAt3RHrl3PorP75lNzjAZessKV68I=; fh=+xMXiYvvyxWnylPpvGJGHxO5AdE0tqn17q7/q2XRASo=; b=MBVewcPeVmVy6miQPZzR27L0T9pPqk8EVvtcqUvg0hI8BDuxG49K2N20/1tt0sxlMK xlq1tQXY/4Rlh78iPNYk/mRxckmHFBKfwrdTq4vxziVLaaDmwWehcd4rrs2dHDmmEVPH CMLnnmVYhPut5s5+QqJG7cSZvsUa0TOiEmVhJl4+d7kySBGkr+Ha0fhqLcVAiAI3Fb87 lYP3oCvzBHQQTAjFacw9aei+F317oUmpAzB0gbAwZbuLkEecXYN/Y7POucfzutnsUKJa OsGFhwOVSYcJu8lO5gXiMw7VpJhO6IliJ4/7wMkCAzyfUbS+cHVzIPlFpCuaF939yiaK ZlNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-crypto+bounces-3847-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3847-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q8-20020a67f048000000b00478384e8560si2567965vsm.611.2024.04.25.03.04.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 03:04:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-3847-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-crypto+bounces-3847-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3847-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2CDB51C214B6 for ; Thu, 25 Apr 2024 10:04:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7164385624; Thu, 25 Apr 2024 10:04:15 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 CC6D885299 for ; Thu, 25 Apr 2024 10:04:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714039455; cv=none; b=e6pWnvyR+yn0RBp+KT6Innm0lbXJSGaPAlapRhyVZQVnfVfFFSqa1phE1lifeVEls+JWiwrHvOz1RMWQEb0BJxosiHjirRCH2GKGrIt/LMZSQ9t5lV9G6m54HR6BB1D/DfpF+kAwDVzh1sYWdpRJiTOstFCdIabiQS/NaOK6r9o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714039455; c=relaxed/simple; bh=thc86tFSjlJx/H0DHzsqy20AFf1tuOO4NRPeFx+2qr8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DFA2JcTqgq/XKxQhMB95ZmHx0Veg7wLDmIhsHUXwzzCcLkB40jE1OEA7SCwY5JBIMoyUVHC5JWA/z/y+UZTo2ZrN7J4kBwHMiUarDtd29NweVsCwH0QSDPIclV/seZKwgM3bzdkr0gnpBSDeGnEWnB8+fCbbcmTO3KY7BX9B57w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=fail smtp.mailfrom=kernel.org; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=kernel.org X-CSE-ConnectionGUID: yI3vW6rWQZybNimMCUeNaQ== X-CSE-MsgGUID: UfKIBtzNS6WaoQj9wl1LyQ== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9584774" X-IronPort-AV: E=Sophos;i="6.07,229,1708416000"; d="scan'208";a="9584774" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2024 03:04:13 -0700 X-CSE-ConnectionGUID: yZtPqqnrQ7enbZvr3/8aJw== X-CSE-MsgGUID: XtFGhbl0QVKu36aiAOns4w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,229,1708416000"; d="scan'208";a="25643272" Received: from smile.fi.intel.com ([10.237.72.54]) by orviesa008.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2024 03:04:11 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rzvxX-00000000xPX-1VBZ; Thu, 25 Apr 2024 13:04:07 +0300 Date: Thu, 25 Apr 2024 13:04:07 +0300 From: Andy Shevchenko To: Marek =?iso-8859-1?Q?Beh=FAn?= Cc: Gregory CLEMENT , Arnd Bergmann , soc@kernel.org, arm@kernel.org, Hans de Goede , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , 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: References: <20240424173809.7214-1-kabel@kernel.org> <20240424173809.7214-7-kabel@kernel.org> <20240424205123.5fc82a1a@dellmb> <20240425113447.5d4b21f4@dellmb> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240425113447.5d4b21f4@dellmb> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, Apr 25, 2024 at 11:34:47AM +0200, Marek Beh?n wrote: > On Wed, 24 Apr 2024 22:47:10 +0300 > Andy Shevchenko wrote: > > On Wed, Apr 24, 2024 at 08:51:23PM +0200, Marek Beh?n wrote: ... > > For what purpose? I don't see drivers doing that. Are you expecting that > > the same IRQ mapping will be reused for something else? Can you elaborate > > how? (I can imagine one theoretical / weird case how to achieve that, > > but impractical.) > > I do a lot of binding/unbinding of that driver. I was under the > impression that all resources should be dropped on driver unbind. > > > Besides above, this is asymmetrical call to gpiod_to_irq(). If we really care > > about this, it should be provided by GPIO library. > > Something like the following? Not needed. IRQ mappings are per domain, and GPIO chip has its own associated with the respective lifetime, AFAIU when you remove the GPIO chip, all mappings will be disposed (as I pointed out in previous mail). -- With Best Regards, Andy Shevchenko