From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcus Weseloh Subject: Re: [PATCH v3] spi: dts: sun4i: Add support for hardware-based wait time between words Date: Mon, 14 Dec 2015 09:08:09 +0100 Message-ID: References: <1449873940-10167-1-git-send-email-mweseloh42@gmail.com> <1450047853-9005-1-git-send-email-mweseloh42@gmail.com> <20151214012937.GA12209@rob-hp-laptop> Reply-To: mweseloh42-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: linux-sunxi , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Mark Brown , Maxime Ripard , Chen-Yu Tsai , devicetree , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "Mailing List, Arm" To: Rob Herring Return-path: In-Reply-To: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , List-Id: linux-spi.vger.kernel.org 2015-12-14 8:31 GMT+01:00 Marcus Weseloh : > [...] >>> + /* Setup wait time between words */ >>> + of_property_read_u32(spi->dev.of_node, "spi-word-wait-ns", >>> + &wait_ns); >> >> Read this in probe and save the value rather than fetching every >> transfer. > > But this is a slave property I'm using here. If I read and store it in > probe in the spi-sun4i driver, I won't have access to the slave node > property, will I? Sorry, I think I get it now. I would need to read the value in SPI core, when the slave device gets probed. I will send an updated patch. Thanks, Marcus