Skip to content

Commit f0463f3

Browse files
committed
Merge tag 'omap-for-v4.18/fixes-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes
Fixes for omap for v4.18-rc cycle Few dts fixes for regressions for various SoCs and devices for touchscreen wake, dra7 USB quirk, pinmux for beaglebone mmc, and emac clock. Also included is a change for ti-sysc to use kcalloc that Kees wanted to get into v4.18 as that's the last one he wanted to fix for improved defense against allocation overflows. * tag 'omap-for-v4.18/fixes-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: ARM: dts: omap3: Fix am3517 mdio and emac clock references ARM: dts: am335x-bone-common: Fix mmc0 Write Protect bus: ti-sysc: Use 2-factor allocator arguments ARM: dts: dra7: Disable metastability workaround for USB2 ARM: dts: am437x: make edt-ft5x06 a wakeup source Signed-off-by: Olof Johansson <[email protected]>
2 parents 6d9d0f1 + 0144eb2 commit f0463f3

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

arch/arm/boot/dts/am335x-bone-common.dtsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@
168168
AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */
169169
AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */
170170
AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk.mmc0_clk */
171-
AM33XX_IOPAD(0x9a0, PIN_INPUT | MUX_MODE4) /* mcasp0_aclkr.mmc0_sdwp */
172171
>;
173172
};
174173

arch/arm/boot/dts/am3517.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
ti,davinci-ctrl-ram-size = <0x2000>;
4040
ti,davinci-rmii-en = /bits/ 8 <1>;
4141
local-mac-address = [ 00 00 00 00 00 00 ];
42+
clocks = <&emac_ick>;
43+
clock-names = "ick";
4244
};
4345

4446
davinci_mdio: ethernet@5c030000 {
@@ -49,6 +51,8 @@
4951
bus_freq = <1000000>;
5052
#address-cells = <1>;
5153
#size-cells = <0>;
54+
clocks = <&emac_fck>;
55+
clock-names = "fck";
5256
};
5357

5458
uart4: serial@4809e000 {

arch/arm/boot/dts/am437x-sk-evm.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,8 @@
610610

611611
touchscreen-size-x = <480>;
612612
touchscreen-size-y = <272>;
613+
614+
wakeup-source;
613615
};
614616

615617
tlv320aic3106: tlv320aic3106@1b {

arch/arm/boot/dts/dra7.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,6 @@
15801580
dr_mode = "otg";
15811581
snps,dis_u3_susphy_quirk;
15821582
snps,dis_u2_susphy_quirk;
1583-
snps,dis_metastability_quirk;
15841583
};
15851584
};
15861585

@@ -1608,6 +1607,7 @@
16081607
dr_mode = "otg";
16091608
snps,dis_u3_susphy_quirk;
16101609
snps,dis_u2_susphy_quirk;
1610+
snps,dis_metastability_quirk;
16111611
};
16121612
};
16131613

drivers/bus/ti-sysc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ static int sysc_get_clocks(struct sysc *ddata)
169169
const char *name;
170170
int nr_fck = 0, nr_ick = 0, i, error = 0;
171171

172-
ddata->clock_roles = devm_kzalloc(ddata->dev,
173-
sizeof(*ddata->clock_roles) *
172+
ddata->clock_roles = devm_kcalloc(ddata->dev,
174173
SYSC_MAX_CLOCKS,
174+
sizeof(*ddata->clock_roles),
175175
GFP_KERNEL);
176176
if (!ddata->clock_roles)
177177
return -ENOMEM;
@@ -200,8 +200,8 @@ static int sysc_get_clocks(struct sysc *ddata)
200200
return -EINVAL;
201201
}
202202

203-
ddata->clocks = devm_kzalloc(ddata->dev,
204-
sizeof(*ddata->clocks) * ddata->nr_clocks,
203+
ddata->clocks = devm_kcalloc(ddata->dev,
204+
ddata->nr_clocks, sizeof(*ddata->clocks),
205205
GFP_KERNEL);
206206
if (!ddata->clocks)
207207
return -ENOMEM;

0 commit comments

Comments
 (0)