diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-08-23 16:52:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-08-23 16:52:46 -0400 |
commit | f3ea496213819c80ce9c49a9b65f9261da713d11 (patch) | |
tree | 1c8fad9c5c609504c2916ad3844494093f89f8f1 /drivers/tee | |
parent | 9e259f9352d52053058a234f7c062c4e4f56dc85 (diff) | |
parent | 29ed45fff05899f6f39d05fe1c32b1bc51f8926b (diff) |
Merge tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC driver updates from Olof Johansson:
"Some of the larger changes this merge window:
- Removal of drivers for Exynos5440, a Samsung SoC that never saw
widespread use.
- Uniphier support for USB3 and SPI reset handling
- Syste control and SRAM drivers and bindings for Allwinner platforms
- Qualcomm AOSS (Always-on subsystem) reset controller drivers
- Raspberry Pi hwmon driver for voltage
- Mediatek pwrap (pmic) support for MT6797 SoC"
* tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (52 commits)
drivers/firmware: psci_checker: stash and use topology_core_cpumask for hotplug tests
soc: fsl: cleanup Kconfig menu
soc: fsl: dpio: Convert DPIO documentation to .rst
staging: fsl-mc: Remove remaining files
staging: fsl-mc: Move DPIO from staging to drivers/soc/fsl
staging: fsl-dpaa2: eth: move generic FD defines to DPIO
soc: fsl: qe: gpio: Add qe_gpio_set_multiple
usb: host: exynos: Remove support for Exynos5440
clk: samsung: Remove support for Exynos5440
soc: sunxi: Add the A13, A23 and H3 system control compatibles
reset: uniphier: add reset control support for SPI
cpufreq: exynos: Remove support for Exynos5440
ata: ahci-platform: Remove support for Exynos5440
soc: imx6qp: Use GENPD_FLAG_ALWAYS_ON for PU errata
soc: mediatek: pwrap: add mt6351 driver for mt6797 SoCs
soc: mediatek: pwrap: add pwrap driver for mt6797 SoCs
soc: mediatek: pwrap: fix cipher init setting error
dt-bindings: pwrap: mediatek: add pwrap support for MT6797
reset: uniphier: add USB3 core reset control
dt-bindings: reset: uniphier: add USB3 core reset support
...
Diffstat (limited to 'drivers/tee')
-rw-r--r-- | drivers/tee/optee/Kconfig | 8 | ||||
-rw-r--r-- | drivers/tee/optee/core.c | 2 | ||||
-rw-r--r-- | drivers/tee/optee/rpc.c | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/drivers/tee/optee/Kconfig b/drivers/tee/optee/Kconfig index 0126de898036..3c59e19029be 100644 --- a/drivers/tee/optee/Kconfig +++ b/drivers/tee/optee/Kconfig | |||
@@ -5,3 +5,11 @@ config OPTEE | |||
5 | help | 5 | help |
6 | This implements the OP-TEE Trusted Execution Environment (TEE) | 6 | This implements the OP-TEE Trusted Execution Environment (TEE) |
7 | driver. | 7 | driver. |
8 | |||
9 | config OPTEE_SHM_NUM_PRIV_PAGES | ||
10 | int "Private Shared Memory Pages" | ||
11 | default 1 | ||
12 | depends on OPTEE | ||
13 | help | ||
14 | This sets the number of private shared memory pages to be | ||
15 | used by OP-TEE TEE driver. | ||
diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c index e5fd5ed217da..e1aafe842d66 100644 --- a/drivers/tee/optee/core.c +++ b/drivers/tee/optee/core.c | |||
@@ -32,7 +32,7 @@ | |||
32 | 32 | ||
33 | #define DRIVER_NAME "optee" | 33 | #define DRIVER_NAME "optee" |
34 | 34 | ||
35 | #define OPTEE_SHM_NUM_PRIV_PAGES 1 | 35 | #define OPTEE_SHM_NUM_PRIV_PAGES CONFIG_OPTEE_SHM_NUM_PRIV_PAGES |
36 | 36 | ||
37 | /** | 37 | /** |
38 | * optee_from_msg_param() - convert from OPTEE_MSG parameters to | 38 | * optee_from_msg_param() - convert from OPTEE_MSG parameters to |
diff --git a/drivers/tee/optee/rpc.c b/drivers/tee/optee/rpc.c index 41aea12e2bcc..b45c73dd37a5 100644 --- a/drivers/tee/optee/rpc.c +++ b/drivers/tee/optee/rpc.c | |||
@@ -48,7 +48,7 @@ static void handle_rpc_func_cmd_get_time(struct optee_msg_arg *arg) | |||
48 | OPTEE_MSG_ATTR_TYPE_VALUE_OUTPUT) | 48 | OPTEE_MSG_ATTR_TYPE_VALUE_OUTPUT) |
49 | goto bad; | 49 | goto bad; |
50 | 50 | ||
51 | getnstimeofday64(&ts); | 51 | ktime_get_real_ts64(&ts); |
52 | arg->params[0].u.value.a = ts.tv_sec; | 52 | arg->params[0].u.value.a = ts.tv_sec; |
53 | arg->params[0].u.value.b = ts.tv_nsec; | 53 | arg->params[0].u.value.b = ts.tv_nsec; |
54 | 54 | ||