Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754784AbbKDHFe (ORCPT ); Wed, 4 Nov 2015 02:05:34 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:34293 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753681AbbKDHEu (ORCPT ); Wed, 4 Nov 2015 02:04:50 -0500 Message-ID: <5639AE10.5090500@gmail.com> Date: Tue, 03 Nov 2015 23:04:48 -0800 From: Frank Rowand Reply-To: frowand.list@gmail.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Peter Maydell CC: Rob Herring , "devicetree@vger.kernel.org" , Mark Rutland , Pawel Moll , Ian Campbell , "linux-kernel@vger.kernel.org" , Roy Franz , "linux-arm-kernel@lists.infradead.org" , Kumar Gala , Jens Wiklander , Christoffer Dall , Grant Likely Subject: Re: [PATCH] Documentation: dt: Add bindings for Secure-only devices References: <1446127303-5082-1-git-send-email-peter.maydell@linaro.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1892 Lines: 55 On 10/30/2015 1:07 PM, Peter Maydell wrote: > On 30 October 2015 at 18:28, Rob Herring wrote: >> On Thu, Oct 29, 2015 at 9:01 AM, Peter Maydell wrote: >>> +Valid Secure world properties: >>> + >>> +- secure-status : specifies whether the device is present and usable >>> + in the secure world. The combination of this with "status" allows >>> + the various possible combinations of device visibility to be >>> + specified: >>> + status = "okay"; // visible in S and NS >> >> I assume neither property present or both okay also mean the same. >> >> status = "okay"; secure-status = "okay"; >> >> We should be explicit. > > Yes; status defaults to "okay" (presumably this is listed in > the overal DT binding spec somewhere), Valid values for the "status" property do not seem to be well documented for Linux. The code, __of_device_is_available(), implements: value of "okay" returns true value of "ok" returns true status property does not exist returns true (thus defaults to true) anything else returns false. Eight individual bindings define the status property (I'll put them on my todo list to remove since they should be inherited). The status property should be in a top level binding, which should be created as part of the bindings documentation cleanup. I'll watch for it to get created or do it myself. (Lots of bindings show examples of using the status property in their examples -- that is fine.) ePAPR v1.1, section "2.3.4 status" does not list "ok", but does list: "okay" "disabled" "fail" "fail-sss" < snip > -Frank -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/