Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754435AbbLGIdT (ORCPT ); Mon, 7 Dec 2015 03:33:19 -0500 Received: from mga11.intel.com ([192.55.52.93]:22519 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752736AbbLGIdR (ORCPT ); Mon, 7 Dec 2015 03:33:17 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,393,1444719600"; d="scan'208";a="613733200" Subject: Re: [PATCH] mmc: sdhci-acpi: set non-removable in ACPI table To: Philip Elcan , Ulf Hansson , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org References: <1449150480-1173-1-git-send-email-pelcan@codeaurora.org> <56604E57.9000201@intel.com> <5661B3F0.2010000@codeaurora.org> Cc: linux-arm-msm@vger.kernel.org, Timur Tabi , Jon Masters , Mark Langsdorf From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <5665438B.10104@intel.com> Date: Mon, 7 Dec 2015 10:30:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <5661B3F0.2010000@codeaurora.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1457 Lines: 47 On 04/12/15 17:40, Philip Elcan wrote: > > On 12/03/2015 09:14 AM, Adrian Hunter wrote: >> On 03/12/15 15:48, Philip Elcan wrote: >>> This allows setting an SDHC controller as non-removable >>> by using the _RMV method in the ACPI table. It doesn't >> Is that _RMV on the host controller? Shouldn't it be on the card i.e. child >> device node? > > Yes, this is on the host controller. The ACPI table only describes the > host controller, not the child nodes. > If you look at Intel devices, the _RMV is on the child e.g. Device (SDHA) { Name (_HID, "80860F14") // _HID: Hardware ID Name (_CID, "PNP0D40") // _CID: Compatible ID Name (_DDN, "Intel(R) eMMC Controller - 80860F14") // _DDN: DOS Device Name ... Device (EMMD) { ... Method (_RMV, 0, NotSerialized) // _RMV: Removal Status { Return (Zero) } } } I am not an ACPI expert but that seems like the correct place for it. >> >>> mark it as non-removable if GPIO card detection is >>> already setup. >>> >>> Signed-off-by: Philip Elcan >>> --- >>> > -- 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/