Skip to content

Commit 81dda1a

Browse files
committed
Merge remote-tracking branch 'stable/linux-4.14.y' into rpi-4.14.y
2 parents 9e22852 + de8cdc5 commit 81dda1a

85 files changed

Lines changed: 585 additions & 254 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Documentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txt renamed to Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Toppoly TD028TTEC1 Panel
22
========================
33

44
Required properties:
5-
- compatible: "toppoly,td028ttec1"
5+
- compatible: "tpo,td028ttec1"
66

77
Optional properties:
88
- label: a symbolic name for the panel
@@ -14,7 +14,7 @@ Example
1414
-------
1515

1616
lcd-panel: td028ttec1@0 {
17-
compatible = "toppoly,td028ttec1";
17+
compatible = "tpo,td028ttec1";
1818
reg = <0>;
1919
spi-max-frequency = <100000>;
2020
spi-cpol;

‎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 = 4
33
PATCHLEVEL = 14
4-
SUBLEVEL = 29
4+
SUBLEVEL = 30
55
EXTRAVERSION =
66
NAME = Petit Gorille
77

‎arch/alpha/kernel/console.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
struct pci_controller *pci_vga_hose;
2222
static struct resource alpha_vga = {
2323
.name = "alpha-vga+",
24+
.flags = IORESOURCE_IO,
2425
.start = 0x3C0,
2526
.end = 0x3DF
2627
};

‎arch/arm/boot/dts/aspeed-ast2500-evb.dts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
bootargs = "console=ttyS4,115200 earlyprintk";
1717
};
1818

19-
memory {
19+
memory@80000000 {
2020
reg = <0x80000000 0x20000000>;
2121
};
2222
};

‎drivers/bluetooth/btqcomsmd.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ static int btqcomsmd_send(struct hci_dev *hdev, struct sk_buff *skb)
8686
break;
8787
}
8888

89-
kfree_skb(skb);
89+
if (!ret)
90+
kfree_skb(skb);
9091

9192
return ret;
9293
}

‎drivers/bluetooth/hci_qca.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,9 @@ static int qca_setup(struct hci_uart *hu)
933933
if (!ret) {
934934
set_bit(STATE_IN_BAND_SLEEP_ENABLED, &qca->flags);
935935
qca_debugfs_init(hdev);
936+
} else if (ret == -ENOENT) {
937+
/* No patch/nvm-config found, run with original fw/config */
938+
ret = 0;
936939
}
937940

938941
/* Setup bdaddr */

‎drivers/char/mem.c‎

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ static ssize_t read_mem(struct file *file, char __user *buf,
107107
phys_addr_t p = *ppos;
108108
ssize_t read, sz;
109109
void *ptr;
110+
char *bounce;
111+
int err;
110112

111113
if (p != *ppos)
112114
return 0;
@@ -129,15 +131,22 @@ static ssize_t read_mem(struct file *file, char __user *buf,
129131
}
130132
#endif
131133

134+
bounce = kmalloc(PAGE_SIZE, GFP_KERNEL);
135+
if (!bounce)
136+
return -ENOMEM;
137+
132138
while (count > 0) {
133139
unsigned long remaining;
134140
int allowed;
135141

136142
sz = size_inside_page(p, count);
137143

144+
err = -EPERM;
138145
allowed = page_is_allowed(p >> PAGE_SHIFT);
139146
if (!allowed)
140-
return -EPERM;
147+
goto failed;
148+
149+
err = -EFAULT;
141150
if (allowed == 2) {
142151
/* Show zeros for restricted memory. */
143152
remaining = clear_user(buf, sz);
@@ -149,24 +158,32 @@ static ssize_t read_mem(struct file *file, char __user *buf,
149158
*/
150159
ptr = xlate_dev_mem_ptr(p);
151160
if (!ptr)
152-
return -EFAULT;
153-
154-
remaining = copy_to_user(buf, ptr, sz);
161+
goto failed;
155162

163+
err = probe_kernel_read(bounce, ptr, sz);
156164
unxlate_dev_mem_ptr(p, ptr);
165+
if (err)
166+
goto failed;
167+
168+
remaining = copy_to_user(buf, bounce, sz);
157169
}
158170

159171
if (remaining)
160-
return -EFAULT;
172+
goto failed;
161173

162174
buf += sz;
163175
p += sz;
164176
count -= sz;
165177
read += sz;
166178
}
179+
kfree(bounce);
167180

168181
*ppos += read;
169182
return read;
183+
184+
failed:
185+
kfree(bounce);
186+
return err;
170187
}
171188

172189
static ssize_t write_mem(struct file *file, const char __user *buf,

‎drivers/clk/at91/pmc.c‎

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,20 @@ static int pmc_suspend(void)
107107
return 0;
108108
}
109109

110+
static bool pmc_ready(unsigned int mask)
111+
{
112+
unsigned int status;
113+
114+
regmap_read(pmcreg, AT91_PMC_SR, &status);
115+
116+
return ((status & mask) == mask) ? 1 : 0;
117+
}
118+
110119
static void pmc_resume(void)
111120
{
112-
int i, ret = 0;
121+
int i;
113122
u32 tmp;
123+
u32 mask = AT91_PMC_MCKRDY | AT91_PMC_LOCKA;
114124

115125
regmap_read(pmcreg, AT91_PMC_MCKR, &tmp);
116126
if (pmc_cache.mckr != tmp)
@@ -134,13 +144,11 @@ static void pmc_resume(void)
134144
AT91_PMC_PCR_CMD);
135145
}
136146

137-
if (pmc_cache.uckr & AT91_PMC_UPLLEN) {
138-
ret = regmap_read_poll_timeout(pmcreg, AT91_PMC_SR, tmp,
139-
!(tmp & AT91_PMC_LOCKU),
140-
10, 5000);
141-
if (ret)
142-
pr_crit("USB PLL didn't lock when resuming\n");
143-
}
147+
if (pmc_cache.uckr & AT91_PMC_UPLLEN)
148+
mask |= AT91_PMC_LOCKU;
149+
150+
while (!pmc_ready(mask))
151+
cpu_relax();
144152
}
145153

146154
static struct syscore_ops pmc_syscore_ops = {

‎drivers/clk/clk-axi-clkgen.c‎

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
#define MMCM_REG_FILTER1 0x4e
4141
#define MMCM_REG_FILTER2 0x4f
4242

43+
#define MMCM_CLKOUT_NOCOUNT BIT(6)
44+
45+
#define MMCM_CLK_DIV_NOCOUNT BIT(12)
46+
4347
struct axi_clkgen {
4448
void __iomem *base;
4549
struct clk_hw clk_hw;
@@ -315,12 +319,27 @@ static unsigned long axi_clkgen_recalc_rate(struct clk_hw *clk_hw,
315319
unsigned int reg;
316320
unsigned long long tmp;
317321

318-
axi_clkgen_mmcm_read(axi_clkgen, MMCM_REG_CLKOUT0_1, &reg);
319-
dout = (reg & 0x3f) + ((reg >> 6) & 0x3f);
322+
axi_clkgen_mmcm_read(axi_clkgen, MMCM_REG_CLKOUT0_2, &reg);
323+
if (reg & MMCM_CLKOUT_NOCOUNT) {
324+
dout = 1;
325+
} else {
326+
axi_clkgen_mmcm_read(axi_clkgen, MMCM_REG_CLKOUT0_1, &reg);
327+
dout = (reg & 0x3f) + ((reg >> 6) & 0x3f);
328+
}
329+
320330
axi_clkgen_mmcm_read(axi_clkgen, MMCM_REG_CLK_DIV, &reg);
321-
d = (reg & 0x3f) + ((reg >> 6) & 0x3f);
322-
axi_clkgen_mmcm_read(axi_clkgen, MMCM_REG_CLK_FB1, &reg);
323-
m = (reg & 0x3f) + ((reg >> 6) & 0x3f);
331+
if (reg & MMCM_CLK_DIV_NOCOUNT)
332+
d = 1;
333+
else
334+
d = (reg & 0x3f) + ((reg >> 6) & 0x3f);
335+
336+
axi_clkgen_mmcm_read(axi_clkgen, MMCM_REG_CLK_FB2, &reg);
337+
if (reg & MMCM_CLKOUT_NOCOUNT) {
338+
m = 1;
339+
} else {
340+
axi_clkgen_mmcm_read(axi_clkgen, MMCM_REG_CLK_FB1, &reg);
341+
m = (reg & 0x3f) + ((reg >> 6) & 0x3f);
342+
}
324343

325344
if (d == 0 || dout == 0)
326345
return 0;

‎drivers/clk/clk-si5351.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static const char * const si5351_input_names[] = {
7272
"xtal", "clkin"
7373
};
7474
static const char * const si5351_pll_names[] = {
75-
"plla", "pllb", "vxco"
75+
"si5351_plla", "si5351_pllb", "si5351_vxco"
7676
};
7777
static const char * const si5351_msynth_names[] = {
7878
"ms0", "ms1", "ms2", "ms3", "ms4", "ms5", "ms6", "ms7"

0 commit comments

Comments
 (0)