Patch "pinctrl: renesas: rzg2l: Limit 2.5V power supply to Ethernet interfaces" has been added to the 6.8-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    pinctrl: renesas: rzg2l: Limit 2.5V power supply to Ethernet interfaces

to the 6.8-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     pinctrl-renesas-rzg2l-limit-2.5v-power-supply-to-eth.patch
and it can be found in the queue-6.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 0979a34517ffa129690ab9800374bed40cba2e26
Author: Paul Barker <paul.barker.ct@xxxxxxxxxxxxxx>
Date:   Wed Apr 17 12:41:31 2024 +0100

    pinctrl: renesas: rzg2l: Limit 2.5V power supply to Ethernet interfaces
    
    [ Upstream commit cd27553b0dee6fdc4a2535ab9fc3c8fbdd811d13 ]
    
    The RZ/G3S SoC supports configurable supply voltages for several of its
    I/O interfaces. All of these interfaces support both 1.8V and 3.3V
    supplies, but only the Ethernet and XSPI interfaces support a 2.5V
    supply.
    
    Voltage selection for the XSPI interface is not yet supported, so this
    leaves only the Ethernet interfaces currently supporting selection of a
    2.5V supply. So we need to return an error if there is an attempt to
    select a 2.5V supply for any non-Ethernet interface.
    
    Fixes: 51996952b8b5 ("pinctrl: renesas: rzg2l: Add support to select power source for Ethernet pins")
    Signed-off-by: Paul Barker <paul.barker.ct@xxxxxxxxxxxxxx>
    Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
    Link: https://lore.kernel.org/r/20240417114132.6605-1-paul.barker.ct@xxxxxxxxxxxxxx
    Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/pinctrl/renesas/pinctrl-rzg2l.c b/drivers/pinctrl/renesas/pinctrl-rzg2l.c
index 01ef6921cb35c..5bbcb38f843a0 100644
--- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c
+++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c
@@ -668,6 +668,8 @@ static int rzg2l_set_power_source(struct rzg2l_pinctrl *pctrl, u32 pin, u32 caps
 		val = PVDD_1800;
 		break;
 	case 2500:
+		if (!(caps & (PIN_CFG_IO_VMC_ETH0 | PIN_CFG_IO_VMC_ETH1)))
+			return -EINVAL;
 		val = PVDD_2500;
 		break;
 	case 3300:




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux