Patch "ARM: orion5x: fix d2net gpio initialization" 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

    ARM: orion5x: fix d2net gpio initialization

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:
     arm-orion5x-fix-d2net-gpio-initialization.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.


>From f8ef1233939495c405a9faa4bd1ae7d3f581bae4 Mon Sep 17 00:00:00 2001
From: Arnd Bergmann <arnd@xxxxxxxx>
Date: Tue, 16 May 2023 17:31:05 +0200
Subject: ARM: orion5x: fix d2net gpio initialization

From: Arnd Bergmann <arnd@xxxxxxxx>

commit f8ef1233939495c405a9faa4bd1ae7d3f581bae4 upstream.

The DT version of this board has a custom file with the gpio
device. However, it does nothing because the d2net_init()
has no caller or prototype:

arch/arm/mach-orion5x/board-d2net.c:101:13: error: no previous prototype for 'd2net_init'

Call it from the board-dt file as intended.

Fixes: 94b0bd366e36 ("ARM: orion5x: convert d2net to Device Tree")
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Cc: stable@xxxxxxxxxxxxxxx
Link: https://lore.kernel.org/r/20230516153109.514251-10-arnd@xxxxxxxxxx
Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 arch/arm/mach-orion5x/board-dt.c |    3 +++
 arch/arm/mach-orion5x/common.h   |    6 ++++++
 2 files changed, 9 insertions(+)

--- a/arch/arm/mach-orion5x/board-dt.c
+++ b/arch/arm/mach-orion5x/board-dt.c
@@ -60,6 +60,9 @@ static void __init orion5x_dt_init(void)
 	if (of_machine_is_compatible("maxtor,shared-storage-2"))
 		mss2_init();
 
+	if (of_machine_is_compatible("lacie,d2-network"))
+		d2net_init();
+
 	of_platform_default_populate(NULL, orion5x_auxdata_lookup, NULL);
 }
 
--- a/arch/arm/mach-orion5x/common.h
+++ b/arch/arm/mach-orion5x/common.h
@@ -73,6 +73,12 @@ extern void mss2_init(void);
 static inline void mss2_init(void) {}
 #endif
 
+#ifdef CONFIG_MACH_D2NET_DT
+void d2net_init(void);
+#else
+static inline void d2net_init(void) {}
+#endif
+
 /*****************************************************************************
  * Helpers to access Orion registers
  ****************************************************************************/


Patches currently in stable-queue which might be from arnd@xxxxxxxx are

queue-6.4/memstick-r592-make-memstick_debug_get_tpc_name-stati.patch
queue-6.4/arm-ep93xx-fix-missing-prototype-warnings.patch
queue-6.4/crypto-marvell-cesa-fix-type-mismatch-warning.patch
queue-6.4/drm-nouveau-dispnv50-fix-missing-prototypes-warning.patch
queue-6.4/usb-hide-unused-usbfs_notify_suspend-resume-function.patch
queue-6.4/powercap-rapl-fix-config_iosf_mbi-dependency.patch
queue-6.4/fs-pipe-reveal-missing-function-protoypes.patch
queue-6.4/arm-9303-1-kprobes-avoid-missing-declaration-warning.patch
queue-6.4/arm-omap2-fix-missing-tick_broadcast-prototype.patch
queue-6.4/media-tc358746-select-config_generic_phy.patch
queue-6.4/virt-sevguest-add-config_crypto-dependency.patch
queue-6.4/arm-orion5x-fix-d2net-gpio-initialization.patch
queue-6.4/ksmbd-avoid-field-overflow-warning.patch
queue-6.4/media-cec-i2c-ch7322-also-select-regmap.patch
queue-6.4/drm-amd-display-fix-is_timing_changed-prototype.patch
queue-6.4/autofs-use-flexible-array-in-ioctl-structure.patch
queue-6.4/rdma-irdma-avoid-fortify-string-warning-in-irdma_clr.patch
queue-6.4/staging-vchiq_arm-mark-vchiq_platform_init-static.patch



[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