Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp138160pxf; Wed, 17 Mar 2021 01:06:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHmJwZLq5G+4S3WvoHGG0L7Qm4B9hLbX2BlDMVHreY3dC0DtOnJEixmzBPZJdAwWqKyZUE X-Received: by 2002:aa7:d686:: with SMTP id d6mr41366161edr.146.1615968415169; Wed, 17 Mar 2021 01:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615968415; cv=none; d=google.com; s=arc-20160816; b=VD32BpVHrqV/2gR8vrk2lWy0xDItHsqb4sxIxMAJOHkwPWB9yfOfwTm8qAP97Ha8Fq qJ6zuH5SJv1m3KCB6Rtrfdkr2TApF330+JOezywTKFwD4ke0qECHAJ9B/Mgp3cNiagBF C743pQoNhe4Bf0XOM2Lhe+syKFWbZJj/Qz6zsD9sinZcpwJixBeddqzkckt0szm9tfnF 4OSP7O9zVQSG2j1ODCHc6zD0XFw0FfNf8Ab6vQXrrYdPHIeSj2kjaDPUDStteSHLNJQH xL/T2GkZ3y7QBiA6F089vXVWg43r9+XSgABgpCRDePVx2/q5EXJzqVje+fPVtyRufRgP VFiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5UmE6rZVr5+jb7t1rTXILW6A7EIE1PrJSd4bUBeA8g0=; b=xTnx8CxdscsTjdyNhkD1efvcyZUN2HILAHqoCNUr2YRIo7l+1Qbik/1sv880U5vqC8 +ZRxMTmRtG0SGHs8uv/U5E43IGpe7FI4GVXSzjPUat05YDeWAFFyMjMx+8h06jVLpNIq 9xO3cq3KOQwShwr0bDScptu6NLyByiuz/3tg3I9KaHUnA3X0X82wX3G0PNrkCfVLVF6B wEPJovztXgNljOMR+Al+lNhf05v/fz6sE6+lVXlsi87RecP4xr5hbOGju7COxQDVpJ98 T0FfDI4642KHNw4hFif0nADC3xq7jqayUgMRXviHHFKgGpT5DBTRjauEp+V9TqCwgSrT B+Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M2Bi5YJ2; 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 j26si15973526ejs.484.2021.03.17.01.06.25; Wed, 17 Mar 2021 01:06:55 -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=M2Bi5YJ2; 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 S230389AbhCQIFW (ORCPT + 99 others); Wed, 17 Mar 2021 04:05:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230020AbhCQIEq (ORCPT ); Wed, 17 Mar 2021 04:04:46 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59F33C06174A for ; Wed, 17 Mar 2021 01:04:46 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id s17so2011537ljc.5 for ; Wed, 17 Mar 2021 01:04:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=5UmE6rZVr5+jb7t1rTXILW6A7EIE1PrJSd4bUBeA8g0=; b=M2Bi5YJ2gQDhZHpUhimFb12NAbS57uzxkZ92QCelWM3gQgHI73NGagPsOgVxGuFqPV 2FWmRZPyU6Hrx89TRmk0ec5YRrcssSxBx8inqlwA73BbFTY/YA+DT0IRqHmvamjQQhdw 9eqz154ps3+rDHIf6U3CDJb1Z89vKJ2vS2p+MS99VDR72GEnIsF1E9VO570Fnzv0FQle 7/dKaaSrRB0sjUeisogOZhI4sHf2Nw3GxzTu0ILtNgiAyJhoMBs3rFZA9wPUTbD5dkGO 1PJ7GO5M8Uk8gi+n6xAB2jj0rWHHNC5cotYKL053T3doZoEN2EGhcM4Z4mNh5N9kDRs+ MXwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=5UmE6rZVr5+jb7t1rTXILW6A7EIE1PrJSd4bUBeA8g0=; b=JKytG3sYDEmScrix1mYaHUyPBY05vVD/n6Y55RQRBogJNF/4nCgsiiqUuroRLKO5gv IzF+9+CeeNe+vUupO1AsA3WiyVoHx0HdRX7QO+R/Cz7sY6uuWeUynkBI1r2RMkiX73rK xBCCdiqhuovc5n1+sF9YjkgBQNufJ+0QOuRz67R6NEQ+DL4W5HC6pQ1Hzzejdf955K5C HOEmSfRGoj2CedgTvQ4FKtPE5SBbrStWsQtO2PHmKmVTynkwh66ozjhWkGeAdDv/LJzt Ty5fCIsRBXUDK2i7sBehO+eyanav7u9PihV2MbD5v1au8L5uW/GLQpDSV7R5fLAk7/U+ G7SA== X-Gm-Message-State: AOAM532LIHysUPWrH/k9tpu5LocjBT0YcC5Dnv/2pNKxypCgMy5f/+cc 34XWnln3czMH3vzeoLI7Ld18JUjXwGV1RDmQ X-Received: by 2002:a2e:9f03:: with SMTP id u3mr1706414ljk.206.1615968284851; Wed, 17 Mar 2021 01:04:44 -0700 (PDT) Received: from jade (h-249-223.A175.priv.bahnhof.se. [98.128.249.223]) by smtp.gmail.com with ESMTPSA id k13sm3307736lfg.192.2021.03.17.01.04.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 01:04:44 -0700 (PDT) Date: Wed, 17 Mar 2021 09:04:42 +0100 From: Jens Wiklander To: Ran Wang , Ard Biesheuvel Cc: op-tee@lists.trustedfirmware.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] optee: enable apci support Message-ID: <20210317080442.GA3018337@jade> References: <20210312083653.38780-1-ran.wang_1@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210312083653.38780-1-ran.wang_1@nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 12, 2021 at 04:36:53PM +0800, Ran Wang wrote: > This patch add ACPI support for optee driver. > > Signed-off-by: Ran Wang > --- > drivers/tee/optee/core.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c > index cf4718c6d35d..8fb261f4b9db 100644 > --- a/drivers/tee/optee/core.c > +++ b/drivers/tee/optee/core.c > @@ -5,6 +5,7 @@ > > #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt > > +#include > #include > #include > #include > @@ -735,12 +736,21 @@ static const struct of_device_id optee_dt_match[] = { > }; > MODULE_DEVICE_TABLE(of, optee_dt_match); > > +#ifdef CONFIG_ACPI > +static const struct acpi_device_id optee_acpi_match[] = { > + { "OPTEE01",}, > + { }, > +}; > +MODULE_DEVICE_TABLE(acpi, dwc3_acpi_match); > +#endif > + > static struct platform_driver optee_driver = { > .probe = optee_probe, > .remove = optee_remove, > .driver = { > .name = "optee", > .of_match_table = optee_dt_match, > + .acpi_match_table = ACPI_PTR(optee_acpi_match), > }, > }; > module_platform_driver(optee_driver); > -- > 2.25.1 > This looks simple enough. Ard, is this what you had in mind earlier? Thanks, Jens