From patchwork Sat Jun 20 09:34:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Lobakin X-Patchwork-Id: 11615843 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C037E138C for ; Sat, 20 Jun 2020 09:34:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A709023A77 for ; Sat, 20 Jun 2020 09:34:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b="mWjxeu+J" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727876AbgFTJe5 (ORCPT ); Sat, 20 Jun 2020 05:34:57 -0400 Received: from mail1.protonmail.ch ([185.70.40.18]:32218 "EHLO mail1.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727874AbgFTJe4 (ORCPT ); Sat, 20 Jun 2020 05:34:56 -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 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-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@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/include/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) (x) # define __mem_ioswabl(a, x) cpu_to_le32(x) # define ioswabq(a, x) (x) -# define __mem_ioswabq(a, x) cpu_to_le32(x) +# define __mem_ioswabq(a, x) cpu_to_le64(x) #endif diff --git a/arch/mips/include/asm/mach-ip32/mangle-port.h b/arch/mips/include/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) (x) # define __mem_ioswabl(a, x) cpu_to_le32(x) # define ioswabq(a, x) (x) -# define __mem_ioswabq(a, x) cpu_to_le32(x) +# define __mem_ioswabq(a, x) cpu_to_le64(x) #endif /* __ASM_MACH_IP32_MANGLE_PORT_H */