linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: b32955@freescale.com (Huang Shijie)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V4 2/4] MTD : add the common code for GPMI controller driver
Date: Wed, 13 Apr 2011 09:41:50 +0800	[thread overview]
Message-ID: <4DA4FF5E.2090406@freescale.com> (raw)
In-Reply-To: <E550E0E66149EE438CE65645D99717D601670B0E@darkblue.bgt.local>

Hi,
> Hi,
>
> I have one correction to your NAND driver. Please see inlined comments.
>
>> These files contain the common code for the GPMI driver.
>>
>> Signed-off-by: Huang Shijie<b32955@freescale.com>
>> ---
>>   drivers/mtd/nand/gpmi-nfc/gpmi-nfc-main.c | 2453
>> +++++++++++++++++++++++++++++
>>   drivers/mtd/nand/gpmi-nfc/gpmi-nfc.h      |  551 +++++++
>>   2 files changed, 3004 insertions(+), 0 deletions(-)
>>   create mode 100644 drivers/mtd/nand/gpmi-nfc/gpmi-nfc-main.c
>>   create mode 100644 drivers/mtd/nand/gpmi-nfc/gpmi-nfc.h
>>
>> diff --git a/drivers/mtd/nand/gpmi-nfc/gpmi-nfc-main.c
>> b/drivers/mtd/nand/gpmi-nfc/gpmi-nfc-main.c
>> new file mode 100644
>> index 0000000..7bbc448
>> --- /dev/null
>> +++ b/drivers/mtd/nand/gpmi-nfc/gpmi-nfc-main.c
>> @@ -0,0 +1,2453 @@
> <snip>
>
>> +#ifdef CONFIG_PM
>> +static int gpmi_nfc_suspend(struct platform_device *pdev,
> pm_message_t
>> state)
>> +{
>> +	return 0;
>> +}
>> +
>> +static int gpmi_nfc_resume(struct platform_device *pdev)
>> +{
>> +	return 0;
>> +}
>> +#else
>> +#define suspend  NULL
>> +#define resume   NULL
>> +#endif
> If CONFIG_PM is disabled your defines don't match function names.

thanks.
> <snip>
>
>> +/* This structure represents this driver to the platform management
>> system. */
>> +static struct platform_driver gpmi_nfc_driver = {
>> +	.driver = {
>> +		.name = GPMI_NFC_DRIVER_NAME,
>> +	},
>> +	.probe   = gpmi_nfc_probe,
>> +	.remove  = __exit_p(gpmi_nfc_remove),
>> +	.suspend = gpmi_nfc_suspend,
>> +	.resume  = gpmi_nfc_resume,
>> +	.id_table = gpmi_ids,
>> +};
> This section fails to compile as gpmi_nfc_suspend and gpmi_nfc_resume
> are undefined. It compiles fine if I add gpmi_nfc_ prefix to defines.
thanks. I will fix it in next version.

Best Regards
Huang Shijie
> --
> Veli-Pekka Peltola
> R&D Engineer
> Bluegiga Technologies
>
>

      reply	other threads:[~2011-04-13  1:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-02  5:30 [PATCH V4 0/4] add the GPMI controller driver for IMX23/IMX28 Huang Shijie
2011-04-02  5:30 ` [PATCH V4 1/4] ARM: add GPMI support for imx23/imx28 Huang Shijie
2011-04-02  5:30 ` [PATCH V4 3/4] MTD: add support for imx23 and imx28 Huang Shijie
2011-04-02  5:30 ` [PATCH V4 4/4] MTD : add GPMI driver in the config and Makefile Huang Shijie
2011-04-06 10:32 ` [PATCH V4 0/4] add the GPMI controller driver for IMX23/IMX28 Huang Shijie
2011-07-08 17:45 ` [PATCH V4 2/4] MTD : add the common code for GPMI controller driver Huang Shijie
2011-04-12 11:03   ` Veli-Pekka Peltola
2011-04-13  1:41     ` Huang Shijie [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=4DA4FF5E.2090406@freescale.com \
    --to=b32955@freescale.com \
    --cc=linux-arm-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).