From: "Måns Rullgård" <mans@mansr.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>,
Hans-Christian Egtvedt <egtvedt@samfundet.no>,
Ludovic Desroches <ludovic.desroches@atmel.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
Arnd Bergmann <arnd@arndb.de>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
"linux-kernel\@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-mmc\@vger.kernel.org" <linux-mmc@vger.kernel.org>
Subject: Re: [PATCH 2/2] mmc: atmel: get rid of struct mci_dma_data
Date: Sat, 09 Jan 2016 12:13:03 +0000 [thread overview]
Message-ID: <yw1xwprjx86o.fsf@unicorn.mansr.com> (raw)
In-Reply-To: <CAHp75Vdq83QRUw_ZxxVWcC6Xut5y-sJfYwLA+cOtGMhjB7Rm3w@mail.gmail.com> (Andy Shevchenko's message of "Sat, 9 Jan 2016 14:10:27 +0200")
Andy Shevchenko <andy.shevchenko@gmail.com> writes:
> On Sat, Jan 9, 2016 at 3:22 AM, Mans Rullgard <mans@mansr.com> wrote:
>> As struct mci_dma_data is now only used by AVR32, it is nothing but
>> pointless indirection. Replace it with struct dw_dma_slave in the
>> AVR32 platform code and with a void pointer elsewhere.
>>
>> Signed-off-by: Mans Rullgard <mans@mansr.com>
>
>> @@ -1376,15 +1375,15 @@ at32_add_device_mci(unsigned int id, struct mci_platform_data *data)
>> ARRAY_SIZE(atmel_mci0_resource)))
>> goto fail;
>>
>> - slave = kzalloc(sizeof(struct mci_dma_data), GFP_KERNEL);
>> + slave = kzalloc(sizeof(*slave), GFP_KERNEL);
>> if (!slave)
>> goto fail;
>>
>> - slave->sdata.dma_dev = &dw_dmac0_device.dev;
>> - slave->sdata.src_id = 0;
>> - slave->sdata.dst_id = 1;
>> - slave->sdata.m_master = 1;
>> - slave->sdata.p_master = 0;
>
> Seems you based this on top of our non-submitted yet patches.
You're right. I didn't realise this file had been touched by those
patches, and I didn't read the code all that carefully when making this
change.
>> + slave->dma_dev = &dw_dmac0_device.dev;
>> + slave->src_id = 0;
>> + slave->dst_id = 1;
>> + slave->m_master = 1;
>> + slave->p_master = 0;
>
> --
> With Best Regards,
> Andy Shevchenko
--
Måns Rullgård
prev parent reply other threads:[~2016-01-09 12:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-09 1:22 [PATCH 1/2] mmc: atmel-mci: restore dma on AVR32 Mans Rullgard
2016-01-09 1:22 ` [PATCH 2/2] mmc: atmel: get rid of struct mci_dma_data Mans Rullgard
2016-01-09 12:10 ` Andy Shevchenko
2016-01-09 12:13 ` Måns Rullgård [this message]
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=yw1xwprjx86o.fsf@unicorn.mansr.com \
--to=mans@mansr.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=andy.shevchenko@gmail.com \
--cc=arnd@arndb.de \
--cc=egtvedt@samfundet.no \
--cc=hskinnemoen@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=ludovic.desroches@atmel.com \
--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
all inboxes | Powered by JetHome®