Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4931482imm; Tue, 16 Oct 2018 02:22:19 -0700 (PDT) X-Google-Smtp-Source: ACcGV60U64xNDMJs/zmEWNO0M+vN5DXNFxFfo+Tzs95GNrYZ9hm9Jx8KRfpTmRT3zfVm2v0hFep3 X-Received: by 2002:a17:902:b90c:: with SMTP id bf12-v6mr20913277plb.259.1539681739359; Tue, 16 Oct 2018 02:22:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539681739; cv=none; d=google.com; s=arc-20160816; b=0+JduswLmR1A/6KB53g6obT3m1oJ13EmNqo5gIuBFYBdSxkwp2RKBxA4z64xP5VtXG avbU43C1yvRVfe8mmFWPUdi65Y0AYMYsW1iG4F5ckoKPqMLUQyzVDrfkDtEwJ+nx9kzm EKT3sqdr49XzWAWJCcZezwToQQqRoMhbQnK6uCGUAAuf2P8aCxatAsBfrzw9sM0e96vI 0KjypeSx8Ph9dwPH8YPzaZuw4IK4g+G2eKvCvfefSvx0OX19Ne+g9m1/d/83H0r5YLEX B2GZgLw2VmzdBKaZEJlqx0IhVKXboE4PqsijS/bt+A0WbNFKL8vwyZBQCBIc4BJxoSuz QVoA== 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=ggISXgki03ohf6RLOM29srsKo9G6Edo9bI7agpA4ZeC4726zzCn+nsQbLChCpzzxtA VxZoQz9lpoh6GRwiY20xxLbsSPJrNIkw3bLUh0GSQfvain4dQNcIwlhBJFyPNtGXBtgi dRW2+iMiarTljDEJZZL0U895zf6KU+J7DP/x4ci1xV/tfy3vP+Zu1oANYw5Kt2Vx9CiB vYr6ulrmvy/nrzAW8aUYDRBqz2NhkRAL6lcP+Ut2hQSh38ekNJO5PluiEDuSrylw1UHN a/3UkH9qNbpyyfVOaxo3VrJZvX8KMfqhirCkah7qcKTBl63EdaOKa7qTfotCoDbN/EKX Y2/w== 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 bd2-v6si13156751plb.382.2018.10.16.02.22.04; Tue, 16 Oct 2018 02:22:19 -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 S1727357AbeJPRJg (ORCPT + 99 others); Tue, 16 Oct 2018 13:09:36 -0400 Received: from mga18.intel.com ([134.134.136.126]:28122 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbeJPRJg (ORCPT ); Tue, 16 Oct 2018 13:09:36 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Oct 2018 02:20:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,388,1534834800"; d="scan'208";a="266076704" Received: from sgsxdev001.isng.intel.com (HELO localhost) ([10.226.88.11]) by orsmga005.jf.intel.com with ESMTP; 16 Oct 2018 02:19:58 -0700 From: Songjun Wu To: yixin.zhu@linux.intel.com, chuanhua.lei@linux.intel.com, hauke.mehrtens@intel.com Cc: gregkh@linuxfoundation.org, paul.burton@mips.com, jslaby@suse.com, Songjun Wu , linux-mips@linux-mips.org, Ralf Baechle , James Hogan , linux-kernel@vger.kernel.org Subject: [RESEND PATCH 05/14] MIPS: lantiq: Unselect SWAP_IO_SPACE when LANTIQ is selected Date: Tue, 16 Oct 2018 17:19:06 +0800 Message-Id: <20181016091915.19909-6-songjun.wu@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181016091915.19909-1-songjun.wu@linux.intel.com> References: <20181016091915.19909-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