openwrt/staging/blogic.git
11 years agocompat-drivers: remove network/68-do-not-add-Werror.patch
Luis R. Rodriguez [Thu, 7 Mar 2013 20:32:20 +0000 (12:32 -0800)]
compat-drivers: remove network/68-do-not-add-Werror.patch

This was added by Hauke to try to avoid causing compile
errors where old kernels had warnings enabled by default
such as -Werror=unused-but-set-variable. This is a common
error and enabling -Werror would make compilation fail.

The following upstream patch however sould take care of this
by disabling -Werror if *any* -W* flag is found on EXTRA_FLAGS:

commit 6f56b06e74e2805577bf7940dc0fb17b3310d6b6
Author: Chen Gang <gang.chen@asianux.com>
Date:   Wed Feb 27 14:55:06 2013 +0800

    drivers/net/wireless/ath/wil6210: Makefile, only -Werror when no -W* in EXTRA_CFLAGS

      When make with EXTRA_CFLAGS=-W, it will report error.
      so give a check in Makefile.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Acked-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
The change was as follows:

-subdir-ccflags-y += -Werror
+ifeq (, $(findstring -W,$(EXTRA_CFLAGS)))
+       subdir-ccflags-y += -Werror
+endif

Since this is now upstream, just nuke this work around!

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: fix netlink portid patch for nl80211
Johannes Berg [Thu, 7 Mar 2013 20:16:10 +0000 (12:16 -0800)]
compat-drivers: fix netlink portid patch for nl80211

This required a manual fix for one hunk on nl80211.c

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: refresh unified-drivers patches
Luis R. Rodriguez [Tue, 5 Mar 2013 01:17:24 +0000 (17:17 -0800)]
compat-drivers: refresh unified-drivers patches

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: refresh patches for next-20130304
Luis R. Rodriguez [Tue, 5 Mar 2013 01:16:11 +0000 (17:16 -0800)]
compat-drivers: refresh patches for next-20130304

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: fix network/99-change-makefiles.patch
Luis R. Rodriguez [Tue, 5 Mar 2013 01:13:40 +0000 (17:13 -0800)]
compat-drivers: fix network/99-change-makefiles.patch

CONFIG_USB_NET_AX88179_178A is part of the hunk now, this
required a manual update.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: fix network/18-rename-usb-net-symbols.patch
Luis R. Rodriguez [Tue, 5 Mar 2013 01:11:26 +0000 (17:11 -0800)]
compat-drivers: fix network/18-rename-usb-net-symbols.patch

CONFIG_USB_NET_AX88179_178A is now part of the first hunk,
this required a manual update.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agoscripts/driver-select: use $BACKUP_EXT everywhere
stefan.kuhn@foss-group.ch [Sat, 2 Mar 2013 19:31:38 +0000 (20:31 +0100)]
scripts/driver-select: use $BACKUP_EXT everywhere

Signed-off-by: Stefan Kuhn <stefan.kuhn@hispeed.ch>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: refresh alx patch for INTX-MSI issue
xiong [Fri, 1 Mar 2013 22:10:39 +0000 (06:10 +0800)]
compat-drivers: refresh alx patch for INTX-MSI issue

chip revsion less than C0 has INTX/MSI issue.
this patch should be removed after the kernel drivers/pci/quirks.c
contains this workaround.

Signed-off-by: xiong <xiong@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: reference adrian's alx tree instead
Luis R. Rodriguez [Wed, 27 Feb 2013 22:13:42 +0000 (14:13 -0800)]
compat-drivers: reference adrian's alx tree instead

Adrian is now maintaining the alx tree given that
the BSD OS port work is now on his court.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: remove network/0003-alx-remove-devinit-devexit.patch
Luis R. Rodriguez [Wed, 27 Feb 2013 22:12:43 +0000 (14:12 -0800)]
compat-drivers: remove network/0003-alx-remove-devinit-devexit.patch

All these changes are now merged on Adrian's alx.git tree.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: build driver/video/hdmi.ko
Hauke Mehrtens [Wed, 27 Feb 2013 23:53:39 +0000 (00:53 +0100)]
compat-drivers: build driver/video/hdmi.ko

This module is needed by the drm driver now.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: refresh patches
Hauke Mehrtens [Wed, 27 Feb 2013 23:53:38 +0000 (00:53 +0100)]
compat-drivers: refresh patches

This refreshes the patches on next-20130227

Some of the drm patches needed manual editing.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: refresh patches
Hauke Mehrtens [Tue, 19 Feb 2013 22:20:16 +0000 (23:20 +0100)]
compat-drivers: refresh patches

Refresh patches on next-20130220

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: do not use __sock_create()
Hauke Mehrtens [Tue, 19 Feb 2013 22:19:50 +0000 (23:19 +0100)]
compat-drivers: do not use __sock_create()

__sock_create() is not available on kernel version < 2.6.37.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: rename GPL file to COPYING
Johannes Berg [Mon, 18 Feb 2013 14:39:23 +0000 (15:39 +0100)]
compat-drivers: rename GPL file to COPYING

Code or other references in the kernel would point to
a file called "COPYING" (as in the upstream kernel),
so rename the GPL file to that name.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: refresh patches:
Hauke Mehrtens [Mon, 18 Feb 2013 22:08:32 +0000 (23:08 +0100)]
compat-drivers: refresh patches:

Refresh patches on next-20130218.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: move disable_drm
Hauke Mehrtens [Mon, 18 Feb 2013 21:55:06 +0000 (22:55 +0100)]
compat-drivers: move disable_drm

drm should be disabled when disable_bt_usb_ethernet is selected. This
disables drm also for e.g. b43.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: backport threaded IRQ for iwlwifi
Hauke Mehrtens [Wed, 13 Feb 2013 20:40:37 +0000 (21:40 +0100)]
compat-drivers: backport threaded IRQ for iwlwifi

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: refresh patches:
Hauke Mehrtens [Wed, 13 Feb 2013 18:22:05 +0000 (19:22 +0100)]
compat-drivers: refresh patches:

Refresh patches on next-20130213.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: do not include videomode headers when this feature is deactivated
Hauke Mehrtens [Wed, 13 Feb 2013 18:21:12 +0000 (19:21 +0100)]
compat-drivers: do not include videomode headers when this feature is deactivated

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: add missing include linux/export.h
Hauke Mehrtens [Wed, 13 Feb 2013 18:20:49 +0000 (19:20 +0100)]
compat-drivers: add missing include linux/export.h

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: make drm patches apply again
Hauke Mehrtens [Wed, 13 Feb 2013 18:19:59 +0000 (19:19 +0100)]
compat-drivers: make drm patches apply again

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: refresh patches
Hauke Mehrtens [Sun, 10 Feb 2013 19:54:55 +0000 (20:54 +0100)]
compat-drivers: refresh patches

Refresh patches on linux-next next-20130208

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: refresh patches on next-20130202
Hauke Mehrtens [Sun, 3 Feb 2013 14:05:04 +0000 (15:05 +0100)]
compat-drivers: refresh patches on next-20130202

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: add missing include for export
Hauke Mehrtens [Sun, 3 Feb 2013 17:35:38 +0000 (18:35 +0100)]
compat-drivers: add missing include for export

drivers/net/wireless/ti/wlcore/scan.c and drivers/net/wireless/ti/wlcore
/event.c need an #include <linux/export.h> to add EXPORT_SYMBOL_GPL on
kernel 3.2 and 3.3.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: add include for net/if_inet6.h to net/mac80211.h
Hauke Mehrtens [Sun, 3 Feb 2013 14:03:17 +0000 (15:03 +0100)]
compat-drivers: add include for net/if_inet6.h to net/mac80211.h

Some older kernels are missing the declaration of struct inet6_dev in
this file.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: add the iwlwifi MVM driver
Hauke Mehrtens [Sun, 3 Feb 2013 14:01:58 +0000 (15:01 +0100)]
compat-drivers: add the iwlwifi MVM driver

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: make patches apply again
Hauke Mehrtens [Sun, 3 Feb 2013 12:31:27 +0000 (13:31 +0100)]
compat-drivers: make patches apply again

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: update genlog-3.8 for rc5
Hauke Mehrtens [Sat, 26 Jan 2013 16:55:41 +0000 (17:55 +0100)]
compat-drivers: update genlog-3.8 for rc5

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: use backport for second workqueue
Hauke Mehrtens [Thu, 24 Jan 2013 23:22:51 +0000 (00:22 +0100)]
compat-drivers: use backport for second workqueue

bluetooth hci_core uses a second workqueue.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: deactivate mac80211_hwsim for kernel < 2.6.31
Hauke Mehrtens [Thu, 24 Jan 2013 23:21:01 +0000 (00:21 +0100)]
compat-drivers: deactivate mac80211_hwsim for kernel < 2.6.31

kernel version < 2.6.31 does not support tasklet_hrtimer, so deactivate
the driver there.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: refresh alx patches
Hauke Mehrtens [Thu, 24 Jan 2013 22:56:56 +0000 (23:56 +0100)]
compat-drivers: refresh alx patches

This was done against alx-20130124.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: deactivate loopback testing for older kernels
Hauke Mehrtens [Thu, 24 Jan 2013 22:55:24 +0000 (23:55 +0100)]
compat-drivers: deactivate loopback testing for older kernels

ETH_TEST_FL_EXTERNAL_LB and ETH_TEST_FL_EXTERNAL_LB_DONE are not
available in kernel version < 3.1.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: do not treat a warning as error
Hauke Mehrtens [Thu, 24 Jan 2013 22:35:37 +0000 (23:35 +0100)]
compat-drivers: do not treat a warning as error

Older kernel version show more warnings like -Werror=unused-but-set-variable
and with this option they are treated as an error.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: refresh patches
Hauke Mehrtens [Wed, 23 Jan 2013 23:01:45 +0000 (00:01 +0100)]
compat-drivers: refresh patches

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: remove devinit and devexit from alx driver
Hauke Mehrtens [Wed, 23 Jan 2013 22:59:55 +0000 (23:59 +0100)]
compat-drivers: remove devinit and devexit from alx driver

devinit and devexit were removed from kernel version 3.8 and using it
causes compile problems.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 years agocompat-drivers: refresh patches for next-20130121
Luis R. Rodriguez [Tue, 22 Jan 2013 03:40:25 +0000 (19:40 -0800)]
compat-drivers: refresh patches for next-20130121

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: fix driver-select for atheros drivers
Luis R. Rodriguez [Tue, 22 Jan 2013 00:19:40 +0000 (16:19 -0800)]
compat-drivers: fix driver-select for atheros drivers

The addition of the new wil6210 driver added a new ATH_CARDS
option to be used to describe Atheros cards and now uses ATH_COMMON
for the common module ath. This requires fixing the driver-select
script so that the drivers are enabled properly.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: do not call make clean for unified drivers
Luis R. Rodriguez [Mon, 21 Jan 2013 23:56:04 +0000 (15:56 -0800)]
compat-drivers: do not call make clean for unified drivers

We can skip the make clean process for unified drivers given
that the script that makes compat-drivers releases, gen-releases.sh,
already ensures that we call $(git clean -f -x -d) on each git
tree we are cherry picking code from.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: disable DRM drivers for 802.11 drivers
Luis R. Rodriguez [Mon, 21 Jan 2013 20:33:23 +0000 (12:33 -0800)]
compat-drivers: disable DRM drivers for 802.11 drivers

When using driver-select disable DRM driver sfor 802.11 drivers.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agoRevert "compat-drivers: remove wil6210 driver from scripts/driver-select"
Luis R. Rodriguez [Thu, 10 Jan 2013 21:53:43 +0000 (13:53 -0800)]
Revert "compat-drivers: remove wil6210 driver from scripts/driver-select"

This reverts commit efe0d228ae559546ffea85be9047899f10a13d30.

11 years agocompat-drivers: refresh patches for next-20130110
Luis R. Rodriguez [Thu, 10 Jan 2013 21:35:43 +0000 (13:35 -0800)]
compat-drivers: refresh patches for next-20130110

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: add new mac80211 debug options
Hauke Mehrtens [Wed, 9 Jan 2013 16:27:27 +0000 (17:27 +0100)]
compat-drivers: add new mac80211 debug options

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: fix section mismatch in ath5k
Hauke Mehrtens [Wed, 9 Jan 2013 16:27:26 +0000 (17:27 +0100)]
compat-drivers: fix section mismatch in ath5k

Fix section mismatch introduced by removing __devinitconst usage from
the kernel.

WARNING: /home/hauke/compat-wireless/compat-wireless/drivers/net/wireless/ath/ath5k/ath5k.o(.text+0x13898): Section mismatch in reference from the function ath5k_init_leds() to the variable .devinit.rodata:ath5k_led_devices
The function ath5k_init_leds() references
the variable __devinitconst ath5k_led_devices.
This is often because ath5k_init_leds lacks a __devinitconst
annotation or the annotation of ath5k_led_devices is wrong.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: add wil6210 driver
Hauke Mehrtens [Wed, 9 Jan 2013 16:27:25 +0000 (17:27 +0100)]
compat-drivers: add wil6210 driver

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: remove 'v' prefix from version on ChangeLog
Luis R. Rodriguez [Thu, 10 Jan 2013 20:59:24 +0000 (12:59 -0800)]
compat-drivers: remove 'v' prefix from version on ChangeLog

As with the previous commit this follows the kernel.org
model as well as the older releases we were making.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: trim 'v' prefix from ChangeLog file
Luis R. Rodriguez [Thu, 10 Jan 2013 20:53:59 +0000 (12:53 -0800)]
compat-drivers: trim 'v' prefix from ChangeLog file

This follows the kernel.org releases as well as our old
releases.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: update genlog-3.8
Luis R. Rodriguez [Wed, 9 Jan 2013 01:56:22 +0000 (17:56 -0800)]
compat-drivers: update genlog-3.8

This updates genlog-3.8 so it adds the extra version postfix
number. Even though the Linux kernel release may remain stable
we may at times make a new release of compat-drivers to update
fixes for backporting.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: add genlog-3.8
Luis R. Rodriguez [Wed, 9 Jan 2013 01:45:12 +0000 (17:45 -0800)]
compat-drivers: add genlog-3.8

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: refresh patches
Luis R. Rodriguez [Tue, 8 Jan 2013 22:11:59 +0000 (14:11 -0800)]
compat-drivers: refresh patches

Refreshes patches for next-20130108

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: fix 61-netdev-addr_assign_type.patch
Luis R. Rodriguez [Tue, 8 Jan 2013 22:04:47 +0000 (16:04 -0600)]
compat-drivers: fix 61-netdev-addr_assign_type.patch

The following two patches adjusted uses of NET_ADDR_RANDOM
on some Ethernet drivers. This change adopts these changes
on the 61-netdev-addr_assign_type.patch patch.

commit 15c6ff3bc0ff3464a8c7efcdea09c86454571622
Author: Jiri Pirko <jiri@resnulli.us>
Date:   Tue Jan 1 03:30:17 2013 +0000

    net: remove unnecessary NET_ADDR_RANDOM "bitclean"

    NET_ADDR_SET is set in dev_set_mac_address() no need to alter
    dev->addr_assign_type value in drivers.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
commit e41b2d7fe7803e85e1202d0eb172717d7bf1bbaf
Author: Jiri Pirko <jiri@resnulli.us>
Date:   Tue Jan 1 03:30:15 2013 +0000

    net: set dev->addr_assign_type correctly

    Not a bitfield, but a plain value.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: fix collateral-evolutions/network/53-pr_fmt.patch
Luis R. Rodriguez [Tue, 8 Jan 2013 21:07:59 +0000 (15:07 -0600)]
compat-drivers: fix collateral-evolutions/network/53-pr_fmt.patch

The brcmfmac driver was updated recently to only define
pr_fmt() once and it also had the undef for us. Technically
Joe should not have had to add the undef as I previously
went on a crusade to verify that this was not needed at the
driver level so an upstream patch is welcomed to remove that
undef upstream and then to add it for backporting purposes.

commit 79d7c4e8da4ac3cfa98e8e622a17baaeb3c9d29d
Author: Arend van Spriel <arend@broadcom.com>
Date:   Wed Jan 2 21:20:10 2013 +0100

    brcmfmac: define pr_fmt in one place

    Several source files (but not all) define the pr_fmt() macro in exactly
    the same way. Instead this commit defines it in a header file so driver
    logging is consistent.

Cc: Joe Perches <joe@perches.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: refresh patches
Hauke Mehrtens [Thu, 27 Dec 2012 17:28:22 +0000 (18:28 +0100)]
compat-drivers: refresh patches

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: add old suspend/resume handlers only when function is available
Hauke Mehrtens [Thu, 27 Dec 2012 17:28:21 +0000 (18:28 +0100)]
compat-drivers: add old suspend/resume handlers only when function is available

All the suspend resume functions are only activated when
CONFIG_PM_SLEEP is set and not when CONFIG_PM is set.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: make patches apply again
Hauke Mehrtens [Thu, 27 Dec 2012 17:28:20 +0000 (18:28 +0100)]
compat-drivers: make patches apply again

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agoupdate-initramfs: Add support for Fedora
Ozan Çağlayan [Sat, 22 Dec 2012 11:04:13 +0000 (13:04 +0200)]
update-initramfs: Add support for Fedora

Fedora doesn't ship lsb_release anymore. So try to read /etc/os-release
to find whether distribution is Fedora.

If Fedora is found, generate a new initramfs suffixed with -compat-drivers
to not override the distribution kernel's default one. Also add a new
kernel entry to grub2 configuration without overriding the default boot
entry.

Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agoupdate-initramfs: Silence lsb_release output
Ozan Çağlayan [Sat, 22 Dec 2012 11:04:12 +0000 (13:04 +0200)]
update-initramfs: Silence lsb_release output

Silence lsb_release output to avoid command not found errors
on distributions not having lsb_release like Fedora.

Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agoupdate-initramfs: Update comments, fix some typos
Ozan Çağlayan [Sat, 22 Dec 2012 11:04:11 +0000 (13:04 +0200)]
update-initramfs: Update comments, fix some typos

update-initramfs is crucial for DRM drivers, let's clarify this.

Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: refresh 0001-backport-alx.patch
Luis R. Rodriguez [Thu, 20 Dec 2012 03:40:34 +0000 (19:40 -0800)]
compat-drivers: refresh 0001-backport-alx.patch

Refresh patches again.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: refresh patch 0001-backport-alx.patch
Luis R. Rodriguez [Thu, 20 Dec 2012 03:09:07 +0000 (19:09 -0800)]
compat-drivers: refresh patch 0001-backport-alx.patch

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: update 0001-backport-alx.patch context
Luis R. Rodriguez [Thu, 20 Dec 2012 03:07:11 +0000 (19:07 -0800)]
compat-drivers: update 0001-backport-alx.patch context

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: fix alx backport patch
Luis R. Rodriguez [Thu, 20 Dec 2012 01:06:05 +0000 (17:06 -0800)]
compat-drivers: fix alx backport patch

The hunks required some manual fixing due to some
new code changes on the alx driver.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: refresh patches for next-20121218
Luis R. Rodriguez [Wed, 19 Dec 2012 05:31:02 +0000 (21:31 -0800)]
compat-drivers: refresh patches for next-20121218

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: allow git-paranoia to work on current directory
Luis R. Rodriguez [Fri, 14 Dec 2012 21:27:20 +0000 (13:27 -0800)]
compat-drivers: allow git-paranoia to work on current directory

This allows you to run git-paranoia on your current directory.
It will return 0 if everything is squeeky clean. This is useful
if for example you want to run a cronjob to update git trees but
never update them if you have any deltas in place of any kind.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: refresh -u patches
Luis R. Rodriguez [Fri, 14 Dec 2012 19:02:17 +0000 (11:02 -0800)]
compat-drivers: refresh -u patches

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: refresh patches for next-20121214
Luis R. Rodriguez [Fri, 14 Dec 2012 19:01:18 +0000 (11:01 -0800)]
compat-drivers: refresh patches for next-20121214

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: refresh patches for next-20121211
Luis R. Rodriguez [Thu, 13 Dec 2012 05:12:43 +0000 (21:12 -0800)]
compat-drivers: refresh patches for next-20121211

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: ship include/linux/bcm47xx_wdt.h
Luis R. Rodriguez [Wed, 12 Dec 2012 00:56:21 +0000 (16:56 -0800)]
compat-drivers: ship include/linux/bcm47xx_wdt.h

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: remove 67-use_spinlock_t.patch
Luis R. Rodriguez [Wed, 12 Dec 2012 00:46:09 +0000 (16:46 -0800)]
compat-drivers: remove 67-use_spinlock_t.patch

This work is now upstream.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: fix 62-usb_driver_lpm.patch
Luis R. Rodriguez [Wed, 12 Dec 2012 00:44:52 +0000 (16:44 -0800)]
compat-drivers: fix 62-usb_driver_lpm.patch

CONFIG_HOTPLUG is going away soon so a few helpers can
be removed now.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: fix 45-remove-platform-id-table.patch
Luis R. Rodriguez [Wed, 12 Dec 2012 00:43:01 +0000 (16:43 -0800)]
compat-drivers: fix 45-remove-platform-id-table.patch

CONFIG_HOTPLUG is going away soon so a few init/remove helpers
are being removed.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: remove __devexit_p() from 11-dev-pm-ops.patch
Luis R. Rodriguez [Wed, 12 Dec 2012 00:39:27 +0000 (16:39 -0800)]
compat-drivers: remove __devexit_p() from 11-dev-pm-ops.patch

The __devexit_p() was removed from a few drivers given that
CONFIG_HOTPLUG is going away.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: remove ksize() ifdef on scan.c
Luis R. Rodriguez [Wed, 12 Dec 2012 00:27:42 +0000 (16:27 -0800)]
compat-drivers: remove ksize() ifdef on scan.c

The patch bellow remove the usage of ksize() so just
remove that hunk.

commit 9caf03640279e64d0ba36539b42daa1b43a49486
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Thu Nov 29 01:25:20 2012 +0100

    cfg80211: fix BSS struct IE access races

    When a BSS struct is updated, the IEs are currently
    overwritten or freed. This can lead to races if some
    other CPU is accessing the BSS struct and using the
    IEs concurrently.

    Fix this by always allocating the IEs in a new struct
    that holds the data and length and protecting access
    to this new struct with RCU.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: modify release script to support unified drivers
Luis R. Rodriguez [Wed, 5 Dec 2012 01:28:11 +0000 (17:28 -0800)]
compat-drivers: modify release script to support unified drivers

The -u argument was used to upload releases to kernel.org. Lets
rename this to -r for 'release to kernel.org' given that we have
no introduced -u for unified-drivers support into compat-drivers.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: fix alx suspend/resume calls for old kernels
Luis R. Rodriguez [Tue, 4 Dec 2012 23:19:17 +0000 (15:19 -0800)]
compat-drivers: fix alx suspend/resume calls for old kernels

The declarations compat_pci_suspend() and compat_pci_resume()
must be placed before SIMPLE_DEV_PM_OPS().

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: add the MDIO module
Luis R. Rodriguez [Tue, 4 Dec 2012 21:07:11 +0000 (21:07 +0000)]
compat-drivers: add the MDIO module

The alx Ethernet driver depends on the MDIO module.
This module has UAPI and kernel headers. The headers are
carried over intact to help *both* backport it for older
drivers and also provide the newer driver to other kernels
that may have it enabled after it was introduced in 2.6.31.

The way support for MDIO is enabled is by carrying over both
the UAPI and Linux kernel header files along with the module
with in compat-drivers. The exported symbols of the module
however are renamed with a compat_* prefix within compat
in include/linux/compat-2.6.31.h. This enables Linux
distributions shipping a driver that depends on older
versions of the MDIO to keep using it while allowing the
supplied drivers in compat-drivers to become users of
the newer module it likely will require a tighter
dependency on.

An alternative to using different exported symbol names
is for compat-drivers to work under a separate namespace
and while I hear some folks already implemented that support
we never got those patches sent to us.

C'est la vie.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: fix 11-dev-pm-ops.patch
Luis R. Rodriguez [Mon, 3 Dec 2012 21:48:38 +0000 (13:48 -0800)]
compat-drivers: fix 11-dev-pm-ops.patch

Hauke had sent out patches to help clean up
the pm run time callbacks to allow this patch
to be simplified. This takes care of the
required changes.

This goes compile tested against next-20121203

mcgrof@drvbp1 ~/devel/compat-drivers (git::master)$ time ckmake
Trying kernel 3.6.5-030605-generic [OK]
Trying kernel 3.5.7-030507-generic [OK]
Trying kernel 3.4.17-030417-generic [OK]
Trying kernel 3.3.8-030308-generic [OK]
Trying kernel 3.2.33-030233-generic [OK]
Trying kernel 3.1.10-030110-generic [OK]
Trying kernel 3.0.50-030050-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-02063513-generic [OK]
Trying kernel 2.6.34-02063413-generic [OK]
Trying kernel 2.6.33-02063320-generic [OK]
Trying kernel 2.6.32-02063260-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    18m42.239s
user    327m50.029s
sys     53m37.317s

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: fix typo which removed entries on Makefile
Luis R. Rodriguez [Sat, 1 Dec 2012 19:15:20 +0000 (11:15 -0800)]
compat-drivers: fix typo which removed entries on Makefile

The commit below removed by mistake some entries on the top
level Makefile.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: fix alx backport on netdev features
Luis R. Rodriguez [Sat, 1 Dec 2012 19:13:21 +0000 (11:13 -0800)]
compat-drivers: fix alx backport on netdev features

This updates the hunks that deal with the netdevice
features. We no longer need device checks given that
the driver no longer supports atl1c devices.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: fix typo on 0002-enable-alx.patch
Luis R. Rodriguez [Sat, 1 Dec 2012 03:49:14 +0000 (19:49 -0800)]
compat-drivers: fix typo on 0002-enable-alx.patch

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: add disable_drm to driver-select
Luis R. Rodriguez [Sat, 1 Dec 2012 03:28:03 +0000 (19:28 -0800)]
compat-drivers: add disable_drm to driver-select

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: split up admin-update.sh
Luis R. Rodriguez [Sat, 1 Dec 2012 02:33:09 +0000 (18:33 -0800)]
compat-drivers: split up admin-update.sh

This splits up admin-update.sh into a few sections
by separating functionality into routine helpers.
This allows us to add base refresh with -b so that
drivers that only need the base code can update the
compat labels.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: add Debian to scripts/update-initramfs
Luis R. Rodriguez [Sat, 1 Dec 2012 01:54:53 +0000 (17:54 -0800)]
compat-drivers: add Debian to scripts/update-initramfs

I've tested this on Debian now.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: update refresh-compat scripts
Luis R. Rodriguez [Fri, 30 Nov 2012 22:54:12 +0000 (14:54 -0800)]
compat-drivers: update refresh-compat scripts

This updates the refresh-compat scripts to account for
having patches in extended directories.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: add support for unified drivers
Luis R. Rodriguez [Fri, 30 Nov 2012 21:47:15 +0000 (13:47 -0800)]
compat-drivers: add support for unified drivers

Companies typically write Linux device drivers either from
scratch of alternatively based on some internal unified
source code tree. Typically the unified driver architecture
is a mess and porting a driver to linux is always a painful
task to the extent at times a full rewrite is required and
at times preferred.

In order to try to help with these type of unified driver
strategies one possibility that has been proposed is to
make the unified driver strategy an open source project and
to not make many compromises on the style and requirements
for Linux. The alx Linux driver [1] is not yet upstream and
is undergoing changes to try to accomodate it to a format
and use new technologies to help address unification attempts
in both an open manner and also lead by the community.

compat-drivers will support these type of driver efforts
only if they adhere to the principles of never compromising
Linux upstream requirements and are targetting getting
upstream into the Linux kernel. Once these drivers are upstream,
their respective git trees will be removed and we'll simply
cherry pick the driver as we do from upstream Linux. If a
compat-drivers releases contains drivers that are from a
unified git repository the release will be postfixed with
a "-u".

[1] http://www.linuxfoundation.org/collaborate/workgroups/networking/alx

Cc: Julia Lawall <julia.lawall@lip6.fr>
Cc: Adrian Chadd <adrian@freebsd.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: move all patch types under patches/
Luis R. Rodriguez [Fri, 30 Nov 2012 01:27:25 +0000 (17:27 -0800)]
compat-drivers: move all patch types under patches/

The number of patch directories for the different life
cycle a patch can be on its way upstream had reached 4:

  * pending-stable
  * linux-next-pending
  * linux-next-cherry-picks
  * crap

Apart from this we also had the backport related patches.
In the future I see potential for other directories for
different categories of patches. Consider how we are
breaking down the backport patches into specific documented
collateral evolutions and of those type of collateral
evolutions there may be different types of collateral
evolutions which we could likely treat / document differently.
Another type of patch that I forsee us having to deal with
are patches for drivers that are not upstrea -- like crap,
but for drivers in a unified driver tree that is *designed*
from scratch to be targetting upstream Linux inclusion using
the same coccinelle technology I forsee us using for backporting
collateral evolutions.

Since the number of patch directories can get out of hand
at the top level lets just stuff then all under patches/
and deal with patches there. This also places the backport
patches into a directory called collateral-evolutions/ to
help promote and educate on the nature of the changes
that we have to deal with when backporting.

Cc: Julia Lawall <julia.lawall@lip6.fr>
Cc: Adrian Chadd <adrian@freebsd.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: refresh patches for next-20121129
Luis R. Rodriguez [Thu, 29 Nov 2012 21:34:19 +0000 (13:34 -0800)]
compat-drivers: refresh patches for next-20121129

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: make patches apply again
Hauke Mehrtens [Thu, 29 Nov 2012 15:26:15 +0000 (16:26 +0100)]
compat-drivers: make patches apply again

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: do not apply patches in natural sort order
Hauke Mehrtens [Thu, 29 Nov 2012 15:24:41 +0000 (16:24 +0100)]
compat-drivers: do not apply patches in natural sort order

Without this patch the patches are applied in the natural sort order of
numbers, which caused this order for patches/network/:
patches/network/0001-netdev_ops.patch
patches/network/02-ksize.patch
patches/network/0002-net-misc.patch
patches/network/0003-netdev-needed_headroom_tailroom.patch
patches/network/03-rfkill.patch
patches/network/04-netns.patch
patches/network/0004-wext-namespace.patch
patches/network/0005-netlink-portid.patch
patches/network/05-usb.patch

The non natural sort order of numbers is more the intended way to order
the patches as now the spdiff patches are in front of all the other
patches. This makes the patches in patches/network/ to be applied in
the flowing order:
patches/network/0001-netdev_ops.patch
patches/network/0002-net-misc.patch
patches/network/0003-netdev-needed_headroom_tailroom.patch
patches/network/0004-wext-namespace.patch
patches/network/0005-netlink-portid.patch
patches/network/02-ksize.patch
patches/network/03-rfkill.patch
patches/network/04-netns.patch
patches/network/05-usb.patch

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: run refresh for all patches
Hauke Mehrtens [Thu, 29 Nov 2012 15:24:40 +0000 (16:24 +0100)]
compat-drivers: run refresh for all patches

In the past refresh with quilt was just run for the last patch
directory being applied and not for all, because our script had
problems when patchRefresh() was called more then once in a single
admin-update.sh run. This was fixed in the last patch and now it is
safe to run it on all patches.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: prevent mixing patches from different directories in refresh
Hauke Mehrtens [Thu, 29 Nov 2012 15:24:39 +0000 (16:24 +0100)]
compat-drivers: prevent mixing patches from different directories in refresh

The refresh script is able to take an already existing quilt run and
just refresh the further needed patches. This is needed to make it
possible to manually fix a patch which is not applying any more and
then automatically integrate it into the patches directory again. With
the integration of drm it could happen that quilt is running on two
different source directories like patches/network and patches/drm in one
call of admin-update.sh. If some of the drm patches did not apply and
needed a manual fix, quilt moved the patch in the second run into the
patches/network directory, because it was taken in the network refresh
run. This patch does not run quilt if there is still an unfinished
quilt job for a different patch directory.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: remove copy of README in refresh
Hauke Mehrtens [Thu, 29 Nov 2012 15:24:38 +0000 (16:24 +0100)]
compat-drivers: remove copy of README in refresh

There is no README file in the patches folder like patches/drm/README
any more.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: print original name and path of patch in refresh
Hauke Mehrtens [Thu, 29 Nov 2012 15:24:37 +0000 (16:24 +0100)]
compat-drivers: print original name and path of patch in refresh

In the old version patches.orig/<patch name>.patch was printed as the
current patch quilt is working on in refresh, now e.g. patches/network
/<patch name>.patch is printed.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: do not use struct spinlock
Hauke Mehrtens [Wed, 28 Nov 2012 23:07:49 +0000 (00:07 +0100)]
compat-drivers: do not use struct spinlock

struct spinlock does not exists on kernel version <= 2.6.32, use
spinlock_t instead.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: add import to fix compile error
Hauke Mehrtens [Wed, 28 Nov 2012 23:07:48 +0000 (00:07 +0100)]
compat-drivers: add import to fix compile error

On kernel version <= 2.6.28, I saw the following compile error without
this patch:

/net/wireless/util.c: In function ‘cfg80211_get_p2p_attr’:
/net/wireless/util.c:1120:4: error: implicit declaration of function
‘get_unaligned_le16’ [-Werror=implicit-function-declaration]

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: refresh patches
Hauke Mehrtens [Wed, 28 Nov 2012 23:07:47 +0000 (00:07 +0100)]
compat-drivers: refresh patches

This was done by running "./scripts/admin-refresh.sh refresh".

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: build RTL8723AE
Hauke Mehrtens [Wed, 28 Nov 2012 23:07:46 +0000 (00:07 +0100)]
compat-drivers: build RTL8723AE

This driver is building on all supported kernel versions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: remove option for alx driver
Hauke Mehrtens [Wed, 28 Nov 2012 23:07:45 +0000 (00:07 +0100)]
compat-drivers: remove option for alx driver

The alx driver was removed from crap and also remove the config option.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
11 years agocompat-drivers: make patches apply again
Hauke Mehrtens [Wed, 28 Nov 2012 23:07:44 +0000 (00:07 +0100)]
compat-drivers: make patches apply again

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
12 years agocompat-drivers: disable mwifiex for kernels older than 2.6.27
Luis R. Rodriguez [Sat, 17 Nov 2012 03:01:48 +0000 (19:01 -0800)]
compat-drivers: disable mwifiex for kernels older than 2.6.27

mwifiex got Multiqueue support and while we do port multiqueue
I'm really fucking lazy to port this driver particular changes
over given that I really don't think anyone on planet earth will
be using it for kernels older than 2.6.27.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>