Skip to content

Commit a771132

Browse files
committed
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: powerpc/83xx: Fix MCU support merge issue in mpc8349emitx.dts powerpc: Fix dma_map_sg() cache flushing on non coherent platforms
2 parents 2433c41 + dafdb61 commit a771132

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

‎arch/powerpc/boot/dts/mpc8349emitx.dts‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@
9191
interrupts = <18 0x8>;
9292
interrupt-parent = <&ipic>;
9393
};
94+
95+
mcu_pio: mcu@a {
96+
#gpio-cells = <2>;
97+
compatible = "fsl,mc9s08qg8-mpc8349emitx",
98+
"fsl,mcu-mpc8349emitx";
99+
reg = <0x0a>;
100+
gpio-controller;
101+
};
94102
};
95103

96104
spi@7000 {
@@ -139,14 +147,6 @@
139147
interrupt-parent = <&ipic>;
140148
interrupts = <71 8>;
141149
};
142-
143-
mcu_pio: mcu@a {
144-
#gpio-cells = <2>;
145-
compatible = "fsl,mc9s08qg8-mpc8349emitx",
146-
"fsl,mcu-mpc8349emitx";
147-
reg = <0x0a>;
148-
gpio-controller;
149-
};
150150
};
151151

152152
usb@22000 {

‎arch/powerpc/kernel/dma.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ static int dma_direct_map_sg(struct device *dev, struct scatterlist *sgl,
7575
for_each_sg(sgl, sg, nents, i) {
7676
sg->dma_address = sg_phys(sg) + get_dma_direct_offset(dev);
7777
sg->dma_length = sg->length;
78+
__dma_sync_page(sg_page(sg), sg->offset, sg->length, direction);
7879
}
7980

8081
return nents;

0 commit comments

Comments
 (0)