All of lore.kernel.org
 help / color / mirror / Atom feed
From: michael.williamson@criticallink.com (Michael Williamson)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 7/9] davinci: add spi devices support for MityDSP-L138/MityARM-1808 platform
Date: Wed, 23 Feb 2011 09:57:40 -0500	[thread overview]
Message-ID: <4D652064.3020809@criticallink.com> (raw)
In-Reply-To: <B85A65D85D7EB246BE421B3FB0FBB593024BE4914B@dbde02.ent.ti.com>

On 2/23/2011 9:50 AM, Nori, Sekhar wrote:

> Hi Mike,
> 
> On Tue, Feb 22, 2011 at 19:07:02, Michael Williamson wrote:
> 
>> +static void __init mityomapl138_init_spi1(struct spi_board_info *info,
>> +					  unsigned len)
>> +{
>> +	int ret;
>> +
>> +	ret = spi_register_board_info(info, len);
>> +	if (ret)
>> +		pr_warning("%s: failed to register board info : %d\n",
>> +				__func__, ret);
>> +
>> +	da8xx_spi_pdata[1].num_chipselect = len;
>> +
>> +	ret = da8xx_register_spi(1);
>> +	if (ret)
>> +		pr_warning("%s: failed to register spi 1 device : %d\n",
>> +				__func__, ret);
>> +}
> 
> I missed this previously. We seem to be adding this boilerplate
> evm init function for every board. It will be worthwhile to
> modify the da8xx_register_spi() function to take in the info and
> num_chipselect too. The same function can then be called by each
> evm.
> 
> Sorry about trickling in the comments - this should be the last
> one ;) I have added the first five patches of the series to the
> branch here:
> 

> http://arago-project.org/git/projects/?p=linux-davinci.git;a=shortlog;h=refs/heads/next-for-kevin
> 
> You can rebase to this branch so you will have to spin only the
> modified patches again.
> 


My arm's getting a bit tired from the polishing...  I'll resend against
your branch the merged routine.

> Thanks,
> Sekhar
> 

  reply	other threads:[~2011-02-23 14:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-22 13:36 [PATCH v3 0/9] davinci: Add spi support for da8xx platforms Michael Williamson
2011-02-22 13:36 ` [PATCH v3 1/9] davinci: remove unused DA830_edma_ch enum Michael Williamson
2011-02-22 13:36 ` [PATCH v3 2/9] davinci: da8xx: clean up magic numbers in devices-da8xx.c Michael Williamson
2011-02-22 13:36 ` [PATCH v3 3/9] davinci: spi: move event queue parameter to platform data Michael Williamson
2011-02-22 13:36 ` [PATCH v3 4/9] davinci: da830: fix driver name for spi clocks Michael Williamson
2011-02-22 13:37 ` [PATCH v3 5/9] davinci: da850: add spi device clock definitions Michael Williamson
2011-02-22 13:37 ` [PATCH v3 6/9] davinci: da8xx: add spi resources and registration routine Michael Williamson
2011-02-22 13:37 ` [PATCH v3 7/9] davinci: add spi devices support for MityDSP-L138/MityARM-1808 platform Michael Williamson
2011-02-23 14:50   ` Nori, Sekhar
2011-02-23 14:57     ` Michael Williamson [this message]
2011-02-22 13:37 ` [PATCH v3 8/9] davinci: add spi devices support for da850/omap-l138/am18x evm Michael Williamson
2011-02-22 13:37 ` [PATCH v3 9/9] davinci: add spi devices support for da830/omap-l137/am17x evm Michael Williamson

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=4D652064.3020809@criticallink.com \
    --to=michael.williamson@criticallink.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.