From patchwork Tue May 8 10:27:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 135142 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp4208644lji; Tue, 8 May 2018 03:31:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr+pI4F8kmfTLup5gtJFpdNtPzmFFAdHF6xNU/BiBujqFZualMtY6YRIutJY+ccrZJIbgBl X-Received: by 2002:a17:902:5a46:: with SMTP id f6-v6mr40691980plm.85.1525775466830; Tue, 08 May 2018 03:31:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525775466; cv=none; d=google.com; s=arc-20160816; b=jHBbXIgtIgzgfuLpntpNaJBPQM5wbntddMsJ0N5MMEHTiE0c3RN3sNj9DtWSAFR60U xkugXw9AgOO2+Lx8TdCV2tlOXFR2CX7Ofdb5c+fBAjruhYM7kOn5Is835p2IuGrPPQFj nVTFcd510UlB1Hqr2AN4GUkZE2v/ulFMdV/yHiCfnfadHrIWJjnwPO85rbERagP5120B izBb9XP7G8mGOUZHkBvQFHNHjFwVb6MVvxBMgyx1W6+3SesVvUz6avgbYZQWpK0RA4RY 2baiH/wEgJLe1i32Mb8xA3/QqWObPBhApp0LLINUPfosxhjQa12IY/3PkD6OSuDdbXLf xziQ== 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=zNEw3QLfJ380EP+UnsQnVagxy0yNqVtxPLKByn63Ht8=; b=FrDBm1OSt89eFc5g+66/M3R635+xq2Y4QCouu/PzUuE6hwiCiKVHMO0JlsjlhjzoeO b3mZahEy/prAlbUMJtbhugETOsmRbAIPPmxk5sEn2xA9WRcILYlDWBb1cVMfJsmKEf/a TraMi6KpRZ1r3FBrQCWIdxgEl1ZCj6tCVQ5gV2dTVp4ykUXV2TX5Fa92z+HKGpz5LTlM uutLmIOswPNkn5p89X34ybQyGtta76KE2nDhopnFnGzozVT8j/KSBkMrM/lKWISesVZA W4OlTtUVPcyxtbFgrRK58Hq4gFiByeBT8KKA8QbqsnPlELjV4Uc7zzh3MlFa3iMOxsQL gJYA== 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 v184-v6si19638502pgd.82.2018.05.08.03.31.06; Tue, 08 May 2018 03:31:06 -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 S932345AbeEHKbE (ORCPT + 29 others); Tue, 8 May 2018 06:31:04 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7241 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754371AbeEHKa7 (ORCPT ); Tue, 8 May 2018 06:30:59 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 51F80B369D145; Tue, 8 May 2018 18:30:46 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.361.1; Tue, 8 May 2018 18:30:38 +0800 From: John Garry To: , , , CC: , , , , , , , John Garry Subject: [PATCH v2 0/3] HISI LPC ACPI UART support Date: Tue, 8 May 2018 18:27:29 +0800 Message-ID: <1525775252-239214-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 This patchset adds ACPI FW support for the UART on the LPC bus on the Huawei D03 development board. It also drops MFD API usage. It's not right to use MFD APIs outside drivers/mfd. As the alternate solution, we use platform device APIs directly. The UART is 8250-compatible, and has the following profile: - IO space iotype - no interrupt, so polling mode required - 16550 type Currently no platform driver exists for the UART. Indeed, for PNP-compatible devices - like this UART - it would be better to create a PNP device so that we may use the existing PNP driver. Thus, we should use the 8250 PNP driver. However this host driver does not support PNP devices. An RFC was sent for PNP support in [1]. However it was deemed impractical to follow this path. So to provide this UART support we use the 8250 generic isa driver. For this, we need to set the UART platform device name to match the 8250 isa driver. This means passing the 8250 serial config in the child pdev platform data. 1. https://lkml.org/lkml/2018/4/20/278 Differences: v1 -> v2: - drop MFD API usage and use platform device APIs directly for ACPI support RFC -> v1: - drop PNP support - use static MFD cells - add 8250 setup John Garry (3): HISI LPC: Stop using MFD APIs HISI LPC: Re-Add ACPI child enumeration support HISI LPC: Add ACPI UART support drivers/bus/Kconfig | 1 - drivers/bus/hisi_lpc.c | 159 ++++++++++++++++++++++++++++++------------------- 2 files changed, 97 insertions(+), 63 deletions(-) -- 1.9.1 Reviewed-by: Andy Shevchenko