ar71xx: don't use vlan 0 for devices with rtl8366s switch
[openwrt.git] / package / mac80211 / patches / 170-dma_set_coherent_mask.patch
1 From 3c02b107ec11e14ef21e7a444ad83f0ef1e68f79 Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Sun, 13 Jun 2010 20:41:55 +0200
4 Subject: [PATCH 1/2] compat: backport dma_set_coherent_mask
5
6
7 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 ---
9 include/linux/compat-2.6.34.h | 8 ++++++++
10 1 files changed, 8 insertions(+), 0 deletions(-)
11
12 --- a/include/linux/compat-2.6.34.h
13 +++ b/include/linux/compat-2.6.34.h
14 @@ -216,6 +216,14 @@ do { \
15 #define dma_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0)
16 #endif
17
18 +static inline int dma_set_coherent_mask(struct device *dev, u64 mask)
19 +{
20 + if (!dma_supported(dev, mask))
21 + return -EIO;
22 + dev->coherent_dma_mask = mask;
23 + return 0;
24 +}
25 +
26 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34)) */
27
28 #endif /* LINUX_26_34_COMPAT_H */
This page took 0.045324 seconds and 5 git commands to generate.