Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1156382ybt; Sat, 20 Jun 2020 02:36:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyv/IVmzM1IIrB+VUSUB7iXkqzlZSlRr8+ZSZg0C1YgOm+ZWXhLBTiFzZDlEmlJGG5nYZqZ X-Received: by 2002:a17:906:86ca:: with SMTP id j10mr6683850ejy.521.1592645819766; Sat, 20 Jun 2020 02:36:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592645819; cv=none; d=google.com; s=arc-20160816; b=YhLxOZUrvr9CoC6iihr2voOFuX9RFwHHd6PRHsZeMqf4AsYNiGKItQo39rrUH8K3Dp zRSDGyX+pEZHezMxlNjennQsyQK9ezoVJcsgi7WpqXNgUin5/csmFPv13zTXNVCuxiUl NiPyCot6UlotYvgvw/f0PMxjovPtNiV38NTjKKjLVNJ/HQzZu6obn9kIAmfb4F/KHDyh HhBdPdARcnML1ysdX+ZM4oyDZZtSREiBXeOtN3fN3MEbxPuxRMMdfh1SkM8SeVw9hHsm ZIrER1L7q1KSSxXUjmDnmzJuWQcDiK28twfHq7kZx/RXGfrgne/M3BPONpWKUFsT+tAF 67XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=agNVtYyFVqOBDHZGb6RZWP94lkQhp18/tjm/4c8bTHY=; b=UMoI3qP2oGgIdZ2PA7hjhLhtBi3MX5cAR3Mmmg8/q7UxwyYpkiIHQ54KRyOzDjAj/D CGUAlb7PsIs2hx2uep5WfjbOl9tEvgO8VbU8B7RAMzV8eHyrnguFHfzVQaWGICvP2Dea xBJpFjiP96zCtX6hmnBTc6aTJbgiHSNt6IxSnfrmvB0RZuIp9ScQGnDgYnAibwfQXDvN c2f9So0D0/Kb1EfOoyuZzWwTW5ENbw3638SMCBHtb268e1R45yN0X/FbTNcX1n9zp1by tR6NRyIFRJMFyCErJtwYJmYV7bdG2/sZtetjrMNFBoBZ0IQwRzYyYI80WWBU0epLmcsM yJag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=mWjxeu+J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f9si5325028edx.175.2020.06.20.02.36.37; Sat, 20 Jun 2020 02:36:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=mWjxeu+J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727885AbgFTJe5 (ORCPT + 99 others); Sat, 20 Jun 2020 05:34:57 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:10194 "EHLO mail2.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727841AbgFTJe5 (ORCPT ); Sat, 20 Jun 2020 05:34:57 -0400 Date: Sat, 20 Jun 2020 09:34:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1592645694; bh=agNVtYyFVqOBDHZGb6RZWP94lkQhp18/tjm/4c8bTHY=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=mWjxeu+JH7vswWbq8t1FQGPD3AKApQlQopiFf+wEtsvR3Qmh3MKXhWbFBpLKJzaIg oS9uT7imSL5OwgErXQOYXKPzAuM7RPLnhQgioCWIijpaOkI0BYMeRk2Uy6/1SMX2xU l+BNRJ+1joIdlRmwi8UY4Gs2WzbQKFEbf4OMCr7XHvGuUg4GDG8QwFrOdcdts7VMZg 4I9YwvryOfyDrAxqqA0g+SIGoltrJafuEO5nIfj2zPSOKc5WGvrFIA6k4yeagmOsRc 31eVG8XKntKR+j1wiDXCyT5eudkz90pvS6SYhzIGhWFn7XxMz8KweAWKzdalcwKxPD nXwFRRbRBGrzQ== To: Thomas Bogendoerfer From: Alexander Lobakin Cc: Alexandre Belloni , Paul Burton , Alexander Lobakin , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH mips-next 1/3] MIPS: generic/ip32: io: fix __mem_ioswabq() Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org *readq() family operates with u64 arguments, so they need 64-bit byteswaps. Correct macros for Generic MIPS and IP-32 to match other machines' implementations. Signed-off-by: Alexander Lobakin --- arch/mips/include/asm/mach-generic/mangle-port.h | 2 +- arch/mips/include/asm/mach-ip32/mangle-port.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/include/asm/mach-generic/mangle-port.h b/arch/mips/i= nclude/asm/mach-generic/mangle-port.h index f49dc990214b..e4daf163706c 100644 --- a/arch/mips/include/asm/mach-generic/mangle-port.h +++ b/arch/mips/include/asm/mach-generic/mangle-port.h @@ -45,7 +45,7 @@ # define ioswabl(a, x)=09=09(x) # define __mem_ioswabl(a, x)=09cpu_to_le32(x) # define ioswabq(a, x)=09=09(x) -# define __mem_ioswabq(a, x)=09cpu_to_le32(x) +# define __mem_ioswabq(a, x)=09cpu_to_le64(x) =20 #endif =20 diff --git a/arch/mips/include/asm/mach-ip32/mangle-port.h b/arch/mips/incl= ude/asm/mach-ip32/mangle-port.h index f1d0f1756a9f..c5ef72ccb0d5 100644 --- a/arch/mips/include/asm/mach-ip32/mangle-port.h +++ b/arch/mips/include/asm/mach-ip32/mangle-port.h @@ -21,6 +21,6 @@ # define ioswabl(a, x)=09=09(x) # define __mem_ioswabl(a, x)=09cpu_to_le32(x) # define ioswabq(a, x)=09=09(x) -# define __mem_ioswabq(a, x)=09cpu_to_le32(x) +# define __mem_ioswabq(a, x)=09cpu_to_le64(x) =20 #endif /* __ASM_MACH_IP32_MANGLE_PORT_H */ --=20 2.27.0