Luis R. Rodriguez [Fri, 12 Oct 2012 23:56:17 +0000 (16:56 -0700)]
compat-drivers: add UAPI backport fixes
The patch was posted for inclusion upstream. The
DRM code uses some include headers and if we are
not specific about the path what ends up happening
is our old kernel header files gets used instead of
the new UAPI header files.
For details on the UAPI changes:
http://lwn.net/Articles/507794/
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Fri, 12 Oct 2012 23:53:46 +0000 (16:53 -0700)]
compat-drivers: copy over uapi headers
For details on the new UAPI changes see:
http://lwn.net/Articles/507794/
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Thu, 11 Oct 2012 22:37:29 +0000 (15:37 -0700)]
compat-drivers: refresh patches for next-
20121011
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Tue, 9 Oct 2012 00:02:24 +0000 (17:02 -0700)]
compat-drivers: change condition for release target
When making a kernel.org release you should use gen-release.sh -u,
so just checking for the usage of that variable is better.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Mon, 8 Oct 2012 23:48:40 +0000 (16:48 -0700)]
compat-drivers: add gen-release.sh -k option
This should be used for those who really know what
they are doing and making proper releases. This will
force using 'git clean -x -d -f'. You really should
understand what this does before you use this.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Mon, 8 Oct 2012 23:37:26 +0000 (16:37 -0700)]
compat-drivers: add verbose help options for gen-release.sh
Be a bit more descriptive on usage for flags.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Mon, 8 Oct 2012 23:30:45 +0000 (16:30 -0700)]
compat-drivers: update gen-release.sh to use git clean
gen-release.sh is updated to force git-paranoia to run
git clean for us when uploading to kernel.org. Note
that usage of kup is only for kernel.org uploading
and as such not for the faint of heart.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Mon, 8 Oct 2012 23:24:53 +0000 (16:24 -0700)]
compat-drivers: improve git-paranoia with git clean
git clean can be used to further sanitize releases.
git clean -x -d -f
Will spit shine your release from any even files
you may have lying around that you tell git to
ignore. We use the -n option to git clean to warn
the user of unwanted content. If someone is really
make releases they should read and understand
git clean man pages and also understand that
running git-paranoia with -c will wipe out clean
all content found by 'git clean -x -d -n'.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Kyle Manna [Mon, 8 Oct 2012 19:51:02 +0000 (14:51 -0500)]
compat-drivers: Fix typo for CONFIG_BT_HCIUART
The config value should be set to a lowercase 'm' or the config is
ignored and the associated module doesn't build. Fix this.
Signed-off-by: Kyle Manna <kyle.manna@fuel7.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Mon, 8 Oct 2012 21:41:04 +0000 (14:41 -0700)]
compat-drivers: refresh patches for next-
20121008
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Mon, 8 Oct 2012 21:39:19 +0000 (14:39 -0700)]
compat-drivers: fix 98-pr_fmt.patch
This fixes patches/drm/98-pr_fmt.patch for next-
20121008
for header path updates for DRM drivers.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Mon, 8 Oct 2012 21:33:16 +0000 (14:33 -0700)]
compat-drivers: fix 04-revert-prime-support.patch
This fixes the patch patches/drm/04-revert-prime-support.patch
for next-
20121008. There is quite a bit of changes with hunk
differences that required manual editing.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Tue, 2 Oct 2012 20:34:13 +0000 (13:34 -0700)]
compat-drivers: copy over amp.h as a bluetooth header
Brought to us by Intel via:
commit
903e45411099ae8292f5ce637ad0c72f6fef61db
Author: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Date: Thu Sep 27 17:26:09 2012 +0300
Bluetooth: AMP: Use HCI cmd to Read Loc AMP Assoc
When receiving A2MP Get AMP Assoc Request execute Read Local AMP Assoc
HCI command to AMP controller. If the AMP Assoc data is larger than it
can fit to HCI event only fragment is read. When all fragments are read
send A2MP Get AMP Assoc Response.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Tue, 2 Oct 2012 20:18:46 +0000 (13:18 -0700)]
compat-drivers: refresh patches for next-
20121002
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Tue, 2 Oct 2012 20:15:53 +0000 (13:15 -0700)]
compat-drivers: fix patches/drm/04-revert-prime-support.patch
Required manual intervention due to hunk differences.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Tue, 2 Oct 2012 20:12:01 +0000 (13:12 -0700)]
compat-drivers: fix patches/network/25-multicast-list_head.patch
Hunk offsets differences required manual intervention.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Tue, 25 Sep 2012 23:07:27 +0000 (16:07 -0700)]
compat-drivers: enable DRM drivers compilation
Ozan Çağlayan had done most of the work to suck in all
the DRM drivers but left out the enablement of compiling
the drm drivers. The DRM drivers were also not load
tested. This patch enables to test compilation by
renaming the DRM Kconfig options with a _COMPAT prefix
and enables compilation by default for the i915 drm
driver which I can test against at run time on my
laptop running on v3.2.
Users and developer can help enable older kernels
down to 3.0 (as this was the oldest supported target
kernel for DRM drivers) or other DRM drivers as they
are run time tested.
The admin-update.sh script is modified to now always
run by including the DRM code and patching it accordingly.
If you happen to only want networking code you can do so
by supplying the network argument to the script as follows:
./scripts/adming-update.sh network
This will disable taking in DRM code.
It should be noted that although only the i915 drm driver
is being enabled all other drivers except the following have
been test compiled to work down to v3.0.
-obj-$(CONFIG_COMPAT_DRM_TDFX) += tdfx/
-obj-$(CONFIG_COMPAT_DRM_R128) += r128/
-obj-$(CONFIG_COMPAT_DRM_MGA) += mga/
-obj-$(CONFIG_COMPAT_DRM_SIS) += sis/
-obj-$(CONFIG_COMPAT_DRM_SAVAGE)+= savage/
-obj-$(CONFIG_COMPAT_DRM_EXYNOS) +=exynos/
-obj-$(CONFIG_COMPAT_DRM_UDL) += udl/
Apart from the above drivers we should be able to enable the
other drivers as reports come in for run time testing on them.
As it is right now only the i915 goes run time tested -- by me.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Sat, 29 Sep 2012 05:41:21 +0000 (22:41 -0700)]
compat-drivers: backport usage of shmem_truncate_range() on i915
Backport
e2377fe0b -- this could likely be implemented
on compat.git but I'd much prefer a better review of that.
For now this stays as a patch.
commit
e2377fe0b65e3c7577ff6df1701c56ef477d336f
Author: Hugh Dickins <hughd@google.com>
Date: Mon Jun 27 16:18:19 2011 -0700
drm/i915: use shmem_truncate_range
The interface to ->truncate_range is changing very slightly: once "tmpfs:
take control of its truncate_range" has been applied, this can be applied.
For now there is only a slight inefficiency while this remains unapplied,
but it will soon become essential for managing shmem's use of swap.
Change i915_gem_object_truncate() to use shmem_truncate_range() directly:
which should also spare i915 later change if we switch from
inode_operations->truncate_range to file_operations->fallocate.
Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Keith Packard <keithp@keithp.com>
Cc: Dave Airlie <airlied@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Sat, 29 Sep 2012 03:13:33 +0000 (20:13 -0700)]
compat-drivers: address usage of intel_enable_gtt() for i915
Kernels older than 3.6 don't have intel_enable_gtt() exported
and most Linux distributions have CONFIG_AGP_INTEL as built-in
(y) and as such we don't bother to make it available as
modular here. The change to export intel_enable_gtt() was
made through commit
8ecd1a66 but previous to this the driver
never called intel_enable_gtt() so we can safely assume we
can do the same for older kernels.
There should be a way to export an intel_enable_gtt() for
kernels with CONFIG_AGP_INTEL as built-in but that itself
is a project.
commit
8ecd1a6615f0d9de6759aafe229bc1cc4ee99c7b
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date: Thu Jun 7 15:56:03 2012 +0200
drm/i915: call intel_enable_gtt
When drm/i915 is in control of the gtt, we need to call
the enable function at all the relevant places ourselves.
Reviewed-by: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This now goes with i915 run time tested against 3.2.0-3-amd64
and code extrated from linux-next next-
20120926.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Thu, 27 Sep 2012 23:41:09 +0000 (16:41 -0700)]
compat-drivers: force using include/drm for header namespace
Turns out DRM drivers use this:
#include "drmP.h"
Instead of:
#include <drm/drmP.h>
Withtout this change we are using the older kernel's header
file and not the one we are cherry pickng over from the kernel
we want to help backport.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Thu, 27 Sep 2012 23:39:53 +0000 (16:39 -0700)]
compat-drivers: separate NOSTDINC_FLAGS include dir lines
This will make it easier to review changes to this variable
later.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Tue, 25 Sep 2012 20:38:38 +0000 (13:38 -0700)]
compat-drivers: refresh drm patches for next-
20120925
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Tue, 25 Sep 2012 20:37:35 +0000 (13:37 -0700)]
compat-drivers: refresh patches for next-
20120925
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Sat, 22 Sep 2012 01:25:43 +0000 (18:25 -0700)]
compat-drivers: add a few header BT header files to WSTABLE
I noted while porting a stable fix down that the patch did
not carry over a few header file updates. This was caused by
the fact that the WSTABLE variable did not carry over the
header files. Fix this.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Fri, 21 Sep 2012 22:05:32 +0000 (15:05 -0700)]
compat-drivers: fix kup mkdir on gen-release.sh
kup does not expect an ending slash for mkdir, otherwise
it fails and does not even create the directory for you.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Fri, 21 Sep 2012 20:20:34 +0000 (13:20 -0700)]
compat-drivers: fix space damage on git-paranoia
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Fri, 21 Sep 2012 19:40:27 +0000 (12:40 -0700)]
compat-drivers: add kup support with git-paranoia support
kup [0] is the kernel.org uploader. This integrates support for
usage of kup with the gen-release.sh script. When kup is used
we also use git-paranoia which will bail out if either we have
content on a git tree that lets us produce content that is not
GPG signed, that has not yet been commited, or integrated into
a git tree. To use kup just pass on the -u argument to
gen-release.sh.
For generic releases, that do not use kup (without -u) we still
run git-paranoia but in interactive mode, allowing releases to
be made that are not targeted for kernel.org with random junk
or not GPG signed junk.
[0] https://korg.wiki.kernel.org/index.php/Userdoc:using_kup
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Thu, 20 Sep 2012 23:29:35 +0000 (16:29 -0700)]
compat-drivers: fix gen-release.sh to keep tar file
Without -k option to bzip2 the original tar file will be
deleted.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Thu, 20 Sep 2012 23:01:59 +0000 (16:01 -0700)]
compat-drivers: gen-release.sh update to reflect usage of linux-next
This removes the force update parameter option given that
we're not using it, and also updates the release script to
account for using linux-next.git on a daily basis for future
releases.
Usage of kup, the kernel uploader, will be addressed next.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Thu, 20 Sep 2012 21:57:18 +0000 (14:57 -0700)]
compat-drivers: gen-release.sh rename COMPAT_WIRELESS to COMPAT_DRIVERS
Simple search and replace.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Thu, 20 Sep 2012 21:44:37 +0000 (14:44 -0700)]
compat-drivers: rename gen-stable-release.sh to gen-release.sh
We'll use this same script to make daily linux-next.git based
releases.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Thu, 20 Sep 2012 21:42:12 +0000 (14:42 -0700)]
compat-drivers: update gen-stable-release.sh to make bzip2 again
The kernel uploader expects you to sign the tar file but you can
pass along and upload a bzip2 archive. At the other end the
daemon will uncompress and then verify the tarball.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Thu, 20 Sep 2012 21:33:45 +0000 (14:33 -0700)]
compat-drivers: refresh crap patches for next-
20120920
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Thu, 20 Sep 2012 21:32:07 +0000 (14:32 -0700)]
compat-drivers: refresh patches for next-
20120920
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Wed, 19 Sep 2012 01:01:03 +0000 (18:01 -0700)]
compat-drivers: adjust scripts to support daily linux-next releases
We'll use these for daily linux-next.git and linux-stable.git releases.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Tue, 18 Sep 2012 23:01:54 +0000 (16:01 -0700)]
compat-drivers: refresh patches for next-
20120918
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Wed, 12 Sep 2012 00:37:52 +0000 (17:37 -0700)]
compat-drivers: backport netlink pid to portid rename
The patch:
commit
15e473046cb6e5d18a4d0057e61d76315230382b
Author: Eric W. Biederman <ebiederm@xmission.com>
Date: Fri Sep 7 20:12:54 2012 +0000
netlink: Rename pid to portid to avoid confusion
It is a frequent mistake to confuse the netlink port identifier with a
process identifier. Try to reduce this confusion by renaming fields
that hold port identifiers portid instead of pid.
I have carefully avoided changing the structures exported to
userspace to avoid changing the userspace API.
I have successfully built an allyesconfig kernel with this change.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Changed the struct members:
struct netlink_notify->pid to
struct netlink_notify->portid
struct genl_info->snd_pid to
struct genl_info->snd_portid
To help backport this and not have to #ifdef around it against
kernel versions compat has introduced two helpers for us to
simply do the backport with three macro helpers:
genl_info_snd_portid()
netlink_notify_portid()
NETLINK_CB_PORTID()
This takes care of the work for us requiring only one
single line change. This patch now goes into its own
new filename following the lead of the other 4-digit
prefixed patches which try to separate collateral
evolutions to be used for spdiff to further backport
uses in other subsystems / drivers.
mcgrof@garbanzo ~/devel/compat-drivers (git::master)$ time ckmake
Trying kernel 3.5.0-030500-generic [OK]
Trying kernel 3.4.4-030404-generic [OK]
Trying kernel 3.3.7-030307-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 26m46.734s
user 140m26.659s
sys 13m26.194s
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Bala Shanmugam [Tue, 11 Sep 2012 06:29:24 +0000 (11:59 +0530)]
compat-drivers: Use GIT_TREE variable.
In gen-stable-release.sh stable git tree path is hardcoded.
Use GIT_TREE environment variable if specified.
Signed-off-by: Bala Shanmugam <bkamatch@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Tue, 11 Sep 2012 23:43:05 +0000 (16:43 -0700)]
compat-drivers: refresh in synch with next-
20120911
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Ozan Çağlayan [Thu, 6 Sep 2012 19:49:55 +0000 (22:49 +0300)]
compat-drivers: Update 53-pr_fmt.patch
Fix ath5k/debug.c redefinition warning for pr_fmt macro
Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Ozan Çağlayan [Thu, 6 Sep 2012 19:49:54 +0000 (22:49 +0300)]
compat-drivers: Sync with linux-next
20120906
Refresh patches for next-
20120906
Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Wed, 5 Sep 2012 00:36:55 +0000 (17:36 -0700)]
compat-drivers: copy .compat_base on scripts/refresh-compat
Reported-by: Xiong Huang <xiong@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Wed, 5 Sep 2012 00:36:28 +0000 (17:36 -0700)]
compat-drivers: refresh patches for next-
20120904
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Wed, 5 Sep 2012 00:25:24 +0000 (17:25 -0700)]
compat-drivers: backport dma-buf ops begin_cpu_access
This was added as of the original dma-buf implementation via
the 3.4 kernel but through a separate set of patches. Tuck this
into the patch that already deals with dma buf ops.
mcgrof@frijol ~/linux-next (git::master)$ git describe --contains \
fc13020e086bfedf2afb95c91c026d5af1f80107
v3.4-rc1~57^2~3
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Fri, 31 Aug 2012 21:07:13 +0000 (14:07 -0700)]
compat-drivers: synch with linux-next
20120824
This synchs with linux-next
20120824.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Wed, 22 Aug 2012 16:47:29 +0000 (20:47 +0400)]
compat-drivers: refresh patches for next-
20120822
All I had to do was:
./scripts/admin-update.sh network drm refresh
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Wed, 22 Aug 2012 16:44:09 +0000 (20:44 +0400)]
compat-drivers: fix broken hunks for next-
20120822
A few hunks required manual fixing for next-
20120822
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Ozan Çağlayan [Tue, 21 Aug 2012 16:34:55 +0000 (19:34 +0300)]
compat-drivers: Add DRM patches
These patches are part of the GSoC project for backporting the
DRM drivers onto older kernels.
Merge them into the compat-drivers tree.
Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Ozan Çağlayan [Tue, 21 Aug 2012 16:34:54 +0000 (19:34 +0300)]
compat-drivers: Move around patches and selectively apply them
Put wlan/bt/eth related patches under network/ subdirectories. Apply them
only if the network subsystem is enabled (For now, it is enabled by default).
Create empty network/ placeholders under patch directories.
Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Ozan Çağlayan [Tue, 21 Aug 2012 16:34:53 +0000 (19:34 +0300)]
compat-drivers: Fetch in DRM drivers
Grab DRM drivers from $GIT_URL if drm is passed in the command line.
Note that 'make' will not currently build these drivers. This is just
for fetching them in.
Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Ozan Çağlayan [Tue, 21 Aug 2012 16:34:52 +0000 (19:34 +0300)]
compat-drivers: Add ability to select drivers to fetch
Add a last command line parameter to define which subsystems will
be fetched into the tree.
Currently the script supports network and/or drm keywords as the
last argument.
network is currently enabled by default to retain compatibility with
the previous compat-wireless tree.
Move around code and use the previously added 2 helper functions
to copy files/folders conditionally, according to the values of
ENABLE_NETWORK (and ENABLE_DRM which will follow).
Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Ozan Çağlayan [Tue, 21 Aug 2012 16:34:51 +0000 (19:34 +0300)]
compat-drivers: Use case instead of if/if/.. blocks
case is much cleaner both for reading and for extending.
Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Ozan Çağlayan [Wed, 15 Aug 2012 09:00:33 +0000 (12:00 +0300)]
Switch README to markdown format
github interprets and formats .md (markdown) in a very fashioned way.
See how it looks and you can decide to use markdown in your readme:
https://github.com/ozancaglayan/compat-drivers/tree/markdown
Its 2012, README's are ancient.
Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Ozan Çağlayan [Thu, 16 Aug 2012 16:11:53 +0000 (19:11 +0300)]
compat-drivers: Add 2 convenience functions
Add copyFiles and copyDirectories. Their functionality is repeated
over and over in the current code. We'll start using them to get
rid of redundant code snippets.
Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Ozan Çağlayan [Thu, 16 Aug 2012 16:11:52 +0000 (19:11 +0300)]
compat-drivers: List everything vertically without concatenating
This looks much readable. No functional change.
Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Ozan Çağlayan [Thu, 16 Aug 2012 15:44:51 +0000 (18:44 +0300)]
compat-drivers: Clean up *.mod.c after everything
Remove possible .mod.c leftovers at the end instead of after every
copying operation.
Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Andy Gospodarek [Tue, 14 Aug 2012 18:52:27 +0000 (14:52 -0400)]
compat: only compile optional sdio code on 2.6.37 and later
The pm_runtime routines in wlcore/sdio.c are not included in compat and
the best alternative is to build them only on kernels 2.6.37 and later.
Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Luis R. Rodriguez [Tue, 14 Aug 2012 22:58:07 +0000 (15:58 -0700)]
compat-drivers: complete compat-wirelss --> compat-drivers rename
The name change is now completed, including the git tree.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Hauke Mehrtens [Mon, 13 Aug 2012 19:41:26 +0000 (21:41 +0200)]
compat-wireless: make patches apply again
Some parts of 11-dev-pm-ops.patch for iwlegacy went upstream in:
commit
450e9038ee65e3246b2a942669fc79001466f9be
Author: Johannes Berg <johannes.berg@intel.com>
Date: Tue Aug 7 21:46:44 2012 +0200
iwlegacy: clean up suspend/resume
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Hauke Mehrtens [Sat, 11 Aug 2012 00:30:25 +0000 (02:30 +0200)]
compat-wireless: do not add const before SIMPLE_DEV_PM_OPS
For kernel < 2.6.32 .driver.pm in struct pci_driver is not const, but
for later kernel versions it is const. This const should not be added
manually, but by SIMPLE_DEV_PM_OPS(), so remove it from this patch.
In addition compat_pci_suspend and compat_pci_resume are now in front
of SIMPLE_DEV_PM_OPS to make make it possible to use a function created
by them in SIMPLE_DEV_PM_OPS(), which is needed for kernel 2.6.29.
This is partly based on work done by Johannes Berg.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Hauke Mehrtens [Sat, 11 Aug 2012 00:30:24 +0000 (02:30 +0200)]
compat-wireless: adapt changes in cfg80211.h in wil6210
struct cfg80211_ops changed and this patches changes wil6210 to use the
correct parameter types in the callback functions.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Hauke Mehrtens [Mon, 6 Aug 2012 22:34:46 +0000 (00:34 +0200)]
compat-wireless: remove usage of dismantle in net_device
The following patch makes use of the dismantle member in struct
net_device, this patch removes that access on older kernels.
commit
9d5d496c3464b7ad0ba942b4ada5f27c07e07079
Author: Daniel Drake <dsd@laptop.org>
Date: Mon Jul 30 22:58:04 2012 +0100
libertas: don't reset card on error when it is being removed
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Hauke Mehrtens [Mon, 6 Aug 2012 22:34:45 +0000 (00:34 +0200)]
compat-wireless: add missing part to tty-termios backport
This part was missing in the original patch
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Hauke Mehrtens [Mon, 6 Aug 2012 22:34:44 +0000 (00:34 +0200)]
compat-wireless: the tty termios change is not in 3.6-rc1
The api change this patch is needed for is not in kernel 3.6-rc1.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Tue, 7 Aug 2012 15:28:55 +0000 (08:28 -0700)]
compat-wireless: make TI wireless drivers depend on >= 2.6.30
No one there seems to care for anything older.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Ozan Çağlayan [Mon, 6 Aug 2012 19:05:38 +0000 (22:05 +0300)]
compat-wireless: Fix another $HOME glitch, unify file lists
- Drop duplicate lines in WSTABLE,
- Do not call mkdir -p for a second time,
- Fix another $USER/$HOME glitch.
Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Ozan Çağlayan [Mon, 6 Aug 2012 18:55:07 +0000 (21:55 +0300)]
compat-wireless: Small cosmetic changes
Change old tree names to reflect the new ones, continue to replace
occurences of compat-* with compat-drivers.
Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Ozan Çağlayan [Mon, 6 Aug 2012 18:55:06 +0000 (21:55 +0300)]
compat-wireless: Minor cosmetic changes in admin-update.sh
- Move functions above everything,
- Use $HOME instead of /home/$USER which fails when run as root,
- Enhance comments
- Mention about compat/bin/get-compat-trees for fetching the trees.
Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Ozan Çağlayan [Mon, 6 Aug 2012 18:33:29 +0000 (21:33 +0300)]
compat-wireless: Rename compat-wireless to compat-drivers
This first patch touches mostly cosmetic parts to change
compat-wireless -> compat-drivers.
GIT URL's describing compat-wireless.git are not changed
for now as the git repo in github is still compat-wireless.git.
Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Ozan Çağlayan [Mon, 6 Aug 2012 17:50:46 +0000 (20:50 +0300)]
compat-wireless: Nuke defconfigs
Drop defconfigs that were destined to enable specific builds, but
they are not used at all. Let's clean them.
Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Steven Luo [Mon, 6 Aug 2012 17:52:55 +0000 (10:52 -0700)]
compat-wireless: driver-select: update after introduction of CONFIG_WL_TI
The introduction of CONFIG_WL_TI broke selecting the TI drivers using
driver-select. Fix this, and while we're at it, teach the script about
wl18xx as well.
Signed-off-by: Steven Luo <steven@steven676.net>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Steven Luo [Mon, 6 Aug 2012 17:52:32 +0000 (10:52 -0700)]
compat-wireless: driver-select: refactor select_drivers and eliminate redundant select_driver
These two functions are functionally identical when passed one argument,
and we'd also like to have the ability to modify Makefiles other than
drivers/net/wireless/Makefile the same way. Introduce a
select_drivers_from_makefile which takes a Makefile argument, and
implement select_drivers using it. Convert existing users of
select_driver to select_drivers, and remove the redundant function.
Signed-off-by: Steven Luo <steven@steven676.net>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Hauke Mehrtens [Wed, 1 Aug 2012 23:04:37 +0000 (01:04 +0200)]
compat-wireless: add patch to make b44 work with < 2.6.36
The following commit made b44 use 64 bit stats which are not supported
by kernel version < 2.6.36.
commit
eeda8585522bcc173f91d6254dfa63e871087c54
Author: Kevin Groeneveld <kgroeneveld@gmail.com>
Date: Tue Jul 17 17:46:01 2012 +0000
b44: add 64 bit stats
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Tue, 24 Jul 2012 21:36:37 +0000 (14:36 -0700)]
compat-wireless: backport tty termios changes
This patch requires a manual backport:
commit
adc8d746caa67fff4b53ba3e5163a6cbacc3b523
Author: Alan Cox <alan@linux.intel.com>
Date: Sat Jul 14 15:31:47 2012 +0100
tty: move the termios object into the tty
This will let us sort out a whole pile of tty related races. The
alternative would be to keep points and refcount the termios objects.
However
1. They are tiny anyway
2. Many devices don't use the stored copies
3. We can remove a pty special case
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
We cannot use compat.git for this given that the assignment
was not done through a static inline helper.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Tue, 24 Jul 2012 20:17:34 +0000 (13:17 -0700)]
compat-wireless: really fix atl1c and alx for >= 2.6.28
This *really* fixes the config options:
mcgrof@flash ~/staging/compat-wireless-3.4-rc3-1-p $ ckmake 2.6.27..2.6.29
Going to use kernel ranges: 2.6.27..2.6.29
2.6.27 132635 <= 2.6.29 132637 <= 2.6.29 132637
2.6.27 132635 <= 2.6.28 132636 <= 2.6.29 132637
2.6.27 132635 <= 2.6.27 132635 <= 2.6.29 132637
Trying kernel 2.6.29-
02062906-generic [OK]
Trying kernel 2.6.28-
02062810-generic [OK]
Trying kernel 2.6.27-020627-generic [OK]
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Tue, 24 Jul 2012 18:38:03 +0000 (11:38 -0700)]
compat-wireless: fix disabling atl1c / alx for >= 2.6.28
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Mon, 23 Jul 2012 23:42:23 +0000 (16:42 -0700)]
compat-wireless: refresh crap patches
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Mon, 23 Jul 2012 23:41:01 +0000 (16:41 -0700)]
compat-wireless: remove pending reg mutex fix
This patch is now merged upstream on linux-next.git
as of next-
20120723.
commit
ebd0fd2b1a30aa836c28e758d8a57ecdfa85052f
Author: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Date: Wed Jul 18 18:11:29 2012 +0530
cfg80211: Fix mutex locking in reg_last_request_cell_base
should fix the following issue
[ 3229.815012] [ BUG: lock held when returning to user space! ]
[ 3229.815016] 3.5.0-rc7-wl #28 Tainted: G W O
[ 3229.815017]
------------------------------------------------
[ 3229.815019] wpa_supplicant/5783 is leaving the kernel with locks still held!
[ 3229.815022] 1 lock held by wpa_supplicant/5783:
[ 3229.815023] #0: (reg_mutex){+.+.+.}, at: [<
fa65834d>]
reg_last_request_cell_base+0x1d/0x60 [cfg80211]
Cc: Luis Rodriguez <mcgrof@gmail.com>
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Tested-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Mon, 23 Jul 2012 23:36:29 +0000 (16:36 -0700)]
compat-wireless: refresh patches for next-
20120723
Synchs with next-
20120723.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Fri, 20 Jul 2012 00:25:29 +0000 (17:25 -0700)]
compat-wireless: merge a pending reg fix onto linux-next-pending/
This merge this patch onto linux-next-pending/
commit
ebd0fd2b1a30aa836c28e758d8a57ecdfa85052f
Author: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Date: Wed Jul 18 18:11:29 2012 +0530
cfg80211: Fix mutex locking in reg_last_request_cell_base
should fix the following issue
[ 3229.815012] [ BUG: lock held when returning to user space! ]
[ 3229.815016] 3.5.0-rc7-wl #28 Tainted: G W O
[ 3229.815017]
------------------------------------------------
[ 3229.815019] wpa_supplicant/5783 is leaving the kernel with locks still held!
[ 3229.815022] 1 lock held by wpa_supplicant/5783:
[ 3229.815023] #0: (reg_mutex){+.+.+.}, at: [<
fa65834d>]
reg_last_request_cell_base+0x1d/0x60 [cfg80211]
Cc: Luis Rodriguez <mcgrof@gmail.com>
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Tested-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Fri, 20 Jul 2012 00:21:06 +0000 (17:21 -0700)]
compat-wireless: remove onus linux-next-pending/ patches
These are all now merged.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Fri, 20 Jul 2012 00:19:51 +0000 (17:19 -0700)]
compat-wireless: refresh patches for next-
20120719
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Fri, 20 Jul 2012 00:18:23 +0000 (17:18 -0700)]
compat-wireless: fix patches/99-change-makefiles.patch
Due to some new changes on the file.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Fri, 20 Jul 2012 00:15:37 +0000 (17:15 -0700)]
compat-wireless: fix patches/18-rename-usb-net-symbols.patch
Make this apply again due to a new driver being added.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Fri, 13 Jul 2012 19:29:10 +0000 (12:29 -0700)]
compat-wireless: update linux-next-pending/ onus patches
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Fri, 13 Jul 2012 19:26:44 +0000 (12:26 -0700)]
compat-wireless: remove linux-next-pending/ onus patches
These required an update, I'll provide the updated
versions next.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Fri, 13 Jul 2012 19:09:19 +0000 (12:09 -0700)]
compat-wireless: refresh patches for next-
20120713
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Fri, 13 Jul 2012 01:59:55 +0000 (18:59 -0700)]
compat-wireless: fix patches/40-netdev-hw-features.patch for atl1e
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Fri, 13 Jul 2012 00:38:47 +0000 (17:38 -0700)]
compat-wireless: fix atl1c_main.c hunk changes
The "fix" I used on the hunk actually messed up
compilation, this patch fixes that.
commit
f6089f50430911ee72102c5ddb0a325a636ce491
Author: Luis R. Rodriguez <mcgrof@frijolero.org>
Date: Thu Jul 12 15:31:56 2012 -0700
compat-wireless: fix patches/40-netdev-hw-features.patch
Some atl1c driver changes made a hunk there not apply and
it required some manual fixes.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Thu, 12 Jul 2012 22:44:14 +0000 (15:44 -0700)]
compat-wireless: refresh crap patches
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Thu, 12 Jul 2012 22:42:51 +0000 (15:42 -0700)]
compat-wireless: remove linux-next-pending/0006-ath5k-*.patch
This is now upstream -- although the cfg80211 changes are not
yet merged.
commit
2f8684ce7a47c91da7e0ccba2686277c103d02b6
Author: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
Date: Fri Jul 6 15:21:51 2012 -0700
ath5k: replace modparam_all_channels with CONFIG_ATH5K_TEST_CHANNELS
This stashes away this feature from standard kernel builds.
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Thu, 12 Jul 2012 22:35:48 +0000 (15:35 -0700)]
compat-wireless: refresh patches for next-
20120712
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Thu, 12 Jul 2012 22:31:56 +0000 (15:31 -0700)]
compat-wireless: fix patches/40-netdev-hw-features.patch
Some atl1c driver changes made a hunk there not apply and
it required some manual fixes.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Thu, 12 Jul 2012 22:07:39 +0000 (15:07 -0700)]
compat-wireless: the iwmc3200wifi driver got axed
commit
bdb903e499aa9dcc727a74942131ef948ebf2e1b
Author: John W. Linville <linville@tuxdriver.com>
Date: Tue Jun 26 15:10:12 2012 -0400
iwmc3200wifi: remove driver for unavailable hardware
This hardware never became available to normal humans. Leaving this
driver imposes unwelcome maintenance costs for no clear benefit.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Tue, 10 Jul 2012 19:12:05 +0000 (12:12 -0700)]
compat-wireless: add v4 onus patches
Updated the linux-next-pendign onus patches.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Tue, 10 Jul 2012 19:11:03 +0000 (12:11 -0700)]
compat-wireless: remove v3 onus patches
There is a v4, will update next.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Tue, 10 Jul 2012 19:09:11 +0000 (12:09 -0700)]
compat-wireless: refresh crap patches with next-
20120710
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Tue, 10 Jul 2012 19:08:33 +0000 (12:08 -0700)]
compat-wireless: refresh patches for next-
20120710
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Tue, 10 Jul 2012 00:03:16 +0000 (17:03 -0700)]
compat-wireless: add new v3 of cfg80211 onus patches
These are not yet merged.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Luis R. Rodriguez [Mon, 9 Jul 2012 23:59:12 +0000 (16:59 -0700)]
compat-wireless: remove cfg80211 certification onus pending patches
A new iteration was sent, I'll update that next.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>