Message ID | 20230511121029.13128-1-ilpo.jarvinen@linux.intel.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp4333771vqo; Thu, 11 May 2023 05:34:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Xzez3jtC4GkIe093MDwHwZsIeXArper4THFecTP5QlvwBz10ba50YOCjAFj0FV1X4OAAG X-Received: by 2002:a17:902:e805:b0:1ac:820e:c34a with SMTP id u5-20020a170902e80500b001ac820ec34amr15188058plg.0.1683808471474; Thu, 11 May 2023 05:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683808471; cv=none; d=google.com; s=arc-20160816; b=PzuDqwY8i3ZulL2/UW7b2li2+o+s6K+Hmvljw/y15HejxxtdmISE3ZUYLLfTKA8GLl SEkUpVN4/CvymM4rR+WEpF+CKAHTNaVa5O0tvCFEYkQoKAUTu+y2GbDDxRlFtw9YXf5k i1fhvF1BpP6q/FbUSbVPPSS7wDxUppNGTvrzatRXWUbv0mT/1LA9t86PoyGv3HJbdFTs HwXEyws1VGTeA2tVoPh8EqxQWhJCWEsZ2Wwhpc/CeVPFNzNSOeKljsF5xFIcQsdCIjNQ uZVeWdULDFGG521gRO5ajAT/h6aSGGmZUxSohMB7zGmVGHcnAprSq2vN3SD/1cpY53p4 3s4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=nnrOGc3JYuKNxxeqR6108o2KkqO6p6gqHZtXenuaim4=; b=oYsMFN2WiXpxu5643NmffetaoJYyzZhANp7ZCV6e8PsgTBWHN1kLfd+41kt68g73WI JCicFYoJfHaUjMO/5NOMF87iyvE9VQbO/gGN02cKqQ2WzjdJxxFkd3eQIHV2lFj2XrSI lHkms4M446Fppi0KH5njFgauSqMf2CD1VBJj0rOPN4j61quiczG1IBVtJ2MnNfCDREQD 9afBQDDgyYLPgrPKOFe8Vhqe8MnmBZYjcE/cZYSRTcj3y5Kje24HSmMOh6Yf5VSENZJu d9W73iz+QL2ndyXwRPkuNaN/JrtV8Duy9J3+VGOZsjgZvzaVlWdSWKLGa94+1AVBV40K dmtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DxbfSPnU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y21-20020a1709027c9500b001a1b776489dsi6375213pll.300.2023.05.11.05.34.17; Thu, 11 May 2023 05:34:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DxbfSPnU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237782AbjEKMLm (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Thu, 11 May 2023 08:11:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237756AbjEKMLf (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 11 May 2023 08:11:35 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BDA593EB; Thu, 11 May 2023 05:11:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683807061; x=1715343061; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GgId0k8oBG7lRV4xr41min05HrG3B+vzXuK7KKW5Bc8=; b=DxbfSPnUpFa5kbMdJbrnIRel+IWx+mhBv18J3qnPM+mnBBHJ5Vr8JeT0 r9ZEm90vY7WN44ujVit6pIDT1vzsKZgE8nzF0Wi1T6d/F2iuRK1hPBdiP llKkiEUZHjmzBzmvpzDeSF/UFERjqp4ZLux24KcQxyeacyNL34KJT7lHO egUbnn+Db1j6KE0FwT0odSjV1B/jr+1LJeuFazNpScqCVzGHjvuXeckfZ NnU/5tZGhG28JPzeVrmaOqCEwca22SOL4pYBryslM2UlxJeljagw5Gn2t pd9CrSjxFMbHaOBWpf9oe8RoMq9cAnndA3OnkFVXrQ4/EaDYmNu4+D/3X w==; X-IronPort-AV: E=McAfee;i="6600,9927,10706"; a="330839030" X-IronPort-AV: E=Sophos;i="5.99,266,1677571200"; d="scan'208";a="330839030" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2023 05:10:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10706"; a="843921173" X-IronPort-AV: E=Sophos;i="5.99,266,1677571200"; d="scan'208";a="843921173" Received: from jsanche3-mobl1.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.252.39.112]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2023 05:10:35 -0700 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> To: linux-serial@vger.kernel.org, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jiri Slaby <jirislaby@kernel.org>, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> Cc: linux-kernel@vger.kernel.org, Niklas Schnelle <schnelle@linux.ibm.com>, =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> Subject: [PATCH v4 0/6] serial: Separate RT288x/Au1xxx code into own file Date: Thu, 11 May 2023 15:10:23 +0300 Message-Id: <20230511121029.13128-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 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765601151587867600?= X-GMAIL-MSGID: =?utf-8?q?1765601151587867600?= |
Series |
serial: Separate RT288x/Au1xxx code into own file
|
|
Message
Ilpo Järvinen
May 11, 2023, 12:10 p.m. UTC
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). v4: - Type changes - bugs: unsigned short -> u16 - use u32 for old_dl too 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 | 44 ++++++-- 13 files changed, 201 insertions(+), 119 deletions(-) create mode 100644 drivers/tty/serial/8250/8250_rt288x.c