Re: [PATCH 3/5] fpga: add basic CARMA board support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ira W. Snyder
Date: Monday, November 29, 2010 - 9:32 am

On Mon, Nov 29, 2010 at 11:38:14AM +1100, Benjamin Herrenschmidt wrote:

You are exactly right. They are just regular platform devices. One
devices does happen to be a bitfile downloading driver
(carma-fpga-program), but it does not create any generic infrastructure
for downloading bitfiles.

Regarding your earlier comment about the carma class: no, it isn't
necessary. I found it convenient to have everything related to this
hardware appear in /sys/class/carma/, nothing more. It just wasn't as
easy to remember something like:
/sys/bus/platform/devices/f0000000.carma-fpga/.

I was thinking about changing the drivers from generic char devices into
misc devices instead. The sysfs interface would move from
/sys/class/carma/carma-fpga to /sys/class/misc/carma-fpga (for example),
but that is easy enough to remember.

Rather than putting the source code in drivers/fpga/carma, what about
drivers/misc/carma instead? I've already done that in my local tree, and
I'm much happier with the result.

Thanks for the comments.

Ira
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFCv2 0/5] CARMA Board Support, Ira W. Snyder, (Wed Sep 8, 9:41 am)
[PATCH 1/5] fsldma: fix missing header include, Ira W. Snyder, (Wed Sep 8, 9:41 am)
[PATCH 3/5] fpga: add basic CARMA board support, Ira W. Snyder, (Wed Sep 8, 9:41 am)
[PATCH 4/5] fpga: add CARMA DATA-FPGA Access Driver, Ira W. Snyder, (Wed Sep 8, 9:41 am)
Re: [PATCH RFCv2 0/5] CARMA Board Support, Ira W. Snyder, (Fri Sep 17, 11:41 am)
Re: [PATCH 3/5] fpga: add basic CARMA board support, Benjamin Herrenschmidt, (Sun Nov 28, 5:36 pm)
Re: [PATCH 3/5] fpga: add basic CARMA board support, Benjamin Herrenschmidt, (Sun Nov 28, 5:38 pm)
Re: [PATCH 3/5] fpga: add basic CARMA board support, Ira W. Snyder, (Mon Nov 29, 9:32 am)