From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josh Cartwright Subject: Re: [PATCH] SPI: Add driver for Cadence SPI controller Date: Mon, 17 Mar 2014 12:59:11 -0500 Message-ID: <20140317175911.GU18529@joshc.qualcomm.com> References: <1395057936-8643-1-git-send-email-harinik@xilinx.com> <20140317173017.GW11706@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Harini Katakam , robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, rob@landley.net, grant.likely@linaro.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, michals@xilinx.com To: Mark Brown Return-path: Content-Disposition: inline In-Reply-To: <20140317173017.GW11706@sirena.org.uk> Sender: linux-doc-owner@vger.kernel.org List-Id: linux-spi.vger.kernel.org On Mon, Mar 17, 2014 at 05:30:17PM +0000, Mark Brown wrote: > On Mon, Mar 17, 2014 at 05:35:36PM +0530, Harini Katakam wrote: [..] > > +static int __maybe_unused cdns_spi_suspend(struct device *dev) > > +{ > > This needs to call spi_master_suspend() as well (and similarly on > resume). I'm not that familiar with the SPI core, but this seems like an inversion. Is there a reason why the SPI master class doesn't implement suspend/resume() callbacks which handle stopping/starting the queue automatically for all masters? -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation