Markus Armbruster <arm...@redhat.com> writes: > Alistair Francis <alistair.fran...@xilinx.com> writes: > >> On Wed, Apr 9, 2014 at 11:14 AM, Peter Crosthwaite >> <peter.crosthwa...@xilinx.com> wrote: >>> On Wed, Mar 26, 2014 at 1:05 PM, Alistair Francis >>> <alistair.fran...@xilinx.com> wrote: >>>> This patch changes the comma in the "xilinx,zynq_slcr" to an >>>> underscore. This matches every other xilinx* peripheral and >>>> also makes parsing the device via the command line possible. >>>> >>> >>> I think its actually a case of this being slightly ahead and everyone >>> else being behind. The comma is probably ultimately wrong and I'm >>> guessing its awkward for your command-line work due to command line >>> character escaping. I am in favor of the "xlnx.foo" styling that is >>> more widely adopted: >>> >>> [qemu]$ git grep -c "xlnx\." >>> hw/arm/xilinx_zynq.c:1 >>> hw/char/xilinx_uartlite.c:2 >>> hw/dma/xilinx_axidma.c:2 >>> hw/intc/xilinx_intc.c:2 >>> hw/microblaze/petalogix_ml605_mmu.c:6 >>> hw/microblaze/petalogix_s3adsp1800_mmu.c:5 >>> hw/net/xilinx_axienet.c:3 >>> hw/net/xilinx_ethlite.c:2 >>> hw/ppc/virtex_ml507.c:2 >>> hw/ssi/xilinx_spi.c:1 >>> hw/ssi/xilinx_spips.c:2 >>> hw/timer/xilinx_timer.c:2 >>> target-microblaze/cpu.c:1 >>> >>> will xlnx.zynq-slcr work? (fix the underscore while at it). >> >> Full stops are fine, just as long as it is not a comma > > The most common separator in device model names is '-'. There's a fair > number of '.', some '_', and a few ','. > > The comma are probably rooted in device tree usage. I doubt that buys > us anything but confusing command line trouble. > > I suspect period breaks -global.
Yes, it does: "-global cfi.pflash01.name=foo" gets parsed as driver = "cfi", property = "pflash01.name", value = "foo". I'm going to start a new thread for this issue. > I very much recommend picking '-' whenever practical. Still do :)