Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp961217ybz; Wed, 15 Apr 2020 23:32:20 -0700 (PDT) X-Google-Smtp-Source: APiQypIrOhMhseuBHgnW+ZR5xBEFafrl9KTUTUHPQktn1Bx+aT7VfE5iNTb9Ml75WBd3T0HZMPrr X-Received: by 2002:a50:cf8a:: with SMTP id h10mr9805161edk.142.1587018739879; Wed, 15 Apr 2020 23:32:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587018739; cv=none; d=google.com; s=arc-20160816; b=Ms0Es9O6g1lPRpcWv9A0DPWW+uYq53xajLhESIvCS0DpaJKLog1AZ8VUjF3uZBqNix nduN+GYXgKgJ1NxxWy7mt70VYlUg8WNB8R6vCk2XTgN+kbxzHXqm241VN4PoyFzUEx8Q wfLQ03NQMh1pLP9UjLZWtntHfOBXUUi02fYfTIzDq2C+az1IbqUP4dQIUwGHQ/zSYifS TWQxkh0TSn+7K0pefYTEi7DpQg1nHybIOVSwJwR5N8LO0HKziGOlMp5Jg1bVF+7v2ZaG eRIJR+8y3tLb1nGP8AY/e9iZo28r3JCkFmLaI/VrZpasYdYNgLI9PiNhX4pbJN9g7yZx wF8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=NixY39QRLhm3YxjKp+nH5TW+SefvS+WeYSFEfZx9mw0=; b=h6w79k/emUa2HV7c1L3QzE1dfhfOJeE01BYtOWhBCoeQkeEDBpa/TBdfnLTLI0NICa cTnl9dXyJbodxyRywUfctrJE5IqwYeQXg8RFdNHnVQ1g+BUMoF0HiQiTufGCxdSmSUy4 7M9pKv6RJJSLUR90VsjhXxwfsTgk1F0ZjdwIFSz0bBu3eByrZiy5pOAHAdjp3ie7Vai4 nGTvfJVm1gkZMpDIqzzygHp2jYOI5hni1WDQ1SY//wzH81ot3SceohAZ7jAM4JapXIGt gw1THahExX15uwwnAuM7KZXHUa21M9/VBBwVDcyIsAccTUye0h0pcHUsF+FgzzFn4qWi NN2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qP6kH0D4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s11si11761229ejq.364.2020.04.15.23.31.56; Wed, 15 Apr 2020 23:32:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qP6kH0D4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407924AbgDPGaY (ORCPT + 99 others); Thu, 16 Apr 2020 02:30:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:47012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408110AbgDPGaJ (ORCPT ); Thu, 16 Apr 2020 02:30:09 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 DBC6020732; Thu, 16 Apr 2020 06:30:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587018606; bh=Uc+wglkfcFcnujcwTpEjeJ1Iv8qtEzNgyuqAg5SvGZg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qP6kH0D4GuAzSBLnpw9Ff8LwjKagJaYPK1ss5GiN8vEpT320p2mSdWhNo8ApFQrjY GYzmBaaMEV0qBpaNaH7K8xZ1FZWyqIgiY+PRGhBX1dU3kRqegeZh79fvm6B0nj7h0n TLy1250+GBD/brVAq+llty5TgDa9Vw2UWqh7rrXs= Date: Thu, 16 Apr 2020 08:30:02 +0200 From: Greg KH To: Scott Wood Cc: Wang Wenhu , linux-kernel@vger.kernel.org, christophe.leroy@c-s.fr, linuxppc-dev@lists.ozlabs.org, kernel@vivo.com, Michael Ellerman Subject: Re: [PATCH v2,5/5] drivers: uio: new driver for fsl_85xx_cache_sram Message-ID: <20200416063002.GA299193@kroah.com> References: <20200415124929.GA3265842@kroah.com> <20200415152442.122873-1-wenhu.wang@vivo.com> <20200415152442.122873-6-wenhu.wang@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 15, 2020 at 02:26:55PM -0500, Scott Wood wrote: > Instead, have module parameters that take the sizes and alignments you'd like > to allocate and expose to userspace. Better still would be some sort of > dynamic allocation (e.g. open a fd, ioctl to set the requested size/alignment, > if it succeeds you can mmap it, and when the fd is closed the region is > freed). No module parameters please, this is not the 1990's. Use device tree, that is what it is there for. thanks, greg k-h