openwrt/staging/blogic.git
12 years agocompat-wireless: disable wil6210 for kernels older than 2.6.30
Luis R. Rodriguez [Fri, 29 Jun 2012 15:16:59 +0000 (08:16 -0700)]
compat-wireless: disable wil6210 for kernels older than 2.6.30

wil6210 requires MSI only availble on >= 2.6.30.

signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>

12 years agocompat-wireless: remove -Werror from wil6210
Luis R. Rodriguez [Fri, 29 Jun 2012 00:55:28 +0000 (17:55 -0700)]
compat-wireless: remove -Werror from wil6210

This is making the build fail... Of course we will
have warnings when compiling against old kernels.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: stuff
Luis R. Rodriguez [Thu, 28 Jun 2012 23:06:19 +0000 (16:06 -0700)]
compat-wireless: stuff
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: add the Wilocity wil6210 802.11ad / 60 GHz driver
Luis R. Rodriguez [Thu, 28 Jun 2012 22:16:14 +0000 (15:16 -0700)]
compat-wireless: add the Wilocity wil6210 802.11ad / 60 GHz driver

This driver is still under development however some this driver
can now be used in monitor mode. Due to hardware limitation it
captures either only CP (control PHY) or DP (data PHY) frames.

Test compiled against 2.6.24..3.4

mcgrof@flash ~/devel/compat-wireless (git::master)$ ./scripts/driver-select wil6210
Processing new driver-select request...
Backing up makefile: Makefile.bk
Backup exists: Makefile.bk
Backup exists: Makefile.bk
Backup exists: Makefile.bk
Backup exists: Makefile.bk
Backing up makefile: drivers/net/wireless/Makefile.bk
Backing up makefile: drivers/net/wireless/ath/Makefile.bk
Backing up makefile: net/wireless/Makefile.bk
Backing up makefile: drivers/ssb/Makefile.bk
Backing up makefile: drivers/bcma/Makefile.bk
Backing up makefile: drivers/misc/eeprom/Makefile.bk
Backup exists: Makefile.bk

mcgrof@flash ~/devel/compat-wireless (git::master)$ ckmake
Trying kernel  3.4.0-030400rc4-generic [OK]
Trying kernel  3.3.3-030303-generic [OK]
Trying kernel  3.2.2-030202-generic [OK]
Trying kernel  3.1.10-030110-generic [OK]
Trying kernel  3.0.18-030018-generic [OK]
Trying kernel  2.6.39-02063904-generic [OK]
Trying kernel  2.6.38-02063808-generic [OK]
Trying kernel  2.6.37-02063706-generic [OK]
Trying kernel  2.6.36-02063604-generic [OK]
Trying kernel  2.6.35-02063512-generic [OK]
Trying kernel  2.6.34-02063410-generic [OK]
Trying kernel  2.6.33-02063305-generic [OK]
Trying kernel  2.6.32-02063255-generic [OK]
Trying kernel  2.6.31-02063113-generic [OK]
Trying kernel  2.6.30-02063010-generic [OK]
Trying kernel  2.6.29-02062906-generic [OK]
Trying kernel  2.6.28-02062810-generic [OK]
Trying kernel  2.6.27-020627-generic [OK]
Trying kernel  2.6.26-020626-generic [OK]
Trying kernel  2.6.25-020625-generic [OK]
Trying kernel  2.6.24-020624-generic [OK]

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: fix compilation of ti/wlcore/main.c
Luis R. Rodriguez [Thu, 28 Jun 2012 21:11:40 +0000 (14:11 -0700)]
compat-wireless: fix compilation of ti/wlcore/main.c

Forgot to propagate the irq name change.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120628
Luis R. Rodriguez [Thu, 28 Jun 2012 17:47:48 +0000 (10:47 -0700)]
compat-wireless: refresh patches for next-20120628

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: remove patches/49-rename_path_lookup.patch
Luis R. Rodriguez [Thu, 28 Jun 2012 17:46:39 +0000 (10:46 -0700)]
compat-wireless: remove patches/49-rename_path_lookup.patch

This is no longer required as this was addressed upstream via:

commit 5ad20dd1480dc557afcec19ac7fae5581264dd59
Author: Luis R. Rodriguez <mcgrof@frijolero.org>
Date:   Tue Feb 7 21:09:25 2012 -0800

    mac80211: rename mesh static path_lookup()

    If you want to use mesh support from mac80211 on a recent
    kernel on 2.6.24 you'll run into a name clash when compiling
    against include/linux/namei.h, so rename this routine.

    /home/mcgrof/tmp/compat-wireless-3.2.5-1/net/mac80211/mesh_pathtbl.c: At top level:
    /home/mcgrof/tmp/compat-wireless-3.2.5-1/net/mac80211/mesh_pathtbl.c:342:26: error: conflicting types for ‘path_lookup’
    include/linux/namei.h:71:12: note: previous declaration of ‘path_lookup’ was here

    Although this could sit as a separate patch in compat-wireless it seems
    best to just merge upstream.

Cc: Javier Cardona <javier@cozybit.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Acked-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: fix patches/44-deactivate-mac80211-tracing.patch
Luis R. Rodriguez [Thu, 28 Jun 2012 17:42:37 +0000 (10:42 -0700)]
compat-wireless: fix patches/44-deactivate-mac80211-tracing.patch

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: fix patches/09-threaded-irq.patch
Luis R. Rodriguez [Thu, 28 Jun 2012 17:39:13 +0000 (10:39 -0700)]
compat-wireless: fix patches/09-threaded-irq.patch

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: add patch to fix message tracing in mac80211
Johannes Berg [Thu, 28 Jun 2012 13:15:18 +0000 (15:15 +0200)]
compat-wireless: add patch to fix message tracing in mac80211

Just like in iwlwifi, the tracing in mac80211 needs to
copy va_args as some old kernels don't do it for %pV.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120622
Luis R. Rodriguez [Fri, 22 Jun 2012 17:24:07 +0000 (10:24 -0700)]
compat-wireless: refresh patches for next-20120622

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: skip name space changes on rtnl_notify()
Luis R. Rodriguez [Fri, 22 Jun 2012 17:19:30 +0000 (10:19 -0700)]
compat-wireless: skip name space changes on rtnl_notify()

Just avoid the namespace support for older kernels.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agoSee the description in the file -- the current code
Johannes Berg [Fri, 22 Jun 2012 17:14:55 +0000 (19:14 +0200)]
See the description in the file -- the current code
is safe only on recent upstream kernels, with 3.1
for example it can crash. The new code is safe on
all kernels that even support %pV, others just get
a pointer unfortunately.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: Naturally sort patch prefixes
Ozan Çağlayan [Fri, 22 Jun 2012 13:30:54 +0000 (16:30 +0300)]
compat-wireless: Naturally sort patch prefixes

Use ls -v to get a naturally sorted list of patches like:

patches/00-vga_switcheroo_client_ops.patch
patches/01-dma_buf_ops-addition.patch
patches/02-revert-vm_mmap.patch
patches/98-pr_fmt.patch
patches/99-change-makefile.patch
patches/9999-FIXME-dont-build-i915-for-i2c-problems.patch

instead of:

patches/00-vga_switcheroo_client_ops.patch
patches/01-dma_buf_ops-addition.patch
patches/02-revert-vm_mmap.patch
patches/98-pr_fmt.patch
patches/9999-FIXME-dont-build-i915-for-i2c-problems.patch
patches/99-change-makefile.patch

Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120621
Luis R. Rodriguez [Thu, 21 Jun 2012 22:59:33 +0000 (15:59 -0700)]
compat-wireless: refresh patches for next-20120621

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: Suck in ckmake from compat.git
Ozan Çağlayan [Thu, 21 Jun 2012 11:52:22 +0000 (14:52 +0300)]
compat-wireless: Suck in ckmake from compat.git

ckmake can be used directly to test compat-foo trees against the
installed kernel trees. So it is good to have it copied under
this tree.

Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
12 years agocompat-wireless: skip forcing refresh on gen-stable-release.sh
Luis R. Rodriguez [Tue, 19 Jun 2012 22:21:54 +0000 (15:21 -0700)]
compat-wireless: skip forcing refresh on gen-stable-release.sh

When gen-stable-release.sh is used we were forcing a refresh
but this breaks usage of gen-stable-release.sh -s -n -p -c
so just skip the refresh for now.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: update initramfs upon uninstall
Luis R. Rodriguez [Tue, 19 Jun 2012 19:28:19 +0000 (12:28 -0700)]
compat-wireless: update initramfs upon uninstall

This is needed upon uninstallation.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: remove alx and atl1c drivers upon uninstallation
Luis R. Rodriguez [Tue, 19 Jun 2012 19:27:28 +0000 (12:27 -0700)]
compat-wireless: remove alx and atl1c drivers upon uninstallation

We were only removing atl1c drivers before.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: move alx pending patches to crap
Luis R. Rodriguez [Tue, 19 Jun 2012 19:22:18 +0000 (12:22 -0700)]
compat-wireless: move alx pending patches to crap

The alx driver needs to remove the old devices that atl1c
already supports. This work is being done but users can
still use the alx driver. To help these users move the
alx patch to crap/ and add a new patch that disables all
the atl1c devices from the alx driver. This means we no
longer need a script to disable atlc.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: update directory paths for Atheros Ethernet drivers
Luis R. Rodriguez [Mon, 18 Jun 2012 23:00:13 +0000 (16:00 -0700)]
compat-wireless: update directory paths for Atheros Ethernet drivers

This is used when git grep'ing out for stable patches with
./scripts/admin-update.sh -s

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: fix stable alias on admin-update.sh
Luis R. Rodriguez [Mon, 18 Jun 2012 22:54:49 +0000 (15:54 -0700)]
compat-wireless: fix stable alias on admin-update.sh

When running ./scripts/admin-update.sh -s -- the code will look
for all pathces on linux-next since the current head tag on the
stable release we are on that have the stable@kernel.org
on the commit log. The e-mail address alias has changed
to stable@vger.kernel.org. This patch updates that alias so
we can continue to run:

./scripts/admin-update.sh -s

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120614
Luis R. Rodriguez [Thu, 14 Jun 2012 22:41:14 +0000 (15:41 -0700)]
compat-wireless: refresh patches for next-20120614

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: remove patches/63-request_module_nowait.patch
Luis R. Rodriguez [Thu, 14 Jun 2012 22:39:59 +0000 (15:39 -0700)]
compat-wireless: remove patches/63-request_module_nowait.patch

This is no longer required due to patch:

commit d4b10483223cf1a3fd2057785b12e2790a961867
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Tue Jun 12 19:50:43 2012 +0200

    iwlwifi: use request_module instead of _nowait

    Since request_module_nowait() can't be backported
    use request_module() instead -- we don't need the
    asynchronous behaviour of request_module_nowait()
    here since we're running in the firmware request
    work struct.

Tested-by: Donald H Fry <donald.h.fry@intel.com>
Reviewed-by: Donald H Fry <donald.h.fry@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: fix kernel check for CONFIG_WL18XX
Luis R. Rodriguez [Wed, 13 Jun 2012 05:13:22 +0000 (22:13 -0700)]
compat-wireless: fix kernel check for CONFIG_WL18XX

I meant you need at least 2.6.30 so the check should
be for ifdef CONFIG_COMPAT_KERNEL_2_6_30 as if
CONFIG_COMPAT_KERNEL_2_6_30 is defined it means we
have a kernel < 2.6.30

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: enable CONFIG_WL18XX on >= 2.6.30
Luis R. Rodriguez [Wed, 13 Jun 2012 03:55:02 +0000 (20:55 -0700)]
compat-wireless: enable CONFIG_WL18XX  on >= 2.6.30

Compilation breaks on older kernels.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: add TI WiLink 8 chipsets support
Luis R. Rodriguez [Wed, 13 Jun 2012 02:05:28 +0000 (19:05 -0700)]
compat-wireless: add TI WiLink 8 chipsets support

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120612
Luis R. Rodriguez [Wed, 13 Jun 2012 01:47:19 +0000 (18:47 -0700)]
compat-wireless: refresh patches for next-20120612

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: address intel wireless driver file rename
Luis R. Rodriguez [Wed, 13 Jun 2012 01:41:51 +0000 (18:41 -0700)]
compat-wireless: address intel wireless driver file rename

I like dark beers, and amber beers... Just saying.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: fix patches/09-threaded-irq.patch
Luis R. Rodriguez [Wed, 13 Jun 2012 01:00:04 +0000 (18:00 -0700)]
compat-wireless: fix patches/09-threaded-irq.patch

I'm tired of seeing this patch fail so I've moved
the struct that we add to the front. Each time the
data structure changes elements are added towards the
end, not the beginning. Hopefully this means we'll
have less required updates on this hunk! Only time
will tell.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: address usage of request_module_nowait() on iwlwifi
Luis R. Rodriguez [Tue, 12 Jun 2012 17:52:50 +0000 (10:52 -0700)]
compat-wireless: address usage of request_module_nowait() on iwlwifi

request_module_nowait() was added on 2.6.30 but we can't
backport it. Under some circumstances though request_module_nowait()
likely was not meant to be used on purpose and instead we can
assume request_module() will work. This patch addresses the few
places where request_module_nowait() was used but that we can
at least somewhat assume that this can work. We do not backport
this into compat.git as a direct static inline given that there
are surely some places where request_module() cannot be used.

All users of request_module_nowait() should revise their code and
snsure that is indeed what was meant.

In this patch we address using the regular request_module() on
iwlwifi given that it seems we can use it there. Someone can
hopefully however test and verify this is OK. For newer kernels
that have request_module_nowait() we leave the call.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120608
Luis R. Rodriguez [Mon, 11 Jun 2012 23:23:40 +0000 (16:23 -0700)]
compat-wireless: refresh patches for next-20120608

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: update some urls to git trees in docs
Hauke Mehrtens [Mon, 11 Jun 2012 22:13:49 +0000 (00:13 +0200)]
compat-wireless: update some urls to git trees in docs

Changes some references to compat and compat-wireless git tree hosted
at git.kernel.org to github and changed some references from wireless-
testing to linux-next and linux-2.6-allstable to linux-stable.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: fix syntax error introduced recently
Hauke Mehrtens [Wed, 30 May 2012 22:55:10 +0000 (00:55 +0200)]
compat-wireless: fix syntax error introduced recently

A closing parenthesis was accentually removed in this commit:
ommit 86596a46269e9b317ef3ee92f21453320d855018
Author: Luis R. Rodriguez <mcgrof@frijolero.org>
Date:   Tue May 29 12:50:42 2012 -0700

    compat-wireless: fix patches/24-pcmcia.patch for next-20120524

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: add additional header file for bluetooth
Hauke Mehrtens [Sun, 3 Jun 2012 14:30:13 +0000 (16:30 +0200)]
compat-wireless: add additional header file for bluetooth

This fixes a compile problem with all kernel versions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120529 again
Luis R. Rodriguez [Wed, 30 May 2012 00:00:21 +0000 (17:00 -0700)]
compat-wireless: refresh patches for next-20120529 again

After applying Hauke's patches I needed to refresh the patches.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: add include/net/bluetooth/{hci_mon.h,sco.h}
Hauke Mehrtens [Tue, 29 May 2012 22:39:42 +0000 (00:39 +0200)]
compat-wireless: add include/net/bluetooth/{hci_mon.h,sco.h}

These two header files used by the bluetooth system are not included in
compat-wireless, but should be.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: add bluetooth to sdio suspend remove patch
Hauke Mehrtens [Tue, 29 May 2012 22:39:41 +0000 (00:39 +0200)]
compat-wireless: add bluetooth to sdio suspend remove patch

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: add bluetooth to pr_fmt patch
Hauke Mehrtens [Tue, 29 May 2012 22:39:40 +0000 (00:39 +0200)]
compat-wireless: add bluetooth to pr_fmt patch

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: add asm/unaligned.h include to ath6kl
Hauke Mehrtens [Tue, 29 May 2012 22:39:39 +0000 (00:39 +0200)]
compat-wireless: add asm/unaligned.h include to ath6kl

Some old kernel versions are missing this include and we get a compile
error because of missing get_unaligned_le16() prototype.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: add linux/compat.h header
Hauke Mehrtens [Tue, 29 May 2012 22:39:38 +0000 (00:39 +0200)]
compat-wireless: add linux/compat.h header

For some older kernel versions we have to include linux/compat.h in
some bluetooth code, otherwise it will not find functions like
compat_ptr().

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: deactivate wl1251 for kernel < 2.6.37
Hauke Mehrtens [Tue, 29 May 2012 22:39:37 +0000 (00:39 +0200)]
compat-wireless: deactivate wl1251 for kernel < 2.6.37

wl1251_sdio and wl1251_spi are depending on irq_set_status_flags() since

commit f380f2c4a12e913356bd49f8790ec1063c4fe9f8
Author: Grazvydas Ignotas <notasas@gmail.com>
Date:   Fri May 18 03:04:08 2012 +0300

    wl1251: fix oops on early interrupt

irq_set_status_flags() was added to the kernel in version 2.6.37 and
backporting it is hard, so do not build wl1251_sdio and wl1251_spi for
older kernel versions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: add usb driver lpm
Hauke Mehrtens [Tue, 29 May 2012 22:39:36 +0000 (00:39 +0200)]
compat-wireless: add usb driver lpm

This adds a patch to backport:
commit e1f12eb6ba6f1e74007eb01ed26fad7c5239d62b
Author: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Date:   Mon Apr 23 10:08:51 2012 -0700

    USB: Disable hub-initiated LPM for comms devices.

This patch should be replaced with something in compat, but I do not
have the time now.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120529
Luis R. Rodriguez [Tue, 29 May 2012 20:24:19 +0000 (13:24 -0700)]
compat-wireless: refresh patches for next-20120529

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120524
Luis R. Rodriguez [Tue, 29 May 2012 20:03:04 +0000 (13:03 -0700)]
compat-wireless: refresh patches for next-20120524

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: fix patches/46-use_other_workqueue.patch for next-20120524
Luis R. Rodriguez [Tue, 29 May 2012 20:01:13 +0000 (13:01 -0700)]
compat-wireless: fix patches/46-use_other_workqueue.patch for next-20120524

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: fix patches/24-pcmcia.patch for next-20120524
Luis R. Rodriguez [Tue, 29 May 2012 19:50:42 +0000 (12:50 -0700)]
compat-wireless: fix patches/24-pcmcia.patch for next-20120524

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: fix b/patches/16-bluetooth.patch for next-20120524
Luis R. Rodriguez [Tue, 29 May 2012 16:31:02 +0000 (09:31 -0700)]
compat-wireless: fix b/patches/16-bluetooth.patch for next-20120524

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: fix patches/05-usb.patch for next-20120524
Luis R. Rodriguez [Tue, 29 May 2012 16:12:13 +0000 (09:12 -0700)]
compat-wireless: fix patches/05-usb.patch for next-20120524

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches
Luis R. Rodriguez [Thu, 17 May 2012 23:20:57 +0000 (16:20 -0700)]
compat-wireless: refresh patches

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: remove patches/51-in-header.patch
Luis R. Rodriguez [Thu, 17 May 2012 23:16:55 +0000 (16:16 -0700)]
compat-wireless: remove patches/51-in-header.patch

This is no longer required as the respective upstream patch
is already merged.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
12 years agocompat-wireless: fix patches/11-dev-pm-ops.patch
Luis R. Rodriguez [Thu, 17 May 2012 23:13:53 +0000 (16:13 -0700)]
compat-wireless: fix patches/11-dev-pm-ops.patch

One hunk no longer applied.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
12 years agocompat-wireless: copy over rndis.h
Luis R. Rodriguez [Thu, 17 May 2012 03:50:49 +0000 (20:50 -0700)]
compat-wireless: copy over rndis.h

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120516
Luis R. Rodriguez [Thu, 17 May 2012 03:38:48 +0000 (20:38 -0700)]
compat-wireless: refresh patches for next-20120516

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: fix patches/09-threaded-irq.patch
Luis R. Rodriguez [Thu, 17 May 2012 03:34:31 +0000 (20:34 -0700)]
compat-wireless: fix patches/09-threaded-irq.patch

The offsets were off. Simple fix.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: add support for COMPAT_BASE version prinout
Luis R. Rodriguez [Thu, 17 May 2012 03:17:45 +0000 (20:17 -0700)]
compat-wireless: add support for COMPAT_BASE version prinout

The COMPAT_BASE prints out the tag from where we pulled
compat.git code from. This is useful when debugging code
and verifying what version of compat was used.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: remove master-tag file
Luis R. Rodriguez [Thu, 17 May 2012 02:11:05 +0000 (19:11 -0700)]
compat-wireless: remove master-tag file

The master-tag file was used to describe from where we pulled
code from when wireless-testing was used instead of linux-next.git.
It turns out the way this was being done could lead to incorrect
descriptions given that the master-tag file was generated by
looking at all the git tags present and using the latest master
tag. The assumption is that your tree would not have any newer
master tags. Turns out that we can use git describe to extract
correctly the proper master tag, at least now this seems to work
well on wireless-testing. Even if it does not work the git describe
tag is a better representation and would lead to less mistakes.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120511
Luis R. Rodriguez [Fri, 11 May 2012 21:32:29 +0000 (14:32 -0700)]
compat-wireless: refresh patches for next-20120511

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: copy compat/*.h files as well
Luis R. Rodriguez [Tue, 8 May 2012 01:56:35 +0000 (18:56 -0700)]
compat-wireless: copy compat/*.h files as well

Not all header files within compat need to export data to
userspace, these files are located in compat/compat/*.h,
so copy them over.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: synch with next-20120504
Luis R. Rodriguez [Mon, 7 May 2012 03:35:11 +0000 (20:35 -0700)]
compat-wireless: synch with next-20120504

Happy cinco de Mayo.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: add support for CONFIG_HID_GENERIC
Luis R. Rodriguez [Mon, 7 May 2012 03:32:32 +0000 (20:32 -0700)]
compat-wireless: add support for CONFIG_HID_GENERIC

The HID driver code was moved to a separate module under
CONFIG_HID_GENERIC. We remove the old code that had patched
support for it given that ifdef'd code around calls to
hid_register_driver() and friends given that this was only
available on kernels >= 2.6.28. We simply only compile the
code in question on newer kernels.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: add skip-colors to refresh-compat
Luis R. Rodriguez [Sat, 5 May 2012 00:28:09 +0000 (17:28 -0700)]
compat-wireless: add skip-colors to refresh-compat

This lets us run ckmake on standalone development trees.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: license under ISC files for standalone builds
Luis R. Rodriguez [Sat, 5 May 2012 00:09:44 +0000 (17:09 -0700)]
compat-wireless: license under ISC files for standalone builds

This licenses under the ISC license scripts/refresh-compat,
scripts/refresh-compat-local and the top level Makefile to help
standalone development code be ISC licensed. The goal is to help
a standalone development tree to be used to target either Linux
or BSD.

In the Linux target case although the files may be ISC licensed, as it
was discussed on lkml [0] the run time license of the module will
still be GPL, so no one should even think that they can make proprietary
or BSD-licensed only modules out of the Linux kernel with this framework.

The goal is to let a standalone git tree exist and allow modules to be
build either for Linux or BSd.

[0] http://article.gmane.org/gmane.linux.kernel/1278784

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wirless: prefix release files with dot
Luis R. Rodriguez [Fri, 4 May 2012 22:35:27 +0000 (15:35 -0700)]
compat-wirless: prefix release files with dot

This prefixes these files with a dot:

compat_base_tree -->         .compat_base_tree
compat_base_tree_version --> .compat_base_tree_version
compat_version -->           .compat_version

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireles: add scripts to help standalone development trees
Luis R. Rodriguez [Fri, 4 May 2012 22:27:35 +0000 (15:27 -0700)]
compat-wireles: add scripts to help standalone development trees

This adds a set of scripts to help you use compat-wireless to maintain
standalone development trees that use compat-wireless and synch with it.

An example standalone development git tree will be provided later.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120501
Luis R. Rodriguez [Wed, 2 May 2012 22:47:34 +0000 (15:47 -0700)]
compat-wireless: refresh patches for next-20120501

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120430
Luis R. Rodriguez [Mon, 30 Apr 2012 18:54:31 +0000 (11:54 -0700)]
compat-wireless: refresh patches for next-20120430

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agoRevert "compat-wireless: add sched.h on libertas/firmware.c"
Luis R. Rodriguez [Mon, 30 Apr 2012 18:52:59 +0000 (11:52 -0700)]
Revert "compat-wireless: add sched.h on libertas/firmware.c"

This reverts commit 2010bb84bc7e5e711c84a09ce0690348d6683c12.

12 years agocompat-wireless: fix patches/24-pcmcia.patch
Luis R. Rodriguez [Mon, 30 Apr 2012 17:26:13 +0000 (10:26 -0700)]
compat-wireless: fix patches/24-pcmcia.patch

The variable name to the data structure changed.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120427
Luis R. Rodriguez [Sat, 28 Apr 2012 03:01:19 +0000 (20:01 -0700)]
compat-wireless: refresh patches for next-20120427

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: fix patches/53-pr_fmt.patch
Luis R. Rodriguez [Sat, 28 Apr 2012 02:59:58 +0000 (19:59 -0700)]
compat-wireless: fix patches/53-pr_fmt.patch

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120424
Luis R. Rodriguez [Wed, 25 Apr 2012 16:46:24 +0000 (09:46 -0700)]
compat-wireless: refresh patches for next-20120424

mcgrof@flash ~/devel/compat-wireless (git::master)$ ckmake
Trying kernel                  3.4.0-030400rc4-generic  [OK]
Trying kernel                     3.3.3-030303-generic  [OK]
Trying kernel                     3.2.2-030202-generic  [OK]
Trying kernel                    3.1.10-030110-generic  [OK]
Trying kernel                    3.0.18-030018-generic  [OK]
Trying kernel                  2.6.39-02063904-generic  [OK]
Trying kernel                  2.6.38-02063808-generic  [OK]
Trying kernel                  2.6.37-02063706-generic  [OK]
Trying kernel                  2.6.36-02063604-generic  [OK]
Trying kernel                  2.6.35-02063512-generic  [OK]
Trying kernel                  2.6.34-02063410-generic  [OK]
Trying kernel                  2.6.33-02063305-generic  [OK]
Trying kernel                  2.6.32-02063255-generic  [OK]
Trying kernel                  2.6.31-02063113-generic  [OK]
Trying kernel                  2.6.30-02063010-generic  [OK]
Trying kernel                  2.6.29-02062906-generic  [OK]
Trying kernel                  2.6.28-02062810-generic  [OK]
Trying kernel                    2.6.27-020627-generic  [OK]
Trying kernel                    2.6.26-020626-generic  [OK]
Trying kernel                    2.6.25-020625-generic  [OK]
Trying kernel                    2.6.24-020624-generic  [OK]

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: fix patches/24-pcmcia.patch
Luis R. Rodriguez [Tue, 24 Apr 2012 21:09:54 +0000 (14:09 -0700)]
compat-wireless: fix patches/24-pcmcia.patch

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: adjust pr_fmt patch some more
Luis R. Rodriguez [Tue, 24 Apr 2012 01:58:47 +0000 (18:58 -0700)]
compat-wireless: adjust pr_fmt patch some more

Only printk.h is neeeded, no need to include kernel.h

mcgrof@flash ~/devel/compat-wireless (git::master)$ time ckmake; time ckmake
Trying kernel                  3.4.0-030400rc4-generic  [OK]
Trying kernel                     3.3.3-030303-generic  [OK]
Trying kernel                     3.2.2-030202-generic  [OK]
Trying kernel                    3.1.10-030110-generic  [OK]
Trying kernel                    3.0.18-030018-generic  [OK]
Trying kernel                  2.6.39-02063904-generic  [OK]
Trying kernel                  2.6.38-02063808-generic  [OK]
Trying kernel                  2.6.37-02063706-generic  [OK]
Trying kernel                  2.6.36-02063604-generic  [OK]
Trying kernel                  2.6.35-02063512-generic  [OK]
Trying kernel                  2.6.34-02063410-generic  [OK]
Trying kernel                  2.6.33-02063305-generic  [OK]
Trying kernel                  2.6.32-02063255-generic  [OK]
Trying kernel                  2.6.31-02063113-generic  [OK]
Trying kernel                  2.6.30-02063010-generic  [OK]
Trying kernel                  2.6.29-02062906-generic  [OK]
Trying kernel                  2.6.28-02062810-generic  [OK]
Trying kernel                    2.6.27-020627-generic  [OK]
Trying kernel                    2.6.26-020626-generic  [OK]
Trying kernel                    2.6.25-020625-generic  [OK]
Trying kernel                    2.6.24-020624-generic  [OK]

real    94m39.991s
user    287m51.955s
sys     26m37.828s

real    18m20.621s
user    41m8.998s
sys     8m59.742s

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: add sched.h on libertas/firmware.c
Luis R. Rodriguez [Tue, 24 Apr 2012 01:01:21 +0000 (18:01 -0700)]
compat-wireless: add sched.h on libertas/firmware.c

sched.h is required to compile users of wake_up(),
firmware.c somehow gets sched.h included on newer kernels
but on older kernels this is not happening so include
this on the file itself. This patch should and will
be sent upstream.

This fixes this compilation error:

/home/mcgrof/devel/compat-wireless/drivers/net/wireless/libertas/firmware.c: In function ‘lbs_fw_loaded’:
/home/mcgrof/devel/compat-wireless/drivers/net/wireless/libertas/firmware.c:26:29: error: ‘TASK_NORMAL’ undeclared (first use in this function)
/home/mcgrof/devel/compat-wireless/drivers/net/wireless/libertas/firmware.c:26:29: note: each undeclared identifier is reported only once for each function it appears in
/home/mcgrof/devel/compat-wireless/drivers/net/wireless/libertas/firmware.c: In function ‘lbs_wait_for_firmware_load’:
/home/mcgrof/devel/compat-wireless/drivers/net/wireless/libertas/firmware.c:110:260: error: ‘TASK_UNINTERRUPTIBLE’ undeclared (first use in this function)
/home/mcgrof/devel/compat-wireless/drivers/net/wireless/libertas/firmware.c:110:2: error: implicit declaration of function ‘schedule’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors

make[4]: *** [/home/mcgrof/devel/compat-wireless/drivers/net/wireless/libertas/firmware.o] Error 1

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: few more pr_fmt fixes for drivers
Luis R. Rodriguez [Tue, 24 Apr 2012 00:51:32 +0000 (17:51 -0700)]
compat-wireless: few more pr_fmt fixes for drivers

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120423
Luis R. Rodriguez [Mon, 23 Apr 2012 23:58:20 +0000 (16:58 -0700)]
compat-wireless: refresh patches for next-20120423

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: add an extra include to ath6kl/htc_pipe.c
Hauke Mehrtens [Sun, 22 Apr 2012 22:03:19 +0000 (00:03 +0200)]
compat-wireless: add an extra include to ath6kl/htc_pipe.c

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: build alx for kernel > 2.6.27
Hauke Mehrtens [Sun, 22 Apr 2012 22:03:18 +0000 (00:03 +0200)]
compat-wireless: build alx for kernel > 2.6.27

When compiling against kernel <= 2.6.27 alx has build errors so use
atl1c there instead. The logic was wrong before.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: deactivate CONFIG_BT_RFCOMM_TTY for old kernel versions.
Hauke Mehrtens [Sun, 22 Apr 2012 22:03:17 +0000 (00:03 +0200)]
compat-wireless: deactivate CONFIG_BT_RFCOMM_TTY for old kernel versions.

net/bluetooth/rfcomm/tty.c does not build on older kernel versions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: ath6kl: add config options for SDIO and USB
Hauke Mehrtens [Sun, 22 Apr 2012 22:03:16 +0000 (00:03 +0200)]
compat-wireless: ath6kl: add config options for SDIO and USB

ath6kl now supports USB and SDIO based devices, this patch adds the
config options for them.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: brcmfmac: add usb config option
Hauke Mehrtens [Sun, 22 Apr 2012 22:03:15 +0000 (00:03 +0200)]
compat-wireless: brcmfmac: add usb config option

This activates the usb part of brcmfmac.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: ti: fix some problems with the config options
Hauke Mehrtens [Sun, 22 Apr 2012 22:03:14 +0000 (00:03 +0200)]
compat-wireless: ti: fix some problems with the config options

After the ti drivers where reorganized some config options in config.mk
where wrong. This patch corrects them.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: ath6kl: deactivate suspend/resume only for SDIO
Hauke Mehrtens [Sun, 22 Apr 2012 22:03:13 +0000 (00:03 +0200)]
compat-wireless: ath6kl: deactivate suspend/resume only for SDIO

If ath6kl is used on a USB device suspend/resume should work, only on
SDIO based devices this causes some problems with older kernel versions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches with next-20120419
Luis R. Rodriguez [Fri, 20 Apr 2012 03:19:44 +0000 (20:19 -0700)]
compat-wireless: refresh patches with next-20120419

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: address moving of TI drivers
Luis R. Rodriguez [Fri, 20 Apr 2012 03:18:42 +0000 (20:18 -0700)]
compat-wireless: address moving of TI drivers

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: split patches/01-netdev.patch up
Luis R. Rodriguez [Wed, 11 Apr 2012 02:12:50 +0000 (19:12 -0700)]
compat-wireless: split patches/01-netdev.patch up

This splits up patches/01-netdev.patch into the following
set of patches:

patches/0001-netdev_ops.patch
patches/0002-net-misc.patch
patches/0003-netdev-needed_headroom_tailroom.patch
patches/0004-wext-namespace.patch

This isolates the network device operations infrastructure
into a separate file to show one collateral evolution [0].
The next objective will be to extract SmPL out of the patch
patches/0001-netdev_ops.patch. If we can extract SmPL [1] out
of it, with the help of compat as a backend store to help
us backport the work required, we could automatically backport
this collateral evolution to any network driver. Backporting
this specific collateral evolution then on compat-wireless
would simply require adding the driver's directory to be
copied into the framework, a one line change.

If we keep doing this for more collateral evolutions the
implications are the ability to enhance automatically
backporting even more collateral evolutions and therefore
drivers.

mcgrof@flash ~/devel/compat-wireless (git::master)$ time ckmake ; time ckmake
Trying kernel                     3.2.2-030202-generic  [OK]
Trying kernel                    3.1.10-030110-generic  [OK]
Trying kernel                    3.0.18-030018-generic  [OK]
Trying kernel                  2.6.39-02063904-generic  [OK]
Trying kernel                  2.6.38-02063808-generic  [OK]
Trying kernel                  2.6.37-02063706-generic  [OK]
Trying kernel                  2.6.36-02063604-generic  [OK]
Trying kernel                  2.6.35-02063512-generic  [OK]
Trying kernel                  2.6.34-02063410-generic  [OK]
Trying kernel                  2.6.33-02063305-generic  [OK]
Trying kernel                  2.6.32-02063255-generic  [OK]
Trying kernel                  2.6.31-02063113-generic  [OK]
Trying kernel                  2.6.30-02063010-generic  [OK]
Trying kernel                  2.6.29-02062906-generic  [OK]
Trying kernel                  2.6.28-02062810-generic  [OK]
Trying kernel                    2.6.27-020627-generic  [OK]
Trying kernel                    2.6.26-020626-generic  [OK]
Trying kernel                    2.6.25-020625-generic  [OK]
Trying kernel                    2.6.24-020624-generic  [OK]

real    85m10.426s
user    258m22.297s
sys     22m55.582s

real    14m37.117s
user    32m18.885s
sys     7m4.599s

[0] http://coccinelle.lip6.fr/ce.php
[1] http://coccinelle.lip6.fr/

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120410
Luis R. Rodriguez [Tue, 10 Apr 2012 22:42:33 +0000 (15:42 -0700)]
compat-wireless: refresh patches for next-20120410

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: fix patches/01-netdev.patch
Luis R. Rodriguez [Tue, 10 Apr 2012 22:35:36 +0000 (15:35 -0700)]
compat-wireless: fix patches/01-netdev.patch

This was caused by these patches:

Author: Francois Romieu <romieu@fr.zoreil.com>
Date:   Fri Mar 9 19:28:28 2012 +0100

    atl1e: stop using net_device.{base_addr, irq}.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Jay Cliburn <jcliburn@gmail.com>
Cc: Chris Snook <chris.snook@gmail.com>
Author: Francois Romieu <romieu@fr.zoreil.com>
Date:   Fri Mar 9 19:22:31 2012 +0100

    atl1c: stop using net_device.{base_addr, irq}.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Jay Cliburn <jcliburn@gmail.com>
Cc: Chris Snook <chris.snook@gmail.com>
I cannot find an explanation to the removal of the assignments:

netdev->base_addr = (unsigned long)adapter->hw.hw_addr;
netdev->irq  = pdev->irq;

even on the public mailing lists, and the commit logs do not
explain *why* these are being removed. For now just leave this
as is...

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: simplify mac80211 queue backport
Johannes Berg [Fri, 6 Apr 2012 21:01:21 +0000 (23:01 +0200)]
compat-wireless: simplify mac80211 queue backport

With compat now having a define for netif_wake_subqueue
for kernels 2.6.23 and higher we can remove most of the
backport patch for multiqueue. This does give up on
kernels 2.6.22 and older though.

mcgrof@flash ~/devel/compat-wireless (git::master)$ time ckmake
Trying kernel                     3.2.2-030202-generic  [OK]
Trying kernel                    3.1.10-030110-generic  [OK]
Trying kernel                    3.0.18-030018-generic  [OK]
Trying kernel                  2.6.39-02063904-generic  [OK]
Trying kernel                  2.6.38-02063808-generic  [OK]
Trying kernel                  2.6.37-02063706-generic  [OK]
Trying kernel                  2.6.36-02063604-generic  [OK]
Trying kernel                  2.6.35-02063512-generic  [OK]
Trying kernel                  2.6.34-02063410-generic  [OK]
Trying kernel                  2.6.33-02063305-generic  [OK]
Trying kernel                  2.6.32-02063255-generic  [OK]
Trying kernel                  2.6.31-02063113-generic  [OK]
Trying kernel                  2.6.30-02063010-generic  [OK]
Trying kernel                  2.6.29-02062906-generic  [OK]
Trying kernel                  2.6.28-02062810-generic  [OK]
Trying kernel                    2.6.27-020627-generic  [OK]
Trying kernel                    2.6.26-020626-generic  [OK]
Trying kernel                    2.6.25-020625-generic  [OK]
Trying kernel                    2.6.24-020624-generic  [OK]

real    27m43.716s
user    69m9.115s
sys     13m8.241s

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: backport get_ts_info support
Luis R. Rodriguez [Fri, 6 Apr 2012 21:50:16 +0000 (14:50 -0700)]
compat-wireless: backport get_ts_info support

Linux 3.5 will have get_ts_info to support the Precision Time Protocol.

http://linuxptp.sourceforge.net/
http://en.wikipedia.org/wiki/Precision_Time_Protocol

We cannot backport this support given that this introduces
a data structure change on the ethtool_ops.

commit c8f3a8c31069137fe0100e6920558f1a7487ef3c
Author: Richard Cochran <richardcochran@gmail.com>
Date:   Tue Apr 3 22:59:17 2012 +0000

    ethtool: Introduce a method for getting time stamping capabilities.

    This commit adds a new ethtool ioctl that exposes the SO_TIMESTAMPING
    capabilities of a network interface. In addition, user space programs
    can use this ioctl to discover the PTP Hardware Clock (PHC) device
    associated with the interface.

    Since software receive time stamps are handled by the stack, the generic
    ethtool code can answer the query correctly in case the MAC or PHY
    drivers lack special time stamping features.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Reviewed-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
mcgrof@flash ~/devel/compat-wireless (git::master)$ time ckmake; time ckmake
Trying kernel                     3.2.2-030202-generic  [OK]
Trying kernel                    3.1.10-030110-generic  [OK]
Trying kernel                    3.0.18-030018-generic  [OK]
Trying kernel                  2.6.39-02063904-generic  [OK]
Trying kernel                  2.6.38-02063808-generic  [OK]
Trying kernel                  2.6.37-02063706-generic  [OK]
Trying kernel                  2.6.36-02063604-generic  [OK]
Trying kernel                  2.6.35-02063512-generic  [OK]
Trying kernel                  2.6.34-02063410-generic  [OK]
Trying kernel                  2.6.33-02063305-generic  [OK]
Trying kernel                  2.6.32-02063255-generic  [OK]
Trying kernel                  2.6.31-02063113-generic  [OK]
Trying kernel                  2.6.30-02063010-generic  [OK]
Trying kernel                  2.6.29-02062906-generic  [OK]
Trying kernel                  2.6.28-02062810-generic  [OK]
Trying kernel                    2.6.27-020627-generic  [OK]
Trying kernel                    2.6.26-020626-generic  [OK]
Trying kernel                    2.6.25-020625-generic  [OK]
Trying kernel                    2.6.24-020624-generic  [OK]

real    70m16.460s
user    204m37.315s
sys     19m56.447s

real    15m35.818s
user    33m10.020s
sys     7m19.779s

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: add export to commented out config vars
Johannes Berg [Thu, 5 Apr 2012 12:09:13 +0000 (14:09 +0200)]
compat-wireless: add export to commented out config vars

This makes it easier to enable config items correctly.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: provide URL for code metrics archive
Luis R. Rodriguez [Tue, 3 Apr 2012 18:17:38 +0000 (11:17 -0700)]
compat-wireless: provide URL for code metrics archive

This uses the Google Fusion Tables to keep track of code
metrics accross releases. What would be nice is if someone
adds the code required to upload stats automatically for
each release.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: skip forcing .config include
Luis R. Rodriguez [Tue, 3 Apr 2012 16:59:16 +0000 (09:59 -0700)]
compat-wireless: skip forcing .config include

We know that .config will exist but it will not exist on
the make clean target. So skip that.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: fix pr_fmt compile warnings
Luis R. Rodriguez [Tue, 3 Apr 2012 03:30:10 +0000 (20:30 -0700)]
compat-wireless: fix pr_fmt compile warnings

This took a while to figure out... Thought this was impossible
to fix, but the fix is quite simple: fix this upstream. The
assumption by drivers when upstream is that you should #define
pr_fmt *prior* to including <linux/printk.h> but -- the assumption
is incorrect given that if a subsystem includes printk.h for
anything that the subsystem needs then the module would be defining
the pr_fmt. The proper usage then for pr_fmt then is to always
undef it first, and also include <linux/printk.h>.

When test cross compiling against 2.6.24 - 3.3 I notice that including
<linux/kernel.h> also helps, so do this for now. There may be
another reason why that is required but we can figure that out later.

This patch should be broken down into chunks and submitted upstream.
This shaves off compilation time down from 1 hour to 1/2 hour!

mcgrof@flash ~/devel/compat-wireless (git::master)$ time ckmake
Trying kernel                     3.2.2-030202-generic  [OK]
Trying kernel                    3.1.10-030110-generic  [OK]
Trying kernel                    3.0.18-030018-generic  [OK]
Trying kernel                  2.6.39-02063904-generic  [OK]
Trying kernel                  2.6.38-02063808-generic  [OK]
Trying kernel                  2.6.37-02063706-generic  [OK]
Trying kernel                  2.6.36-02063604-generic  [OK]
Trying kernel                  2.6.35-02063512-generic  [OK]
Trying kernel                  2.6.34-02063410-generic  [OK]
Trying kernel                  2.6.33-02063305-generic  [OK]
Trying kernel                  2.6.32-02063255-generic  [OK]
Trying kernel                  2.6.31-02063113-generic  [OK]
Trying kernel                  2.6.30-02063010-generic  [OK]
Trying kernel                  2.6.29-02062906-generic  [OK]
Trying kernel                  2.6.28-02062810-generic  [OK]
Trying kernel                    2.6.27-020627-generic  [OK]
Trying kernel                    2.6.26-020626-generic  [OK]
Trying kernel                    2.6.25-020625-generic  [OK]
Trying kernel                    2.6.24-020624-generic  [OK]

real    29m17.269s
user    75m56.693s
sys     10m48.469s

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: backport assinging the tty dev to hci dev
Luis R. Rodriguez [Tue, 3 Apr 2012 01:03:05 +0000 (18:03 -0700)]
compat-wireless: backport assinging the tty dev to hci dev

This backports assinging the tty device to the hci parent
pointer. The goal was to make the devices link under /sys/
but on older kernels we cannot support this. One alternative
that occurs to me is to have a compat subsystem where userspace
applications can hunt for such newer devices, but this requires
quite a bit of work and consideration.

commit 7f4b2b04c88377af30c022f36c060190182850fb
Author: Andrei Warkentin <andreiw@motorola.com>
Date:   Fri Feb 11 17:19:26 2011 -0600

    Bluetooth: Make hci a child of the corresponding tty device.

    Make /sys/class/bluetooth/hciX a symlink to
    path under corresponding tty.

Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120402
Luis R. Rodriguez [Mon, 2 Apr 2012 21:15:43 +0000 (14:15 -0700)]
compat-wireless: refresh patches for next-20120402

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches for next-20120321
Luis R. Rodriguez [Mon, 2 Apr 2012 21:08:40 +0000 (14:08 -0700)]
compat-wireless: refresh patches for next-20120321

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: refresh patches
Luis R. Rodriguez [Mon, 2 Apr 2012 21:05:03 +0000 (14:05 -0700)]
compat-wireless: refresh patches

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
12 years agocompat-wireless: fix patches/16-bluetooth.patch
Luis R. Rodriguez [Mon, 2 Apr 2012 21:01:04 +0000 (14:01 -0700)]
compat-wireless: fix patches/16-bluetooth.patch

Remove hunk 2 that modifies drivers/bluetooth/hci_ldisc.c
The hunk as trying to do this:

-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)
-       hdev->parent = hu->tty->dev;
-+#endif

This patch makes this not necessary anymore:

commit 68478a9a06c9336fe0e2039a658092ac25935b0d
Author: David Herrmann <dh.herrmann@googlemail.com>
Date:   Fri Mar 9 15:53:42 2012 +0100

    Bluetooth: Remove redundant hdev->parent field

Turns out SET_HCIDEV_DEV() is defined on older kernels
since v2.6.18-rc1~21 (via a91f2e39). So all we have to do
is remove this hunk. For newer kernels this will covert
itself accordingly, for older kernels we have the old macro
helper.

mcgrof@tux ~/linux-stable (git::master)$ git describe --contains a91f2e39
v2.6.18-rc1~21^2~3

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>