From patchwork Mon Mar 3 13:44:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 25605 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f72.google.com (mail-pb0-f72.google.com [209.85.160.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AA6E520540 for ; Mon, 3 Mar 2014 13:44:52 +0000 (UTC) Received: by mail-pb0-f72.google.com with SMTP id jt11sf10462155pbb.3 for ; Mon, 03 Mar 2014 05:44:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=WRErlXXLKRGYWZ1J1JeuaEDCo2LIR9Lx72krHj7J3Ig=; b=WE0ViT1XYnMWv1nxoWnOwcsc7JXd/wC8UExx+TB9yE/DcuCs7bgBj+JiAS1rqE9obp WYmcgOGfkxrIIbDGy3DFB5tI6ehoyl5AbIvJ6ZEMwWxcEYFgcI3lqchJA72FN5vHpPjZ EDDZsbY38QfKd3b4I7Rn+pCbrWMVb2RHzmyn9N23qzDf1Nj0BxLXtbqh1hC8uY1maP76 NOMWMRkRziKViXm1BfjgVts9HNbSQ9AVxfT3OmpKnbRyMYbwEUCj0T3RawIeQfb7fKKx 4a6NoAK9+R6vPswcZagk6gbu5Sb13DdLKD0+i9wJkpHVGinvg2ySHGJpjJaRbknNCF+r K+Sg== X-Gm-Message-State: ALoCoQnv1YySFcTobOQCxtwGiUqlB0WwH3j7bsE9Tg0697W3mrrYtqu/hQiM9JS5qn3tnDhxzddR X-Received: by 10.66.26.146 with SMTP id l18mr18818pag.2.1393854291665; Mon, 03 Mar 2014 05:44:51 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.98.169 with SMTP id o38ls2241693qge.37.gmail; Mon, 03 Mar 2014 05:44:51 -0800 (PST) X-Received: by 10.52.81.66 with SMTP id y2mr25911917vdx.23.1393854291487; Mon, 03 Mar 2014 05:44:51 -0800 (PST) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id xs6si3148173vec.40.2014.03.03.05.44.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Mar 2014 05:44:51 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id le5so3592983vcb.16 for ; Mon, 03 Mar 2014 05:44:51 -0800 (PST) X-Received: by 10.58.238.35 with SMTP id vh3mr12261463vec.16.1393854291407; Mon, 03 Mar 2014 05:44:51 -0800 (PST) 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.130.193 with SMTP id u1csp55173vcs; Mon, 3 Mar 2014 05:44:51 -0800 (PST) X-Received: by 10.67.22.38 with SMTP id hp6mr19632840pad.53.1393854290745; Mon, 03 Mar 2014 05:44:50 -0800 (PST) Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) by mx.google.com with ESMTPS id hh1si10709585pac.274.2014.03.03.05.44.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Mar 2014 05:44:50 -0800 (PST) Received-SPF: neutral (google.com: 209.85.192.182 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) client-ip=209.85.192.182; Received: by mail-pd0-f182.google.com with SMTP id g10so3706925pdj.41 for ; Mon, 03 Mar 2014 05:44:50 -0800 (PST) X-Received: by 10.66.11.66 with SMTP id o2mr3538537pab.142.1393854290283; Mon, 03 Mar 2014 05:44:50 -0800 (PST) Received: from buildbox.hsd1.or.comcast.net (c-67-170-153-23.hsd1.or.comcast.net. [67.170.153.23]) by mx.google.com with ESMTPSA id iq10sm36609119pbc.14.2014.03.03.05.44.49 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Mar 2014 05:44:49 -0800 (PST) From: John Stultz To: Cc: John Stultz , Serban Constantinescu Subject: [PATCH] staging: binder: Allow 64bit kernels to support 32bit-only userland Date: Mon, 3 Mar 2014 05:44:40 -0800 Message-Id: <1393854280-25403-1-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.8.3.2 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: john.stultz@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.171 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: , With the new binder API, one can mix 64bit and 32bit userland together, however, currently there is no way to run a 32bit-only userland on a 64bit kernel. This patch allows the binder legacy config option to be available on 64bit kernels. Note: Enabling this will make it so 64bit applications will not be able to communicate with binder Cc: Serban Constantinescu Signed-off-by: John Stultz --- drivers/staging/android/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/android/Kconfig b/drivers/staging/android/Kconfig index 1e1b36a..22e9e00 100644 --- a/drivers/staging/android/Kconfig +++ b/drivers/staging/android/Kconfig @@ -21,8 +21,9 @@ config ANDROID_BINDER_IPC config ANDROID_BINDER_IPC_32BIT bool - default y - depends on !64BIT && ANDROID_BINDER_IPC + prompt "Legacy 32bit binder API support" if 64BIT + default y if !64BIT + depends on ANDROID_BINDER_IPC ---help--- Enable to support an old 32-bit Android user-space. Breaks the new Android user-space.