Patch "media: tc358746: select CONFIG_GENERIC_PHY" has been added to the 6.4-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

    media: tc358746: select CONFIG_GENERIC_PHY

to the 6.4-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:
     media-tc358746-select-config_generic_phy.patch
and it can be found in the queue-6.4 subdirectory.

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



commit f2de585287ec030ed0e8779ad8ddf0b2522f4667
Author: Arnd Bergmann <arnd@xxxxxxxx>
Date:   Fri Jun 23 17:23:09 2023 +0200

    media: tc358746: select CONFIG_GENERIC_PHY
    
    [ Upstream commit 582d4ad468cbc6ef2db4689ff3bd5868d95402c9 ]
    
    The tc358746 driver selects CONFIG_GENERIC_PHY_MIPI_DPHY and links to
    that, but this fails when CONFIG_GENERIC_PHY is disabled, because Kbuild
    then never enters the drivers/phy directory for building object files:
    
    ERROR: modpost: "phy_mipi_dphy_get_default_config_for_hsclk" [drivers/media/i2c/tc358746.ko] undefined!
    
    Add an explicit 'select GENERIC_PHY' here to ensure that the directory
    is entered, and add another dependency on that symbol so make it
    more obvious what is going on if another driver has the same problem,
    as this will produce a Kconfig warning.
    
    Link: https://lore.kernel.org/linux-media/20230623152318.2276816-1-arnd@xxxxxxxxxx
    Fixes: 80a21da360516 ("media: tc358746: add Toshiba TC358746 Parallel to CSI-2 bridge driver")
    Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
    Reviewed-by: Marco Felsch <m.felsch@xxxxxxxxxxxxxx>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig
index 256d55bb2b1da..76d1ee3cc1bab 100644
--- a/drivers/media/i2c/Kconfig
+++ b/drivers/media/i2c/Kconfig
@@ -1292,6 +1292,7 @@ config VIDEO_TC358746
 	select VIDEO_V4L2_SUBDEV_API
 	select MEDIA_CONTROLLER
 	select V4L2_FWNODE
+	select GENERIC_PHY
 	select GENERIC_PHY_MIPI_DPHY
 	select REGMAP_I2C
 	help
diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig
index f46e3148d286d..8dba9596408f2 100644
--- a/drivers/phy/Kconfig
+++ b/drivers/phy/Kconfig
@@ -18,6 +18,7 @@ config GENERIC_PHY
 
 config GENERIC_PHY_MIPI_DPHY
 	bool
+	depends on GENERIC_PHY
 	help
 	  Generic MIPI D-PHY support.
 



[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