From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 0D022DDEBB for ; Fri, 27 Jul 2007 03:31:23 +1000 (EST) Date: Thu, 26 Jul 2007 21:05:07 +0400 From: Vitaly Bordug To: Scott Wood Subject: Re: [RFC][PATCH] fsl_soc: add support for fsl_spi Message-ID: <20070726210507.18829b9a@vitb.ru.mvista.com> In-Reply-To: <20070726164508.GB28491@ld0162-tx32.am.freescale.net> References: <20070726135655.GA5643@localhost.localdomain> <20070726164508.GB28491@ld0162-tx32.am.freescale.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 26 Jul 2007 11:45:08 -0500 Scott Wood wrote: > On Thu, Jul 26, 2007 at 05:56:55PM +0400, Anton Vorontsov wrote: > > +void (*fsl_spi_activate_cs)(u8 cs, u8 polarity) = NULL; > > +EXPORT_SYMBOL(fsl_spi_activate_cs); > > +void (*fsl_spi_deactivate_cs)(u8 cs, u8 polarity) = NULL; > > +EXPORT_SYMBOL(fsl_spi_deactivate_cs); > > What are these for? It looks like you're using them to set pins, > but that should be done in the firmware (and if the firmware sucks, then > do it in the platform code at bootup). > That is not exactly the point. I won't respond for Anton, but we already had such hooks justified in SPI case iirc. > > +static int __init fsl_spi_of_init(void) > > +{ > > + struct device_node *np; > > + unsigned int i; > > + > > + for (np = NULL, i = 1; > > + (np = of_find_compatible_node(np, "spi", "fsl_spi")) != NULL; > > + i++) { > > s/fsl_spi/fsl,mpc8323-spi/, please. > > Why not make the fsl spi driver an of_platform device? > Because this particular thing is not ppc-only from what I recall. > -Scott > _______________________________________________ > Linuxppc-dev mailing list > Linuxppc-dev@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-dev -- Sincerely, Vitaly