From: Linus Walleij <linus.walleij@linaro.org>
To: Baruch Siach <baruch@tkos.co.il>
Cc: "Sören Brinkmann" <soren.brinkmann@xilinx.com>,
"Mark Rutland" <mark.rutland@arm.com>,
"Alexandre Courbot" <gnurou@gmail.com>,
"Harini Katakam" <harinik@xilinx.com>,
"Pawel Moll" <pawel.moll@arm.com>,
"ijc+devicetree@hellion.org.uk" <ijc+devicetree@hellion.org.uk>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
"Michal Simek" <michal.simek@xilinx.com>,
"Harini Katakam" <harinikatakamlinux@gmail.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"Rob Herring" <robh+dt@kernel.org>,
"Rob Landley" <rob@landley.net>,
"Kumar Gala" <galak@codeaurora.org>,
"Grant Likely" <grant.likely@linaro.org>,
"Harini Katakam" <harini.katakam@xilinx.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v2 1/2] gpio: Add driver for Zynq GPIO controller
Date: Fri, 11 Jul 2014 14:38:41 +0200 [thread overview]
Message-ID: <CACRpkdb6OrTW63AuVqyFt_h=J-WpcvL+Bb7HpM+RD7EeSDoAbQ@mail.gmail.com> (raw)
In-Reply-To: <20140711122744.GE3003@tarshish>
On Fri, Jul 11, 2014 at 2:27 PM, Baruch Siach <baruch@tkos.co.il> wrote:
> On Fri, Jul 11, 2014 at 02:06:29PM +0200, Linus Walleij wrote:
>> So given that an FPGA is a piece of hardware, it should have its firmware
>> loaded from the kernel and a kernel driver communicating with it I guess?
>>
>> I feel the smell of a huge bundle of userspace drivers for something that
>> should be handled by the kernel.
>
> The FPGA can be loaded using simple SPI bit-banging, for which I used the
> userspace SPI interface. Nothing fancy, just a few hundred LoC. Kernel driver
> along with a userspace interface to be maintained forever for this task seems
> an overkill to me.
OK I'd say yes maybe it's like a modem on the other side of a serial
line then, and then it makes sense to have that as a userspace thing.
It's just that when it comes to anything relating to the electrical
connections on the board, that stuff should be in some device tree
or similar HW description format, and then this needs to be parsed
by userspace too, and ... yuck. It's just so incoherent in a
helicopter view.
Yours,
Linus Walleij
next prev parent reply other threads:[~2014-07-11 12:38 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-18 11:39 [PATCH v2 1/2] gpio: Add driver for Zynq GPIO controller Harini Katakam
2014-06-18 11:39 ` [PATCH v2 2/2] devicetree: Add Zynq GPIO devicetree bindings documentation Harini Katakam
2014-07-07 14:53 ` Linus Walleij
2014-07-07 17:35 ` Sören Brinkmann
[not found] ` <1403091577-10232-1-git-send-email-harinik-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2014-06-18 15:36 ` [PATCH v2 1/2] gpio: Add driver for Zynq GPIO controller Sören Brinkmann
2014-07-07 14:51 ` Linus Walleij
2014-07-07 15:23 ` Baruch Siach
2014-07-08 9:27 ` Linus Walleij
2014-07-11 6:28 ` Baruch Siach
2014-07-11 12:06 ` Linus Walleij
2014-07-11 12:27 ` Baruch Siach
2014-07-11 12:38 ` Linus Walleij [this message]
2014-07-07 16:08 ` Sören Brinkmann
2014-07-08 9:34 ` Linus Walleij
2014-07-08 15:55 ` Sören Brinkmann
2014-07-10 8:57 ` Linus Walleij
2014-07-07 14:45 ` Linus Walleij
2014-07-07 17:33 ` Sören Brinkmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACRpkdb6OrTW63AuVqyFt_h=J-WpcvL+Bb7HpM+RD7EeSDoAbQ@mail.gmail.com' \
--to=linus.walleij@linaro.org \
--cc=baruch@tkos.co.il \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=gnurou@gmail.com \
--cc=grant.likely@linaro.org \
--cc=harini.katakam@xilinx.com \
--cc=harinik@xilinx.com \
--cc=harinikatakamlinux@gmail.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=michal.simek@xilinx.com \
--cc=pawel.moll@arm.com \
--cc=rob@landley.net \
--cc=robh+dt@kernel.org \
--cc=soren.brinkmann@xilinx.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).