All of lore.kernel.org
 help / color / mirror / Atom feed
From: Khiem Nguyen <khiem.nguyen.xt@rvc.renesas.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH/RFC 2/6] boot-mode-reg: Add R-Car Gen2 driver
Date: Thu, 15 Oct 2015 07:56:39 +0000	[thread overview]
Message-ID: <561F5C37.2030700@rvc.renesas.com> (raw)
In-Reply-To: <1444892377-10170-3-git-send-email-horms+renesas@verge.net.au>

On 10/15/2015 2:34 PM, Khiem Nguyen wrote:
> Hi Simon,
>
> Thanks for your patch.
>
> On 10/15/2015 1:59 PM, Simon Horman wrote:
>> Boot mode register driver for R-Car Gen2.
>>
>> If running on a supported platform it reads the boot mode register and
>> records it using the boot mode register infrastructure established by an
>> earlier patch.
>>
>> rcar_gen2_init_boot_mode() is exported allow it to be explicitly called in
>> cases where the boot mode register is needed before init calls are made.
>>
>> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>

[snip]

>> +int __init rcar_gen2_init_boot_mode(void)
>> +{
>> +	if (of_machine_is_compatible("renesas,r8a7790") ||
>> +	    of_machine_is_compatible("renesas,r8a7791") ||
>> +	    of_machine_is_compatible("renesas,r8a7792") ||
>> +	    of_machine_is_compatible("renesas,r8a7793") ||
>> +	    of_machine_is_compatible("renesas,r8a7794"))
>> +		return rcar_gen2_read_mode_pins();
>> +
>> +	return 0;
>> +}
>> +EXPORT_SYMBOL_GPL(boot_mode_set);
>
> Could you tell me the purpose of this ?
> There's no such function name in this file.

Read again the commit log, this export symbol should be 
rcar_gen2_init_boot_mode.

>> +early_initcall(rcar_gen2_init_boot_mode);
>> +
>> +MODULE_LICENSE("GPL");
>
> The license should be GPLv2 to match with the paragraph at top of this
> file, right ?
>
>> +MODULE_AUTHOR("Simon Horman <horms@verge.net.au>");
>> +MODULE_DESCRIPTION("R-Car Gen2 Boot Mode Register Driver");
>> diff --git a/include/misc/boot-mode-reg.h b/include/misc/boot-mode-reg.h
>> index 34ee653279a4..f8fea0ea5a3e 100644
>> --- a/include/misc/boot-mode-reg.h
>> +++ b/include/misc/boot-mode-reg.h
>> @@ -21,4 +21,7 @@
>>    int boot_mode_reg_get(u32 *mode);
>>    int boot_mode_reg_set(u32 mode);
>>
>> +/* Allow explicit initialisation before initcalls */
>> +int rcar_gen2_init_boot_mode(void);
>> +
>>    #endif
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

  parent reply	other threads:[~2015-10-15  7:56 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-15  6:59 [PATCH/RFC 2/6] boot-mode-reg: Add R-Car Gen2 driver Simon Horman
2015-10-15  7:09 ` Geert Uytterhoeven
2015-10-15  7:34 ` Khiem Nguyen
2015-10-15  7:56 ` Khiem Nguyen [this message]
2015-10-15  7:59 ` Simon Horman
2015-10-15  8:00 ` Simon Horman
2015-10-23 12:37 ` Laurent Pinchart
2015-10-23 12:49 ` Laurent Pinchart
2015-10-24 17:46 ` Geert Uytterhoeven
2015-10-26  2:08 ` Laurent Pinchart
2015-10-26  5:50 ` Simon Horman
2015-10-30 15:47 ` Laurent Pinchart
2015-12-15  7:58 ` Simon Horman
2015-12-15  8:16 ` Geert Uytterhoeven
2015-12-15  8:59 ` Magnus Damm
2015-12-15  9:02 ` Geert Uytterhoeven
2015-12-16  4:32 ` Simon Horman
2015-12-16  7:40 ` Geert Uytterhoeven
2016-01-19  0:30 ` Simon Horman
2016-01-19  8:01 ` Geert Uytterhoeven
2016-01-19  9:27 ` Simon Horman

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=561F5C37.2030700@rvc.renesas.com \
    --to=khiem.nguyen.xt@rvc.renesas.com \
    --cc=linux-sh@vger.kernel.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.