Grant Likely wrote:
> On Mon, Jan 18, 2010 at 9:50 AM, Jean-Hugues Deschenes
> <[email protected]> wrote:
>   
>> +choice
>> +       prompt "Designware bus type"
>> +       depends on SPI_DESIGNWARE
>> +       default SPI_DW_PCI
>> +
>>  config SPI_DW_PCI
>> -       tristate "PCI interface driver for DW SPI core"
>> -       depends on SPI_DESIGNWARE && PCI
>> +       bool "PCI interface driver for DW SPI core"
>> +       depends on PCI
>> +
>> +config SPI_DW_MMIO
>> +       bool "Memory-mapped io interface driver for DW SPI core"
>> +
>> +endchoice
>>     
>
> The MMIO patch looks non-orthogonal to the PCI stuff so I don't
> understand why a choice/endchoice is being used here.  Is there any
> reason that both bus attachments cannot be compiled as modules at the
> same time?
>   
Aside from the fact that no chip would realistically have both at the 
same time, nope. I'll lift the restriction.
>   
>> --- /dev/null
>> +++ b/drivers/spi/dw_spi_mmio.c
>> @@ -0,0 +1,164 @@
>> +/*
>> + * dw_spi_mmio.c - Memory-mapped interface driver for DW SPI Core
>> + *
>> + * Copyright (c) 2010, Octasic semiconductor.
>> + *
>> + * Somewhat derived from PCI implementation,
>> + * Copyright (c) 2009, Intel Corporation.
>> + *
>> + * ...and from designware i2c driver
>> + * Copyright (C) 2006 Texas Instruments.
>> + * Copyright (C) 2007 MontaVista Software Inc.
>> + * Copyright (C) 2009 Provigent Ltd.
>> + *
>> + * This program is free software; you can redistribute it and/or modify it
>> + * under the terms and conditions of the GNU General Public License,
>> + * version 2, as published by the Free Software Foundation.
>> + *
>> + * This program is distributed in the hope it will be useful, but WITHOUT
>> + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
>> + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
>> + * more details.
>> + *
>> + * You should have received a copy of the GNU General Public License along
>> + * with this program; if not, write to the Free Software Foundation,
>> + * Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
>>     
>
> Do you really need these three paragraphs of preamble?  IMNSOH, the
> first paragraph stating GPLv2 should be sufficient.
>   
I'm always a bit uncomfortable with the legal stuff, but this code Is 
not very controversial so I guess I can make the preamble lighter...

Thanks!

jh

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to