Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp254983lqt; Thu, 6 Jun 2024 02:36:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWsBXUVsNKG0Gutn6lDwxw47pReNaxjBBE+/OrqVJyhc20LQKMX5MLsFR6BvWz8W3ZiZIupPvecKrLwxyJIqg14a0AFfI/kFeVdNvqG3g== X-Google-Smtp-Source: AGHT+IEH8MZ2RX/yP/v0DyU4G9H4TzQEcSmPMOvLEK6i7g8TJPN098x3FFbKEqgfQT/wkapAn3nm X-Received: by 2002:a05:622a:1108:b0:43f:fa1e:c8e5 with SMTP id d75a77b69052e-4403621ffe1mr37717431cf.8.1717666582324; Thu, 06 Jun 2024 02:36:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717666582; cv=pass; d=google.com; s=arc-20160816; b=UgU0zjxXGpHD6DcqlRI7EWNV/xmnvs69wzXN07tKOpTD1rRsoZNxvvsSLB0WtMNoSe /gfJtgZQW21Vmu55J/iX61vVifsjIjhOi7Bl9DLrjeBLvJVAKFpRAAlwK+jSVaWzR7DK wuz0wONDIiyck+JjVGoKKf+oA/LQCPchOc1wnUnobhG02USfVR9yPEMjMvQkjOK3lbM0 tmaRErCyVSbvqFUA6xnfjyyuOYWXFo/8FztZE/Q0XQYdXrKqehtj1RFpSvoiX3N37F2e cTuFzkZPqsMp+hUUgomNDx3H1WBvPZCU8SLViPNy05RRrR5O/t2vicllaInBmknMtXZy A9gg== 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=tG2xITi98xyE3glziS1Ir6CYKQ/dRKPFxnK4CNRqpac=; fh=NqT0XwbiPdR/F2mW0/vzW9QOQA+Ysu2+bp30rFDjkGY=; b=ZmPaMc7/ctpnIDY5HRBVKFMt/3uYP0F6XGxtFLDhJM+ESuVibNhmqVRzpH7NhyFdrt e5o8VnXuGqD/b/V5Gr8jSI5y48eu+aGY+wvlukN506+iWqHocAW0LoTJVta+z9kCl1Wy rdoSovJEou4Vnn9vvtZnGk+Doyy6yJ04hx6nMV4n7LWw9KSJnwBPEHQOb4Om3BMIVE00 v4g7tDYiuCKrWgqCN+d9p4gnDpfL1+9LAz9LYKkERWwKLWAhWQlSV/5tTVYC7VilRBTY 530PH7m1qhjM8WI7tCkjH+jbJ5zjtPmQ8wDllW5nCV4PA5smcu7VaKJVqw+B0vzCQ3cA NzYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-crypto+bounces-4785-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4785-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 af79cd13be357-79532888548si106761485a.187.2024.06.06.02.36.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 02:36:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4785-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; arc=pass (i=1); spf=pass (google.com: domain of linux-crypto+bounces-4785-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4785-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 1E3151C25981 for ; Thu, 6 Jun 2024 09:36:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCE571465BD; Thu, 6 Jun 2024 09:35:34 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 4BE6C146A85 for ; Thu, 6 Jun 2024 09:35:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717666534; cv=none; b=dya6FUhZBJBJiohNQ92iz0zhRAw4Xs6IOBUFq2ky33O9Q9qGuwoBR59kbQNlj5G7EiFeysgRMabvuZjeghKVSO3MrhBzq5zi9tqXF1xYAmDbr0d+x0HGSg+b2z2QD1GWccDB7w70QZUzC71iRryErRHYK2VtfTz97/26qgavdSs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717666534; c=relaxed/simple; bh=AyYMIq8nW7fswqbP7HmYZwUQQyS4VQRzi6wBVzsp27E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GHuhniy4FybF+ZpL+zTKR05cz7ZoaVwq2wW9L2+rEB87TQIALc9TYP7UUqPrwiTM7KGtYvHm9oKDMKSZNvzY4u5r5BdkaOP+KDgQps0eEdkIqqqhBzfTWQCn35toMCN+vfUZpE0bHZrFbrOUFVQOsqFbL2nmaGlKgXeyf2K1Yd0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=192.198.163.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com X-CSE-ConnectionGUID: WoAwy5PzR4uBhji4c59W+A== X-CSE-MsgGUID: x83QQP6uS9q7XAGYM3swQw== X-IronPort-AV: E=McAfee;i="6600,9927,11094"; a="24954351" X-IronPort-AV: E=Sophos;i="6.08,218,1712646000"; d="scan'208";a="24954351" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2024 02:35:32 -0700 X-CSE-ConnectionGUID: EWQ0bgVtRwWYr9tt00L29A== X-CSE-MsgGUID: iI3GwdagTe6sj/XsU5IoeQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,218,1712646000"; d="scan'208";a="42844269" Received: from smile.fi.intel.com ([10.237.72.54]) by orviesa003.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2024 02:35:29 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1sF9Wo-0000000E7ht-2BQq; Thu, 06 Jun 2024 12:35:26 +0300 Date: Thu, 6 Jun 2024 12:35:26 +0300 From: Andy Shevchenko To: Marek =?iso-8859-1?Q?Beh=FAn?= Cc: Bartosz Golaszewski , 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 v11 6/8] platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG Message-ID: References: <20240605161851.13911-1-kabel@kernel.org> <20240605161851.13911-7-kabel@kernel.org> <20240606111113.7f836744@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: <20240606111113.7f836744@dellmb> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, Jun 06, 2024 at 11:11:13AM +0200, Marek Beh?n wrote: > On Wed, 5 Jun 2024 22:00:20 +0300 > Andy Shevchenko wrote: > > > > +#include > > > +#include > > > > + errno.h > > I use -EIO, -EINVAL and -ENOMEM in turris-omnia-mcu-base.c, > -EINVAL, -ENOTSUPP in turris-omnia-mcu-gpio.c. > Should I include errno.h in those also? If you have err.h, then no (it includes asm/errno.h), otherwise, yes. > Or is this only needed for -ERESTARTSYS? Definitely yes for Linux internal error codes (>= 512). Note, that ENOTSUPP is also Linux internal code. -- With Best Regards, Andy Shevchenko