From patchwork Fri Aug 16 21:05:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 19265 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DD88A25E5D for ; Fri, 16 Aug 2013 21:06:34 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id a11sf2830692qcx.1 for ; Fri, 16 Aug 2013 14:06:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=ItucMPZDS5TUXMhPE/CGUH7Gwvdy0PGRUriyijBoNjc=; b=VhpmdjIgYyaN56ygBXuobIlo1uNA2bJrwDpQA+tszRHft0/Lv3y37k9yfqKAi1wVt8 ilJsp71Ej2AwKJTu7OBSFRvAZh9n7jm35rH1JaQXCneFmetUB7bMOQvbGqZ8dByVhAaP AZZvqyvWybyRsNPtK2D/yL+fzL3qw4G8xe93YCawrYUwhp94L8TA56IeGzYdD/FeeL5H CfMeBGFtSgx1yPf+gEjKasMwAKVnJM/CjErwV/wBAULZKh97jjWHA5fFLS+m1G6Shz41 zoFTL5v1E4ki1AOZord2oDDW4dhfbWbFIyvFzodsbjvfwnnsk2+StmaS7KVxnZYmpLt+ znSg== X-Received: by 10.236.115.198 with SMTP id e46mr1360486yhh.33.1376687194686; Fri, 16 Aug 2013 14:06:34 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.29.229 with SMTP id n5ls929237qeh.73.gmail; Fri, 16 Aug 2013 14:06:34 -0700 (PDT) X-Received: by 10.220.206.195 with SMTP id fv3mr2891769vcb.15.1376687194566; Fri, 16 Aug 2013 14:06:34 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id h4si785738vdw.19.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 16 Aug 2013 14:06:34 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id 15so1693609vea.15 for ; Fri, 16 Aug 2013 14:06:34 -0700 (PDT) X-Gm-Message-State: ALoCoQn8ZqK3SVCM3B84hjSxQtx3bHpd6IvVBGJGVOPuRUxHEvl0Ou+xPTPgcOtKpOPK0oLkeY2z X-Received: by 10.58.155.68 with SMTP id vu4mr2908453veb.21.1376687194470; Fri, 16 Aug 2013 14:06:34 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp89463vcz; Fri, 16 Aug 2013 14:06:33 -0700 (PDT) X-Received: by 10.194.122.99 with SMTP id lr3mr2471197wjb.21.1376687193393; Fri, 16 Aug 2013 14:06:33 -0700 (PDT) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id hk1si244005wib.24.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 16 Aug 2013 14:06:33 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=74.125.82.50; Received: by mail-wg0-f50.google.com with SMTP id m15so1931501wgh.29 for ; Fri, 16 Aug 2013 14:06:32 -0700 (PDT) X-Received: by 10.194.240.197 with SMTP id wc5mr2630917wjc.23.1376687192782; Fri, 16 Aug 2013 14:06:32 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id b13sm797327wic.9.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 16 Aug 2013 14:06:32 -0700 (PDT) From: Julien Grall To: stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com Cc: patches@linaro.org, andre.przywara@linaro.org, xen-devel@lists.xen.org, Julien Grall Subject: [RFC 17/24] xen/arm: Mark each device used by Xen as disabled in DOM0 FDT Date: Fri, 16 Aug 2013 22:05:49 +0100 Message-Id: <1376687156-6737-18-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1376687156-6737-1-git-send-email-julien.grall@linaro.org> References: <1376687156-6737-1-git-send-email-julien.grall@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , When a device has a property status with disabled inside, Linux will not use the device. Signed-off-by: Julien Grall Acked-by: Ian Campbell --- xen/arch/arm/domain_build.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index c8f24ed..8377610 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -208,6 +208,14 @@ static int write_properties(struct domain *d, struct kernel_info *kinfo, return res; } + /* Disable all devices used by Xen */ + if ( dt_device_used_by(np) == DOMID_XEN ) + { + res = fdt_property(kinfo->fdt, "status", "disabled", 8 + 1); + if ( res ) + return res; + } + /* * XXX should populate /chosen/linux,initrd-{start,end} here if we * have module[2]