Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2385351imm; Mon, 24 Sep 2018 03:32:57 -0700 (PDT) X-Google-Smtp-Source: ACcGV6333TLmINsmVkku6n4NiDXPR34mWOOBGalW9BusVN5WlWBTr5I5Id538DU78d64pQeufBXT X-Received: by 2002:a63:a0d:: with SMTP id 13-v6mr9180659pgk.318.1537785177620; Mon, 24 Sep 2018 03:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537785177; cv=none; d=google.com; s=arc-20160816; b=bvOiOtaPQybNp/WjGLgFTOhmo/uOuZjwmnBEfR6CRnG/3ro+LIMI9yVRa8ayj7Jkfw bkoVt6eEcgLximXvWhqeYt3TB1qfqvRvIAh3EoADE5GtF9s1ah5U6KHJICfF7XJm5wmU w0hcBkWo0k8MtNXbtl0NRv7Pah4rRPRZEdyQ7t6TEXCXEowkmO+Akb7HjhZntflg3f85 soQU5urrkDytA5jn/CNiMISeTQdPlNvZrtkrPF7tV9IqzK0r8hcd7tPlX4GLrpSUXk0D vl1Hus6c6bJy+Y5PbpojUKmg/0y4jPeZ2jJh+EQeq5AQztrHqJgSBtRZmFkAuWpVvGMt puOA== 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; bh=oSkUd5OvoH72FJkG5KjpdKciz0kWxKb66uflmfGyiBk=; b=BUdG0BU9VaKQuBOx4fOFixwtlY5FMN/yI+Z36EgRI4FwHPRdrxSh/v7/Xhlt5ZoUFv U2akGflAVPtL1nXCQByabgmjjbw1G4nmf1ClbUGuY2n0LRvrPSV5IL++f9IRV5us8rVC JWi2fPWYfg0n3G3+HH0eYo6lzS4sVKmnYjVoH6XxLsEIIQ30YUrpePm+z7yGxjGCGcUF g6BCkrYiEVMamjQLoz3n2QYLU7Zy/qBEKatLhxtMFrh3tsX2taf1I2AJyHhnWX6Ezxo9 jL0ZHztw2Vn+S7ll/DGqRxodmbNwiS/cqkvceltitqv5BRQq7qeWc2YbNhsdecxR1dzO /ttw== 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 g5-v6si34782777plp.280.2018.09.24.03.32.42; Mon, 24 Sep 2018 03:32:57 -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 S1728319AbeIXQdc (ORCPT + 99 others); Mon, 24 Sep 2018 12:33:32 -0400 Received: from mga02.intel.com ([134.134.136.20]:46683 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725982AbeIXQda (ORCPT ); Mon, 24 Sep 2018 12:33:30 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Sep 2018 03:32:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,297,1534834800"; d="scan'208";a="91386610" Received: from sgsxdev001.isng.intel.com (HELO localhost) ([10.226.88.11]) by fmsmga004.fm.intel.com with ESMTP; 24 Sep 2018 03:28:41 -0700 From: Songjun Wu To: yixin.zhu@linux.intel.com, chuanhua.lei@linux.intel.com, hauke.mehrtens@intel.com Cc: Songjun Wu , linux-mips@linux-mips.org, Ralf Baechle , Paul Burton , James Hogan , linux-kernel@vger.kernel.org Subject: [PATCH 05/14] MIPS: lantiq: Unselect SWAP_IO_SPACE when LANTIQ is selected Date: Mon, 24 Sep 2018 18:27:54 +0800 Message-Id: <20180924102803.30263-6-songjun.wu@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180924102803.30263-1-songjun.wu@linux.intel.com> References: <20180924102803.30263-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 --- arch/mips/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 138d60cf19bc..dcc1fd39cbf3 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -406,7 +406,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