Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2935667imm; Mon, 10 Sep 2018 08:31:38 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbxauFXaATAtLG04B0e8r7XiiEqW8WgBQjY9T6CVkois59hvLGlNxcNsnOkUiYNtg1XEg5F X-Received: by 2002:a63:2906:: with SMTP id p6-v6mr23158536pgp.204.1536593498182; Mon, 10 Sep 2018 08:31:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536593498; cv=none; d=google.com; s=arc-20160816; b=aSIPy8PxAVVED5F3ICk9UL3VP/59HZjnRyuAuRGc5+F54hhFkIQ9V1e2eHUdVZ6QtJ RYa+ZS4yFpC2Trpit09Oz8LZLD6SEqDcn1GHJqXxWqX/+xiiCbAIMKhMih7zP9AdPV4/ yOmPBf1Ope7SiPN8iolABqkmuZefKqE6kZjM5Ynq0CFiB7A0UVIxGqOEROQJ1iWoXUhX 5wNtilqCENqaGZPZpH5olPo/dw3qcEEymCERq1Iascc3Bn9GjE85attsgjh3Ey0glpgn 2//JT5hLQYNEalmou1Sodlj2gIfE9D2KPjDg+JnhSzHN4TlPQ3uK1UY9z7wX+lAbBxpT Ly1g== 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=LWY57QmV0WUFHEmOKMb+VRNsMV0XtDzk+6qp1kUlfpo=; b=h8kzGa9sc4mTV2CGm0xdk8DAwrZ3xdYlzYAaLi+FxxlupvrfmnDWbTn/hbNMZgGuOj KY4gwLwoXOAe2n5uyi+9mywPtglMbblwl+d/0Zmq1uDaToKeWecCZiKhx3K9gZWFetdW 4YxzZTE6eo3euBOqaU/WYig0ILBapKXipghztptlefZstdzHYd5MsIrN2pKMkdmpNiFu cTIsngw3VWXHP1isBTO5ZavpLKCepPlWX82E9VrS8PZfj6KGfHGli77Rosaqfd75S1Iw 5Qn5HMpcgtDOgLOBL8uoVvTJgC2dy9/rog6vUM6GXalcfXIHDqCv2HyeVym9CNO/8kyK wT3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OYmO8wEG; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si17785067pli.469.2018.09.10.08.31.21; Mon, 10 Sep 2018 08:31:38 -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=@gmail.com header.s=20161025 header.b=OYmO8wEG; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728699AbeIJUXW (ORCPT + 99 others); Mon, 10 Sep 2018 16:23:22 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:35924 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727856AbeIJUXW (ORCPT ); Mon, 10 Sep 2018 16:23:22 -0400 Received: by mail-ed1-f65.google.com with SMTP id f4-v6so16847533edq.3 for ; Mon, 10 Sep 2018 08:28:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=LWY57QmV0WUFHEmOKMb+VRNsMV0XtDzk+6qp1kUlfpo=; b=OYmO8wEGwxrk+jbr6cE5oQGIoi8Gb8CHwNodv+1EPMe8WY18b+/0G8Z2aLtHRPwTBh 0mprB26ZWk/bo+a3ik35QIVx6kYCTvsbbE+b8QzstgDXcUtu36n7HgjC4Rq6w4M94RB9 36RrICFbThyssWy51aNFmSQcrAOdbz8TlW9j0w9RPQ4G1+mPeDXYiz2fwKWUwal8pHXa U/SQgXP+ElWsQ8FGb3QJSqo8PBUubOJwelz/upyUzpiU/9VbEfIrEo7T1kitnemkfDO8 4GubeRs7Y4uTkbFS96yPt/o/z8JwWngw+CwkilQ22OxQxXecIo84w/t+ENFSVwFopJDe si5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=LWY57QmV0WUFHEmOKMb+VRNsMV0XtDzk+6qp1kUlfpo=; b=D3/XX0vfCogbcMqH1amk7z83qV5RDih3ZGg1TMitP0lAqhtEWdmyR7N0vFIv5ZeK67 gZXn6AG9cUhwn1QVoPs49BbWpBgWGyk+1qyjPjmhbdcK85mt338DVFloIzZPP/w5r7u3 D6UVNuGL6GqPmBrC+wqavuUL0LQPzJu6klNm3H12J73zsqoZUzn3z7VhzFy9PQkJxF+r 9B30rIE2eTZ8nEwDcAlom5466J/eTrOa8LhhsPTRHFx0bRuyN5WSC44ug93NXdhu+ZXy CGNA4vlD9bUFWyLeNjE6vRmlFJWuPJ/Svy2JQ+968VwN74i+vqHFxQZPW18fQLo7CH4K YF1g== X-Gm-Message-State: APzg51DzrbEF5GUIJT5FG9ZHRpGVLzFiE021vZWDiqdfIjVTlhlYCFI/ 3sJAWiuGmiCgmIbXhHtsdPA= X-Received: by 2002:a50:f10d:: with SMTP id w13-v6mr24850987edl.0.1536593323626; Mon, 10 Sep 2018 08:28:43 -0700 (PDT) Received: from darwi-kernel ([142.93.171.10]) by smtp.gmail.com with ESMTPSA id s41-v6sm18102425edd.61.2018.09.10.08.28.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Sep 2018 08:28:42 -0700 (PDT) Date: Mon, 10 Sep 2018 15:28:37 +0000 From: "Ahmed S. Darwish" To: Greg KH Cc: Simon Que , Todd Poynor , John Joseph , Rob Springer , LKML , devel@linuxdriverproject.org Subject: [PATCH] staging: gasket: TODO: re-implement using UIO Message-ID: <20180910152837.GA31819@darwi-kernel> References: <20180818155724.GA22569@kroah.com> <20180828103817.GB1397@do-kernel> <20180828123607.GB13441@kroah.com> <20180828143049.GA7388@darwi-kernel> <20180910081626.GA31344@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180910081626.GA31344@kroah.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The gasket in-kernel framework, recently introduced under staging, re-implements what is already long-time provided by the UIO subsystem, with extra PCI BAR remapping and MSI conveniences. Before moving it out of staging, make sure we add the new bits to the UIO framework instead, then transform its signle client, the Apex driver, to a proper UIO driver (uio_driver.h). Link: https://lkml.kernel.org/r/20180828103817.GB1397@do-kernel Signed-off-by: Ahmed S. Darwish --- drivers/staging/gasket/TODO | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/staging/gasket/TODO b/drivers/staging/gasket/TODO index 6ff8e01b04cc..5b1865f8af2d 100644 --- a/drivers/staging/gasket/TODO +++ b/drivers/staging/gasket/TODO @@ -1,9 +1,22 @@ This is a list of things that need to be done to get this driver out of the staging directory. + +- Implement the gasket framework's functionality through UIO instead of + introducing a new user-space drivers framework that is quite similar. + + UIO provides the necessary bits to implement user-space drivers. Meanwhile + the gasket APIs adds some extra conveniences like PCI BAR mapping, and + MSI interrupts. Add these features to the UIO subsystem, then re-implement + the Apex driver as a basic UIO driver instead (include/linux/uio_driver.h) + - Document sysfs files with Documentation/ABI/ entries. + - Use misc interface instead of major number for driver version description. + - Add descriptions of module_param's + - apex_get_status() should actually check status. + - "drivers" should never be dealing with "raw" sysfs calls or mess around with kobjects at all. The driver core should handle all of this for you automaically. There should not be a need for raw attribute macros. -- Darwi http://darwish.chasingpointers.com