Commit 2e57549a authored by Tom Rini's avatar Tom Rini
Browse files

Merge branch '2021-01-04-minor-fixes'

- Assorted fixes
parents 21e1cae7 acff02c6
...@@ -30,6 +30,7 @@ Jagan Teki <jaganna@xilinx.com> ...@@ -30,6 +30,7 @@ Jagan Teki <jaganna@xilinx.com>
Jagan Teki <jagannadh.teki@gmail.com> Jagan Teki <jagannadh.teki@gmail.com>
Jagan Teki <jagannadha.sutradharudu-teki@xilinx.com> Jagan Teki <jagannadha.sutradharudu-teki@xilinx.com>
Igor Opaniuk <igor.opaniuk@gmail.com> <igor.opaniuk@linaro.org> Igor Opaniuk <igor.opaniuk@gmail.com> <igor.opaniuk@linaro.org>
Igor Opaniuk <igor.opaniuk@gmail.com> <igor.opaniuk@toradex.com>
Markus Klotzbuecher <mk@denx.de> Markus Klotzbuecher <mk@denx.de>
Patrice Chotard <patrice.chotard@foss.st.com> <patrice.chotard@st.com> Patrice Chotard <patrice.chotard@foss.st.com> <patrice.chotard@st.com>
Patrick Delaunay <patrick.delaunay@foss.st.com> <patrick.delaunay@st.com> Patrick Delaunay <patrick.delaunay@foss.st.com> <patrick.delaunay@st.com>
......
...@@ -264,6 +264,11 @@ static int ubi_rename_vol(char *oldname, char *newname) ...@@ -264,6 +264,11 @@ static int ubi_rename_vol(char *oldname, char *newname)
return ENODEV; return ENODEV;
} }
if (!ubi_check(newname)) {
printf("%s: volume %s already exist\n", __func__, newname);
return EINVAL;
}
printf("Rename UBI volume %s to %s\n", oldname, newname); printf("Rename UBI volume %s to %s\n", oldname, newname);
if (ubi->ro_mode) { if (ubi->ro_mode) {
......
...@@ -30,9 +30,10 @@ next image headers: ...@@ -30,9 +30,10 @@ next image headers:
v2, v1 and v0 formats are backward compatible. v2, v1 and v0 formats are backward compatible.
Android Boot Image format is represented by :c:type:`struct andr_img_hdr` in The Android Boot Image format is represented by
U-Boot, and can be seen in ``include/android_image.h``. U-Boot supports booting :c:type:`struct andr_img_hdr <andr_img_hdr>` in U-Boot, and can be seen in
Android Boot Image and also has associated command ``include/android_image.h``. U-Boot supports booting Android Boot Image and also
has associated command
Booting Booting
------- -------
......
...@@ -535,28 +535,20 @@ struct nvme_completion { ...@@ -535,28 +535,20 @@ struct nvme_completion {
*/ */
static inline u64 nvme_readq(__le64 volatile *regs) static inline u64 nvme_readq(__le64 volatile *regs)
{ {
#if BITS_PER_LONG == 64
return readq(regs);
#else
__u32 *ptr = (__u32 *)regs; __u32 *ptr = (__u32 *)regs;
u64 val_lo = readl(ptr); u64 val_lo = readl(ptr);
u64 val_hi = readl(ptr + 1); u64 val_hi = readl(ptr + 1);
return val_lo + (val_hi << 32); return val_lo + (val_hi << 32);
#endif
} }
static inline void nvme_writeq(const u64 val, __le64 volatile *regs) static inline void nvme_writeq(const u64 val, __le64 volatile *regs)
{ {
#if BITS_PER_LONG == 64
writeq(val, regs);
#else
__u32 *ptr = (__u32 *)regs; __u32 *ptr = (__u32 *)regs;
u32 val_lo = lower_32_bits(val); u32 val_lo = lower_32_bits(val);
u32 val_hi = upper_32_bits(val); u32 val_hi = upper_32_bits(val);
writel(val_lo, ptr); writel(val_lo, ptr);
writel(val_hi, ptr + 1); writel(val_hi, ptr + 1);
#endif
} }
struct nvme_bar { struct nvme_bar {
......
...@@ -60,7 +60,7 @@ config DM_USB_GADGET ...@@ -60,7 +60,7 @@ config DM_USB_GADGET
mode) mode)
config SPL_DM_USB_GADGET config SPL_DM_USB_GADGET
bool "Enable driver model for USB Gadget in sPL" bool "Enable driver model for USB Gadget in SPL"
depends on SPL_DM_USB depends on SPL_DM_USB
help help
Enable driver model for USB Gadget in SPL Enable driver model for USB Gadget in SPL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment