diff mbox series

drivers/thunderbolt: Enable NVM upgrade support on Intel Maple Ridge

Message ID 20240405041152.38324-1-git@alextjam.es (mailing list archive)
State Accepted
Commit 9a966517a83090ee3e26e9a93a92523e2358c5b3
Headers show
Series drivers/thunderbolt: Enable NVM upgrade support on Intel Maple Ridge | expand

Commit Message

Alex James April 5, 2024, 4:11 a.m. UTC
Intel Maple Ridge supports NVM firmware upgrade with the same flows used
on previous discrete Thunderbolt contollers from Intel (such as Titan
Ridge). Advertise NVM upgrade support for Maple Ridge in icm_probe() to
expose the corresponding files in /sys/bus/thunderbolt. The NVM firmware
process was successfully tested on a system with a JHL8540 controller
(ASUS ProArt Z790-CREATOR).

Signed-off-by: Alex James <git@alextjam.es>
---
 drivers/thunderbolt/icm.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Mika Westerberg April 8, 2024, 4:49 a.m. UTC | #1
On Thu, Apr 04, 2024 at 11:11:52PM -0500, Alex James wrote:
> Intel Maple Ridge supports NVM firmware upgrade with the same flows used
> on previous discrete Thunderbolt contollers from Intel (such as Titan
> Ridge). Advertise NVM upgrade support for Maple Ridge in icm_probe() to
> expose the corresponding files in /sys/bus/thunderbolt. The NVM firmware
> process was successfully tested on a system with a JHL8540 controller
> (ASUS ProArt Z790-CREATOR).
> 
> Signed-off-by: Alex James <git@alextjam.es>

Applied to thunderbolt.git/next, thanks!
diff mbox series

Patch

diff --git a/drivers/thunderbolt/icm.c b/drivers/thunderbolt/icm.c
index baf10d099c77..7859bccc592d 100644
--- a/drivers/thunderbolt/icm.c
+++ b/drivers/thunderbolt/icm.c
@@ -2532,6 +2532,7 @@  struct tb *icm_probe(struct tb_nhi *nhi)
 
 	case PCI_DEVICE_ID_INTEL_MAPLE_RIDGE_2C_NHI:
 	case PCI_DEVICE_ID_INTEL_MAPLE_RIDGE_4C_NHI:
+		icm->can_upgrade_nvm = true;
 		icm->is_supported = icm_tgl_is_supported;
 		icm->get_mode = icm_ar_get_mode;
 		icm->driver_ready = icm_tr_driver_ready;