Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1103889img; Tue, 26 Feb 2019 14:21:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IYLRcq293PNqf1+jhtK8YDkSWWw6/CCU1UXDQWQqmhwqfSMf0rsTwJzWek9syyfqvD2Rkcl X-Received: by 2002:a17:902:930b:: with SMTP id bc11mr28840851plb.101.1551219669360; Tue, 26 Feb 2019 14:21:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551219669; cv=none; d=google.com; s=arc-20160816; b=RYYBMabaAz4znj9pJhBGxyvNWiRhwOIaWYSn5S6SdJrGvA3oOQkgWwOtiRj8zfB4IL bEQoXm21lNRBr15UypwGOK6lDTY4TD/QosPZV4s6qYxEV7xpnF9r0KP0UwZHccwKO18G tbwfPUFDlnS5NvkQezOI73AiSf5utNPIfbXCGOHuHPVpmFo5fWhdkJK5uMPwa294UNj7 fgC/jws52EBPp+jUSGfIJiMWGA6d+GfYiK/lEuPDpUtfvfUnlOCatk4HeAGIQwr7JyXz 9Yxq6C1hQpRgnecqD+ubNL8XRuIoQu+ecclUTB9iDSwCxaRDrGCOpX0+6cHyw2/QsEmV YJqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:references :in-reply-to:message-id:user-agent:dkim-signature:dkim-signature; bh=p4vuxMDnxu3Z395mXwXsvPDeGoEHR4TduiXrnx7Bctw=; b=uExW+ynWlS0FJgvCRopB3FmbPpGpZJohcDWaKohyZHeNqQUP8IOP8QyCqAn6H2UsSI JEJnNP5nG6SxxUcRAiDzi85kC3JATP1uyGXsmmGJPJj/JPvVQkx07HO3ilwVmcZiKZRL xanELFDDyetM7oa+YtfWsVkgAWCLaLQTm561unSfc0vqkTRmZQMRxSb0Hm6tUxPX66fs r8aLQaAZ/ISws9KKgv3l72TWlAEjoL0Jg8VyAZ8m2EC0Uoy2daexYqZ4LHGMHH2hOzDk 4NxUV5QdxrdrqwF9yG/XSNgN8RQhlTzBIfPyPm8rkoanAPBKXVYF7srLh3eU7jxhcqRo zMPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm2 header.b=f+ratOq3; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=odeVgsuU; 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 h189si13821487pfc.211.2019.02.26.14.20.53; Tue, 26 Feb 2019 14:21:09 -0800 (PST) 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=@aj.id.au header.s=fm2 header.b=f+ratOq3; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=odeVgsuU; 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 S1729232AbfBZWUR (ORCPT + 99 others); Tue, 26 Feb 2019 17:20:17 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:56007 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728766AbfBZWUR (ORCPT ); Tue, 26 Feb 2019 17:20:17 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 903D622267; Tue, 26 Feb 2019 17:20:16 -0500 (EST) Received: from imap2 ([10.202.2.52]) by compute4.internal (MEProxy); Tue, 26 Feb 2019 17:20:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= message-id:in-reply-to:references:date:from:to:cc:subject :content-type; s=fm2; bh=p4vuxMDnxu3Z395mXwXsvPDeGoEHR4TduiXrnx7 Bctw=; b=f+ratOq3Ug5KLbu4eLtet1JyjySyRLBrHX4O0T9NfRSlIFcULzUhVYP RJqbJpe5+g4yeZVpr4g1ctbN4WVi4iZ7dJf8QM5CDf1eRGXJOBE6Xy5W6wAqSp7W oS0Vk3UO6yjO2MpiSw+Y5FJG326iKWAzzNt3aDJ3ADxeMw27ERkzNRUIpKsNRgks OgZzELDZ9UD4VMtZ5Q9ZEUwwPjN9L9luGenq/CWqth5MLp3tXjvwWV5MTHa/6TYT 7eMUAKw7pR9Lou/THwPcXta56cQ9G1bxJQQJ8abRSvnzlW2kLmVWAp9jfKQOIpxy XLbwC1EQxKOpcWHKxj4Qedhavxh+WGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:references:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=p4vuxMDnxu3Z395mX wXsvPDeGoEHR4TduiXrnx7Bctw=; b=odeVgsuU+gqK4a+bgNeJQJrPFreOSfu07 L87/IQggFbLTPFELNeAegn9FvbOZwR4Vj3IbaHIxNk52/E3ZOx2alE3SNukY+LbS ceEIcGGPiXqo1xoPshYkwgRuwzSV733+Uz/v+mg9O73i83aeIpWWj2h81RjojW93 qbbRiLnVQRZIJ/bqFpv5Jb5hqTzmhiqIiTJMLMB8AUMueXbiYBwVvaAXwFUyQGaP Ab4OnrYy4oHw8vy+JwN20H5yy6Pf3oyWYehrAlzaeKaucvEIRUSr60QaPUlXV96g spOzswCIFmsEBa1Xl5I6ubyzw3itaW2LOUpqVoGj19rUuPuf5sP+g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrudelgdduieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedftehnughr vgifucflvghffhgvrhihfdcuoegrnhgurhgvfiesrghjrdhiugdrrghuqeenucfrrghrrg hmpehmrghilhhfrhhomheprghnughrvgifsegrjhdrihgurdgruhenucevlhhushhtvghr ufhiiigvpedt X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2CE557C1EB; Tue, 26 Feb 2019 17:20:12 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.5-895-g0d23ba6-fmstable-20190213v1 X-Me-Personality: 52947553 Message-Id: <578fe6cd-cc7c-4f6d-8f7e-39c9f183a8e4@www.fastmail.com> In-Reply-To: References: <20190221222537.137331-1-venture@google.com> <692c6c5d-9090-4e1f-9324-a03da381b003@www.fastmail.com> Date: Tue, 26 Feb 2019 17:20:11 -0500 From: "Andrew Jeffery" To: "Patrick Venture" Cc: "Arnd Bergmann" , "Greg Kroah-Hartman" , "Joel Stanley" , "Linux Kernel Mailing List" , linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org Subject: Re: [PATCH 2/2] drivers/misc: Add Aspeed P2A control driver Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 27 Feb 2019, at 08:26, Patrick Venture wrote: > On Tue, Feb 26, 2019 at 1:42 PM Patrick Venture wrote: > > > > On Sun, Feb 24, 2019 at 5:26 PM Andrew Jeffery wrote: > > > > > > > > > > > > + > > > > + /* Access to these needs to be locked, held via probe, mapping ioctl, > > > > + * and release, remove. > > > > + */ > > > > + struct mutex tracking; > > > > + u32 readers; > > > > + u32 readerwriters[P2A_REGION_COUNT]; > > > > > > Might be better to use refcount_t here instead of u32? > > > > Ack > > refcount requires atomic, is that something we have with the ast2400, 2500? Ah, we do on the 2500 (armv6) but not the 2400 (armv5)