Merge branch 'next'
diff --git a/Makefile b/Makefile
index c80b321..45f1075 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
 VERSION = 2022
 PATCHLEVEL = 10
 SUBLEVEL =
-EXTRAVERSION = -rc5
+EXTRAVERSION =
 NAME =
 
 # *DOCUMENTATION*
diff --git a/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi b/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi
index 78773c1..3a9ba8b 100644
--- a/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi
+++ b/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi
@@ -26,6 +26,10 @@
 	u-boot,dm-spl;
 };
 
+&spba1 {
+	u-boot,dm-spl;
+};
+
 &clk {
 	u-boot,dm-spl;
 	u-boot,dm-pre-reloc;
diff --git a/arch/arm/dts/imx8mn-venice-u-boot.dtsi b/arch/arm/dts/imx8mn-venice-u-boot.dtsi
index 9fb3871..9debf96 100644
--- a/arch/arm/dts/imx8mn-venice-u-boot.dtsi
+++ b/arch/arm/dts/imx8mn-venice-u-boot.dtsi
@@ -20,6 +20,10 @@
 	u-boot,dm-spl;
 };
 
+&spba1 {
+	u-boot,dm-spl;
+};
+
 &clk {
 	u-boot,dm-spl;
 	u-boot,dm-pre-reloc;
diff --git a/board/armltd/vexpress64/lowlevel_init.S b/board/armltd/vexpress64/lowlevel_init.S
index 3dcfb85..68ca3f2 100644
--- a/board/armltd/vexpress64/lowlevel_init.S
+++ b/board/armltd/vexpress64/lowlevel_init.S
@@ -7,6 +7,6 @@
 save_boot_params:
 
 	adr	x8, prior_stage_fdt_address
-	str	x0, [x8]
+	stp	x0, x1, [x8]
 
 	b	save_boot_params_ret
diff --git a/board/armltd/vexpress64/vexpress64.c b/board/armltd/vexpress64/vexpress64.c
index 05a7a25..af326dc 100644
--- a/board/armltd/vexpress64/vexpress64.c
+++ b/board/armltd/vexpress64/vexpress64.c
@@ -100,7 +100,7 @@
  * Push the variable into the .data section so that it
  * does not get cleared later.
  */
-unsigned long __section(".data") prior_stage_fdt_address;
+unsigned long __section(".data") prior_stage_fdt_address[2];
 
 #ifdef CONFIG_OF_BOARD
 
@@ -151,6 +151,23 @@
 }
 #endif
 
+/*
+ * Filter for a valid DTB, as TF-A happens to provide a pointer to some
+ * data structure using the DTB format, which we cannot use.
+ * The address of the DTB cannot be 0, in fact this is the reserved value
+ * for x1 in the kernel boot protocol.
+ * And while the nt_fw_config.dtb used by TF-A is a valid DTB structure, it
+ * does not contain the typical nodes and properties, which we test for by
+ * probing for the mandatory /memory node.
+ */
+static bool is_valid_dtb(uintptr_t dtb_ptr)
+{
+	if (dtb_ptr == 0 || fdt_magic(dtb_ptr) != FDT_MAGIC)
+		return false;
+
+	return fdt_subnode_offset((void *)dtb_ptr, 0, "memory") >= 0;
+}
+
 void *board_fdt_blob_setup(int *err)
 {
 #ifdef CONFIG_TARGET_VEXPRESS64_JUNO
@@ -172,10 +189,12 @@
 	}
 #endif
 
-	if (fdt_magic(prior_stage_fdt_address) == FDT_MAGIC &&
-	    fdt_totalsize(prior_stage_fdt_address) > 0x100) {
+	if (is_valid_dtb(prior_stage_fdt_address[1])) {
 		*err = 0;
-		return (void *)prior_stage_fdt_address;
+		return (void *)prior_stage_fdt_address[1];
+	} else if (is_valid_dtb(prior_stage_fdt_address[0])) {
+		*err = 0;
+		return (void *)prior_stage_fdt_address[0];
 	}
 
 	if (fdt_magic(gd->fdt_blob) == FDT_MAGIC) {
diff --git a/board/ti/common/board_detect.c b/board/ti/common/board_detect.c
index 9fa7b7b..c37629f 100644
--- a/board/ti/common/board_detect.c
+++ b/board/ti/common/board_detect.c
@@ -444,6 +444,16 @@
 	if (rc)
 		return rc;
 
+	/*
+	 * Handle case of bad 2 byte eeproms that responds to 1 byte addressing
+	 * but gets stuck in const addressing when read requests are performed
+	 * on offsets. We re-read the board ID to ensure we have sane data back
+	 */
+	rc = ti_i2c_eeprom_get(bus_addr, dev_addr, TI_EEPROM_HEADER_MAGIC,
+			       sizeof(board_id), (uint8_t *)&board_id);
+	if (rc)
+		return rc;
+
 	if (board_id.header.id != TI_AM6_EEPROM_RECORD_BOARD_ID) {
 		pr_err("%s: Invalid board ID record!\n", __func__);
 		return -EINVAL;
diff --git a/cmd/pci.c b/cmd/pci.c
index 6258699..58a7475 100644
--- a/cmd/pci.c
+++ b/cmd/pci.c
@@ -452,7 +452,6 @@
 	{ PCI_REGION_PREFETCH, "prefetch" },
 	{ PCI_REGION_SYS_MEMORY, "sysmem" },
 	{ PCI_REGION_RO, "readonly" },
-	{ PCI_REGION_IO, "io" },
 };
 
 static void pci_show_regions(struct udevice *bus)
diff --git a/common/autoboot.c b/common/autoboot.c
index 63f2587..cdafe76 100644
--- a/common/autoboot.c
+++ b/common/autoboot.c
@@ -115,6 +115,7 @@
 				presskey_len++;
 			}
 		}
+		udelay(10000);
 	} while (never_timeout || get_ticks() <= etime);
 
 	return abort;
@@ -206,6 +207,7 @@
 			if (slow_equals(sha, sha_env, SHA256_SUM_LEN))
 				abort = 1;
 		}
+		udelay(10000);
 	} while (!abort && get_ticks() <= etime);
 
 	free(presskey);
@@ -293,6 +295,7 @@
 				abort = 1;
 			}
 		}
+		udelay(10000);
 	} while (!abort && get_ticks() <= etime);
 
 	return abort;
diff --git a/common/board_r.c b/common/board_r.c
index 6e1ad2b..92ca206 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -151,13 +151,13 @@
 	 */
 	gd->env_addr += gd->reloc_off;
 #endif
-#ifdef CONFIG_OF_EMBED
 	/*
 	 * The fdt_blob needs to be moved to new relocation address
 	 * incase of FDT blob is embedded with in image
 	 */
-	gd->fdt_blob += gd->reloc_off;
-#endif
+	if (CONFIG_IS_ENABLED(OF_EMBED) && CONFIG_IS_ENABLED(NEEDS_MANUAL_RELOC))
+		gd->fdt_blob += gd->reloc_off;
+
 #ifdef CONFIG_EFI_LOADER
 	/*
 	 * On the ARM architecture gd is mapped to a fixed register (r9 or x18).
diff --git a/configs/evb-px30_defconfig b/configs/evb-px30_defconfig
index 240a044..4f88879 100644
--- a/configs/evb-px30_defconfig
+++ b/configs/evb-px30_defconfig
@@ -17,7 +17,6 @@
 CONFIG_DEBUG_UART_BASE=0xFF160000
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_SYS_LOAD_ADDR=0x800800
-CONFIG_TPL_MAX_SIZE=0x20000
 CONFIG_DEBUG_UART=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x400000
diff --git a/configs/evb-px5_defconfig b/configs/evb-px5_defconfig
index 8112b42..40df289 100644
--- a/configs/evb-px5_defconfig
+++ b/configs/evb-px5_defconfig
@@ -19,7 +19,6 @@
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
 CONFIG_SYS_LOAD_ADDR=0x800800
-CONFIG_TPL_MAX_SIZE=0x40000
 CONFIG_DEBUG_UART=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x300000
diff --git a/configs/evb-rk3229_defconfig b/configs/evb-rk3229_defconfig
index c8833e6..442f504 100644
--- a/configs/evb-rk3229_defconfig
+++ b/configs/evb-rk3229_defconfig
@@ -17,7 +17,6 @@
 CONFIG_DEBUG_UART_BASE=0x11030000
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_SYS_LOAD_ADDR=0x61800800
-CONFIG_TPL_MAX_SIZE=0x100000
 CONFIG_DEBUG_UART=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x61100000
diff --git a/configs/evb-rk3328_defconfig b/configs/evb-rk3328_defconfig
index 251cc3f..2782a39 100644
--- a/configs/evb-rk3328_defconfig
+++ b/configs/evb-rk3328_defconfig
@@ -16,7 +16,6 @@
 CONFIG_DEBUG_UART_BASE=0xFF130000
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_SYS_LOAD_ADDR=0x800800
-CONFIG_TPL_MAX_SIZE=0x40000
 CONFIG_DEBUG_UART=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x300000
diff --git a/configs/firefly-px30_defconfig b/configs/firefly-px30_defconfig
index 4bc2031..1717eb2 100644
--- a/configs/firefly-px30_defconfig
+++ b/configs/firefly-px30_defconfig
@@ -18,7 +18,6 @@
 CONFIG_DEBUG_UART_BASE=0xFF160000
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_SYS_LOAD_ADDR=0x800800
-CONFIG_TPL_MAX_SIZE=0x20000
 CONFIG_DEBUG_UART=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x400000
diff --git a/configs/lion-rk3368_defconfig b/configs/lion-rk3368_defconfig
index 5f7c5a0..33cd0c3 100644
--- a/configs/lion-rk3368_defconfig
+++ b/configs/lion-rk3368_defconfig
@@ -18,7 +18,6 @@
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
 CONFIG_SYS_LOAD_ADDR=0x800800
-CONFIG_TPL_MAX_SIZE=0x40000
 CONFIG_DEBUG_UART=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x300000
diff --git a/configs/nanopi-r2s-rk3328_defconfig b/configs/nanopi-r2s-rk3328_defconfig
index 4dfb778..86f5e11 100644
--- a/configs/nanopi-r2s-rk3328_defconfig
+++ b/configs/nanopi-r2s-rk3328_defconfig
@@ -16,7 +16,6 @@
 CONFIG_DEBUG_UART_BASE=0xFF130000
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_SYS_LOAD_ADDR=0x800800
-CONFIG_TPL_MAX_SIZE=0x40000
 CONFIG_DEBUG_UART=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x300000
diff --git a/configs/odroid-go2_defconfig b/configs/odroid-go2_defconfig
index f8e4322..c0c0c4d 100644
--- a/configs/odroid-go2_defconfig
+++ b/configs/odroid-go2_defconfig
@@ -20,7 +20,6 @@
 CONFIG_DEBUG_UART_BASE=0xFF160000
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_SYS_LOAD_ADDR=0x800800
-CONFIG_TPL_MAX_SIZE=0x20000
 CONFIG_DEBUG_UART=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x400000
diff --git a/configs/px30-core-ctouch2-of10-px30_defconfig b/configs/px30-core-ctouch2-of10-px30_defconfig
index 625460b..2fb8bd8 100644
--- a/configs/px30-core-ctouch2-of10-px30_defconfig
+++ b/configs/px30-core-ctouch2-of10-px30_defconfig
@@ -18,7 +18,6 @@
 CONFIG_DEBUG_UART_BASE=0xFF160000
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_SYS_LOAD_ADDR=0x800800
-CONFIG_TPL_MAX_SIZE=0x20000
 CONFIG_DEBUG_UART=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x400000
diff --git a/configs/px30-core-ctouch2-px30_defconfig b/configs/px30-core-ctouch2-px30_defconfig
index bca4698..76f81ae 100644
--- a/configs/px30-core-ctouch2-px30_defconfig
+++ b/configs/px30-core-ctouch2-px30_defconfig
@@ -18,7 +18,6 @@
 CONFIG_DEBUG_UART_BASE=0xFF160000
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_SYS_LOAD_ADDR=0x800800
-CONFIG_TPL_MAX_SIZE=0x20000
 CONFIG_DEBUG_UART=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x400000
diff --git a/configs/px30-core-edimm2.2-px30_defconfig b/configs/px30-core-edimm2.2-px30_defconfig
index c13af93..8493500 100644
--- a/configs/px30-core-edimm2.2-px30_defconfig
+++ b/configs/px30-core-edimm2.2-px30_defconfig
@@ -18,7 +18,6 @@
 CONFIG_DEBUG_UART_BASE=0xFF160000
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_SYS_LOAD_ADDR=0x800800
-CONFIG_TPL_MAX_SIZE=0x20000
 CONFIG_DEBUG_UART=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x400000
diff --git a/configs/roc-cc-rk3328_defconfig b/configs/roc-cc-rk3328_defconfig
index 8e2e530..8ba5034 100644
--- a/configs/roc-cc-rk3328_defconfig
+++ b/configs/roc-cc-rk3328_defconfig
@@ -16,7 +16,6 @@
 CONFIG_DEBUG_UART_BASE=0xFF130000
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_SYS_LOAD_ADDR=0x800800
-CONFIG_TPL_MAX_SIZE=0x40000
 CONFIG_DEBUG_UART=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x300000
diff --git a/configs/rock-pi-e-rk3328_defconfig b/configs/rock-pi-e-rk3328_defconfig
index 9831670..fb5eac3 100644
--- a/configs/rock-pi-e-rk3328_defconfig
+++ b/configs/rock-pi-e-rk3328_defconfig
@@ -17,7 +17,6 @@
 CONFIG_DEBUG_UART_BASE=0xFF130000
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_SYS_LOAD_ADDR=0x800800
-CONFIG_TPL_MAX_SIZE=0x40000
 CONFIG_DEBUG_UART=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x300000
diff --git a/configs/rock64-rk3328_defconfig b/configs/rock64-rk3328_defconfig
index 9ca6f3a..b055dd0 100644
--- a/configs/rock64-rk3328_defconfig
+++ b/configs/rock64-rk3328_defconfig
@@ -16,7 +16,6 @@
 CONFIG_DEBUG_UART_BASE=0xFF130000
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_SYS_LOAD_ADDR=0x800800
-CONFIG_TPL_MAX_SIZE=0x40000
 CONFIG_DEBUG_UART=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x300000
diff --git a/doc/develop/release_cycle.rst b/doc/develop/release_cycle.rst
index 7d8a610..0bca301 100644
--- a/doc/develop/release_cycle.rst
+++ b/doc/develop/release_cycle.rst
@@ -48,11 +48,12 @@
 Current Status
 --------------
 
-* U-Boot v2022.07 was released on Mon 11 July 2022.
+* U-Boot v2022.10 was released on Mon 03 October 2022.
 
-* The Merge Window for the next release (v2022.10) is **closed**.
+* The Merge Window for the next release (v2023.01) is **open** until -rc1
+  release on Mon 24 October 2022.
 
-* Release "v2022.10" is scheduled for 03 Oct 2022.
+* Release "v2023.01" is scheduled for 09 January 2023.
 
 Future Releases
 ---------------
@@ -60,29 +61,31 @@
 .. The following commented out dates are for when release candidates are
    planned to be tagged.
 
-For the next scheduled release, release candidates were made on::
+.. For the next scheduled release, release candidates were made on::
 
-* U-Boot v2022.10-rc1 was released on Mon 25 July 2022.
+.. * U-Boot v2023.01-rc1 was released on Mon 24 October 2022.
 
-* U-Boot v2022.10-rc2 was released on Mon 08 August 2022.
+.. * U-Boot v2023.01-rc2 was released on Mon 07 November 2022.
 
-* U-Boot v2022.10-rc3 was released on Mon 22 August 2022.
+.. * U-Boot v2023.01-rc3 was released on Mon 21 November 2022.
 
-* U-Boot v2022.10-rc4 was released on Mon 05 September 2022.
+.. * U-Boot v2023.01-rc4 was released on Mon 05 December 2022.
 
-* U-Boot v2022.10-rc5 was released on Mon 19 September 2022.
+.. * U-Boot v2023.01-rc5 was released on Mon 19 December 2022.
+
+.. * U-Boot v2023.01-rc6 was released on Mon 02 January 2023.
 
 Please note that the following dates are planned only and may be deviated from
 as needed.
 
-* "v2022.10": end of MW = Mon, Jul 25, 2022; release = Mon, Oct 03, 2022
-
 * "v2023.01": end of MW = Mon, Oct 24, 2022; release = Mon, Jan 09, 2023
 
 * "v2023.04": end of MW = Mon, Jan 30, 2022; release = Mon, Apr 03, 2023
 
 * "v2023.07": end of MW = Mon, Apr 24, 2023; release = Mon, Jul 03, 2023 
 
+* "v2023.10": end of MW = Mon, Jul 24, 2023; release = Mon, Oct 02, 2023
+
 Previous Releases
 -----------------
 
@@ -90,6 +93,8 @@
 <https://source.denx.de/u-boot/gitdm>`_, which was originally created by
 Jonathan Corbet.
 
+* :doc:`statistics/u-boot-stats-v2022.10` which was released on 03 October 2022.
+
 * :doc:`statistics/u-boot-stats-v2022.07` which was released on 11 July 2022.
 
 * :doc:`statistics/u-boot-stats-v2022.04` which was released on 04 April 2022.
diff --git a/doc/develop/statistics/u-boot-stats-v2022.10.rst b/doc/develop/statistics/u-boot-stats-v2022.10.rst
new file mode 100644
index 0000000..0693d68
--- /dev/null
+++ b/doc/develop/statistics/u-boot-stats-v2022.10.rst
@@ -0,0 +1,727 @@
+:orphan:
+
+Release Statistics for U-Boot v2022.10
+======================================
+
+* Processed 1521 csets from 151 developers
+
+* 25 employers found
+
+* A total of 162770 lines added, 76810 removed (delta 85960)
+
+.. table:: Developers with the most changesets
+   :widths: auto
+
+   ====================================  =====
+   Name                                  Count
+   ====================================  =====
+   Tom Rini                              265 (17.4%)
+   Pali Rohár                            133 (8.7%)
+   Simon Glass                           110 (7.2%)
+   Heinrich Schuchardt                   58 (3.8%)
+   Patrick Delaunay                      56 (3.7%)
+   Peng Fan                              55 (3.6%)
+   Michal Simek                          51 (3.4%)
+   Sean Anderson                         50 (3.3%)
+   Stefan Herbrechtsmeier                41 (2.7%)
+   Marcel Ziswiler                       31 (2.0%)
+   Michael Walle                         31 (2.0%)
+   Joel Stanley                          28 (1.8%)
+   Weijie Gao                            26 (1.7%)
+   Andrew Scull                          25 (1.6%)
+   Marek Vasut                           24 (1.6%)
+   Quentin Schulz                        23 (1.5%)
+   Etienne Carriere                      20 (1.3%)
+   Michael Trimarchi                     17 (1.1%)
+   Rasmus Villemoes                      17 (1.1%)
+   Ovidiu Panait                         17 (1.1%)
+   Ashok Reddy Soma                      15 (1.0%)
+   Oleksandr Suvorov                     14 (0.9%)
+   Ye Li                                 14 (0.9%)
+   Samuel Holland                        14 (0.9%)
+   Andrew Davis                          13 (0.9%)
+   T Karthik Reddy                       13 (0.9%)
+   Jim Liu                               12 (0.8%)
+   Chris Packham                         12 (0.8%)
+   Alper Nebi Yasak                      12 (0.8%)
+   Vaishnav Achath                       12 (0.8%)
+   Fabio Estevam                         10 (0.7%)
+   Sumit Garg                            9 (0.6%)
+   Nick Hawkins                          9 (0.6%)
+   Andre Przywara                        8 (0.5%)
+   Marek Behún                           8 (0.5%)
+   Jesse Taube                           8 (0.5%)
+   Patrice Chotard                       7 (0.5%)
+   Francesco Dolcini                     7 (0.5%)
+   Sughosh Ganu                          7 (0.5%)
+   Mamta Shukla                          7 (0.5%)
+   Stefan Roese                          6 (0.4%)
+   Tim Harvey                            6 (0.4%)
+   Masahisa Kojima                       6 (0.4%)
+   Eugen Hristev                         6 (0.4%)
+   Suman Anna                            6 (0.4%)
+   Nishanth Menon                        5 (0.3%)
+   Heiko Thiery                          5 (0.3%)
+   Vignesh Raghavendra                   5 (0.3%)
+   Philippe Schenker                     5 (0.3%)
+   Robert Marko                          5 (0.3%)
+   Rui Miguel Silva                      5 (0.3%)
+   Georgi Vlaev                          5 (0.3%)
+   Aswath Govindraju                     5 (0.3%)
+   Loic Poulain                          5 (0.3%)
+   Pierre-Clément Tosi                   4 (0.3%)
+   Michal Suchanek                       4 (0.3%)
+   Philip Oberfichtner                   4 (0.3%)
+   JaimeLiao                             4 (0.3%)
+   Angus Ainslie                         3 (0.2%)
+   Tony Dinh                             3 (0.2%)
+   Alain Volmat                          3 (0.2%)
+   Icenowy Zheng                         3 (0.2%)
+   John Keeping                          3 (0.2%)
+   Lee Jones                             3 (0.2%)
+   Geert Uytterhoeven                    3 (0.2%)
+   Paul Barker                           3 (0.2%)
+   Nikita Shubin                         3 (0.2%)
+   Kunihiko Hayashi                      3 (0.2%)
+   Ying-Chun Liu (PaulLiu)               3 (0.2%)
+   Alice Guo                             3 (0.2%)
+   Julien Panis                          3 (0.2%)
+   Sergiu Moga                           3 (0.2%)
+   Anthoine Bourgeois                    3 (0.2%)
+   Derald D. Woods                       3 (0.2%)
+   Johannes Schneider                    2 (0.1%)
+   Denys Drozdov                         2 (0.1%)
+   Gaurav Jain                           2 (0.1%)
+   Jorge Ramirez-Ortiz                   2 (0.1%)
+   Jose Marinho                          2 (0.1%)
+   Daniel Golle                          2 (0.1%)
+   Matwey V. Kornilov                    2 (0.1%)
+   Neil Armstrong                        2 (0.1%)
+   Kory Maincent                         2 (0.1%)
+   Dmytro Firsov                         2 (0.1%)
+   Chia-Wei Wang                         2 (0.1%)
+   Alexander Dahl                        2 (0.1%)
+   Matt Ranostay                         2 (0.1%)
+   Janne Grunau                          2 (0.1%)
+   Eddie James                           2 (0.1%)
+   Jan Kiszka                            2 (0.1%)
+   Ilias Apalodimas                      1 (0.1%)
+   Miaoqian Lin                          1 (0.1%)
+   Pankaj Raghav                         1 (0.1%)
+   Alison Huffman                        1 (0.1%)
+   Adam Ford                             1 (0.1%)
+   Michal Vasilek                        1 (0.1%)
+   Leo Yu-Chi Liang                      1 (0.1%)
+   Siarhei Yasinski                      1 (0.1%)
+   Ramon Fried                           1 (0.1%)
+   Jessica Clarke                        1 (0.1%)
+   Johan Jonker                          1 (0.1%)
+   Han Pengfei                           1 (0.1%)
+   qianfan Zhao                          1 (0.1%)
+   Mark Kettenis                         1 (0.1%)
+   Roger Knecht                          1 (0.1%)
+   Dario Binacchi                        1 (0.1%)
+   Sergei Antonov                        1 (0.1%)
+   Hector Martin                         1 (0.1%)
+   Holger Brunck                         1 (0.1%)
+   Dhananjay Phadke                      1 (0.1%)
+   Billy Tsai                            1 (0.1%)
+   AKASHI Takahiro                       1 (0.1%)
+   Camelia Groza                         1 (0.1%)
+   Joao Marcos Costa                     1 (0.1%)
+   Milan P. Stanić                       1 (0.1%)
+   Zev Weiss                             1 (0.1%)
+   Christophe Leroy                      1 (0.1%)
+   Andre Kalb                            1 (0.1%)
+   Jerome Brunet                         1 (0.1%)
+   Harald Seiler                         1 (0.1%)
+   Vyacheslav Bocharov                   1 (0.1%)
+   Martin Bonner                         1 (0.1%)
+   Konstantin Porotchkin                 1 (0.1%)
+   Jian Li                               1 (0.1%)
+   Martyn Welch                          1 (0.1%)
+   Jun Nie                               1 (0.1%)
+   Douglas Anderson                      1 (0.1%)
+   Siva Durga Prasad Paladugu            1 (0.1%)
+   Adrian Fiergolski                     1 (0.1%)
+   Ayan Kumar Halder                     1 (0.1%)
+   Yogesh Siraswar                       1 (0.1%)
+   Stephan Gerhold                       1 (0.1%)
+   Anand Gadiyar                         1 (0.1%)
+   Ramin Zaghi                           1 (0.1%)
+   Josua Mayer                           1 (0.1%)
+   Paul Doelle                           1 (0.1%)
+   Philippe Boos                         1 (0.1%)
+   Vincent Stehlé                        1 (0.1%)
+   Jae Hyun Yoo                          1 (0.1%)
+   Markus Hoffrogge                      1 (0.1%)
+   Johann Neuhauser                      1 (0.1%)
+   Lionel Debieve                        1 (0.1%)
+   Ralph Siemsen                         1 (0.1%)
+   Rafał Miłecki                         1 (0.1%)
+   Rogier Stam                           1 (0.1%)
+   Bryan Brattlof                        1 (0.1%)
+   Mihai Sain                            1 (0.1%)
+   Amit Kumar Mahapatra                  1 (0.1%)
+   Alison Wang                           1 (0.1%)
+   William Zhang                         1 (0.1%)
+   Judy Wang                             1 (0.1%)
+   ====================================  =====
+
+
+.. table:: Developers with the most changed lines
+   :widths: auto
+
+   ====================================  =====
+   Name                                  Count
+   ====================================  =====
+   Tom Rini                              98915 (47.3%)
+   Marcel Ziswiler                       19704 (9.4%)
+   Peng Fan                              8817 (4.2%)
+   Simon Glass                           7600 (3.6%)
+   Stefan Herbrechtsmeier                6191 (3.0%)
+   Jim Liu                               6080 (2.9%)
+   Weijie Gao                            5883 (2.8%)
+   Angus Ainslie                         5426 (2.6%)
+   Rui Miguel Silva                      4502 (2.2%)
+   Pali Rohár                            4121 (2.0%)
+   Patrick Delaunay                      3695 (1.8%)
+   Jesse Taube                           2771 (1.3%)
+   Ye Li                                 2675 (1.3%)
+   Nishanth Menon                        2621 (1.3%)
+   Marek Vasut                           2401 (1.1%)
+   Michal Simek                          2303 (1.1%)
+   Sean Anderson                         2264 (1.1%)
+   Suman Anna                            1842 (0.9%)
+   Sumit Garg                            1431 (0.7%)
+   Michael Trimarchi                     1353 (0.6%)
+   Andrew Scull                          1093 (0.5%)
+   Holger Brunck                         1089 (0.5%)
+   Heinrich Schuchardt                   969 (0.5%)
+   Ovidiu Panait                         895 (0.4%)
+   Nick Hawkins                          883 (0.4%)
+   Etienne Carriere                      858 (0.4%)
+   T Karthik Reddy                       778 (0.4%)
+   Fabio Estevam                         655 (0.3%)
+   Samuel Holland                        619 (0.3%)
+   Vignesh Raghavendra                   586 (0.3%)
+   Michael Walle                         509 (0.2%)
+   Alper Nebi Yasak                      420 (0.2%)
+   Andrew Davis                          395 (0.2%)
+   Anthoine Bourgeois                    394 (0.2%)
+   Mamta Shukla                          376 (0.2%)
+   Loic Poulain                          364 (0.2%)
+   Francesco Dolcini                     360 (0.2%)
+   Robert Marko                          350 (0.2%)
+   Quentin Schulz                        337 (0.2%)
+   Joel Stanley                          318 (0.2%)
+   William Zhang                         315 (0.2%)
+   Philip Oberfichtner                   302 (0.1%)
+   Chris Packham                         297 (0.1%)
+   Vaishnav Achath                       285 (0.1%)
+   Ashok Reddy Soma                      235 (0.1%)
+   Milan P. Stanić                       230 (0.1%)
+   Rasmus Villemoes                      211 (0.1%)
+   Oleksandr Suvorov                     200 (0.1%)
+   Sughosh Ganu                          199 (0.1%)
+   Ramon Fried                           183 (0.1%)
+   Andre Przywara                        182 (0.1%)
+   Stefan Roese                          178 (0.1%)
+   JaimeLiao                             176 (0.1%)
+   Tim Harvey                            163 (0.1%)
+   Philippe Boos                         146 (0.1%)
+   Eugen Hristev                         143 (0.1%)
+   Icenowy Zheng                         143 (0.1%)
+   Neil Armstrong                        134 (0.1%)
+   Chia-Wei Wang                         132 (0.1%)
+   Matwey V. Kornilov                    131 (0.1%)
+   Philippe Schenker                     127 (0.1%)
+   Jose Marinho                          111 (0.1%)
+   Alice Guo                             110 (0.1%)
+   Tony Dinh                             109 (0.1%)
+   Christophe Leroy                      104 (0.0%)
+   Paul Doelle                           90 (0.0%)
+   Michal Suchanek                       79 (0.0%)
+   Geert Uytterhoeven                    71 (0.0%)
+   Georgi Vlaev                          69 (0.0%)
+   Gaurav Jain                           68 (0.0%)
+   Rafał Miłecki                         67 (0.0%)
+   Marek Behún                           66 (0.0%)
+   Ying-Chun Liu (PaulLiu)               62 (0.0%)
+   Matt Ranostay                         61 (0.0%)
+   Camelia Groza                         55 (0.0%)
+   Dhananjay Phadke                      51 (0.0%)
+   Patrice Chotard                       50 (0.0%)
+   Masahisa Kojima                       47 (0.0%)
+   Lionel Debieve                        47 (0.0%)
+   Julien Panis                          45 (0.0%)
+   Heiko Thiery                          43 (0.0%)
+   Aswath Govindraju                     40 (0.0%)
+   Sergiu Moga                           40 (0.0%)
+   Dmytro Firsov                         36 (0.0%)
+   Eddie James                           34 (0.0%)
+   Kory Maincent                         32 (0.0%)
+   Ayan Kumar Halder                     30 (0.0%)
+   Jan Kiszka                            28 (0.0%)
+   Lee Jones                             26 (0.0%)
+   Martin Bonner                         26 (0.0%)
+   Pierre-Clément Tosi                   24 (0.0%)
+   Paul Barker                           23 (0.0%)
+   Alexander Dahl                        21 (0.0%)
+   John Keeping                          20 (0.0%)
+   Janne Grunau                          20 (0.0%)
+   Hector Martin                         20 (0.0%)
+   Jian Li                               20 (0.0%)
+   Douglas Anderson                      19 (0.0%)
+   Yogesh Siraswar                       19 (0.0%)
+   Kunihiko Hayashi                      18 (0.0%)
+   Daniel Golle                          15 (0.0%)
+   Harald Seiler                         15 (0.0%)
+   Adrian Fiergolski                     15 (0.0%)
+   Derald D. Woods                       14 (0.0%)
+   Johannes Schneider                    14 (0.0%)
+   Leo Yu-Chi Liang                      14 (0.0%)
+   Jessica Clarke                        14 (0.0%)
+   Stephan Gerhold                       14 (0.0%)
+   Alison Wang                           14 (0.0%)
+   Siva Durga Prasad Paladugu            12 (0.0%)
+   Josua Mayer                           12 (0.0%)
+   Rogier Stam                           12 (0.0%)
+   Alain Volmat                          11 (0.0%)
+   Nikita Shubin                         11 (0.0%)
+   AKASHI Takahiro                       11 (0.0%)
+   Bryan Brattlof                        11 (0.0%)
+   Andre Kalb                            10 (0.0%)
+   Jae Hyun Yoo                          10 (0.0%)
+   Jun Nie                               9 (0.0%)
+   Judy Wang                             9 (0.0%)
+   Johan Jonker                          8 (0.0%)
+   Jorge Ramirez-Ortiz                   7 (0.0%)
+   Ilias Apalodimas                      7 (0.0%)
+   Siarhei Yasinski                      7 (0.0%)
+   Dario Binacchi                        7 (0.0%)
+   Vyacheslav Bocharov                   7 (0.0%)
+   Denys Drozdov                         6 (0.0%)
+   Michal Vasilek                        6 (0.0%)
+   Jerome Brunet                         6 (0.0%)
+   Mihai Sain                            6 (0.0%)
+   Vincent Stehlé                        5 (0.0%)
+   Miaoqian Lin                          4 (0.0%)
+   Adam Ford                             4 (0.0%)
+   Alison Huffman                        3 (0.0%)
+   Konstantin Porotchkin                 3 (0.0%)
+   Ralph Siemsen                         3 (0.0%)
+   Pankaj Raghav                         2 (0.0%)
+   Han Pengfei                           2 (0.0%)
+   Zev Weiss                             2 (0.0%)
+   Johann Neuhauser                      2 (0.0%)
+   qianfan Zhao                          1 (0.0%)
+   Mark Kettenis                         1 (0.0%)
+   Roger Knecht                          1 (0.0%)
+   Sergei Antonov                        1 (0.0%)
+   Billy Tsai                            1 (0.0%)
+   Joao Marcos Costa                     1 (0.0%)
+   Martyn Welch                          1 (0.0%)
+   Anand Gadiyar                         1 (0.0%)
+   Ramin Zaghi                           1 (0.0%)
+   Markus Hoffrogge                      1 (0.0%)
+   Amit Kumar Mahapatra                  1 (0.0%)
+   ====================================  =====
+
+
+.. table:: Developers with the most lines removed
+   :widths: auto
+
+   ====================================  =====
+   Name                                  Count
+   ====================================  =====
+   Marek Vasut                           1245 (1.6%)
+   Holger Brunck                         1086 (1.4%)
+   Chris Packham                         213 (0.3%)
+   Samuel Holland                        206 (0.3%)
+   Francesco Dolcini                     186 (0.2%)
+   Icenowy Zheng                         34 (0.0%)
+   Ayan Kumar Halder                     30 (0.0%)
+   Eugen Hristev                         12 (0.0%)
+   Andre Przywara                        11 (0.0%)
+   AKASHI Takahiro                       9 (0.0%)
+   Heiko Thiery                          7 (0.0%)
+   Alexander Dahl                        7 (0.0%)
+   Daniel Golle                          6 (0.0%)
+   Bryan Brattlof                        6 (0.0%)
+   Denys Drozdov                         6 (0.0%)
+   Derald D. Woods                       3 (0.0%)
+   Jerome Brunet                         3 (0.0%)
+   Alain Volmat                          2 (0.0%)
+   Pankaj Raghav                         2 (0.0%)
+   Johann Neuhauser                      2 (0.0%)
+   Anand Gadiyar                         1 (0.0%)
+   ====================================  =====
+
+
+.. table:: Developers with the most signoffs (total 266)
+   :widths: auto
+
+   ====================================  =====
+   Name                                  Count
+   ====================================  =====
+   Michal Simek                          81 (30.5%)
+   Peng Fan                              41 (15.4%)
+   Andre Przywara                        16 (6.0%)
+   Ilias Apalodimas                      14 (5.3%)
+   Dario Binacchi                        14 (5.3%)
+   Marek Behún                           12 (4.5%)
+   Ashok Reddy Soma                      11 (4.1%)
+   Vignesh Raghavendra                   9 (3.4%)
+   Thomas Haemmerle                      7 (2.6%)
+   Ye Li                                 7 (2.6%)
+   Tom Rini                              6 (2.3%)
+   Heinrich Schuchardt                   5 (1.9%)
+   Satoru Okamoto                        4 (1.5%)
+   Aswath Govindraju                     4 (1.5%)
+   Simon Glass                           4 (1.5%)
+   Francesco Dolcini                     2 (0.8%)
+   Andrejs Cainikovs                     2 (0.8%)
+   Dave Gerlach                          2 (0.8%)
+   Gowtham Tammana                       2 (0.8%)
+   Alper Nebi Yasak                      2 (0.8%)
+   T Karthik Reddy                       2 (0.8%)
+   Nishanth Menon                        2 (0.8%)
+   Samuel Holland                        1 (0.4%)
+   Sebastian Krzyszkowiak                1 (0.4%)
+   Masami Hiramatsu                      1 (0.4%)
+   Jassi Brar                            1 (0.4%)
+   Rick Chen                             1 (0.4%)
+   Oliver Brown                          1 (0.4%)
+   Yangbo Lu                             1 (0.4%)
+   Yann Gautier                          1 (0.4%)
+   Kursad Oney                           1 (0.4%)
+   Anand Gore                            1 (0.4%)
+   Jorge Ramirez-Ortiz                   1 (0.4%)
+   Adrian Fiergolski                     1 (0.4%)
+   Alice Guo                             1 (0.4%)
+   Neil Armstrong                        1 (0.4%)
+   Oleksandr Suvorov                     1 (0.4%)
+   Joel Stanley                          1 (0.4%)
+   Patrick Delaunay                      1 (0.4%)
+   ====================================  =====
+
+
+.. table:: Developers with the most reviews (total 704)
+   :widths: auto
+
+   ====================================  =====
+   Name                                  Count
+   ====================================  =====
+   Simon Glass                           148 (21.0%)
+   Stefan Roese                          123 (17.5%)
+   Patrice Chotard                       60 (8.5%)
+   Tom Rini                              40 (5.7%)
+   Ramon Fried                           28 (4.0%)
+   Fabio Estevam                         27 (3.8%)
+   Ilias Apalodimas                      20 (2.8%)
+   Heinrich Schuchardt                   18 (2.6%)
+   Marek Behún                           16 (2.3%)
+   Heiko Schocher                        16 (2.3%)
+   Jaehoon Chung                         15 (2.1%)
+   Kever Yang                            15 (2.1%)
+   Andre Przywara                        12 (1.7%)
+   Patrick Delaunay                      11 (1.6%)
+   Daniel Schwierzeck                    11 (1.6%)
+   Peng Fan                              9 (1.3%)
+   Jagan Teki                            9 (1.3%)
+   ryan_chen                             8 (1.1%)
+   Leo Yu-Chi Liang                      8 (1.1%)
+   Pali Rohár                            8 (1.1%)
+   Alper Nebi Yasak                      7 (1.0%)
+   Cédric Le Goater                      7 (1.0%)
+   Marek Vasut                           6 (0.9%)
+   Chia-Wei Wang                         6 (0.9%)
+   Francesco Dolcini                     5 (0.7%)
+   Bin Meng                              4 (0.6%)
+   Minkyu Kang                           4 (0.6%)
+   Sean Anderson                         4 (0.6%)
+   Anastasiia Lukianenko                 3 (0.4%)
+   Andrey Zhizhikin                      3 (0.4%)
+   Tudor Ambarus                         3 (0.4%)
+   Michael Trimarchi                     3 (0.4%)
+   Neil Armstrong                        2 (0.3%)
+   Mark Kettenis                         2 (0.3%)
+   Qu Wenruo                             2 (0.3%)
+   Frieder Schrempf                      2 (0.3%)
+   Grzegorz Szymaszek                    2 (0.3%)
+   Xavier Drudis Ferran                  2 (0.3%)
+   Artem Lapkin                          2 (0.3%)
+   Vladimir Oltean                       2 (0.3%)
+   Michael Walle                         2 (0.3%)
+   Ye Li                                 1 (0.1%)
+   Dave Gerlach                          1 (0.1%)
+   Nishanth Menon                        1 (0.1%)
+   Rick Chen                             1 (0.1%)
+   Joel Stanley                          1 (0.1%)
+   Holger Brunck                         1 (0.1%)
+   Chris Packham                         1 (0.1%)
+   Heiko Thiery                          1 (0.1%)
+   Bryan Brattlof                        1 (0.1%)
+   Jerome Brunet                         1 (0.1%)
+   Alain Volmat                          1 (0.1%)
+   Philipp Tomsich                       1 (0.1%)
+   Jonathan Gray                         1 (0.1%)
+   Huang Jianan                          1 (0.1%)
+   Anup Patel                            1 (0.1%)
+   Igal Liberman                         1 (0.1%)
+   Baruch Siach                          1 (0.1%)
+   Miquel Raynal                         1 (0.1%)
+   Mattijs Korpershoek                   1 (0.1%)
+   Pratyush Yadav                        1 (0.1%)
+   Neal Liu                              1 (0.1%)
+   Ariel D'Alessandro                    1 (0.1%)
+   Philippe Reynes                       1 (0.1%)
+   Anand Jain                            1 (0.1%)
+   Billy Tsai                            1 (0.1%)
+   Kory Maincent                         1 (0.1%)
+   John Keeping                          1 (0.1%)
+   Etienne Carriere                      1 (0.1%)
+   Sumit Garg                            1 (0.1%)
+   ====================================  =====
+
+
+.. table:: Developers with the most test credits (total 72)
+   :widths: auto
+
+   ====================================  =====
+   Name                                  Count
+   ====================================  =====
+   Adrian Fiergolski                     12 (16.7%)
+   Ricardo Salveti                       12 (16.7%)
+   Adam Ford                             9 (12.5%)
+   Marek Vasut                           5 (6.9%)
+   Xavier Drudis Ferran                  5 (6.9%)
+   Stefan Roese                          3 (4.2%)
+   Artem Lapkin                          3 (4.2%)
+   Tim Harvey                            3 (4.2%)
+   Patrick Delaunay                      2 (2.8%)
+   Frieder Schrempf                      2 (2.8%)
+   Teresa Remmet                         2 (2.8%)
+   Tony Dinh                             2 (2.8%)
+   Heinrich Schuchardt                   1 (1.4%)
+   Alper Nebi Yasak                      1 (1.4%)
+   Mark Kettenis                         1 (1.4%)
+   Heiko Thiery                          1 (1.4%)
+   Ariel D'Alessandro                    1 (1.4%)
+   Etienne Carriere                      1 (1.4%)
+   Peter Hoyes                           1 (1.4%)
+   Paweł Anikiel                         1 (1.4%)
+   Sergiu Moga                           1 (1.4%)
+   Michal Suchanek                       1 (1.4%)
+   Georgi Vlaev                          1 (1.4%)
+   Ovidiu Panait                         1 (1.4%)
+   ====================================  =====
+
+
+.. table:: Developers who gave the most tested-by credits (total 72)
+   :widths: auto
+
+   ====================================  =====
+   Name                                  Count
+   ====================================  =====
+   Oleksandr Suvorov                     23 (31.9%)
+   Peng Fan                              11 (15.3%)
+   Mamta Shukla                          7 (9.7%)
+   Pali Rohár                            5 (6.9%)
+   Quentin Schulz                        5 (6.9%)
+   Lee Jones                             4 (5.6%)
+   Philip Oberfichtner                   3 (4.2%)
+   Patrick Delaunay                      2 (2.8%)
+   Adrian Fiergolski                     1 (1.4%)
+   Stefan Roese                          1 (1.4%)
+   Heinrich Schuchardt                   1 (1.4%)
+   Andre Przywara                        1 (1.4%)
+   Sean Anderson                         1 (1.4%)
+   Alain Volmat                          1 (1.4%)
+   Michal Simek                          1 (1.4%)
+   Vignesh Raghavendra                   1 (1.4%)
+   Jorge Ramirez-Ortiz                   1 (1.4%)
+   Eugen Hristev                         1 (1.4%)
+   Hector Martin                         1 (1.4%)
+   Sughosh Ganu                          1 (1.4%)
+   ====================================  =====
+
+
+.. table:: Developers with the most report credits (total 24)
+   :widths: auto
+
+   ====================================  =====
+   Name                                  Count
+   ====================================  =====
+   Pali Rohár                            4 (16.7%)
+   Tom Rini                              2 (8.3%)
+   Heinrich Schuchardt                   1 (4.2%)
+   Jorge Ramirez-Ortiz                   1 (4.2%)
+   Heiko Thiery                          1 (4.2%)
+   Etienne Carriere                      1 (4.2%)
+   Sergiu Moga                           1 (4.2%)
+   Ovidiu Panait                         1 (4.2%)
+   Marek Behún                           1 (4.2%)
+   Johan Jonker                          1 (4.2%)
+   Sergei Antonov                        1 (4.2%)
+   Jason Kridner                         1 (4.2%)
+   Bin Liu                               1 (4.2%)
+   George Hilliard                       1 (4.2%)
+   Gatien CHEVALLIER                     1 (4.2%)
+   Andrew Walbran                        1 (4.2%)
+   Gan, Yau Wai"                         1 (4.2%)
+   Michal Vasilek                        1 (4.2%)
+   Jan Kiszka                            1 (4.2%)
+   Jesse Taube                           1 (4.2%)
+   ====================================  =====
+
+
+.. table:: Developers who gave the most report credits (total 24)
+   :widths: auto
+
+   ====================================  =====
+   Name                                  Count
+   ====================================  =====
+   Tom Rini                              4 (16.7%)
+   Heinrich Schuchardt                   3 (12.5%)
+   Simon Glass                           3 (12.5%)
+   Pali Rohár                            2 (8.3%)
+   Andre Przywara                        2 (8.3%)
+   Peng Fan                              1 (4.2%)
+   Quentin Schulz                        1 (4.2%)
+   Patrick Delaunay                      1 (4.2%)
+   Alain Volmat                          1 (4.2%)
+   Michal Simek                          1 (4.2%)
+   Eugen Hristev                         1 (4.2%)
+   Fabio Estevam                         1 (4.2%)
+   Nishanth Menon                        1 (4.2%)
+   Anand Gadiyar                         1 (4.2%)
+   Pierre-Clément Tosi                   1 (4.2%)
+   ====================================  =====
+
+
+.. table:: Top changeset contributors by employer
+   :widths: auto
+
+   ====================================  =====
+   Name                                  Count
+   ====================================  =====
+   (Unknown)                             590 (38.8%)
+   Konsulko Group                        265 (17.4%)
+   Google, Inc.                          141 (9.3%)
+   NXP                                   77 (5.1%)
+   ST Microelectronics                   67 (4.4%)
+   Linaro                                60 (3.9%)
+   Texas Instruments                     56 (3.7%)
+   AMD                                   53 (3.5%)
+   DENX Software Engineering             45 (3.0%)
+   Toradex                               45 (3.0%)
+   Weidmüller Interface GmbH & Co. KG    41 (2.7%)
+   Xilinx                                29 (1.9%)
+   Amarula Solutions                     18 (1.2%)
+   ARM                                   11 (0.7%)
+   BayLibre SAS                          5 (0.3%)
+   SUSE                                  4 (0.3%)
+   Socionext Inc.                        3 (0.2%)
+   Bootlin                               2 (0.1%)
+   IBM                                   2 (0.1%)
+   Siemens                               2 (0.1%)
+   Broadcom                              1 (0.1%)
+   Collabora Ltd.                        1 (0.1%)
+   Debian.org                            1 (0.1%)
+   Marvell                               1 (0.1%)
+   Samsung                               1 (0.1%)
+   ====================================  =====
+
+
+.. table:: Top lines changed by employer
+   :widths: auto
+
+   ====================================  =====
+   Name                                  Count
+   ====================================  =====
+   Konsulko Group                        98915 (47.3%)
+   (Unknown)                             36773 (17.6%)
+   Toradex                               20197 (9.7%)
+   NXP                                   11759 (5.6%)
+   Google, Inc.                          8739 (4.2%)
+   Linaro                                7623 (3.6%)
+   Weidmüller Interface GmbH & Co. KG    6191 (3.0%)
+   Texas Instruments                     5930 (2.8%)
+   ST Microelectronics                   3803 (1.8%)
+   DENX Software Engineering             3551 (1.7%)
+   AMD                                   2343 (1.1%)
+   Amarula Solutions                     1360 (0.7%)
+   Xilinx                                1016 (0.5%)
+   Broadcom                              315 (0.2%)
+   ARM                                   298 (0.1%)
+   BayLibre SAS                          197 (0.1%)
+   SUSE                                  79 (0.0%)
+   IBM                                   34 (0.0%)
+   Bootlin                               32 (0.0%)
+   Siemens                               28 (0.0%)
+   Socionext Inc.                        18 (0.0%)
+   Debian.org                            4 (0.0%)
+   Marvell                               3 (0.0%)
+   Samsung                               2 (0.0%)
+   Collabora Ltd.                        1 (0.0%)
+   ====================================  =====
+
+
+.. table:: Employers with the most signoffs (total 266)
+   :widths: auto
+
+   ====================================  =====
+   Name                                  Count
+   ====================================  =====
+   AMD                                   81 (30.5%)
+   NXP                                   51 (19.2%)
+   (Unknown)                             33 (12.4%)
+   Texas Instruments                     19 (7.1%)
+   Linaro                                16 (6.0%)
+   ARM                                   16 (6.0%)
+   Amarula Solutions                     14 (5.3%)
+   Xilinx                                13 (4.9%)
+   Konsulko Group                        6 (2.3%)
+   Toradex                               4 (1.5%)
+   Google, Inc.                          4 (1.5%)
+   Socionext Inc.                        4 (1.5%)
+   ST Microelectronics                   2 (0.8%)
+   Broadcom                              2 (0.8%)
+   BayLibre SAS                          1 (0.4%)
+   ====================================  =====
+
+
+.. table:: Employers with the most hackers (total 153)
+   :widths: auto
+
+   ====================================  =====
+   Name                                  Count
+   ====================================  =====
+   (Unknown)                             78 (51.0%)
+   Linaro                                12 (7.8%)
+   Texas Instruments                     11 (7.2%)
+   NXP                                   7 (4.6%)
+   Google, Inc.                          5 (3.3%)
+   DENX Software Engineering             5 (3.3%)
+   Xilinx                                4 (2.6%)
+   Toradex                               4 (2.6%)
+   ST Microelectronics                   4 (2.6%)
+   AMD                                   3 (2.0%)
+   ARM                                   3 (2.0%)
+   BayLibre SAS                          3 (2.0%)
+   Amarula Solutions                     2 (1.3%)
+   Konsulko Group                        1 (0.7%)
+   Socionext Inc.                        1 (0.7%)
+   Broadcom                              1 (0.7%)
+   Weidmüller Interface GmbH & Co. KG    1 (0.7%)
+   SUSE                                  1 (0.7%)
+   IBM                                   1 (0.7%)
+   Bootlin                               1 (0.7%)
+   Siemens                               1 (0.7%)
+   Debian.org                            1 (0.7%)
+   Marvell                               1 (0.7%)
+   Samsung                               1 (0.7%)
+   Collabora Ltd.                        1 (0.7%)
+   ====================================  =====
diff --git a/doc/usage/environment.rst b/doc/usage/environment.rst
index 561076b..7906ace 100644
--- a/doc/usage/environment.rst
+++ b/doc/usage/environment.rst
@@ -106,6 +106,27 @@
 
 This is most-likely not complete:
 
+autostart
+    If set to "yes" (actually any string starting with 1, y, Y, t, or T) an
+    image loaded with one of the commands listed below will be automatically
+    started by internally invoking the bootm command.
+
+    * bootelf - Boot from an ELF image in memory
+    * bootp - boot image via network using BOOTP/TFTP protocol
+    * dhcp - boot image via network using DHCP/TFTP protocol
+    * diskboot - boot from ide device
+    * nboot - boot from NAND device
+    * nfs - boot image via network using NFS protocol
+    * rarpboot - boot image via network using RARP/TFTP protocol
+    * scsiboot - boot from SCSI device
+    * tftpboot - boot image via network using TFTP protocol
+    * usbboot - boot from USB device
+
+    If the environment variable autostart is not set to a value starting with
+    1, y, Y, t, or T, an image passed to the "bootm" command will be copied to
+    the load address (and eventually uncompressed), but NOT be started.
+    This can be used to load and uncompress arbitrary data.
+
 baudrate
     Used to set the baudrate of the UART - it defaults to CONFIG_BAUDRATE (which
     defaults to 115200).
@@ -174,19 +195,6 @@
     configuration from the BOOTP server, but not try to
     load any image.
 
-autostart
-    if set to "yes", an image loaded using the "bootp", "dhcp",
-    "rarpboot", "tftpboot" or "diskboot" commands will
-    be automatically started (by internally calling
-    "bootm")
-
-    If unset, or set to "1"/"yes"/"true" (case insensitive, just the first
-    character is enough), a standalone image
-    passed to the "bootm" command will be copied to the load address
-    (and eventually uncompressed), but NOT be started.
-    This can be used to load and uncompress arbitrary
-    data.
-
 fdt_high
     if set this restricts the maximum address that the
     flattened device tree will be copied into upon boot.
diff --git a/drivers/gpio/turris_omnia_mcu.c b/drivers/gpio/turris_omnia_mcu.c
index 986ccde..2d2bf2d 100644
--- a/drivers/gpio/turris_omnia_mcu.c
+++ b/drivers/gpio/turris_omnia_mcu.c
@@ -16,6 +16,8 @@
 
 	/* available if FEAT_EXT_CMDS bit is set in features */
 	CMD_GET_EXT_STATUS_DWORD            = 0x11,
+
+	/* available if FEAT_EXT_CMDS and FEAT_PERIPH_MCU bits are set in featurs */
 	CMD_EXT_CONTROL                     = 0x12,
 	CMD_GET_EXT_CONTROL_STATUS          = 0x13,
 };
@@ -54,6 +56,7 @@
 
 /* CMD_GET_FEATURES */
 enum features_e {
+	FEAT_PERIPH_MCU         = BIT(0),
 	FEAT_EXT_CMDS           = BIT(1),
 };
 
@@ -84,10 +87,12 @@
 			return -EINVAL;
 		return GPIOF_INPUT;
 
-	/* bank 2 - supported only when FEAT_EXT_CMDS is set */
+	/* bank 2 - supported only when FEAT_EXT_CMDS and FEAT_PERIPH_MCU is set */
 	case (16 + 32 + 0) ... (16 + 32 + 15):
 		if (!(info->features & FEAT_EXT_CMDS))
 			return -EINVAL;
+		if (!(info->features & FEAT_PERIPH_MCU))
+			return -EINVAL;
 		return GPIOF_OUTPUT;
 
 	default:
@@ -120,10 +125,12 @@
 		return ((((u32)val32[3] << 24) | ((u32)val32[2] << 16) |
 			 ((u32)val32[1] << 8) | val32[0]) >> (offset - 16)) & 0x1;
 
-	/* bank 2 - supported only when FEAT_EXT_CMDS is set */
+	/* bank 2 - supported only when FEAT_EXT_CMDS and FEAT_PERIPH_MCU is set */
 	case (16 + 32 + 0) ... (16 + 32 + 15):
 		if (!(info->features & FEAT_EXT_CMDS))
 			return -EINVAL;
+		if (!(info->features & FEAT_PERIPH_MCU))
+			return -EINVAL;
 		ret = dm_i2c_read(dev, CMD_GET_EXT_CONTROL_STATUS, val16, 2);
 		if (ret)
 			return ret;
@@ -162,10 +169,12 @@
 		val16[0] = value ? val16[1] : 0;
 		return dm_i2c_write(dev, CMD_GENERAL_CONTROL, val16, sizeof(val16));
 
-	/* bank 2 - supported only when FEAT_EXT_CMDS is set */
+	/* bank 2 - supported only when FEAT_EXT_CMDS and FEAT_PERIPH_MCU is set */
 	case (16 + 32 + 0) ... (16 + 32 + 15):
 		if (!(info->features & FEAT_EXT_CMDS))
 			return -EINVAL;
+		if (!(info->features & FEAT_PERIPH_MCU))
+			return -EINVAL;
 		val32[3] = BIT(offset - 16 - 32) >> 8;
 		val32[2] = BIT(offset - 16 - 32) & 0xff;
 		val32[1] = value ? val32[3] : 0;
@@ -282,8 +291,10 @@
 
 	uc_priv->bank_name = "mcu_";
 
-	if (info->features & FEAT_EXT_CMDS)
+	if ((info->features & FEAT_EXT_CMDS) && (info->features & FEAT_PERIPH_MCU))
 		uc_priv->gpio_count = 16 + 32 + 16;
+	else if (info->features & FEAT_EXT_CMDS)
+		uc_priv->gpio_count = 16 + 32;
 	else
 		uc_priv->gpio_count = 16;
 
diff --git a/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c b/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c
index f17009a..1c34b75 100644
--- a/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c
+++ b/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c
@@ -890,7 +890,7 @@
 static int dwc2_udc_get_status(struct dwc2_udc *dev,
 		struct usb_ctrlrequest *crq)
 {
-	u8 ep_num = crq->wIndex & 0x7F;
+	u8 ep_num = crq->wIndex & 0x3;
 	u16 g_status = 0;
 	u32 ep_ctrl;
 
@@ -1418,7 +1418,7 @@
 			break;
 
 		case USB_REQ_CLEAR_FEATURE:
-			ep_num = usb_ctrl->wIndex & 0x7f;
+			ep_num = usb_ctrl->wIndex & 0x3;
 
 			if (!dwc2_udc_clear_feature(&dev->ep[ep_num].ep))
 				return;
@@ -1426,7 +1426,7 @@
 			break;
 
 		case USB_REQ_SET_FEATURE:
-			ep_num = usb_ctrl->wIndex & 0x7f;
+			ep_num = usb_ctrl->wIndex & 0x3;
 
 			if (!dwc2_udc_set_feature(&dev->ep[ep_num].ep))
 				return;
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
index a0f48f0..1aabe06 100644
--- a/drivers/usb/host/Kconfig
+++ b/drivers/usb/host/Kconfig
@@ -214,6 +214,14 @@
 	  Enables support for the on-chip EHCI controller on i.MX23 and
 	  i.MX28 SoCs.
 
+config USB_EHCI_NPCM
+	bool "Support for Nuvoton NPCM on-chip EHCI USB controller"
+	depends on ARCH_NPCM
+	default n
+	---help---
+	  Enables support for the on-chip EHCI controller on
+	  Nuvoton NPCM chips.
+
 config USB_EHCI_OMAP
 	bool "Support for OMAP3+ on-chip EHCI USB controller"
 	depends on ARCH_OMAP2PLUS
@@ -343,6 +351,14 @@
 	help
 	  Enable support for the da850 USB controller.
 
+config USB_OHCI_NPCM
+	bool "Support for Nuvoton NPCM on-chip OHCI USB controller"
+	depends on ARCH_NPCM
+	default n
+	---help---
+	  Enables support for the on-chip OHCI controller on
+	  Nuvoton NPCM chips.
+
 endif # USB_OHCI_HCD
 
 config SYS_USB_OHCI_SLOT_NAME
diff --git a/drivers/usb/host/Makefile b/drivers/usb/host/Makefile
index 5fdb804..ddc3663 100644
--- a/drivers/usb/host/Makefile
+++ b/drivers/usb/host/Makefile
@@ -21,6 +21,7 @@
 obj-$(CONFIG_USB_OHCI_LPC32XX) += ohci-lpc32xx.o
 obj-$(CONFIG_USB_OHCI_PCI) += ohci-pci.o
 obj-$(CONFIG_USB_OHCI_GENERIC) += ohci-generic.o
+obj-$(CONFIG_USB_OHCI_NPCM) += ohci-npcm.o
 
 # echi
 obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o
@@ -34,6 +35,7 @@
 obj-$(CONFIG_USB_EHCI_MX5) += ehci-mx5.o
 obj-$(CONFIG_USB_EHCI_MX6) += ehci-mx6.o
 obj-$(CONFIG_USB_EHCI_MX7) += ehci-mx6.o
+obj-$(CONFIG_USB_EHCI_NPCM) += ehci-npcm.o
 obj-$(CONFIG_USB_EHCI_OMAP) += ehci-omap.o
 obj-$(CONFIG_USB_EHCI_MARVELL) += ehci-marvell.o
 obj-$(CONFIG_USB_EHCI_MSM) += ehci-msm.o
diff --git a/drivers/usb/host/ehci-npcm.c b/drivers/usb/host/ehci-npcm.c
new file mode 100644
index 0000000..357a561
--- /dev/null
+++ b/drivers/usb/host/ehci-npcm.c
@@ -0,0 +1,119 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (c) 2021 Nuvoton Technology Corp.
+ */
+
+#include <common.h>
+#include <dm.h>
+#include <generic-phy.h>
+#include <reset.h>
+#include <asm/io.h>
+#include <dm/device_compat.h>
+#include <linux/delay.h>
+#include "ehci.h"
+
+struct npcm_ehci_priv {
+	struct ehci_ctrl ctrl;
+	struct ehci_hccr *hcd;
+	struct phy phy;
+};
+
+static int npcm_ehci_setup_phy(struct udevice *dev, struct phy *phy)
+{
+	int ret;
+
+	if (!phy)
+		return 0;
+
+	ret = generic_phy_get_by_index(dev, 0, phy);
+	if (ret) {
+		if (ret != -ENOENT) {
+			dev_err(dev, "failed to get usb phy\n");
+			return ret;
+		}
+	} else {
+		ret = generic_phy_init(phy);
+		if (ret) {
+			dev_err(dev, "failed to init usb phy\n");
+			return ret;
+		}
+	}
+
+	return 0;
+}
+
+static int npcm_ehci_init(struct udevice *dev)
+{
+	struct npcm_ehci_priv *priv = dev_get_priv(dev);
+	struct reset_ctl reset;
+	int ret;
+
+	ret = reset_get_by_index(dev, 0, &reset);
+	if (ret && ret != -ENOENT && ret != -ENOTSUPP) {
+		dev_err(dev, "failed to get reset\n");
+		return ret;
+	}
+
+	/* reset controller */
+	if (reset_valid(&reset))
+		reset_assert(&reset);
+
+	/* setup phy */
+	ret = npcm_ehci_setup_phy(dev, &priv->phy);
+	if (ret)
+		return ret;
+
+	/* release controller from reset */
+	if (reset_valid(&reset))
+		reset_deassert(&reset);
+
+	return 0;
+}
+
+static int npcm_ehci_probe(struct udevice *dev)
+{
+	struct npcm_ehci_priv *priv = dev_get_priv(dev);
+	struct ehci_hcor *hcor;
+	enum usb_init_type type = dev_get_driver_data(dev);
+	int ret;
+
+	ret = npcm_ehci_init(dev);
+	if (ret)
+		return ret;
+
+	priv->hcd = (struct ehci_hccr *)dev_read_addr_ptr(dev);
+	debug("USB HCD @0x%p\n", priv->hcd);
+	hcor = (struct ehci_hcor *)((uintptr_t)priv->hcd +
+			HC_LENGTH(ehci_readl(&priv->hcd->cr_capbase)));
+
+	return ehci_register(dev, priv->hcd, hcor, NULL, 0, type);
+}
+
+static int npcm_ehci_remove(struct udevice *dev)
+{
+	struct npcm_ehci_priv *priv = dev_get_priv(dev);
+
+	generic_phy_exit(&priv->phy);
+
+	return ehci_deregister(dev);
+}
+
+static const struct udevice_id npcm_ehci_ids[] = {
+	{ .compatible = "nuvoton,npcm845-ehci", .data = USB_INIT_HOST },
+	{ .compatible = "nuvoton,npcm845-udc", .data = USB_INIT_DEVICE },
+	{ .compatible = "nuvoton,npcm750-ehci", .data = USB_INIT_HOST },
+	{ .compatible = "nuvoton,npcm750-udc", .data = USB_INIT_DEVICE },
+	{ }
+};
+
+U_BOOT_DRIVER(ehci_npcm) = {
+	.name	= "ehci_npcm",
+	.id	= UCLASS_USB,
+	.of_match = npcm_ehci_ids,
+	.probe = npcm_ehci_probe,
+	.remove = npcm_ehci_remove,
+	.ops	= &ehci_usb_ops,
+	.priv_auto = sizeof(struct npcm_ehci_priv),
+	.plat_auto = sizeof(struct usb_plat),
+	.flags	= DM_FLAG_ALLOC_PRIV_DMA,
+};
diff --git a/drivers/usb/host/ohci-npcm.c b/drivers/usb/host/ohci-npcm.c
new file mode 100644
index 0000000..9e1d529
--- /dev/null
+++ b/drivers/usb/host/ohci-npcm.c
@@ -0,0 +1,108 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (c) 2021 Nuvoton Technology Corp.
+ */
+
+#include <common.h>
+#include <dm.h>
+#include <generic-phy.h>
+#include <reset.h>
+#include <asm/io.h>
+#include <dm/device_compat.h>
+#include <linux/delay.h>
+#include "ohci.h"
+
+struct npcm_ohci_priv {
+	ohci_t ohci;
+	struct phy phy;
+};
+
+static int npcm_ohci_setup_phy(struct udevice *dev, struct phy *phy)
+{
+	int ret;
+
+	if (!phy)
+		return 0;
+
+	ret = generic_phy_get_by_index(dev, 0, phy);
+	if (ret) {
+		if (ret != -ENOENT) {
+			dev_err(dev, "failed to get usb phy\n");
+			return ret;
+		}
+	} else {
+		ret = generic_phy_init(phy);
+		if (ret) {
+			dev_err(dev, "failed to init usb phy\n");
+			return ret;
+		}
+	}
+
+	return 0;
+}
+
+static int npcm_ohci_init(struct udevice *dev)
+{
+	struct npcm_ohci_priv *priv = dev_get_priv(dev);
+	struct reset_ctl reset;
+	int ret;
+
+	ret = reset_get_by_index(dev, 0, &reset);
+	if (ret && ret != -ENOENT && ret != -ENOTSUPP) {
+		dev_err(dev, "failed to get reset\n");
+		return ret;
+	}
+
+	/* reset controller */
+	if (reset_valid(&reset))
+		reset_assert(&reset);
+
+	/* setup phy */
+	ret = npcm_ohci_setup_phy(dev, &priv->phy);
+	if (ret)
+		return ret;
+
+	/* release controller from reset */
+	if (reset_valid(&reset))
+		reset_deassert(&reset);
+
+	return 0;
+}
+
+static int npcm_ohci_probe(struct udevice *dev)
+{
+	struct ohci_regs *regs = dev_read_addr_ptr(dev);
+	int ret;
+
+	ret = npcm_ohci_init(dev);
+	if (ret)
+		return ret;
+
+	return ohci_register(dev, regs);
+}
+
+static int npcm_ohci_remove(struct udevice *dev)
+{
+	struct npcm_ohci_priv *priv = dev_get_priv(dev);
+
+	generic_phy_exit(&priv->phy);
+
+	return ohci_deregister(dev);
+}
+
+static const struct udevice_id npcm_ohci_ids[] = {
+	{ .compatible = "nuvoton,npcm845-ohci" },
+	{ .compatible = "nuvoton,npcm750-ohci" },
+	{ }
+};
+
+U_BOOT_DRIVER(ohci_npcm) = {
+	.name	= "ohci_npcm",
+	.id	= UCLASS_USB,
+	.of_match = npcm_ohci_ids,
+	.probe = npcm_ohci_probe,
+	.remove = npcm_ohci_remove,
+	.ops	= &ohci_usb_ops,
+	.priv_auto = sizeof(struct npcm_ohci_priv),
+	.flags	= DM_FLAG_ALLOC_PRIV_DMA,
+};
diff --git a/drivers/watchdog/gpio_wdt.c b/drivers/watchdog/gpio_wdt.c
index fe06ec8..2920c2c 100644
--- a/drivers/watchdog/gpio_wdt.c
+++ b/drivers/watchdog/gpio_wdt.c
@@ -31,7 +31,7 @@
 	case HW_ALGO_LEVEL:
 		/* Pulse */
 		dm_gpio_set_value(&priv->gpio, 1);
-		udelay(1);
+		__udelay(1);
 		dm_gpio_set_value(&priv->gpio, 0);
 		break;
 	}
diff --git a/drivers/watchdog/max6370_wdt.c b/drivers/watchdog/max6370_wdt.c
index e59cbb2..584a4ed 100644
--- a/drivers/watchdog/max6370_wdt.c
+++ b/drivers/watchdog/max6370_wdt.c
@@ -72,7 +72,7 @@
 
 	if (dm_gpio_is_valid(&wdt->gpio_wdi)) {
 		dm_gpio_set_value(&wdt->gpio_wdi, 1);
-		udelay(1);
+		__udelay(1);
 		dm_gpio_set_value(&wdt->gpio_wdi, 0);
 	} else {
 		val = readb(wdt->reg);
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 8043abc..c80f8e8 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -782,8 +782,6 @@
 	fs_info->fs_root_tree = RB_ROOT;
 	cache_tree_init(&fs_info->mapping_tree.cache_tree);
 
-	mutex_init(&fs_info->fs_mutex);
-
 	return fs_info;
 free_all:
 	btrfs_free_fs_info(fs_info);
diff --git a/lib/efi_loader/efi_load_initrd.c b/lib/efi_loader/efi_load_initrd.c
index c5e6652..3d6044f 100644
--- a/lib/efi_loader/efi_load_initrd.c
+++ b/lib/efi_loader/efi_load_initrd.c
@@ -230,6 +230,9 @@
  */
 void efi_initrd_deregister(void)
 {
+	if (!efi_initrd_handle)
+		return;
+
 	efi_delete_handle(efi_initrd_handle);
 	efi_initrd_handle = NULL;
 }
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 908a162..c251e2e 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -192,10 +192,13 @@
 			     &tmp_devnum, &volnum);
 		if (ret == 2 && devnum == tmp_devnum) {
 			if (ubi_check_volume_sysfs_name(dirent->d_name,
-							volname) == 0)
+							volname) == 0) {
+				closedir(sysfs_ubi);
 				return volnum;
+			}
 		}
 	}
+	closedir(sysfs_ubi);
 
 	return -1;
 }