Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp321941imm; Thu, 2 Aug 2018 20:05:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdI04kln0T7SueceF7r0e0esMa18Nbb2Ffcfhur7eO065Lq1IHmCczEDOupbOXdc+42Drm9 X-Received: by 2002:a62:4083:: with SMTP id f3-v6mr2279364pfd.229.1533265543544; Thu, 02 Aug 2018 20:05:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533265543; cv=none; d=google.com; s=arc-20160816; b=nh6fgDTrVWTlhNm7zvau/BiDRJSI5pFMKdIGEce83YvXj2+2g4xMnd2ajZ1PsPgrz0 HtXarceSckgfjojFWAlWKKmodAL70J8Q53JgODIkSiEZZSVjomihvpoEUKLIWiVPAniP I8+9kqnjhEUhFgVA+5e4ZbQZ1ugv4kM1FjineclKnZ9dafHA3KsIoYncQw+/s5+HugY6 HP5KHFIIbomlK62QDQCwvWSG1w/IiFR3hcHAvlJfvezMe0uj5hPIH2p0M85u65GKF4dv sFWCPJe3xlLwWg4VDuti0/rgyyvQYcrxUtIMNAqmrBU9ARedovuHds0tNDLvkNnuLAe1 BG2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=0r4J5NJoHmBsiV5yNMlorZ+rJwUidUcGWvkVT4jP6x0=; b=Ul+eISAgsES2pH2kASsBs62xiCIJ+jeM4/DMxFoc91SvqsoLnDlCw5JahgiKtBNBKx HqaewMMWB0Gceg1smE4WX+zE2hYS3fmk57ED8+mpr7289XUMtoK+laNxtclAJ83GmxfE Hotd24uS8wWGVdtsfTyJDAgRAIOiU3NYIzx8hrmH+EOc4gpMOPSNB+cQbWjHOqmW/tPe Le55BDN+72wXdFwmWdmxwglcycR6+FBvpgTeU1YXO2h0tBU94tG5UxgJRp+ZAhTeszlh vh04BiQ+stLBKNaL0tAqqHolcsqvoBjjJ53CCfYg2xO9FpqfASd26x4AEi8BrCrwW7X4 ElEw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x65-v6si4100728pff.196.2018.08.02.20.05.29; Thu, 02 Aug 2018 20:05:43 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729245AbeHCE6V (ORCPT + 99 others); Fri, 3 Aug 2018 00:58:21 -0400 Received: from mga06.intel.com ([134.134.136.31]:33400 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726413AbeHCE6U (ORCPT ); Fri, 3 Aug 2018 00:58:20 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Aug 2018 20:04:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,437,1526367600"; d="scan'208";a="72976489" Received: from sgsxdev001.isng.intel.com (HELO localhost) ([10.226.88.11]) by fmsmga002.fm.intel.com with ESMTP; 02 Aug 2018 20:04:10 -0700 From: Songjun Wu To: hua.ma@linux.intel.com, yixin.zhu@linux.intel.com, chuanhua.lei@linux.intel.com, qi-ming.wu@intel.com Cc: linux-mips@linux-mips.org, linux-clk@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, Songjun Wu , Ralf Baechle , Paul Burton , James Hogan , linux-kernel@vger.kernel.org Subject: [PATCH v2 10/18] MIPS: lantiq: Unselect SWAP_IO_SPACE when LANTIQ is selected Date: Fri, 3 Aug 2018 11:02:29 +0800 Message-Id: <20180803030237.3366-11-songjun.wu@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180803030237.3366-1-songjun.wu@linux.intel.com> References: <20180803030237.3366-1-songjun.wu@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SWAP_IO_SPACE macro prevents serial driver /drivers/tty/serial/lantiq.c to use readl/writel to replace ltq_r32/w32 which are SoC or platform specific APIs. readl/writel are used for this serial driver to support multiple platforms and multiple architectures. The legacy lantiq platform(Danube) enables SWAP_IO_SPACE for supporting PCI due to some hardware bugs. It's a little-endian bus plus PCI TX/RX swap enable impacted both data and control path for MIPS based platforms. But it is better to let PCI device driver to do endian swap since SWAP_IO_SPACE is a global wide macro which potentially impacts other peripheral like USB. ltq_r32/ltq_w32 is not impacted in other device drivers based on MIPS when SWAP_IO_SPACE is not selected as they use non-byte swapping OS API (__raw_read/__raw_writel). Signed-off-by: Songjun Wu --- Changes in v2: None arch/mips/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 2d34f17f3e24..2e7e0b538e52 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -400,7 +400,6 @@ config LANTIQ select SYS_SUPPORTS_VPE_LOADER select SYS_HAS_EARLY_PRINTK select GPIOLIB - select SWAP_IO_SPACE select BOOT_RAW select CLKDEV_LOOKUP select USE_OF -- 2.11.0