- Backport upstream Winbond W25N04KV Flash support. - Backport upstream GigaDevice series Flash support. - Backport pending Airoha AN8855 switch TPID value fix. - Backport Mediatek UART baudrate accuracy compensation support. - Pull mtk patchset from MTK SDK mtksoc-20250711 branch: Remove mt7622_rfb changes. The MTK SDK already dropped them. Replace Airoha ethernet PHY driver with new version. Split downstream snfi changes into independent patches. Add new Marvell CUX3410 PHY driver. Add new MediaTek built-in 2.5Gbps PHY driver. Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
27 lines
750 B
Diff
27 lines
750 B
Diff
From 98ac40f08a59a18198a676a5419bdc72d484c150 Mon Sep 17 00:00:00 2001
|
|
From: Weijie Gao <weijie.gao@mediatek.com>
|
|
Date: Mon, 25 Jul 2022 17:00:00 +0800
|
|
Subject: [PATCH 24/30] cmd: ubi: allow creating volume with all free spaces
|
|
|
|
Allow creating volume with all free spaces by giving a negative size value.
|
|
|
|
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
|
|
---
|
|
cmd/ubi.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
--- a/cmd/ubi.c
|
|
+++ b/cmd/ubi.c
|
|
@@ -226,7 +226,11 @@ int ubi_create_vol(char *volume, int64_t
|
|
|
|
req.vol_id = vol_id;
|
|
req.alignment = 1;
|
|
- req.bytes = size;
|
|
+
|
|
+ if (size < 0)
|
|
+ req.bytes = ubi->avail_pebs * ubi->leb_size;
|
|
+ else
|
|
+ req.bytes = size;
|
|
|
|
strcpy(req.name, volume);
|
|
req.name_len = strlen(volume);
|