Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1302563ybc; Tue, 19 Nov 2019 18:20:17 -0800 (PST) X-Google-Smtp-Source: APXvYqwxfo0WOTZCk+000jwRPVeycARAwgA3azoNb3TCJC9d6B9k4WQ9vZJ6YYFRBrsJMDpl7Pa3 X-Received: by 2002:a17:906:5a83:: with SMTP id l3mr1586630ejq.194.1574216417330; Tue, 19 Nov 2019 18:20:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574216417; cv=none; d=google.com; s=arc-20160816; b=rtYLZIbSfIjZpFT7o4IqmmzticYzaEhlhliQVhb+yoWUUTUD8vBGX/BU93Uqxui7QW h98rEcrp/l5NzGTGQBsE2qlwEOfkFI3JZGciDzojfjICD8f8D7Lfns8mSRGdvSIqcsoA HcWrPh9XYqSby3kvbxcEJqSBk69dCkkeh3Mak7djYiB/5a30PjAjsxJlI3xtTF0yXtie CZuLSOixS2JmZwjWbM0iD0I4wUzpelFWpLcY75jnygO3DnQb6LAjLluLSvwRuUKKpXam biIB0MV0z6Rs4Yja7l8SyHG2yO+hT/U2v9+m/Ud47owIp9sxt1HdWHJQX2ROCxbW0n0b ppEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=qCZAonYNtjQ2Hc6PVzn9Qt/+TdjiZPD3MulCJqr98A8=; b=dNvfcJdt1E8kRxQibAdkCYG1bfvNd8NVcQtclRiAXqSViXqermUtiIAubsZeGEhT6a 4OPzm8A15KwDso/A2feXr5K2GMadCDn3PJTo6b1fyRUSssYdu343IK1ftAH+i4LGZlAd c8Sra3c5kbCFVPtSliOE6dhjMfKPy2EVDM1qfIWAH/vWxgehAW9JUz9BvWZ3oWCvGMMS 12cAARce0e2ahCYZjSz4KD04zbdkdSZ+AlUlFBDKuyvkatFoFs7+dSjRzWqplQNOBH3l UNI2qUgZertvi44cRv4jLoXsoy2HZaDaIpnxNz0yrKyq4CR6MgUayNCqTDQ0zE4aWenj 41TQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=toshiba.co.jp Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b34si17290311edc.74.2019.11.19.18.19.52; Tue, 19 Nov 2019 18:20:17 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=toshiba.co.jp Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727354AbfKTCSm (ORCPT + 99 others); Tue, 19 Nov 2019 21:18:42 -0500 Received: from mo-csw1514.securemx.jp ([210.130.202.153]:42070 "EHLO mo-csw.securemx.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727082AbfKTCSm (ORCPT ); Tue, 19 Nov 2019 21:18:42 -0500 Received: by mo-csw.securemx.jp (mx-mo-csw1514) id xAK2IWma031090; Wed, 20 Nov 2019 11:18:32 +0900 X-Iguazu-Qid: 34tri0Mt082SogzPLH X-Iguazu-QSIG: v=2; s=0; t=1574216312; q=34tri0Mt082SogzPLH; m=luvDoeALb1HlBxIQtq0OD8ulvd3UP5QOufXziv5U2MI= Received: from imx2.toshiba.co.jp (imx2.toshiba.co.jp [106.186.93.51]) by relay.securemx.jp (mx-mr1511) id xAK2IVhk028623; Wed, 20 Nov 2019 11:18:31 +0900 Received: from enc01.localdomain ([106.186.93.100]) by imx2.toshiba.co.jp with ESMTP id xAK2IVXi029867; Wed, 20 Nov 2019 11:18:31 +0900 (JST) Received: from hop001.toshiba.co.jp ([133.199.164.63]) by enc01.localdomain with ESMTP id xAK2IVag029743; Wed, 20 Nov 2019 11:18:31 +0900 Date: Wed, 20 Nov 2019 11:18:28 +0900 From: Nobuhiro Iwamatsu To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Ard Biesheuvel , Jens Wiklander , Sasha Levin Subject: Re: [PATCH 4.19 034/422] tee: optee: take DT status property into account X-TSB-HOP: ON Message-ID: <20191120021828.hwtwxfby3myn7mnh@toshiba.co.jp> References: <20191119051400.261610025@linuxfoundation.org> <20191119051402.211777274@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191119051402.211777274@linuxfoundation.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Nov 19, 2019 at 06:13:51AM +0100, Greg Kroah-Hartman wrote: > From: Ard Biesheuvel > > [ Upstream commit db878f76b9ff7487da9bb0f686153f81829f1230 ] > > DT nodes may have a 'status' property which, if set to anything other > than 'ok' or 'okay', indicates to the OS that the DT node should be > treated as if it was not present. So add that missing logic to the > OP-TEE driver. > > Signed-off-by: Ard Biesheuvel > Signed-off-by: Jens Wiklander > Signed-off-by: Sasha Levin This patch requires the following additional commit: commit c7c0d8df0b94a67377555a550b8d66ee2ad2f4ed Author: Julia Lawall Date: Sat Feb 23 14:20:36 2019 +0100 tee: optee: add missing of_node_put after of_device_is_available Add an of_node_put when a tested device node is not available. The semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ identifier f; local idexpression e; expression x; @@ e = f(...); ... when != of_node_put(e) when != x = e when != e = x when any if (<+...of_device_is_available(e)...+>) { ... when != of_node_put(e) ( return e; | + of_node_put(e); return ...; ) } // Fixes: db878f76b9ff ("tee: optee: take DT status property into account") Signed-off-by: Julia Lawall Signed-off-by: Jens Wiklander Please apply this commit. And this is also required for 4.14.y. Best regards, Nobuhiro