From patchwork Thu May 3 15:08:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 134907 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2048042lji; Thu, 3 May 2018 08:13:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrtcbMgsO2jXLKO1Vap4lVlZO4IEikww5XF/hj6V9+cSg1ibPmdR8SF8ZXWXI+Nbe4PbOxj X-Received: by 2002:a63:864a:: with SMTP id x71-v6mr6889262pgd.175.1525360437259; Thu, 03 May 2018 08:13:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525360437; cv=none; d=google.com; s=arc-20160816; b=ysKNUzdFYDVuPUGvEjYFf+m7kJLze2R0qV+DUgP4bIx5cNpmZg6lU1HzA7c00uFyxZ jPdfEQMgRxrrqiXUN6NftRC54copj3lC0lcOse73moY5HOlGYd1CFiXltsOOTOvRV59X Zu02CcVzAAQT0+axh6G+HShlkzZXl2jlC9nXoiJICGPDZnvuu7tA5Sa4WuYJRq7W6lSu C+9ciu6LiePi5odPTUzyeXP+s2Klpf2V0xe0EpTVEcALCm+ew5hLJKJreZX6Suhmu2C5 Ww/IP/seFg0vauABJGDwS+XuCJUvQIVX0O731HHDD20uJ3b2t6vhGu5yvBakotjSot/Z fjIw== 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=CihqwImp7iT1z7PMUw6008aTwuauEvNTKh7ZNGnvVOI=; b=lmrkq7AzwQDaLbALRhrpsK7EOvZUIKQ7Qib3x/aGDnnvG9FmtHg76oygmCUG+bQdR2 nuPm4MFzhngk5hHm+IhG+jAdkAlduZTzz2PwxjrTDHFpXcDC8PH5n7Zd7SNV8xhEf57T mtpd3o/kULTtDIBgf3bJdXtXZPapaVFexwCVHExb668Em7vPLbToaBj/TjZIt691PBUe bhWEUfVSTXDqiTR1bFW59vGGMzKwNcGBFVLRW/ixknEoT9zSPxsw0qcCFn8zht1XGYIx u0exTRWLRezBcNdqIYvyL8fpocK+frDIXKJrwMkZwzvxtOIHKoew2nWNOR9ux2fAhsrM 4lYw== 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 u8-v6si13713349plh.22.2018.05.03.08.13.56; Thu, 03 May 2018 08:13:57 -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 S1751454AbeECPNx (ORCPT + 29 others); Thu, 3 May 2018 11:13:53 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:7648 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751132AbeECPNr (ORCPT ); Thu, 3 May 2018 11:13:47 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E96F7F1FE06; Thu, 3 May 2018 23:13:31 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.361.1; Thu, 3 May 2018 23:13:24 +0800 From: John Garry To: , , , CC: , , , , , , , John Garry Subject: [PATCH 0/2] HISI LPC ACPI UART support Date: Thu, 3 May 2018 23:08:37 +0800 Message-ID: <1525360119-102166-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. The UART is 8250-compatible, and has the following profile: - IO space iotype - no interrupt, so polling mode required - 16550 type Currently an mfd-cell (platform device) is created per device on the bus for using ACPI firmware. As such, we need require a platform driver for these devices. 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. As a solution, we use the 8250 generic isa driver. For this, we need to set the UART platform device name to match the 8250 isa driver, so we require special setup for this. To support this, we introduce static MFD cells, and support special setup handling for each device. For the UART, this means passing the 8250 serial config in the MFD cell platform data. 1. https://lkml.org/lkml/2018/4/20/278 Differences: RFC -> v1: https://lkml.org/lkml/2018/4/20/278 - drop PNP support - use static MFD cells - add 8250 setup John Garry (2): HISI LPC: Reference static MFD cells for ACPI support HISI LPC: Add ACPI UART support drivers/bus/hisi_lpc.c | 130 +++++++++++++++++++++++++++++++++++-------------- 1 file changed, 93 insertions(+), 37 deletions(-) -- 1.9.1