From patchwork Thu Feb 22 18:42:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 129308 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp858134lja; Thu, 22 Feb 2018 09:50:43 -0800 (PST) X-Google-Smtp-Source: AH8x224R1Wg8aGng9iVUzP93+g9e13AKVQqHn1F1hQ0IWK3xIp9r5xKjUkb2ngo/2p7nbEPZ6Fz1 X-Received: by 10.101.96.212 with SMTP id r20mr6302690pgv.139.1519321842976; Thu, 22 Feb 2018 09:50:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519321842; cv=none; d=google.com; s=arc-20160816; b=V3FO4NHlXHL6J+rvnVOhUgcGi5ShdVt3ByFjojON9ilvAZ9PSjhdLJw7mFAHKvXDe0 swWmQKMVRh6RZDrEVyvJTUZGQYZPYxre0a+vyZSZWLstgUri0nMehaByzxwa/BnlBBXI TcmDOFuFrm3dlkv6KfChkLJw3pcqS9RrWKLnz78t1c3i2zUK8LYqllFAi9vkQII41Fzp hakYbZBhTQVcEqWhHcUhBtLf3p+1nXHebJisUhvOcsLCkzogsojOk3DyD8BeyRp3I1mc W5QtSuVDA7HSOciZ4MyHrcM91Eex/icEkwgk3+erLaq7p7/ksewJH3jmZP1xHzJuu8Li RJ2w== 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=aGkz09mwcSVh5FvbryEH0DV3oB5AgB9g8YFcuv91L10=; b=VUUpsxPTFfO17wK+rdkG/ygJsGzK+6evO2s01me7Rg62+CJel05jRhhxDuUbN7iqE1 kp0Gwr9KCSjzb1a6RDUYtRpLS6tQEvnjvUekCj7cXkGqWvJkJ5XQ3irKO+Dt1wB4xu4H K1Trv1SFUtunk0kdP+qx3pIVvG9nyvY3wp9Dqr25/hlhF6Hq9mwvhYPUfviAo1DvEJ3s 90cYSzwB07HDhdDcYSygFBOyxFe2qR+YbJOUeYaKB0QdAbFdE1vKkIKIuGw4Ee9K8Vup fo+KxIRh8s9pf3x4eNXl5Ek6b+peFm9K3Ei9U/o7Krv2uHNmNvE+BfBJQ20HTBplGBfw pDzQ== 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 b7-v6si382121plk.592.2018.02.22.09.50.42; Thu, 22 Feb 2018 09:50:42 -0800 (PST) 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 S933632AbeBVRuk (ORCPT + 28 others); Thu, 22 Feb 2018 12:50:40 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:5663 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933581AbeBVRuE (ORCPT ); Thu, 22 Feb 2018 12:50:04 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 3C941250A2561; Fri, 23 Feb 2018 01:49:49 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.361.1; Fri, 23 Feb 2018 01:49:41 +0800 From: John Garry To: , , , , , , CC: , , Subject: [RFC PATCH 0/2] serial: 8250_dw: IO space + polling mode support Date: Fri, 23 Feb 2018 02:42:01 +0800 Message-ID: <1519324923-196857-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 There is a requirement for supporting an 8250-compatible UART with the following profile/features: - platform device - polling mode (i.e. no interrupt support) - ACPI FW - IO port iotype - 16550-compatible For OF, we have 8250_of.c, and for PNP device we have 8250_pnp.c drivers. However there does not seem to any driver satisfying the above requirements. So this RFC is to find opinion on modifying the Synopsys DW 8250_dw.c driver to support these generic features. With patch 2/2, we're relaxing the interrupt support requirement. As I mentioned in the commit log, the 8250_of.c driver seems to ignore the dt bindings, and I do the same. John Garry (2): serial: 8250_dw: add IO space support serial: 8250_dw: support polling mode drivers/tty/serial/8250/8250_dw.c | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) -- 1.9.1