Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5623507img; Wed, 27 Mar 2019 11:56:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUYJiuyx8hG9/DX6HYsRtw0vcxZzSMWo6MRO/z5J/7KrbbjGLGXIapVWWoE6yt2OJuQwxB X-Received: by 2002:a65:648c:: with SMTP id e12mr21231193pgv.346.1553713012341; Wed, 27 Mar 2019 11:56:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553713012; cv=none; d=google.com; s=arc-20160816; b=aNqMKIMP4K3XSFcYrEo2YUvVczL3dpKb3x2rL71luBsL5tVE8JN7B1MKCM+78HK7Cw gtsAZg8CYcSzc/dvk2liRRFXgyzaWJDDdICZk3t75J607vsErRrsEKKaozv5bdMSBlWk FACfNlpvP+JiOs5Rt/gKkuLolx7X8BhL6Dro8AP1dkdEOrpSfeg7vXx1vD9K58SEwUfz jKjqqw6lY769+mTHlripb3o4OPaH2DUiOtkrQD5xuxPes8CBH+hLVUv84tPAfF+PuLJa 8cqOgJYKH6dRRcoyqaTZZasrxguaBtzPltl0L8LL3eEdYdAXznCHQC65oeu2vRvrtg5Y yocA== 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:dkim-signature; bh=vEKlpQV8319wZ92ySYTg7fgoTIbZ/krGaF7bGDqqtqI=; b=yxdo66hsqMir+HCw9oPiwFCHClqAW24SlttoZ+zAUCD4nj4xDwW30vnEOpNbmnWHJc 7nMyjI1Dp4BhlDs3NChy8jrnJ2zqqymu2JK65bjBoi9A/qcppQmtt0ZSHMfVsxCov8CG DTqU0wu3Q8+nN4JrYEQ20hdtVd3/xvUMDKg3UQBRPt+hxUwxQXsi4f7aHIm5PTmLoKcf 30PEXVwuWMIRbR0oAuSPWW/VvnQA+TiU8bnhWOAyZY4acivXZ6HQYM3PwDarjeUKHeOn svvhKaa+lMiXjMBJX2OZGGO/voRBmAkgWV9okZ0Q6NcBgzUnAsjJssftb7CEgBld3Fhq 0cpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=p5UleUFW; 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 v10si9446890plo.439.2019.03.27.11.56.30; Wed, 27 Mar 2019 11:56:52 -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=@kernel.org header.s=default header.b=p5UleUFW; 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 S2390369AbfC0SyR (ORCPT + 99 others); Wed, 27 Mar 2019 14:54:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:44908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728998AbfC0SyP (ORCPT ); Wed, 27 Mar 2019 14:54:15 -0400 Received: from localhost (unknown [88.128.80.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C906C205C9; Wed, 27 Mar 2019 18:54:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553712854; bh=49j3u6W+B+wmtfk3MiDgPAHpTSsRmaAxd7k+TkSo0dE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p5UleUFWmRJDTiksUP0ReTaUoTlG6a39uTLix+u2fuMmKl6C1/wETGHAEHSZb1CIY fPvRNMD8n7nt3qNdehDNRtcSUMoSnEeMkpsJr++PGYWICyhvEyU4fPAJwpgT84PxZy jr+GudYdtg/b71oW3SMJsOlS3IcF6PkLhd7CRvfw= Date: Wed, 27 Mar 2019 19:54:10 +0100 From: Greg KH To: Patrick Venture Cc: Arnd Bergmann , Joel Stanley , Andrew Jeffery , Linux Kernel Mailing List , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-aspeed@lists.ozlabs.org Subject: Re: [PATCH v7 2/2] drivers/misc: Add Aspeed P2A control driver Message-ID: <20190327185410.GA14828@kroah.com> References: <20190312163101.155910-1-venture@google.com> <20190327164542.GC11712@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 27, 2019 at 11:44:36AM -0700, Patrick Venture wrote: > On Wed, Mar 27, 2019 at 11:28 AM Greg KH wrote: > > > > On Tue, Mar 12, 2019 at 09:31:01AM -0700, Patrick Venture wrote: > > > + phys_addr_t mem_base; > > > > Is this really a 32bit value? > > It's going to be a 32-bit value if this is in the dts for one of the > correspondingly supported aspeed models. > > > > > Your ioctl thinks it is: > > > > > +struct aspeed_p2a_ctrl_mapping { > > > + __u32 addr; > > > > Does this driver not work on a 64bit kernel? > > This driver is aimed at only 32-bit hardware (ast2400/2500). I > modeled the approach after the aspeed-lpc-ctrl driver as it's > providing similar functionality. > > > > > > + __u32 length; > > > + __u32 flags; > > > +}; > > > > addr really should be __u32 here so you don't have to mess with 32/64 > > bit user/kernel issues, right? > > Add is __u32 there. Are you suggesting it shouldn't be? Ugh, yes, sorry, I meant to say "__u64". If you all insist that this is all that is ever going to be needed, ok, but I reserve the right to complain in 4 years when this needs to be changed :) thanks, greg k-h