Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp696971ybl; Wed, 14 Aug 2019 04:43:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJUwcuPGcJMhp/HpD9mBeVhK6cHpxbmeHkMDZsu8KKyzhac1KjMqhZRZmSZwm34EumDnO/ X-Received: by 2002:a65:6547:: with SMTP id a7mr38073168pgw.65.1565782985882; Wed, 14 Aug 2019 04:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565782985; cv=none; d=google.com; s=arc-20160816; b=H+jfHb33lPmnuMU1LZDRceAlYJItKFlJ4wcZiM/+thpPw0YjUn5v7ro6ZWwhTpL3aX iieDibqra2hmK9/+4g7kz1y5ywvsxImwvts+ec0ulLZqwrxhID/d/lhb4oHuMiMlejPd 94v6sHRhH4zB0ZbJmLbxfrO5OdnrNR9NEjRf6HwZQA083ZWrEqoEuZWTUI1ZMsYQqJp/ gAPVKJpPiRv1MQq8FYnIwkejdhi9h8jasnaE//COXlqTH0hCoMnsN/xWZLqwvWB3Qz6j JDSn/xrtxrjVlR80Qj/osHTCFZ6iZw4ohuR/2f1+h7YpIRJ8FdqQR784gl8jMtVSWyxK 9sHQ== 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:cc:to:from:date; bh=vYP4UuvpLUO145IVsI7BlbFWXhdI5aPSDDaQ1hEijFg=; b=pRATOBWjcWxWJYyRNiJ/Rd9u5rdPJkkj5woxgLZTjLbobbg1a7duVacyOeo2szfaM/ kkKfZsjSORo2iO+EcVAJJsYItueVlBI7ixOcLmki/fyrynagvStkxXHfKkWDHreozMwb 1d/0uZ/vh8nMZISfa8igitKyMpzxRm5WenWqsppawfIhB6QrmdBe2nLQ3FWgv+091dV1 KzsclUs03e6ILqaW9MBWFNqE180r6vUIcqzyNrPyc/TFmqYNS+58RuiHj0gT3T9Jz3c2 WtYDBEizblEW1IoYOSY/Ih+jKe5tQaD0tdi985YLFI6yfg/l71S4EhTUfZ5iWgTGh5av wYJA== 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 a13si67157346pgw.81.2019.08.14.04.42.49; Wed, 14 Aug 2019 04:43:05 -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 S1727862AbfHNLkQ convert rfc822-to-8bit (ORCPT + 99 others); Wed, 14 Aug 2019 07:40:16 -0400 Received: from mx2.suse.de ([195.135.220.15]:41962 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727083AbfHNLkP (ORCPT ); Wed, 14 Aug 2019 07:40:15 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E115BAE5C; Wed, 14 Aug 2019 11:40:13 +0000 (UTC) Date: Wed, 14 Aug 2019 13:40:12 +0200 From: Thomas Bogendoerfer To: Philippe =?ISO-8859-1?Q?Mathieu-Daud=E9?= Cc: Greg Kroah-Hartman , Andy Shevchenko , Ralf Baechle , Paul Burton , James Hogan , Dmitry Torokhov , Lee Jones , "David S. Miller" , Srinivas Kandagatla , Alessandro Zummo , Alexandre Belloni , Jiri Slaby , Evgeniy Polyakov , linux-mips@vger.kernel.org, Linux Kernel Mailing List , linux-input , netdev , "open list:REAL TIME CLOCK (RTC) SUBSYSTEM" , "open list:SERIAL DRIVERS" Subject: Re: [PATCH v4 8/9] MIPS: SGI-IP27: fix readb/writeb addressing Message-Id: <20190814134012.0a1793598a478b55f6361924@suse.de> In-Reply-To: <90129235-58c2-aeed-a9d3-96f4a8f45709@amsat.org> References: <20190809103235.16338-1-tbogendoerfer@suse.de> <20190809103235.16338-9-tbogendoerfer@suse.de> <20190811072907.GA1416@kroah.com> <90129235-58c2-aeed-a9d3-96f4a8f45709@amsat.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 Aug 2019 10:47:13 +0200 Philippe Mathieu-Daud? wrote: > Hi Thomas, > > On 8/11/19 9:29 AM, Greg Kroah-Hartman wrote: > > On Sat, Aug 10, 2019 at 04:22:23PM +0300, Andy Shevchenko wrote: > >> On Fri, Aug 9, 2019 at 1:34 PM Thomas Bogendoerfer > >> wrote: > >>> > >>> Our chosen byte swapping, which is what firmware already uses, is to > >>> do readl/writel by normal lw/sw intructions (data invariance). This > >>> also means we need to mangle addresses for u8 and u16 accesses. The > >>> mangling for 16bit has been done aready, but 8bit one was missing. > >>> Correcting this causes different addresses for accesses to the > >>> SuperIO and local bus of the IOC3 chip. This is fixed by changing > >>> byte order in ioc3 and m48rtc_rtc structs. > >> > >>> /* serial port register map */ > >>> struct ioc3_serialregs { > >>> - uint32_t sscr; > >>> - uint32_t stpir; > >>> - uint32_t stcir; > >>> - uint32_t srpir; > >>> - uint32_t srcir; > >>> - uint32_t srtr; > >>> - uint32_t shadow; > >>> + u32 sscr; > >>> + u32 stpir; > >>> + u32 stcir; > >>> + u32 srpir; > >>> + u32 srcir; > >>> + u32 srtr; > >>> + u32 shadow; > >>> }; > >> > >> Isn't it a churn? AFAIU kernel documentation the uint32_t is okay to > >> use, just be consistent inside one module / driver. > >> Am I mistaken? > > > > No, but really it uint* shouldn't be used anywhere in the kernel source > > as it does not make sense. > > If you respin your series, please send this cleanup as a separate patch. no need for an extra patch. I realized that patch 7 in this series introduces all of these uint32_t. So i already fixed it there. Thomas. -- SUSE Linux GmbH GF: Felix Imend?rffer, Mary Higgins, Sri Rasiah HRB 21284 (AG N?rnberg)