[{"id":1779272,"web_url":"http://patchwork.ozlabs.org/comment/1779272/","msgid":"<20171003213755.df4s35xdni6ywxwg@rob-hp-laptop>","list_archive_url":null,"date":"2017-10-03T21:37:55","subject":"Re: [PATCH v2 1/2] uio: dt-bindings: document binding for\n\tuio-pdrv-genirq","submitter":{"id":62529,"url":"http://patchwork.ozlabs.org/api/people/62529/","name":"Rob Herring (Arm)","email":"robh@kernel.org"},"content":"On Fri, Sep 22, 2017 at 03:48:13AM +1200, Chris Packham wrote:\n> Document the device tree bindings for the uio-prv-genirq driver. Provide\n> some examples on how it can be used.\n> \n> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>\n> ---\n>  .../bindings/uio/linux,uio-pdrv-genirq.txt         | 28 ++++++++++++++++++++++\n>  1 file changed, 28 insertions(+)\n>  create mode 100644 Documentation/devicetree/bindings/uio/linux,uio-pdrv-genirq.txt\n\nNAK.\n\nI'm sure this has come up before but if you want to map a device to a \nuio driver, then add its compatible string to the driver. Bindings \ndescribe h/w devices.\n\nRob\n--\nTo unsubscribe from this list: send the line \"unsubscribe devicetree\" in\nthe body of a message to majordomo@vger.kernel.org\nMore majordomo info at  http://vger.kernel.org/majordomo-info.html","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y6C7V6G3Dz9sMN\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tWed,  4 Oct 2017 08:37:58 +1100 (AEDT)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751120AbdJCVh6 (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tTue, 3 Oct 2017 17:37:58 -0400","from mail-oi0-f68.google.com ([209.85.218.68]:38848 \"EHLO\n\tmail-oi0-f68.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1750841AbdJCVh5 (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Tue, 3 Oct 2017 17:37:57 -0400","by mail-oi0-f68.google.com with SMTP id s145so5908837oie.5;\n\tTue, 03 Oct 2017 14:37:57 -0700 (PDT)","from localhost (216-188-254-6.dyn.grandenetworks.net.\n\t[216.188.254.6]) by smtp.gmail.com with ESMTPSA id\n\tw20sm7720169otd.42.2017.10.03.14.37.56\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tTue, 03 Oct 2017 14:37:56 -0700 (PDT)"],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=PsYBrCVkelrafOp8puBwN8CgkwAEdjwwiCpSIvCZzcQ=;\n\tb=AT/Iz1dYExELWl9YUViJiTqg6FeM+ArM3Vz0zTcoHNn3XJhIe6zjXSD762WBdh0HhF\n\te5vXu7qoOk4Y9JsWX72PWs1JOLVog8hauTwviPTxnvvQeVSBYn06l0M7sfTrwFLlauu7\n\t/Ib1CRNX99v6QKfRKUHsGLR83oDwopMI1xInmutgNSChPFiUcKNGJCiGgAvF0yL4WvOH\n\tTOBe/wHUrWIRPgIu0G/GwBvCAm0kM3Bao1C/8xTTQBtSMZrHaf3p/dUw8AnCTgP5CkXS\n\tfHt0dAh77Qo4sC0VfNQHr3afL/5J+8UriI7/dK+FUZxmsVsGlOWvw5T7bUQDKBmuD3Ub\n\tCexg==","X-Gm-Message-State":"AMCzsaXkwrScHCG/bHfiH8cN2y9z/eMMmMNTfir3TwH5NyBCzfzJqanY\n\tu3hbmcJAfUVej60tyFmE34bcn4w=","X-Google-Smtp-Source":"AOwi7QCzEmN0NV3YbUtJSbko/hHG+qjNfTR5hPWx6MBLnjPsMrHZNjQykboPJ/+tssp0YeDVQxXzeA==","X-Received":"by 10.157.88.130 with SMTP id x2mr9537611otg.313.1507066676751; \n\tTue, 03 Oct 2017 14:37:56 -0700 (PDT)","Date":"Tue, 3 Oct 2017 16:37:55 -0500","From":"Rob Herring <robh@kernel.org>","To":"Chris Packham <chris.packham@alliedtelesis.co.nz>","Cc":"mark.rutland@arm.com, gregkh@linuxfoundation.org,\n\tdevicetree@vger.kernel.org, linux-kernel@vger.kernel.org","Subject":"Re: [PATCH v2 1/2] uio: dt-bindings: document binding for\n\tuio-pdrv-genirq","Message-ID":"<20171003213755.df4s35xdni6ywxwg@rob-hp-laptop>","References":"<20170921154814.7510-1-chris.packham@alliedtelesis.co.nz>\n\t<20170921154814.7510-2-chris.packham@alliedtelesis.co.nz>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<20170921154814.7510-2-chris.packham@alliedtelesis.co.nz>","User-Agent":"NeoMutt/20170113 (1.7.2)","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1782325,"web_url":"http://patchwork.ozlabs.org/comment/1782325/","msgid":"<22b9c6eb06ea4e8182c4e214b2a96fce@svr-chch-ex1.atlnz.lc>","list_archive_url":null,"date":"2017-10-08T21:03:09","subject":"Re: [PATCH v2 1/2] uio: dt-bindings: document binding for\n\tuio-pdrv-genirq","submitter":{"id":27499,"url":"http://patchwork.ozlabs.org/api/people/27499/","name":"Chris Packham","email":"chris.packham@alliedtelesis.co.nz"},"content":"Hi Rob, Greg,\n\nOn 04/10/17 10:38, Rob Herring wrote:\n> On Fri, Sep 22, 2017 at 03:48:13AM +1200, Chris Packham wrote:\n>> Document the device tree bindings for the uio-prv-genirq driver. Provide\n>> some examples on how it can be used.\n>>\n>> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>\n>> ---\n>>   .../bindings/uio/linux,uio-pdrv-genirq.txt         | 28 ++++++++++++++++++++++\n>>   1 file changed, 28 insertions(+)\n>>   create mode 100644 Documentation/devicetree/bindings/uio/linux,uio-pdrv-genirq.txt\n> \n> NAK.\n> \n> I'm sure this has come up before but if you want to map a device to a\n> uio driver, then add its compatible string to the driver. Bindings\n> describe h/w devices.\n\nFair enough.\n\nThe problem for me is that the uio-pdrv-genirq is so generic it could \napply to pretty much any hardware device. The driver has dt-awareness \nbut it currently doesn't have any built-in compatible string (it is set \nvia a module param).\n\nMy use-case is a microcontoller with a userspace driver all I need out \nof the kernel is i2c access and interrupts. Any suggestions as to how to \nmove forward with this.\n--\nTo unsubscribe from this list: send the line \"unsubscribe devicetree\" in\nthe body of a message to majordomo@vger.kernel.org\nMore majordomo info at  http://vger.kernel.org/majordomo-info.html","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=alliedtelesis.co.nz\n\theader.i=@alliedtelesis.co.nz\n\theader.b=\"dYHi13Ye\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y9G770yYJz9t3F\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tMon,  9 Oct 2017 08:03:15 +1100 (AEDT)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751774AbdJHVDN (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tSun, 8 Oct 2017 17:03:13 -0400","from gate2.alliedtelesis.co.nz ([202.36.163.20]:40271 \"EHLO\n\tgate2.alliedtelesis.co.nz\" rhost-flags-OK-OK-OK-OK) by\n\tvger.kernel.org with ESMTP id S1751571AbdJHVDM (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Sun, 8 Oct 2017 17:03:12 -0400","from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (Client did not present a certificate)\n\tby gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 3CECA8365D;\n\tMon,  9 Oct 2017 10:03:10 +1300 (NZDT)","from svr-chch-ex1.atlnz.lc (Not Verified[10.32.16.77]) by\n\tmmarshal3.atlnz.lc with Trustwave SEG (v7, 5, 8, 10121)\n\tid <B59da928e0001>; Mon, 09 Oct 2017 10:03:10 +1300","from svr-chch-ex1.atlnz.lc (2001:df5:b000:bc8:409d:36f5:8899:92e8)\n\tby svr-chch-ex1.atlnz.lc (2001:df5:b000:bc8:409d:36f5:8899:92e8)\n\twith Microsoft SMTP Server (TLS) id 15.0.1156.6;\n\tMon, 9 Oct 2017 10:03:10 +1300","from svr-chch-ex1.atlnz.lc ([fe80::409d:36f5:8899:92e8]) by\n\tsvr-chch-ex1.atlnz.lc ([fe80::409d:36f5:8899:92e8%12]) with mapi id\n\t15.00.1156.000; Mon, 9 Oct 2017 10:03:10 +1300"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; \n\ts=mail; t=1507496590;\n\tbh=yH4oo+1zqZyIBGs6DDOGGZKNac63L/ux5hd78+scKPU=;\n\th=From:To:CC:Subject:Date:References;\n\tb=dYHi13YeMn9d7SWtywXQ5rjED/BPPm22VSLx/dLsDKk9ZasvCb5nRIv9V0dOygHOh\n\tVInDBhWl2UFiP/rFU8SKWhhp/8PBnlXxkVbwHg3bFv3r7T5Hlh+JY5Ga2aeMW986EX\n\ttAJkOUGRiK6cRl88oRNOJuQybG5L/DCaUk7ESHFE=","From":"Chris Packham <Chris.Packham@alliedtelesis.co.nz>","To":"Rob Herring <robh@kernel.org>","CC":"\"mark.rutland@arm.com\" <mark.rutland@arm.com>,\n\t\"gregkh@linuxfoundation.org\" <gregkh@linuxfoundation.org>,\n\t\"devicetree@vger.kernel.org\" <devicetree@vger.kernel.org>,\n\t\"linux-kernel@vger.kernel.org\" <linux-kernel@vger.kernel.org>","Subject":"Re: [PATCH v2 1/2] uio: dt-bindings: document binding for\n\tuio-pdrv-genirq","Thread-Topic":"[PATCH v2 1/2] uio: dt-bindings: document binding for\n\tuio-pdrv-genirq","Thread-Index":"AQHTMvEO4BoNuaiBqU2WbINtWkeqcA==","Date":"Sun, 8 Oct 2017 21:03:09 +0000","Message-ID":"<22b9c6eb06ea4e8182c4e214b2a96fce@svr-chch-ex1.atlnz.lc>","References":"<20170921154814.7510-1-chris.packham@alliedtelesis.co.nz>\n\t<20170921154814.7510-2-chris.packham@alliedtelesis.co.nz>\n\t<20171003213755.df4s35xdni6ywxwg@rob-hp-laptop>","Accept-Language":"en-NZ, en-US","Content-Language":"en-US","X-MS-Has-Attach":"","X-MS-TNEF-Correlator":"","x-ms-exchange-transport-fromentityheader":"Hosted","x-originating-ip":"[2001:df5:b000:22:3a2c:4aff:fe70:2b02]","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"quoted-printable","MIME-Version":"1.0","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1782378,"web_url":"http://patchwork.ozlabs.org/comment/1782378/","msgid":"<CAL_JsqKsYeFmx8Q2pRRyR0u+_W8UZdTNTyrVpu1pgMTvr_aafQ@mail.gmail.com>","list_archive_url":null,"date":"2017-10-09T01:32:43","subject":"Re: [PATCH v2 1/2] uio: dt-bindings: document binding for\n\tuio-pdrv-genirq","submitter":{"id":62529,"url":"http://patchwork.ozlabs.org/api/people/62529/","name":"Rob Herring (Arm)","email":"robh@kernel.org"},"content":"On Sun, Oct 8, 2017 at 4:03 PM, Chris Packham\n<Chris.Packham@alliedtelesis.co.nz> wrote:\n> Hi Rob, Greg,\n>\n> On 04/10/17 10:38, Rob Herring wrote:\n>> On Fri, Sep 22, 2017 at 03:48:13AM +1200, Chris Packham wrote:\n>>> Document the device tree bindings for the uio-prv-genirq driver. Provide\n>>> some examples on how it can be used.\n>>>\n>>> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>\n>>> ---\n>>>   .../bindings/uio/linux,uio-pdrv-genirq.txt         | 28 ++++++++++++++++++++++\n>>>   1 file changed, 28 insertions(+)\n>>>   create mode 100644 Documentation/devicetree/bindings/uio/linux,uio-pdrv-genirq.txt\n>>\n>> NAK.\n>>\n>> I'm sure this has come up before but if you want to map a device to a\n>> uio driver, then add its compatible string to the driver. Bindings\n>> describe h/w devices.\n>\n> Fair enough.\n>\n> The problem for me is that the uio-pdrv-genirq is so generic it could\n> apply to pretty much any hardware device. The driver has dt-awareness\n> but it currently doesn't have any built-in compatible string (it is set\n> via a module param).\n>\n> My use-case is a microcontoller with a userspace driver all I need out\n> of the kernel is i2c access and interrupts. Any suggestions as to how to\n> move forward with this.\n\nDefine the binding for the uC regardless of how the driver is\nimplemented. Then add its compatible to the uio-pdev driver. That's\nhow we've dealt with spi-dev for example.\n\nRob\n--\nTo unsubscribe from this list: send the line \"unsubscribe devicetree\" in\nthe body of a message to majordomo@vger.kernel.org\nMore majordomo info at  http://vger.kernel.org/majordomo-info.html","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","mail.kernel.org;\n\tdmarc=none (p=none dis=none) header.from=kernel.org","mail.kernel.org;\n\tspf=none smtp.mailfrom=robh@kernel.org"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y9N6W57Xdz9t3Z\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tMon,  9 Oct 2017 12:33:07 +1100 (AEDT)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1753680AbdJIBdG (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tSun, 8 Oct 2017 21:33:06 -0400","from mail.kernel.org ([198.145.29.99]:38112 \"EHLO mail.kernel.org\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1753408AbdJIBdF (ORCPT <rfc822;devicetree@vger.kernel.org>);\n\tSun, 8 Oct 2017 21:33:05 -0400","from mail-qk0-f177.google.com (mail-qk0-f177.google.com\n\t[209.85.220.177])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby mail.kernel.org (Postfix) with ESMTPSA id CC83321924;\n\tMon,  9 Oct 2017 01:33:04 +0000 (UTC)","by mail-qk0-f177.google.com with SMTP id f199so9154549qke.2;\n\tSun, 08 Oct 2017 18:33:04 -0700 (PDT)","by 10.12.186.148 with HTTP; Sun, 8 Oct 2017 18:32:43 -0700 (PDT)"],"DMARC-Filter":"OpenDMARC Filter v1.3.2 mail.kernel.org CC83321924","X-Gm-Message-State":"AMCzsaXI8/ftIfujrnQfH+i1azmIHSD+Ds1mb78ItdKklUQGLWkIZyL/\n\tozMSZHLyTsNKbBag4Y3em0DtpX9GGE0y3vVgDQ==","X-Google-Smtp-Source":"AOwi7QDnEtZ6Qh+Ti/xmU2feBC8/Xw88ta1kcfbCbNbVrvFDNvOdBlBISAOaQ0Atf6vL0xJKC/owlJF1DDeJpRy5BfA=","X-Received":"by 10.55.95.71 with SMTP id t68mr7609182qkb.233.1507512783986;\n\tSun, 08 Oct 2017 18:33:03 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<22b9c6eb06ea4e8182c4e214b2a96fce@svr-chch-ex1.atlnz.lc>","References":"<20170921154814.7510-1-chris.packham@alliedtelesis.co.nz>\n\t<20170921154814.7510-2-chris.packham@alliedtelesis.co.nz>\n\t<20171003213755.df4s35xdni6ywxwg@rob-hp-laptop>\n\t<22b9c6eb06ea4e8182c4e214b2a96fce@svr-chch-ex1.atlnz.lc>","From":"Rob Herring <robh@kernel.org>","Date":"Sun, 8 Oct 2017 20:32:43 -0500","X-Gmail-Original-Message-ID":"<CAL_JsqKsYeFmx8Q2pRRyR0u+_W8UZdTNTyrVpu1pgMTvr_aafQ@mail.gmail.com>","Message-ID":"<CAL_JsqKsYeFmx8Q2pRRyR0u+_W8UZdTNTyrVpu1pgMTvr_aafQ@mail.gmail.com>","Subject":"Re: [PATCH v2 1/2] uio: dt-bindings: document binding for\n\tuio-pdrv-genirq","To":"Chris Packham <Chris.Packham@alliedtelesis.co.nz>","Cc":"\"mark.rutland@arm.com\" <mark.rutland@arm.com>,\n\t\"gregkh@linuxfoundation.org\" <gregkh@linuxfoundation.org>,\n\t\"devicetree@vger.kernel.org\" <devicetree@vger.kernel.org>,\n\t\"linux-kernel@vger.kernel.org\" <linux-kernel@vger.kernel.org>","Content-Type":"text/plain; charset=\"UTF-8\"","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}}]