linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2] soc/tegra: pmc: Add wake source interrupt for MGBE
@ 2023-03-23 13:13 Sushil Singh
  2023-04-03 12:37 ` Thierry Reding
  0 siblings, 1 reply; 2+ messages in thread
From: Sushil Singh @ 2023-03-23 13:13 UTC (permalink / raw)
  To: treding, jonathanh, thierry.reding; +Cc: linux-tegra, vbhadram, sushilkumars

Add the GPIO wake interrupt for MGBE ethernet controller on Tegra234 SoC.

Signed-off-by: Sushil Singh <sushilkumars@nvidia.com>
---

Changes in v2:
Address Jonathan's comments
Rewrite the commit description
Use "mgbe" instead of "mgbe_wake"

 drivers/soc/tegra/pmc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra/pmc.c
index cf4cfbf..0f3c472 100644
--- a/drivers/soc/tegra/pmc.c
+++ b/drivers/soc/tegra/pmc.c
@@ -3,7 +3,7 @@
  * drivers/soc/tegra/pmc.c
  *
  * Copyright (c) 2010 Google, Inc
- * Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
  *
  * Author:
  *	Colin Cross <ccross@google.com>
@@ -4227,6 +4227,7 @@ static const char * const tegra234_reset_sources[] = {
 static const struct tegra_wake_event tegra234_wake_events[] = {
 	TEGRA_WAKE_GPIO("power", 29, 1, TEGRA234_AON_GPIO(EE, 4)),
 	TEGRA_WAKE_IRQ("rtc", 73, 10),
+	TEGRA_WAKE_GPIO("mgbe", 56, 0, TEGRA234_MAIN_GPIO(Y, 3)),
 };
 
 static const struct tegra_pmc_soc tegra234_pmc_soc = {
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH V2] soc/tegra: pmc: Add wake source interrupt for MGBE
  2023-03-23 13:13 [PATCH V2] soc/tegra: pmc: Add wake source interrupt for MGBE Sushil Singh
@ 2023-04-03 12:37 ` Thierry Reding
  0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2023-04-03 12:37 UTC (permalink / raw)
  To: Sushil Singh; +Cc: treding, jonathanh, linux-tegra, vbhadram

[-- Attachment #1: Type: text/plain, Size: 1325 bytes --]

On Thu, Mar 23, 2023 at 06:43:24PM +0530, Sushil Singh wrote:
> Add the GPIO wake interrupt for MGBE ethernet controller on Tegra234 SoC.
> 
> Signed-off-by: Sushil Singh <sushilkumars@nvidia.com>
> ---
> 
> Changes in v2:
> Address Jonathan's comments
> Rewrite the commit description
> Use "mgbe" instead of "mgbe_wake"
> 
>  drivers/soc/tegra/pmc.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra/pmc.c
> index cf4cfbf..0f3c472 100644
> --- a/drivers/soc/tegra/pmc.c
> +++ b/drivers/soc/tegra/pmc.c
> @@ -3,7 +3,7 @@
>   * drivers/soc/tegra/pmc.c
>   *
>   * Copyright (c) 2010 Google, Inc
> - * Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.
> + * Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
>   *
>   * Author:
>   *	Colin Cross <ccross@google.com>
> @@ -4227,6 +4227,7 @@ static const char * const tegra234_reset_sources[] = {
>  static const struct tegra_wake_event tegra234_wake_events[] = {
>  	TEGRA_WAKE_GPIO("power", 29, 1, TEGRA234_AON_GPIO(EE, 4)),
>  	TEGRA_WAKE_IRQ("rtc", 73, 10),
> +	TEGRA_WAKE_GPIO("mgbe", 56, 0, TEGRA234_MAIN_GPIO(Y, 3)),
>  };

Applied, though I did sort this into the right place (these are ordered
by wake number).

Thanks,
Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-03 12:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-23 13:13 [PATCH V2] soc/tegra: pmc: Add wake source interrupt for MGBE Sushil Singh
2023-04-03 12:37 ` Thierry Reding

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).