Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1590021ybl; Sat, 10 Aug 2019 06:23:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuSRac4dm9V7rEKs6cVn/DUb9gzYMfTekH76SdXVHkkWHypnW+XNVLdojJtOAtlE29mxG+ X-Received: by 2002:a62:db86:: with SMTP id f128mr1539544pfg.159.1565443417796; Sat, 10 Aug 2019 06:23:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565443417; cv=none; d=google.com; s=arc-20160816; b=YDXVvZNTZ+0upuPiwYEQJA+O6XNFRXFRKF/ylFmRhCXTH3smrP1Tw8fSeSL6C3QZVc TZRBsKCx7TxBd8KYxS/4uGSAsgeLwrmiAsy4VQhFAdQ7N361MyQ1596yndwkB7xgprGf roVqnq3vaEWm/0bkktctCYhid90nN64XYB+yALfQx1fFliLS3X8ZYVklD0ueilsp2Umv n/bqNj5lLYrdrnPD6IJva8SmFkLkvd4LOCwpQvyiY21K+AdoUzHAiqTyhGRxSRXYamuS 12TBY/eQIKKrBY2jcprZhA9k+1wNNJgShOl8HxEXxybyStE4OL786mKGqi/jVTKfxN68 wAOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=LfW5UF0WPSwNFC1koZjG966JXkoCnsznfqFsgicfjg8=; b=w9lRDQnzyQkMiYXCHBjR7dP0aF7R2T0KJB4TG/CC7Dc6bnN02+nTlDg1IzRHhbnsou e1Mkbclow2yTw9e3NLdZllY9973EKCL9Jm91Hi2gZxblyYyVjEALR35V2WIbyEblJ5HL eDDA5jhTTJoKTot/nVm9jxT4xYVRb4b0+1dWSOLeD2E3HDlTtNsyQCn7y+l2eGUjOk+O eMZuz9F7tyKTNFoBXPRUL9bPxy8qG5upM5A9/IWBgh5r1SBfYWrFC7ZhIy87E3Xzmf4N OahHqFVPoNppQjVFwU3ax6FsbbvqmwLXndRNbsxYLvUOU5/a857ZEWwwLS0KXBY+InVR qWTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OPsKK6pH; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3si56012238pls.176.2019.08.10.06.23.22; Sat, 10 Aug 2019 06:23:37 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OPsKK6pH; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726450AbfHJNWf (ORCPT + 99 others); Sat, 10 Aug 2019 09:22:35 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:38769 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726147AbfHJNWf (ORCPT ); Sat, 10 Aug 2019 09:22:35 -0400 Received: by mail-pf1-f194.google.com with SMTP id o70so2137191pfg.5; Sat, 10 Aug 2019 06:22:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LfW5UF0WPSwNFC1koZjG966JXkoCnsznfqFsgicfjg8=; b=OPsKK6pHC3yZdyenxTPa20jzJOU7f3JYhxC93PljEcQX9igFGL2qlfwdailJ/xdUfk fpgjyXzTOLG4g9OELLgIHNm0PW8FsVyN9t9KiHjgQAVX9CHmL83bT5slfsMJyWJIkZjX rfV838BJRlkFRoGb6lsjGvfsjORtC6n6p/gmL3o11kV91BwGuXvaC25iLwNLspDnej3M lDgWemBFnOt0+gBqBqmI4vejgSTwk/tFTXvxygP5OqmRK/K4qVeoNj6aC9ny23WKLzu6 hPiaVwyIN6FbILIaa2lJgQ+kLSwRr1QXe1efVr9giSv8yG73k4AxUDMtkADX0Amd0+GR E4ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LfW5UF0WPSwNFC1koZjG966JXkoCnsznfqFsgicfjg8=; b=KZDz0kEx5x+u+9oTsDZqWqe6YXDVujvv0qddLZXE0EutJcipm+ACkgSj0Wg/3wXEhq DPxmlxeNnLz7arggbuEQryRy/bc/5SzELLpztrfYyTHAXmTyiokZSZynjnxKQZZQL8ig 9VrgNaBiCof0Ba6EpY19arNmzP2k+OIE4BQoID7mwZUswy/i4knCM2Y30LkBcCzoJcax db+aWqdwTTvQLZlqtbmVgpBsxOc1bgZvq7IwkUJDGYcln8i3B4t/rHicF4PgB2nGAwTs xpzL3A+vjEhs+eA10q/VFGzRLEBvpqfpcob1RXf1rEWFJEsf38gq7Uk7SmEbhGaYHmLe EDjw== X-Gm-Message-State: APjAAAU7VZ9xGNkwT6W5JklwWxm/AQIRZd9Z+T+OhXe8XWCKMUmItfo3 h2wauGrI0Pls+nghuFHI0tj8XGMrnJr9nRerO1k= X-Received: by 2002:a17:90a:7788:: with SMTP id v8mr14874709pjk.132.1565443354292; Sat, 10 Aug 2019 06:22:34 -0700 (PDT) MIME-Version: 1.0 References: <20190809103235.16338-1-tbogendoerfer@suse.de> <20190809103235.16338-9-tbogendoerfer@suse.de> In-Reply-To: <20190809103235.16338-9-tbogendoerfer@suse.de> From: Andy Shevchenko Date: Sat, 10 Aug 2019 16:22:23 +0300 Message-ID: Subject: Re: [PATCH v4 8/9] MIPS: SGI-IP27: fix readb/writeb addressing To: Thomas Bogendoerfer Cc: Ralf Baechle , Paul Burton , James Hogan , Dmitry Torokhov , Lee Jones , "David S. Miller" , Srinivas Kandagatla , Alessandro Zummo , Alexandre Belloni , Greg Kroah-Hartman , 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" 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 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? -- With Best Regards, Andy Shevchenko