Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4548401ybz; Tue, 21 Apr 2020 02:36:25 -0700 (PDT) X-Google-Smtp-Source: APiQypKXNituyKa5zrm8omMMBOXIWwzZWuQhJO2VD1uA5utJIzXH1DnJ95fHj13vs7xR2eidmPVc X-Received: by 2002:a17:906:1603:: with SMTP id m3mr20946925ejd.205.1587461785373; Tue, 21 Apr 2020 02:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587461785; cv=none; d=google.com; s=arc-20160816; b=A4b+nu7xGz5eypcE8KAf2uagCdH1PydPFTKeKFUhcsxJTcr92ylCpeC3jh+r8hk+Ln wPbMj22/Nhtpo60ImveJueqCy3UT3F9E47kn14Vv3E9bAeZ6D4SCKKIYrIXz33udycwC qCbw/ucU0w9PaWxFwHUfl98x4VDOC+OzHlw/mqRih+Un7TGF+w7jWemvc3aP2Ze9j+le l19Fn4XO4jsnVUxZNkVSzW9JCyxOSU070AcDUK1fmYtwn8HQu7Pwv/Cs29+8fABkicyN WARQpUTzZ+JaokP4TJcnE4UGl/yWLHEApDBiYP0/aZ3Rf7E9sW5iuNwZOZ0QjLtIKgiL +KTw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lRO4zmWBNvdxyb2sZ5t6awWQWT8MQ03ojze454mECMw=; b=eBZQZ4ShzRwBcrzwED1yRdrzjSe0YFgEB6NJdNZDkuBFG3hYlIg5XJImIS6G6bL7Hr tj8W0wAQ3OfaD6hx2OHAHv6Xog/4O/22cP1Rl+c2IdRu/MjA3Ft0wz5mRQbv3kKgd1Rs 8ZmLMSKPNEP9u8nzvphfta7xbHDzb3WVePDRFzu9seNAph08nWcGvQPRhLrkWJlMvm5C sY4MKCM8+tD/1rooULlvK7vTUdweC+JAqfG6iQPGipTUn1AWflzOTLK4/HcFoCS5hfdF NMCA32MrwUyIrYCMEkHxQcyEElb3kTv8frDEAVGgA+vLHHeUZcvqjeMIllAVSzE/0ygD gimg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qsNHxSsM; 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 l25si111136edw.288.2020.04.21.02.36.02; Tue, 21 Apr 2020 02:36:25 -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=qsNHxSsM; 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 S1728450AbgDUJea (ORCPT + 99 others); Tue, 21 Apr 2020 05:34:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:54660 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725920AbgDUJe3 (ORCPT ); Tue, 21 Apr 2020 05:34:29 -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 CF60E206E9; Tue, 21 Apr 2020 09:34:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587461669; bh=7Dka82G9l1uFtfwcq6PqZbOKLwt6bMNcseQiY/abPzY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qsNHxSsMR1kvqvd2SRGAOvl6xVL1jmjaSqDARnRLr443/FFjTwk0nvXKlUXKt8FNP FHaYgMbgKTVZ51LD19AoHN81r9E44mxWTTieu0ho5A3Ylzn1f5InblYJwC1dqgwCFY Ayt31FqfryDbDjNNDkxRl4kMkegsp8QxXL2C7oC8= Date: Tue, 21 Apr 2020 11:34:27 +0200 From: Greg KH To: =?utf-8?B?546L5paH6JmO?= Cc: arnd@arndb.de, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kernel@vivo.com, robh@kernel.org, Christophe Leroy , Scott Wood , Michael Ellerman , Randy Dunlap Subject: Re: [PATCH v2,RESEND] misc: new driver sram_uapi for user level SRAM access Message-ID: <20200421093427.GC725219@kroah.com> References: <20200420145128.GA4131449@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 21, 2020 at 05:09:47PM +0800, 王文虎 wrote: > Hi, Greg, Arnd, > > Thank you for your comments first, and then really very very very sorry > for driving Greg to sigh and I hope there would be chance to share Moutai > (rather than whisky, we drink it much, a kind of Baijiu), after the virus. > > Back to the comments, I'd like to do a bit of documentation or explanation first, > which should have been done early or else there would not be so much to explain: > 1. What I have been trying to do is to access the Freescale Cache-SRAM device form > user level; > 2. I implemented it using UIO, which was thought of non-proper; I still think that using uio is the best way to do this, and never said it was "non-proper". All we got bogged down in was the DT representation of stuff from what I remember. That should be worked through. thanks, greg k-h