From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ACD5DC7EE24 for ; Tue, 9 May 2023 11:39:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235026AbjEILjh (ORCPT ); Tue, 9 May 2023 07:39:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229826AbjEILjf (ORCPT ); Tue, 9 May 2023 07:39:35 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93225173C; Tue, 9 May 2023 04:39:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683632374; x=1715168374; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=jlUp+w1eLo+0Ho6s3pyeHuASx0Ar1h308Xlzv9XQ2aA=; b=IxmCl1BAIy1XLBfPruWyLxZ3UxUWdy8H2zStaL4ih3jW9XbanMTntYgp kZqsTBnacn1hqL4qPrweKKLugAcvD0vXkPuqSKK55g5tfPcm7ZIOpDF2n 06WnIDqejuD2vhIK4PsSy3/nlMaa4RLhCN4MfScPo7Lxf3IuN6dLisJV0 uQMdGIrrtAP9tj3DpGJr3KjBJqt7KCYKYadWye60pWZpavEk2aHPmwyY7 jwNTXKwqkzKZTnKWgsD+Jt9FHKeyroTRkcC2er0wp1a1minirZAA+Wy87 b6LD2ZoHIL+Ao8GVKB3QdebMzwSFoEBRXaRPGvQNrYLPO57ixAlDbQmv+ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10704"; a="347362052" X-IronPort-AV: E=Sophos;i="5.99,262,1677571200"; d="scan'208";a="347362052" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2023 04:39:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10704"; a="763805930" X-IronPort-AV: E=Sophos;i="5.99,262,1677571200"; d="scan'208";a="763805930" Received: from mbrdon-mobl.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.251.219.121]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2023 04:39:32 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: linux-serial@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Cc: linux-kernel@vger.kernel.org, Niklas Schnelle , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH v3 0/6] serial: Separate RT288x/Au1xxx code into own file Date: Tue, 9 May 2023 14:39:18 +0300 Message-Id: <20230509113924.19540-1-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A non-trivial amount of RT288x/Au1xxx code is encapsulated into ifdeffery in 8250_port / 8250_early and some if/switch UPIO_AU blocks. Create a separate file from them and do a few additional cleanups. I kept the Kconfig entry as bool because the code has somewhat tricky dependency chain (mips arch code and 8250_of driver). v3: - Convert dl_read/write() to take u32 arg + name the args - Separatate the non-driver datastructure changes & document them better - Fix build when SERIAL_8250=m + SERIAL_8250_RT288X=y (+note reasoning in the commit message for future reference) - Use u8 for arrays that no longer have < 0 values v2: - Define register map array lengths explicitly to avoid creating declaration trap. Ilpo Järvinen (6): serial: 8250: Change dl_read/write to handle value as u32 serial: 8250: Document uart_8250_port's ->dl_read/write() serial: 8250: Add dl_read/write, bugs and mapsize into plat_serial8250_port serial: 8250: RT288x/Au1xxx code away from core serial: 8250_rt288x: Name non-standard divisor latch reg serial: 8250_rt288x: Remove unnecessary UART_REG_UNMAPPED arch/mips/alchemy/common/platform.c | 10 +- drivers/tty/serial/8250/8250.h | 4 +- drivers/tty/serial/8250/8250_core.c | 4 + drivers/tty/serial/8250/8250_early.c | 21 ---- drivers/tty/serial/8250/8250_em.c | 4 +- drivers/tty/serial/8250/8250_of.c | 4 +- drivers/tty/serial/8250/8250_port.c | 84 +-------------- drivers/tty/serial/8250/8250_pxa.c | 2 +- drivers/tty/serial/8250/8250_rt288x.c | 136 ++++++++++++++++++++++++ drivers/tty/serial/8250/8250_uniphier.c | 4 +- drivers/tty/serial/8250/Makefile | 1 + drivers/tty/serial/Makefile | 2 +- include/linux/serial_8250.h | 42 +++++++- 13 files changed, 200 insertions(+), 118 deletions(-) create mode 100644 drivers/tty/serial/8250/8250_rt288x.c -- 2.30.2