Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp7851984ybc; Fri, 29 Nov 2019 02:05:36 -0800 (PST) X-Google-Smtp-Source: APXvYqzFgB2PfZq0bku+5isIvexXWxC62m/ee/w1X9aqA5X6pJWWQhaoYcf+BUU8m0N7AS1HLTO8 X-Received: by 2002:aa7:c54a:: with SMTP id s10mr38003214edr.5.1575021936419; Fri, 29 Nov 2019 02:05:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575021936; cv=none; d=google.com; s=arc-20160816; b=QIg8UXoh9sJSWMXux1Mkqu1DkUHz+unr0NdDlXq05bYJLosyYnb3+dfWPTfn4nlUeI reMdrtg5GALb4OOG4qUOh9HbILxJkoaMKanPMLBPn3y27wEYRTB9zfuEGCfLtNJXbEV0 EkNNfNvmwi+cECbL8fOp/dV4HLWTcgpeCQtR5dQ5AjMjJkpGbZ0DSWxSYNBGEL5yhWBA iA3gt7C8F/kJFRLt0Zr1VZudFXQj+MYtkhxHEAbLGrM3W0wc7IKZUE4YQzVo4toxU0Pn rW4Kpj1lv4IVkik3W8LAWci5veJ45E9vp6ZN5KfPCcvYJ+KjYHDEZi+m0KLxlbmMuHoP U8nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5UrKqSRJKoGBPMgO2/jdCKMQcuQ7A1Ss66dwsiix9b0=; b=VWmU1E51qj6xJjb/hjBSPaEkAcCRuN3RhpPzn8ySNMOqxtZyScFMXFdD+BSmL6C86k tLGdYXkX9EjQSCEkM9CraOCTr9JDSa8UrcSrv0o6YXJ3PFT5hiywW5Xo34blSvYYT2ZN Cgh74O1YDNR1uM+EBdwV3uKcYLv4nMnM7S84lZPdcD1xhJZMe4J7gq/jmycjSSSrsMzn YV5rxGCs8j1yf/dUJYxOAXUF4R0PIJXAAQkL/EktULsFzI5b73Ye+OygRS90FBNPkjGl R15ssg4PUyD+P8gNLm7fQTQFHIhj4t36YrYklwabhx3ZcKWoS5Zbn+MWk6JJLCB57fN4 aGZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bofh-nu.20150623.gappssmtp.com header.s=20150623 header.b=jJ1yhaLn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc12si5894336edb.12.2019.11.29.02.05.12; Fri, 29 Nov 2019 02:05:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bofh-nu.20150623.gappssmtp.com header.s=20150623 header.b=jJ1yhaLn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726877AbfK2KC7 (ORCPT + 99 others); Fri, 29 Nov 2019 05:02:59 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52920 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726586AbfK2KC6 (ORCPT ); Fri, 29 Nov 2019 05:02:58 -0500 Received: by mail-wm1-f68.google.com with SMTP id l1so13549314wme.2 for ; Fri, 29 Nov 2019 02:02:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bofh-nu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5UrKqSRJKoGBPMgO2/jdCKMQcuQ7A1Ss66dwsiix9b0=; b=jJ1yhaLnNR0CYGklrHbhvyokqlCl72QlSTMfSa4E21afa0fYB8h7HwmCoSh8aVQe6U iu5bAl6x2CbffFH/bawfVtQgwanXgHO+iS1Gb+OOA06PXIu/PIpL/HJn6LjoQyAkRO70 fxLYUtGpmfos2QR3CnLxgKJc59EDfltbblF2X6VKh+1o5HkGi+iyOiEa1L1YEFNfaPVi Ni5VDKVwx/4bFy8RwrxZNNrw86cFlsDODmaLZv0yCr5qRZSmRt10SSWPFopZ4auPDcDq dY3UsZ//d3BFZG6YSXWhh0M8Id1A0ugvSDqZdrW2smTbAWpG+H1lgDdlT80mzZ4SNjNj /cPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5UrKqSRJKoGBPMgO2/jdCKMQcuQ7A1Ss66dwsiix9b0=; b=aP5GM5AirXB/x4jkEtvikaljuvGxdE97c5DsDAObPYg8iH/zC48b3NvUk0r8u2Pnvo VBmbag5v0IDj/f/4vhqnh23e3uRaZjSARzq2FxaUvjZc8IeMc6WJ+sMmmjlR9qZfvye5 y5GejZliHsD49Htua85LdYWOpNJ9/ePVocQfh2Il8jNc10vl0VuKqncebNRcFlCd/AnE QT0/wPfDWarKZ+Y/Qhch2yfIks29jRCyJKxK6FJbpc2y0eO0TQN/dk/ilFtF/UPenloy +5mn31E/OWyH2xiEPFgUwmJs4zrDeEMRihCVkn7c+q0rRzDSHYP19/PLA+Omy3uMRika W/Aw== X-Gm-Message-State: APjAAAXvNZTJjR58k6gqGO3iRtxMNz4fGq4YbXtrSSIVTxIxWd0ajhg4 vj0qlXwkEL0rNTnFKg7vyD+7ve1ApZpmAf+lkJ89vw== X-Received: by 2002:a1c:7708:: with SMTP id t8mr13713623wmi.29.1575021776664; Fri, 29 Nov 2019 02:02:56 -0800 (PST) MIME-Version: 1.0 References: <1574864578-467-1-git-send-email-neal.liu@mediatek.com> <1574864578-467-4-git-send-email-neal.liu@mediatek.com> In-Reply-To: <1574864578-467-4-git-send-email-neal.liu@mediatek.com> From: Lars Persson Date: Fri, 29 Nov 2019 11:02:45 +0100 Message-ID: Subject: Re: [PATCH v5 3/3] hwrng: add mtk-sec-rng driver To: Neal Liu Cc: Matt Mackall , Herbert Xu , Rob Herring , Mark Rutland , Matthias Brugger , Sean Wang , Crystal Guo , linux-crypto@vger.kernel.org, DTML , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Linux Kernel Mailing List , wsd_upstream@mediatek.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Neal, On Wed, Nov 27, 2019 at 3:23 PM Neal Liu wrote: > > For MediaTek SoCs on ARMv8 with TrustZone enabled, peripherals like > entropy sources is not accessible from normal world (linux) and > rather accessible from secure world (ATF/TEE) only. This driver aims > to provide a generic interface to ATF rng service. > I am working on several SoCs that also will need this kind of driver to get entropy from Arm trusted firmware. If you intend to make this a generic interface, please clean up the references to MediaTek and give it a more generic name. For example "Arm Trusted Firmware random number driver". It will also be helpful if the SMC call number is configurable. - Lars