From patchwork Thu Apr 19 14:14:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 133784 Delivered-To: patch@linaro.org Received: by 10.46.66.142 with SMTP id h14csp691116ljf; Thu, 19 Apr 2018 07:16:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx48r7dThsGl55r6O6dCmAb44XgMcnbqgQVVPiC4GKekAXowpmQFmHOFwXpnZSe3TEaLh9ztd X-Received: by 10.98.74.149 with SMTP id c21mr6016233pfj.23.1524147408355; Thu, 19 Apr 2018 07:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524147408; cv=none; d=google.com; s=arc-20160816; b=aFZcrOEXQozUhu8uTt8mmLcwRouCkjIX8P7XQw0pAei7FBUZolpTcVNi3Woi4ZviYz doHVHFU7N+eURZrvMVh+5w33kPZTWADTy9HaRWm0KBk4AtBIG9hUGwHiowJ09IDgNnr3 GFSJUV10zHRlJBixHh8bEPKqsbEM8X2WdzP7Y7TC0mv2H75azIsJzo1CZ4d4misGetpq EHLXeSJ8kwj8e1ETc0pKHS8n9ZRKTIpn3lQdzmmDdiUqxRLYRPM9suuMdl8ra/tgm24f z0iUUDLrGko8j5+BIS3niZURZwWvlQ0yYWjwG+s6e3pTGw8e1t2WCIWoMHcAd6S9T8TN QC3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=mBSIvVnSSQM7xXZ0FMAI2PQPRgKaDLh7rkBHx19ytho=; b=mv/ViVK10j9kfIP3i5N57VjnwM9mGfIz49piHBKY3NCrMrtI4251Ei/jLKw52kH76F E5aMeSUOADVctUZcJehAghmEiufXR3/g4CHYeKqhY5Rm+JO6Ab6CZoYeRDaxmDDwowi4 navWjXvDPoBv/7vZB2NPJJJ9ldNTuQNilStHfo1krVwen7K7OuEC5Zr8RILzD3BCXvEH DpTTCNo6bmc+tRJxp4Mzo8gj4jMLqkEeqUqJtMWXN3UFUazTFTCHW1dI8LX0/BWp8CuF YlqO5ocywDty9cGWOtTx+8cONSlsytQbiwrVzPgK/cPBzej0lkaXVwHerMD2jBjBBvnT YWPQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q15si3118521pgc.303.2018.04.19.07.16.47; Thu, 19 Apr 2018 07:16:48 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753720AbeDSOQo (ORCPT + 29 others); Thu, 19 Apr 2018 10:16:44 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:58897 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752530AbeDSOQn (ORCPT ); Thu, 19 Apr 2018 10:16:43 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id D43CC447B2080; Thu, 19 Apr 2018 22:16:38 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.361.1; Thu, 19 Apr 2018 22:16:31 +0800 From: John Garry To: CC: , , , , , , , , , , , , , , , John Garry Subject: [PATCH v2] HISI LPC: Add Kconfig MFD_CORE dependency Date: Thu, 19 Apr 2018 22:14:02 +0800 Message-ID: <1524147242-220936-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For ACPI support of the HiSilicon LPC driver we depend on MFD_CORE config. Currently the HiSi LPC Kconfig entry does not define this dependency, so add it. The reason for depending on MFD_CORE in the driver is that we model the LPC host as an MFD, in that a platform device will be created for each device on the bus. We do this as we need to modify the resources of these derived platform devices, something which we should not do to the original devices created in the ACPI scan. Details in e0aa1563f894 ("HISI LPC: Add ACPI support"). Fixes: e0aa1563f894 ("HISI LPC: Add ACPI support") Reported-and-tested-by: Tan Xiaojun Signed-off-by: John Garry --- v1->v2 change: - add details of reasong to use MFD to commit message -- 1.9.1 diff --git a/drivers/bus/Kconfig b/drivers/bus/Kconfig index d1c0b60..6dc177b 100644 --- a/drivers/bus/Kconfig +++ b/drivers/bus/Kconfig @@ -33,6 +33,7 @@ config HISILICON_LPC bool "Support for ISA I/O space on HiSilicon Hip06/7" depends on ARM64 && (ARCH_HISI || COMPILE_TEST) select INDIRECT_PIO + select MFD_CORE if ACPI help Driver to enable I/O access to devices attached to the Low Pin Count bus on the HiSilicon Hip06/7 SoC.