Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3069854yba; Mon, 8 Apr 2019 10:25:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFzJ6haeVx3ab+Fer/TXXS9Lh/EyY1MbDWk71+o3E8vw6pRv9fMWc3uIJE3406Q6DNJwNH X-Received: by 2002:a63:750c:: with SMTP id q12mr30116884pgc.133.1554744307406; Mon, 08 Apr 2019 10:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554744307; cv=none; d=google.com; s=arc-20160816; b=a8OQURx6I8xHW3MhiZyBd8zykPdSiV7DlNwqDyDL3XBuKBivPrIj3BhB/jzTV5bCpi x7ibSxTKMwmbnyBrtnZzwSizrzK94ToHysitHeop+m1A/eJkXoYiImc8G+vJtotht5kN Bvz0m1wTEmcYG8+a32rU3OOa4nu0NXsLaC4+1zkgVcAsotVfdiL6gln4gRBCMhRq96tz LArJFzj9wJWzjhhq2ZWH6Qkxvx5BZjKIc5Da1FeuzHQqt/1lrBHUxyBrqOlK72KMQeFi 8D625/qk0Ce38MItnaOs4S/6VQZGnWWMSrsuvuQJsL32pD39OTUOFO3sXhQcVccN4Fm5 rwNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=aOPcsDxizu3IoVGOGPFhDbGZR708WDAbghB89TLl8Fg=; b=Fdv8yhmH+zxXWL4fdUlKP1SFVXGkzDwZKrETOKE5Qt9CYzvXnRyzT3BP57siHVYe5J 5fs5B4eL5I4mA4jfkGavDBGdTGAvLdvvVjxVbexBFC/NOwokeZDv3G4DrJNCRSAV2EtU yYQNYEhB6Gyxx9fwTc+vB7sCyOjKPnJneLKAorwhQHdtu+5l9VMbpn1AS1uv+0uH2Vcj 7mQtu21FG9m2okUn0cg+MV+794p66Whd3NvDFUI5eopbJNO6RiUGMevC6Iyoqsmv2RFs 3d6TjMUs/1FPN3bvmzA7ytNbbbiUVbd067d9+HJB6hDlLeK4EckH1TDifZu/EwfSl2dx Vfpg== 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 y70si25266539pgd.359.2019.04.08.10.24.52; Mon, 08 Apr 2019 10:25:07 -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 S1727659AbfDHO6l (ORCPT + 99 others); Mon, 8 Apr 2019 10:58:41 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:47325 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726591AbfDHO6l (ORCPT ); Mon, 8 Apr 2019 10:58:41 -0400 X-Originating-IP: 109.213.33.177 Received: from localhost (alyon-652-1-42-177.w109-213.abo.wanadoo.fr [109.213.33.177]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 3FA6220007; Mon, 8 Apr 2019 14:58:35 +0000 (UTC) Date: Mon, 8 Apr 2019 16:58:34 +0200 From: Alexandre Belloni To: Thomas Bogendoerfer Cc: Ralf Baechle , Paul Burton , James Hogan , Dmitry Torokhov , Lee Jones , "David S. Miller" , Alessandro Zummo , Greg Kroah-Hartman , Jiri Slaby , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, netdev@vger.kernel.org, linux-rtc@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH 4/6] MIPS: SGI-IP27: fix readb/writeb addressing Message-ID: <20190408145834.GO7480@piout.net> References: <20190408142100.27618-1-tbogendoerfer@suse.de> <20190408142100.27618-5-tbogendoerfer@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190408142100.27618-5-tbogendoerfer@suse.de> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/04/2019 16:20:56+0200, Thomas Bogendoerfer wrote: > diff --git a/drivers/rtc/rtc-m48t35.c b/drivers/rtc/rtc-m48t35.c > index 0cf6507de3c7..05f0d91366af 100644 > --- a/drivers/rtc/rtc-m48t35.c > +++ b/drivers/rtc/rtc-m48t35.c > @@ -24,6 +24,16 @@ > > struct m48t35_rtc { > u8 pad[0x7ff8]; /* starts at 0x7ff8 */ > +#ifdef CONFIG_SGI_IP27 > + u8 hour; > + u8 min; > + u8 sec; > + u8 control; > + u8 year; > + u8 month; > + u8 date; > + u8 day; > +#else I'm not sure why the RTC driver has to know about that. Shouldn't your accessors be fixing that? -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com