Projects
Essentials
broadcom-wl
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 12
View file
broadcom-wl.changes
Changed
@@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Tue Apr 21 05:55:23 UTC 2020 - manfred.h@gmx.net + +- Add broadcom-wl.linux-5.6.patch as Patch17 + +------------------------------------------------------------------- Wed Apr 3 17:52:44 UTC 2019 - olaf@aepfle.de - Add broadcom-wl.linux-5.1.patch
View file
broadcom-wl.spec
Changed
@@ -47,6 +47,7 @@ Patch14: broadcom-wl.linux-4.14.patch Patch15: broadcom-wl.linux-4.15.patch Patch16: broadcom-wl.linux-5.1.patch +Patch17: broadcom-wl.linux-5.6.patch %if %{defined kernel_module_package_buildreqs} BuildRequires: %{kernel_module_package_buildreqs} %endif
View file
broadcom-wl.linux-5.6.patch
Added
@@ -0,0 +1,57 @@ +diff -rup a/src/shared/linux_osl.c b/src/shared/linux_osl.c +--- a/src/shared/linux_osl.c 2020-04-21 08:30:44.872033927 +0200 ++++ b/src/shared/linux_osl.c 2020-04-21 08:33:31.744546100 +0200 +@@ -946,7 +946,7 @@ osl_getcycles(void) + void * + osl_reg_map(uint32 pa, uint size) + { +- return (ioremap_nocache((unsigned long)pa, (unsigned long)size)); ++ return (ioremap((unsigned long)pa, (unsigned long)size)); + } + + void +diff -rup a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c +--- a/src/wl/sys/wl_linux.c 2020-04-21 08:30:44.876033940 +0200 ++++ b/src/wl/sys/wl_linux.c 2020-04-21 08:33:31.744546100 +0200 +@@ -588,7 +588,7 @@ wl_attach(uint16 vendor, uint16 device, + } + wl->bcm_bustype = bustype; + +- if ((wl->regsva = ioremap_nocache(dev->base_addr, PCI_BAR0_WINSZ)) == NULL) { ++ if ((wl->regsva = ioremap(dev->base_addr, PCI_BAR0_WINSZ)) == NULL) { + WL_ERROR(("wl%d: ioremap() failed\n", unit)); + goto fail; + } +@@ -777,9 +777,9 @@ wl_pci_probe(struct pci_dev *pdev, const + pci_read_config_dword(pdev, 0x40, &val); + if ((val & 0x0000ff00) != 0) + pci_write_config_dword(pdev, 0x40, val & 0xffff00ff); +- bar1_size = pci_resource_len(pdev, 2); +- bar1_addr = (uchar *)ioremap_nocache(pci_resource_start(pdev, 2), +- bar1_size); ++ bar1_size = pci_resource_len(pdev, 2); ++ bar1_addr = (uchar *)ioremap(pci_resource_start(pdev, 2), ++ bar1_size); + wl = wl_attach(pdev->vendor, pdev->device, pci_resource_start(pdev, 0), PCI_BUS, pdev, + pdev->irq, bar1_addr, bar1_size); + +@@ -3354,12 +3354,19 @@ wl_proc_write(struct file *filp, const c + } + + #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0) ++static struct proc_ops wl_fops = { ++ .proc_read = wl_proc_read, ++ .proc_write = wl_proc_write, ++}; ++#else + static const struct file_operations wl_fops = { + .owner = THIS_MODULE, + .read = wl_proc_read, + .write = wl_proc_write, + }; + #endif ++#endif + + static int + wl_reg_proc_entry(wl_info_t *wl)
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.