Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1167575ybk; Wed, 20 May 2020 23:49:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytGF7WjUfJT14HDJnG6Sz7vIufOijEtLRMv2w82n8kKyEriXj30bHW4WgivMboqztLBzYW X-Received: by 2002:a17:906:b881:: with SMTP id hb1mr2392069ejb.77.1590043776184; Wed, 20 May 2020 23:49:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590043776; cv=none; d=google.com; s=arc-20160816; b=ozsbylUkK2j5Mxqw044cfqXPnnprdMvcym6GzlGqVL1mHb10ELA5tOZ+WbH4QuRPKK yCOQiRIUpL37dWYTqnOkSlAMheBBUCej6YRurD+Ygsa3tl47fpeg+77R4BCKB9d3FvOp 1aDxiONL3Pcu+ONPcIf5TrFZEk5n6yx2W0JMWEP6M1Ui9M+RNwjzAjgARPYGuoUnPxs0 CzppXniappNwa+hGl998Q90QGfc7HT+gW1mZQfDCS8WsN8ZTUb0V5oB2haNjwDLPY0Jp ybUKcWmWSJrHrcaKYtCGSMX+HkfEq1h61qT9v0V8qlYwIau3616nyjtAInX394mKHutS aO7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=/V4uURW0jRfKsNYalJYuMTZMvO7QgRZlAwqGceY/IXQ=; b=uxHrZ1Y/BYkuxK7Vg1ZMXi2JSL0cPegSAg/er1KwOZ72xf/cdpgmlYIjGiuyjd0XkP Oi3GQNqShsYzzgRJ7zdek1DVs5bL/ZXL8AR6C96J/U8X1B8hDMou5sr52zpIwdhyC6Xl pwh3uRtD3iZLw5+bvhG6uYTMq82I7tPZVnKDduAZR3b9kT1fZ0vMh0Kl1VDsi2RnUx5g PaAUjAZmcJ3EMvSz/eSFudUuEMCk8H7xt/3oA9lvpTMq2OKNeing29E1/aEw8NUQP2CH l+NO4IqkiFSEofpjdzimQMzTyys+6gHAxMI9ELBLHpq6ADPYkI4IcuC/Ab7pcwXv5zWY z1LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p3kRQ946; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id me17si2836875ejb.410.2020.05.20.23.49.12; Wed, 20 May 2020 23:49:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p3kRQ946; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727117AbgEUGrw (ORCPT + 99 others); Thu, 21 May 2020 02:47:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726506AbgEUGrv (ORCPT ); Thu, 21 May 2020 02:47:51 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8481CC061A0F for ; Wed, 20 May 2020 23:47:51 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id k5so6900312lji.11 for ; Wed, 20 May 2020 23:47:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=/V4uURW0jRfKsNYalJYuMTZMvO7QgRZlAwqGceY/IXQ=; b=p3kRQ9466W7CRtzT5rKWiDR0bYSrvXpkrurxn66c/TW2Y6hBhQKg6cSzWj3FX/O5wI r7z7N/j3TSpcAf+XKXafQ+O0ZlWILWxzt5F1LhWdhVFPLNXWWUTkASHdLLDxI34PDcXN N8uvVM8i9ShVpf5iCd8hLFnNw17mZ5diPVi8jdxZNl1AXYkY65WReT806uGaQFHaSOT2 mM4esed/wcGVQ8RwVuP4SupRJnIrJgQ+mliGLwNY8f4KuKQcp//5jSSUerbaaBA7vJV3 xw4XRv/inC34LfhEVN1v3Ie/u56RWkw3I+7V1QXmvX7mGhs4UqVlB1Q1Wz8WK73wzaOg Dx6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=/V4uURW0jRfKsNYalJYuMTZMvO7QgRZlAwqGceY/IXQ=; b=hykd4ap6t4f6471fasrOHl7xfvgahwrzNYDnoY+tV/B3RYP0z7YBVjzNvgr1dTrdYO DdA1S5tUIfqYd4PsQH7sIGEGw5b6a1bjparcM+oyPVBbIX1conFgXwRgZ2u2ekyAqskW 4OYRsonMdnM6bbL2UXqVJrB04rbvh98DTo1c3TVAPBT2ONG1wZak2wRVFpQ/CNbIwnH/ cgBTBKCfRn4bvIvueCD0nldW8nr891IJT4yWq4IzEuvzE6hr9D/AzYqy3eRtX9z6n2zG zgtAVON8JqBhPhkmT36WWKjKZNAgyqsst0oP327GsGlsEWY57H84JL2uqdy1scyTv3ep 5bBA== X-Gm-Message-State: AOAM5332FPad/Fc5Wv8oJXXwDy50NRMqMq8ZicZjcy/GMmh5GDjweC3F kKDxvgh4QwyW4pTxD/d+ungrE8yy+zg= X-Received: by 2002:a2e:980d:: with SMTP id a13mr4515140ljj.277.1590043669208; Wed, 20 May 2020 23:47:49 -0700 (PDT) Received: from localhost.localdomain ([176.59.41.83]) by smtp.gmail.com with ESMTPSA id z16sm1807465lfq.18.2020.05.20.23.47.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2020 23:47:48 -0700 (PDT) From: Maxim Uvarov To: linux-kernel@vger.kernel.org, tee-dev@lists.linaro.org Cc: peterhuewe@gmx.de, jarkko.sakkinen@linux.intel.com, jgg@ziepe.ca, gregkh@linuxfoundation.org, jens.wiklander@linaro.org, linux-integrity@vger.kernel.org, arnd@linaro.org, sumit.garg@linaro.org, Maxim Uvarov Subject: [PATCHv2 0/2] optee: register drivers on optee bus Date: Thu, 21 May 2020 09:47:40 +0300 Message-Id: <20200521064743.4769-1-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v2: - write TEE with capital letters. - declare __optee_enumerate_device() as static. Hello, This patchset fixes issues with probing() tee, optee and optee driver if they were compiled into kernel, built as modules or any mixed combination. These changes require optee-os changes which already were merged. Main corresponding commits are: https://github.com/OP-TEE/optee_os/commit/9389d8030ef198c9d7b8ab7ea8e877e0ace3369d https://github.com/OP-TEE/optee_os/commit/bc5921cdab538c8ae48422f5ffd600f1cbdd95b2 optee_enumerate_devices() which discovers Trusted Applications on tee bus is split up on 2 changes. Do probe of drivers which do not require userspace support of tee-supplicant and stage two to run drivers with support of tee-supplicant only after tee supplicant run. Best regards, Maxim. Maxim Uvarov (2): optee: do drivers initialization before and after tee-supplicant run tpm_ftpm_tee: register driver on TEE bus drivers/char/tpm/tpm_ftpm_tee.c | 69 ++++++++++++++++++++++++++----- drivers/tee/optee/core.c | 25 +++++++++-- drivers/tee/optee/device.c | 17 +++++--- drivers/tee/optee/optee_private.h | 8 +++- 4 files changed, 99 insertions(+), 20 deletions(-) -- 2.17.1