Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5615783img; Wed, 27 Mar 2019 11:46:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYLS3RKtxHh3UpfFQMvbdmFSu8GcucxoMH5+jRS9i//nK0rEzfhDoo7N8w6+MBj1/J4iLm X-Received: by 2002:a62:1197:: with SMTP id 23mr36602929pfr.210.1553712392366; Wed, 27 Mar 2019 11:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553712392; cv=none; d=google.com; s=arc-20160816; b=06M1ON7owPhWn0fsYcbW+KKOQW1J8/c7MXe3v3pssFuAhIjnGMtFhuKYMOxlRhYK5S 9CdJ34eP/MLrajod9UJ8QZD4qZHKZZHq1ns0C9V8fEPARZqbkxrkkUYpx7aZYqwxPT9N EAyCr9zDKg1AFiwPu4v2XGRaNRNDLYlQdqKIUcrhjhtX3w/KeU7kiHVdSKoYcAWL8Tkm ljKqm5yKJXXwK9XDbP3ro1a0mYMcreJziYuUsR/IzH5p+qV1pyKitT3U0izFiF7P7LVJ qOzQKTCyb0HvIq6W5vvQMTKf30Z5velMSWbT/zjTDmt1ZmU1NqHsG010VC8cPn0kvodV 4skA== 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=dzctWG2X4xielHQdWFhB2zioySjlIs2B78a6UgrxqY4=; b=YJc14R3ZwhBEHby3trslRrHqVpUGueIoy2nv3ujhrDEcrpEt9jpS34ry2DQtV/+Mb/ EyTrhVsJKfs8BCJYq6ErsycZfC0Qc896aEiaKrU5pZ1mcvOdmkMs+Oqk9sFe4NL59Se8 N0tEJ5nU6cMPXSX1cAc7D1noebsOU5MO1VsAKFMTnEI3xndJZSpiVDt3gXryonFln/YP I/8Q6339rXTB1OoUbKSEQ7znX2UBrw+oJYyIjVToBq2TR9OHKwM78sF+4awjS+vLu8XS yaleEvY0y5SsKVyPWNnkHpr61EUJXcZAnL/KPx5GWnUY/sdGPt7gDS52R/HkpOyNlYZq Xzrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="tQQ59/0D"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u33si17418474pga.341.2019.03.27.11.46.08; Wed, 27 Mar 2019 11:46:32 -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=@google.com header.s=20161025 header.b="tQQ59/0D"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392047AbfC0Sou (ORCPT + 99 others); Wed, 27 Mar 2019 14:44:50 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:40663 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391783AbfC0Sos (ORCPT ); Wed, 27 Mar 2019 14:44:48 -0400 Received: by mail-pf1-f195.google.com with SMTP id c207so10123144pfc.7 for ; Wed, 27 Mar 2019 11:44:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dzctWG2X4xielHQdWFhB2zioySjlIs2B78a6UgrxqY4=; b=tQQ59/0DDMemTDjjVLEU4x3KF7BwCR9j5d57Fr3CkZ7bAB9ICIe2Ed3RIOo6EuwoNW I+7U6ur9vwcEvxSkUDb6lNy0OEeovlqAAgFj4754MFMnGzT7w4eyEm1w5cl3YDk3bron 4/Ns3zxCGkrT0JhtZf0sRdKCfGNMnhxapa8RWhT1mdaNQY5NeTYwrFYAB+sN5ckFTokU g6vgWGMGV52vQkELESRCtu98gQN7m0la7HQ1vefLOgCcNPVnD38kmzUFEvlR2MllH5a5 FnCEiKUa4vkruoAV/CwjSW63euhEYsQ9Lhz5mxWsEraQvjxOUdGF/E5uofzcJkPEalMy +Mrw== 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=dzctWG2X4xielHQdWFhB2zioySjlIs2B78a6UgrxqY4=; b=dDbZME322Q4c7s8f9We3ryh5E0FZiCmdtnoeWDeZD8Z/h7oshWLnG1zWgxd2WL1eNf 8EnS8mnFlVq1YYDGmkcduz/HXLzeVkSj86SwevvV5VU3Auk1weR/NGUIyfyYSCmCx9DY 8zUrnsqBKztyQMaLNdR+2zzI3N3c4v6vrStjwOlWnLJszsvgo/FQBjaYt+LUL9BSg70s ic3tPrMG5TfiWWE1WSXwPncbBBVi6PlUTa2wHqoQ9/A7jB/MTzErBhtZbW6bmX9qArYT RxlgwCySSmruO1Fj2Nf2jAkJqBBNc3n267Ibc/GRmKV+nOCaZz3EK5RstbZLmBaO66ks if0Q== X-Gm-Message-State: APjAAAUu1mG2gzQJwamNmE+MYz7p2aOXsp55g4QZC/FK8zRokXM8hjPt sRl1ca396do65cuM9ivVCELS3u4H2p3SgqMA7KA/DRX61KhLrA== X-Received: by 2002:a62:4746:: with SMTP id u67mr36682932pfa.243.1553712287620; Wed, 27 Mar 2019 11:44:47 -0700 (PDT) MIME-Version: 1.0 References: <20190312163101.155910-1-venture@google.com> <20190327164542.GC11712@kroah.com> In-Reply-To: <20190327164542.GC11712@kroah.com> From: Patrick Venture Date: Wed, 27 Mar 2019 11:44:36 -0700 Message-ID: Subject: Re: [PATCH v7 2/2] drivers/misc: Add Aspeed P2A control driver To: Greg KH Cc: Arnd Bergmann , Joel Stanley , Andrew Jeffery , Linux Kernel Mailing List , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-aspeed@lists.ozlabs.org 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 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? > > thanks, > > greg k-h