Skip to content

Commit fae0977

Browse files
committed
Merge tag 'v5.10.108' into linux-5.10-mchp
This is the 5.10.108 stable release Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
2 parents 63eb273 + 9940314 commit fae0977

39 files changed

Lines changed: 191 additions & 215 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 5
33
PATCHLEVEL = 10
4-
SUBLEVEL = 107
4+
SUBLEVEL = 108
55
EXTRAVERSION = -linux4microchip-2021.10
66
NAME = Dare mighty things
77

arch/arm64/include/asm/vectors.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ enum arm64_bp_harden_el1_vectors {
5656
DECLARE_PER_CPU_READ_MOSTLY(const char *, this_cpu_vector);
5757

5858
#ifndef CONFIG_UNMAP_KERNEL_AT_EL0
59-
#define TRAMP_VALIAS 0
59+
#define TRAMP_VALIAS 0ul
6060
#endif
6161

6262
static inline const char *
6363
arm64_get_bp_hardening_vector(enum arm64_bp_harden_el1_vectors slot)
6464
{
6565
if (arm64_kernel_unmapped_at_el0())
66-
return (char *)TRAMP_VALIAS + SZ_2K * slot;
66+
return (char *)(TRAMP_VALIAS + SZ_2K * slot);
6767

6868
WARN_ON_ONCE(slot == EL1_VECTOR_KPTI);
6969

drivers/atm/eni.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,8 @@ DPRINTK("iovcnt = %d\n",skb_shinfo(skb)->nr_frags);
11121112
skb_data3 = skb->data[3];
11131113
paddr = dma_map_single(&eni_dev->pci_dev->dev,skb->data,skb->len,
11141114
DMA_TO_DEVICE);
1115+
if (dma_mapping_error(&eni_dev->pci_dev->dev, paddr))
1116+
return enq_next;
11151117
ENI_PRV_PADDR(skb) = paddr;
11161118
/* prepare DMA queue entries */
11171119
j = 0;

drivers/crypto/qcom-rng.c

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <linux/clk.h>
99
#include <linux/crypto.h>
1010
#include <linux/io.h>
11+
#include <linux/iopoll.h>
1112
#include <linux/module.h>
1213
#include <linux/of.h>
1314
#include <linux/platform_device.h>
@@ -43,16 +44,19 @@ static int qcom_rng_read(struct qcom_rng *rng, u8 *data, unsigned int max)
4344
{
4445
unsigned int currsize = 0;
4546
u32 val;
47+
int ret;
4648

4749
/* read random data from hardware */
4850
do {
49-
val = readl_relaxed(rng->base + PRNG_STATUS);
50-
if (!(val & PRNG_STATUS_DATA_AVAIL))
51-
break;
51+
ret = readl_poll_timeout(rng->base + PRNG_STATUS, val,
52+
val & PRNG_STATUS_DATA_AVAIL,
53+
200, 10000);
54+
if (ret)
55+
return ret;
5256

5357
val = readl_relaxed(rng->base + PRNG_DATA_OUT);
5458
if (!val)
55-
break;
59+
return -EINVAL;
5660

5761
if ((max - currsize) >= WORD_SZ) {
5862
memcpy(data, &val, WORD_SZ);
@@ -61,11 +65,10 @@ static int qcom_rng_read(struct qcom_rng *rng, u8 *data, unsigned int max)
6165
} else {
6266
/* copy only remaining bytes */
6367
memcpy(data, &val, max - currsize);
64-
break;
6568
}
6669
} while (currsize < max);
6770

68-
return currsize;
71+
return 0;
6972
}
7073

7174
static int qcom_rng_generate(struct crypto_rng *tfm,
@@ -87,7 +90,7 @@ static int qcom_rng_generate(struct crypto_rng *tfm,
8790
mutex_unlock(&rng->lock);
8891
clk_disable_unprepare(rng->clk);
8992

90-
return 0;
93+
return ret;
9194
}
9295

9396
static int qcom_rng_seed(struct crypto_rng *tfm, const u8 *seed,

drivers/firmware/efi/apple-properties.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static bool dump_properties __initdata;
2424
static int __init dump_properties_enable(char *arg)
2525
{
2626
dump_properties = true;
27-
return 0;
27+
return 1;
2828
}
2929

3030
__setup("dump_apple_properties", dump_properties_enable);

drivers/firmware/efi/efi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static int __init efivar_ssdt_setup(char *str)
209209
memcpy(efivar_ssdt, str, strlen(str));
210210
else
211211
pr_warn("efivar_ssdt: name too long: %s\n", str);
212-
return 0;
212+
return 1;
213213
}
214214
__setup("efivar_ssdt=", efivar_ssdt_setup);
215215

drivers/gpu/drm/imx/parallel-display.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,6 @@ static int imx_pd_bridge_atomic_check(struct drm_bridge *bridge,
212212
if (!imx_pd_format_supported(bus_fmt))
213213
return -EINVAL;
214214

215-
if (bus_flags &
216-
~(DRM_BUS_FLAG_DE_LOW | DRM_BUS_FLAG_DE_HIGH |
217-
DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
218-
DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE)) {
219-
dev_warn(imxpd->dev, "invalid bus_flags (%x)\n", bus_flags);
220-
return -EINVAL;
221-
}
222-
223215
bridge_state->output_bus_cfg.flags = bus_flags;
224216
bridge_state->input_bus_cfg.flags = bus_flags;
225217
imx_crtc_state->bus_flags = bus_flags;

drivers/gpu/drm/panel/panel-simple.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2132,7 +2132,7 @@ static const struct display_timing innolux_g070y2_l01_timing = {
21322132
static const struct panel_desc innolux_g070y2_l01 = {
21332133
.timings = &innolux_g070y2_l01_timing,
21342134
.num_timings = 1,
2135-
.bpc = 6,
2135+
.bpc = 8,
21362136
.size = {
21372137
.width = 152,
21382138
.height = 91,

drivers/input/tablet/aiptek.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,15 +1801,13 @@ aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id)
18011801
input_set_abs_params(inputdev, ABS_TILT_Y, AIPTEK_TILT_MIN, AIPTEK_TILT_MAX, 0, 0);
18021802
input_set_abs_params(inputdev, ABS_WHEEL, AIPTEK_WHEEL_MIN, AIPTEK_WHEEL_MAX - 1, 0, 0);
18031803

1804-
/* Verify that a device really has an endpoint */
1805-
if (intf->cur_altsetting->desc.bNumEndpoints < 1) {
1804+
err = usb_find_common_endpoints(intf->cur_altsetting,
1805+
NULL, NULL, &endpoint, NULL);
1806+
if (err) {
18061807
dev_err(&intf->dev,
1807-
"interface has %d endpoints, but must have minimum 1\n",
1808-
intf->cur_altsetting->desc.bNumEndpoints);
1809-
err = -EINVAL;
1808+
"interface has no int in endpoints, but must have minimum 1\n");
18101809
goto fail3;
18111810
}
1812-
endpoint = &intf->cur_altsetting->endpoint[0].desc;
18131811

18141812
/* Go set up our URB, which is called when the tablet receives
18151813
* input.

drivers/net/ethernet/broadcom/bnx2x/bnx2x.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2534,6 +2534,4 @@ void bnx2x_register_phc(struct bnx2x *bp);
25342534
* Meant for implicit re-load flows.
25352535
*/
25362536
int bnx2x_vlan_reconfigure_vid(struct bnx2x *bp);
2537-
int bnx2x_init_firmware(struct bnx2x *bp);
2538-
void bnx2x_release_firmware(struct bnx2x *bp);
25392537
#endif /* bnx2x.h */

0 commit comments

Comments
 (0)