From: Christoph Hellwig <hch@lst.de>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: linux-mmc@vger.kernel.org, Rich Felker <dalias@libc.org>,
Christoph Hellwig <hch@lst.de>, Mark Brown <broonie@kernel.org>,
linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] mmc: mmc_spi: Allow the driver to be built when CONFIG_HAS_DMA is unset
Date: Tue, 01 Sep 2020 15:06:54 +0000 [thread overview]
Message-ID: <20200901150654.GB30034@lst.de> (raw)
In-Reply-To: <20200901150438.228887-1-ulf.hansson@linaro.org>
On Tue, Sep 01, 2020 at 05:04:38PM +0200, Ulf Hansson wrote:
> +#ifdef CONFIG_HAS_DMA
> +static int mmc_spi_dma_alloc(struct mmc_spi_host *host)
> +{
> + struct spi_device *spi = host->spi;
> + struct device *dev;
> +
> + if (!spi->master->dev.parent->dma_mask)
> + return 0;
I still don't think this makes sense, as the dma_mask should always
be non-NULL here.
next prev parent reply other threads:[~2020-09-01 15:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-01 15:04 [PATCH v2] mmc: mmc_spi: Allow the driver to be built when CONFIG_HAS_DMA is unset Ulf Hansson
2020-09-01 15:06 ` Christoph Hellwig [this message]
2020-09-01 15:36 ` Ulf Hansson
2020-09-01 15:40 ` Christoph Hellwig
2020-09-02 8:31 ` Ulf Hansson
2020-09-02 13:44 ` Rich Felker
2020-09-02 15:51 ` Geert Uytterhoeven
2020-09-03 0:41 ` Rich Felker
2020-09-03 8:10 ` Ulf Hansson
2020-09-02 13:34 ` Rich Felker
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=20200901150654.GB30034@lst.de \
--to=hch@lst.de \
--cc=broonie@kernel.org \
--cc=dalias@libc.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=ulf.hansson@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox