From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Likely Subject: Re: [PATCH] spi/fsl-espi: Add missing cell-index OF property Date: Fri, 25 May 2012 12:52:26 -0600 Message-ID: <20120525185226.A88A43E061A@localhost> References: <1337953769-28244-1-git-send-email-Joakim.Tjernlund@transmode.se> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Joakim Tjernlund To: Joakim Tjernlund , spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Kenth Eriksson Return-path: In-Reply-To: <1337953769-28244-1-git-send-email-Joakim.Tjernlund-SNLAxHN9vbcOP4wsBPIw7w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org On Fri, 25 May 2012 15:49:29 +0200, Joakim Tjernlund wrote: > espi does not look for a OF cell-index property which > makes the bus numbering dynamic only. This add an > optional cell-index. > > Signed-off-by: Joakim Tjernlund Nack. Use /aliases instead. g. > --- > drivers/spi/spi-fsl-espi.c | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c > index d770f03..c4bea1f 100644 > --- a/drivers/spi/spi-fsl-espi.c > +++ b/drivers/spi/spi-fsl-espi.c > @@ -680,6 +680,10 @@ static int of_fsl_espi_get_chipselects(struct device *dev) > } > > pdata->max_chipselect = *prop; > + prop = of_get_property(np, "cell-index", &len); > + if (prop && len == sizeof(*prop)) > + pdata->bus_num = *prop; > + > pdata->cs_control = NULL; > > return 0; > -- > 1.7.3.4 > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > spi-devel-general mailing list > spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/spi-devel-general -- Grant Likely, B.Sc, P.Eng. Secret Lab Technologies, Ltd. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/