Received: by 10.192.165.148 with SMTP id m20csp842084imm; Fri, 27 Apr 2018 08:21:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZohwURzzYD7IbaLf47IJxSaPK0qPf/uhxLll6Ske6SWH90l5Neib3M3HtGzdbhhfUHXv46X X-Received: by 2002:a63:9911:: with SMTP id d17-v6mr2550683pge.106.1524842501407; Fri, 27 Apr 2018 08:21:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524842501; cv=none; d=google.com; s=arc-20160816; b=ZxOu471nApbPNng6JceLB6BkMtfeo7ZNOCP2QaEyy/u1IhLs+vQU1oAqFSSCJsel8u UAQnHKnJgnwnSF7ObjvU+lTOgVOGnVp4uF+a32wSeK47/iBuGMITYjbK2qGAe1Vvh/88 hrxyv7gIsXS40pLJaWZH6dax3bWfOuVYe87kxc/mH6OTGuIIK/AkW6NfaZZsTan/H7ec PaOAOM0uxCxVotFlGxEBt09btOlSj+7IwS6Sa0wqmJPF6A+i1H2pH1cITY1rUq+OUOM2 veOuz6vlhqIdWIcZ8+D+KOmLR2WKXoNv+qLUMNkL5naez8Qj38CCUXjd2M22rPf/rR/M CP7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dmarc-filter :arc-authentication-results; bh=mhPhGuMLYSkf/I8529BTfaf16je6idTn9+aXHyiMWOI=; b=nnXU6Ku294tK5ExrQV5/yVHka1QNR3AxzxNStxg+Mq0/Sb0PP9gTb06JNXW4Ds+SQ1 GK31ni4ibZhNAdt6CMNECTUk/X2ej7FxBHFWLpcw99HDjqHND8NfuCurQU1oaGfevRmu 2MIIm+KuQoP498i28+1eF79RlYr+Xh6EXlgtpdVMUVqnamohoq6MtHjzq8TYizk4ubb3 4bxx4wxRz0Uht5obVGJbDDVs4lLOV0dpesBJdW2TUkvusb+TGWWdJEaFm86gcc0iD9vX SyH1fCMzBqUYv4zvrJJ9iEUTQLIM6kqaKNTvx5q+A1hyB81mx8VLoFzmhgU7XpcRLIhW dJlA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10-v6si1443779pgt.109.2018.04.27.08.21.27; Fri, 27 Apr 2018 08:21:41 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933485AbeD0PU2 (ORCPT + 99 others); Fri, 27 Apr 2018 11:20:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:49492 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933416AbeD0OCx (ORCPT ); Fri, 27 Apr 2018 10:02:53 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E013A2189D; Fri, 27 Apr 2018 14:02:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E013A2189D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=gregkh@linuxfoundation.org From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matt Redfearn , linux-mips@linux-mips.org, Ralf Baechle , Amit Pundir Subject: [PATCH 4.9 11/74] MIPS: Generic: Fix big endian CPUs on generic machine Date: Fri, 27 Apr 2018 15:58:01 +0200 Message-Id: <20180427135710.365986182@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427135709.899303463@linuxfoundation.org> References: <20180427135709.899303463@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Matt Redfearn commit a3078e593b74fe196e69f122f03ff0b32f652c53 upstream. Big endian CPUs require SWAP_IO_SPACE enabled to swap accesses to little endian peripherals. Without this patch, big endian kernels fail to communicate with little endian periperals, such as PCI devices, on QEMU and FPGA based platforms. Signed-off-by: Matt Redfearn Fixes: eed0eabd12ef ("MIPS: generic: Introduce generic DT-based board support") Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/15105/ Signed-off-by: Ralf Baechle Cc: Amit Pundir Signed-off-by: Greg Kroah-Hartman --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -95,6 +95,7 @@ config MIPS_GENERIC select PCI_DRIVERS_GENERIC select PINCTRL select SMP_UP if SMP + select SWAP_IO_SPACE select SYS_HAS_CPU_MIPS32_R1 select SYS_HAS_CPU_MIPS32_R2 select SYS_HAS_CPU_MIPS32_R6