From: Bert Vermeulen <bert@biot.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: "open list:MEMORY TECHNOLOGY..." <linux-mtd@lists.infradead.org>,
Brian Norris <computersforpeace@gmail.com>,
David Woodhouse <dwmw2@infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] nand: Add NAND driver for Mikrotik RB4xx series boards
Date: Thu, 23 Apr 2015 15:35:44 +0200 [thread overview]
Message-ID: <5538F530.60109@biot.com> (raw)
In-Reply-To: <CAHp75VcKa1g_bt0+SwzOYjN9yyeKeYoZwPcMGpsjehyvCuDkyw@mail.gmail.com>
On 04/21/2015 04:55 PM, Andy Shevchenko wrote:
>> +static unsigned char rb4xx_nand_read_byte(struct mtd_info *mtd)
>> +{
>> + struct nand_chip *chip = mtd->priv;
>> + struct rb4xx_nand_info *info = chip->priv;
>> + unsigned char data = 0;
>> + int ret;
>> +
>> + ret = rb4xx_cpld_read(info->spi_dev, &data, 1);
>> + if (ret) {
>> + pr_err("rb4xx_nand: read data failed, error %d\n", ret);
>
> Is it possible to use dev_err() here and in other places?
Not having much luck with this... for some reason the mtd_info struct passed
in doesn't have a name on its device, and I'm not sure why. It doesn't match
the mtd_info structs created from the partitions either. Can anyone shed
some light on this?
>> +static int rb4xx_cpld_probe(struct spi_device *spi)
>> +{
>> + struct rb4xx_cpld *cpld;
>> + struct rb4xx_cpld_platform_data *pdata;
>> + int ret;
>> +
>> + pdata = dev_get_platdata(&spi->dev);
>
> Hmm... do we have helper in SPI framework to do that?
Not that I can see.
I'll fix things according to your other comments.
--
Bert Vermeulen bert@biot.com email/xmpp
WARNING: multiple messages have this Message-ID (diff)
From: Bert Vermeulen <bert@biot.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>,
Brian Norris <computersforpeace@gmail.com>,
"open list:MEMORY TECHNOLOGY..." <linux-mtd@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] nand: Add NAND driver for Mikrotik RB4xx series boards
Date: Thu, 23 Apr 2015 15:35:44 +0200 [thread overview]
Message-ID: <5538F530.60109@biot.com> (raw)
In-Reply-To: <CAHp75VcKa1g_bt0+SwzOYjN9yyeKeYoZwPcMGpsjehyvCuDkyw@mail.gmail.com>
On 04/21/2015 04:55 PM, Andy Shevchenko wrote:
>> +static unsigned char rb4xx_nand_read_byte(struct mtd_info *mtd)
>> +{
>> + struct nand_chip *chip = mtd->priv;
>> + struct rb4xx_nand_info *info = chip->priv;
>> + unsigned char data = 0;
>> + int ret;
>> +
>> + ret = rb4xx_cpld_read(info->spi_dev, &data, 1);
>> + if (ret) {
>> + pr_err("rb4xx_nand: read data failed, error %d\n", ret);
>
> Is it possible to use dev_err() here and in other places?
Not having much luck with this... for some reason the mtd_info struct passed
in doesn't have a name on its device, and I'm not sure why. It doesn't match
the mtd_info structs created from the partitions either. Can anyone shed
some light on this?
>> +static int rb4xx_cpld_probe(struct spi_device *spi)
>> +{
>> + struct rb4xx_cpld *cpld;
>> + struct rb4xx_cpld_platform_data *pdata;
>> + int ret;
>> +
>> + pdata = dev_get_platdata(&spi->dev);
>
> Hmm... do we have helper in SPI framework to do that?
Not that I can see.
I'll fix things according to your other comments.
--
Bert Vermeulen bert@biot.com email/xmpp
next prev parent reply other threads:[~2015-04-23 13:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-21 14:02 [PATCH] nand: Add NAND driver for Mikrotik RB4xx series boards Bert Vermeulen
2015-04-21 14:50 ` Bert Vermeulen
2015-04-21 14:55 ` Andy Shevchenko
2015-04-21 14:55 ` Andy Shevchenko
2015-04-23 13:35 ` Bert Vermeulen [this message]
2015-04-23 13:35 ` Bert Vermeulen
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=5538F530.60109@biot.com \
--to=bert@biot.com \
--cc=andy.shevchenko@gmail.com \
--cc=computersforpeace@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.