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 DB182C4167B for ; Tue, 26 Apr 2022 12:27:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232385AbiDZMbA (ORCPT ); Tue, 26 Apr 2022 08:31:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349964AbiDZMa4 (ORCPT ); Tue, 26 Apr 2022 08:30:56 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5E0F69CF2 for ; Tue, 26 Apr 2022 05:27:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650976068; x=1682512068; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BonmJ4vF5PjQoUWdetHzved+Icm3HtZP2NvAd4tBMPc=; b=ZAmudZghiFAdA8cShweqNGWpM2KPufMgHq0LuyZ5AYu7G7dBShKm/S1a i+q3Cn9LTtwjNjoGtj7EexIVhdsG9tytmfLgjb52Jvn55l9G6mqhz/6gG lavQ/9BV5o2M3E+th4yJCfLbF+u3Incsv4AQIIHnJ/WgD8QZzlMv0IIDg w+PqEDZYC6H9dgZUwdJPJYsKYQiQPejBl2lZCsNOdhStPk7aPI5HA+TGd 3Hm9RX7MQZFJixT0gcfWv/0L94yzoPgZ21yojLVxRh7SligYeG2JeIgyP 6mUfVa5hHkwwxdIn4q+zVtcpItzGeFqOb7lWXWiwBQ0Wis7F0vw3M5WgI w==; X-IronPort-AV: E=McAfee;i="6400,9594,10328"; a="265365642" X-IronPort-AV: E=Sophos;i="5.90,290,1643702400"; d="scan'208";a="265365642" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2022 05:27:48 -0700 X-IronPort-AV: E=Sophos;i="5.90,290,1643702400"; d="scan'208";a="579865058" Received: from mmilkovx-mobl.amr.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.249.47.245]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2022 05:27:45 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: linux-serial@vger.kernel.org, Greg KH Cc: Jiri Slaby , Lukas Wunner , Andy Shevchenko , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Vicente Bergas , Johan Hovold , heiko@sntech.de, giulio.benetti@micronovasrl.com, Heikki Krogerus , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH v5 09/10] serial: 8250_lpss: Use 32-bit reads Date: Tue, 26 Apr 2022 15:24:47 +0300 Message-Id: <20220426122448.38997-10-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220426122448.38997-1-ilpo.jarvinen@linux.intel.com> References: <20220426122448.38997-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Use 32-bit reads in order to not lose higher bits of DW UART regs. This change does not fix any known issue as the high bits are not used for anything related to 8250 driver (dw8250_readl_ext and dw8250_writel_ext used within the dwlib are already doing readl/writel/ioread32be/iowrite32be anyway). This change is necessary for the next patch that enables 9th bit address mode. DW UART reports address frames with BIT(8) of LSR. Reviewed-by: Andy Shevchenko Signed-off-by: Ilpo Järvinen --- drivers/tty/serial/8250/8250_lpss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_lpss.c b/drivers/tty/serial/8250/8250_lpss.c index 0f5af061e0b4..4ba43bef9933 100644 --- a/drivers/tty/serial/8250/8250_lpss.c +++ b/drivers/tty/serial/8250/8250_lpss.c @@ -330,7 +330,7 @@ static int lpss8250_probe(struct pci_dev *pdev, const struct pci_device_id *id) uart.port.irq = pci_irq_vector(pdev, 0); uart.port.private_data = &lpss->data; uart.port.type = PORT_16550A; - uart.port.iotype = UPIO_MEM; + uart.port.iotype = UPIO_MEM32; uart.port.regshift = 2; uart.port.uartclk = lpss->board->base_baud * 16; uart.port.flags = UPF_SHARE_IRQ | UPF_FIXED_PORT | UPF_FIXED_TYPE; -- 2.30.2