Commit Graph

30393 Commits (814e6c7b356cca249ba9b6c60e8586a5ad1088f8)

Author SHA1 Message Date
Felix Fietkau 08bd449e86 atheros: fix too short msleep
Use msleep(20) instead of msleep(10) to make code closer to reality
since msleep can sleep for up to 20ms even we request shorter delay.
All updated calls are located in PCI initialization routine which is
called only once upon device boot. So there should be no performance
issues caused by more longer delay.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41096 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 09:06:25 +00:00
Felix Fietkau 37006f3b37 atheros: shorten lines
Wrap lines over 80 chars or make them shorter by other ways.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41095 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 09:06:22 +00:00
Felix Fietkau 91443b20ca atheros: constify some static structures
Constify some static structures as suggested by checkpatch.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41094 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 09:06:18 +00:00
Felix Fietkau a1189cbd7d atheros: avoid __FUNCTION__ usage
Use __func__ instead of gcc specific __FUNCTION__ as suggested by
checkpatch.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41093 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 09:06:14 +00:00
Felix Fietkau 2a6e03d7ad atheros: trailing statements fixes
Move trailing statements to next line with indentation as suggested by
checkpatch.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41092 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 09:06:10 +00:00
Felix Fietkau f10e6fd9af atheros: spaces fixes
Add missed spaces and remove odd space as suggested by checkpatch.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41091 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 09:06:06 +00:00
Felix Fietkau 4348822245 atheros: indent fixes
Various indent fixes suggested by checkpatch: use tabs, use same level
of indentation for switch and case, correct indentation levels.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41090 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 09:06:03 +00:00
Felix Fietkau 3b68214e57 atheros: fix includes
Remove some unnecessary includes and use <linux/foo.h> instead of
<asm/foo.h> when it possible as suggested by checkpatch.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41089 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 09:05:58 +00:00
Felix Fietkau d5ce5c199b atheros: various printk(...) fixes
Use more particular functions dev_<level> or pr_<level>(...) insead of
direct printk(...) call. Add KERN_LEVEL to calls what missed it.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41088 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 09:05:55 +00:00
Felix Fietkau 7b39c76660 atheros: various braces fixes
Fix braces location, remove unnecessary empty lines before or after code
block, remove useless braces. All cases are detected by checkpatch.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41087 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 09:05:51 +00:00
Felix Fietkau 29a33c9e0a atheros: do not initialize statics to 0 or false
as suggested by checkpatch.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41086 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 09:05:47 +00:00
Felix Fietkau cea8debc60 atheros: remove trailing whitespace
as suggested by checkpatch.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41085 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 09:05:43 +00:00
Felix Fietkau 5bdef6a357 atheros: do not assignment in if condition
Remove assignments from if conditions as suggested by checkpatch.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41084 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 09:05:40 +00:00
Felix Fietkau 9206683f4b atheros: remove parentheses around return values
Remove parentheses around return values since return is no a function,
as suggested by checkpatch.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41083 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 09:05:36 +00:00
Felix Fietkau 19c6fdf34a atheros: parenthesis around complex macroses value
Use parenthesis around complex macroses value as suggested by
checkpatch.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41082 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 09:05:32 +00:00
Felix Fietkau bb7b461319 atheros: various comments fixes
Fix comment issues detected by checkpatch. Convert C99 // comments to
ordinary /* ... */ comments. Correct block comments style or convert
them to single line comments.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41081 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 09:05:28 +00:00
Felix Fietkau e17ca070e7 atheros: avoid CamelCase
Change fooBar variables names to foo_bar as suggested by checkpatch,
write few tables names in lower case and correctly place __initdata
keyword.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41080 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 09:05:25 +00:00
Steven Barth 0b9b716083 odhcpd: various regression fixes (thanks Hans Dedecker)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41079 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 08:47:15 +00:00
Steven Barth 0046becf94 Switching default packages feed to github
New feed: https://github.com/openwrt/packages
Maintainers please move your packages there.

See also: https://lists.openwrt.org/pipermail/openwrt-devel/2014-June/025810.html

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41063 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 05:17:41 +00:00
Felix Fietkau 6114bc1bbb mountd: remove a bogus include to fix compile with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41062 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-09 13:48:00 +00:00
Felix Fietkau 4a5380c1f4 libnfnetlink: fix musl compile errors
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41061 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-09 13:47:56 +00:00
Felix Fietkau 3dfa8a386c ubi-utils: fix musl compile errors
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41060 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-09 13:47:52 +00:00
Felix Fietkau 1874a9e3de util-linux: use qsort instead of qsort_r to fix compile error with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41059 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-09 13:47:48 +00:00
Felix Fietkau 4ebb5e2268 xfsprogs: fix compile errors with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41058 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-09 13:47:44 +00:00
Felix Fietkau 59fdd2eedf uhttpd: update to the latest version, fixes musl compile issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41057 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-09 13:47:40 +00:00
Felix Fietkau 960251bb37 musl: install a few extra headers to improve compatibility with various packages
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41056 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-09 13:47:36 +00:00
Felix Fietkau e64c4e565d kernel: add missing dependency for kmod-fs-nfs
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41055 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-08 12:07:42 +00:00
Felix Fietkau 9eb6e19424 valgrind: avoid including linux/ptrace.h to fix a musl build error
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41054 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-08 11:21:37 +00:00
Felix Fietkau b0caf60f09 brcm47xx: merge FEATURES lines in the legacy subtarget
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41053 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-08 09:51:38 +00:00
Felix Fietkau 459c9c3fc6 brcm47xx: fix kmod-usb-brcm47xx build on legacy and mips74k subtargets
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41052 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-08 09:45:55 +00:00
Felix Fietkau a592b1e370 uqmi: use -ffunction-sections and --gc-sections, reduces binary size from 57k to 29k
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41051 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 19:14:17 +00:00
Hauke Mehrtens 436d42c5cd brcm47xx: activate some compiler optimizations for 74K CPUs
With this patch the mips74k subtarget will be compiled with optimized 
compiler options to generated smaller and faster code. This currently 
breaks broadcom-wl, because the binary blob is only compiled with 
mipsr1 support.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41050 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 17:36:02 +00:00
Felix Fietkau 7e4ffc4002 brcm47xx: move the low_mem feature flag to the legacy subtarget
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41049 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 17:21:30 +00:00
Hauke Mehrtens 3b8f1d816c brcm47xx: remove old gpio and nvram interfaces
These were only used by broadcom-diag any more.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41048 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 17:04:37 +00:00
Hauke Mehrtens d6e0aeefff broadcom-diag: remove broadcom-diag
broadcom-diag is not supported any more and was replaced by 
configuration the GPIOs in the arch code

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41047 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 17:01:42 +00:00
Hauke Mehrtens 27bec1191f broadcom-wl: fix build with bcma or ssb deactivated
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41046 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 17:00:53 +00:00
Felix Fietkau 3949f5dbb8 base-files: fix argument order to date in sysfixtime so that it also works with musl
Seems like the reverse order relies on GNU specific getopt hackery which
musl does not replicate

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41045 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 16:14:47 +00:00
Felix Fietkau 66f8828fb9 musl: update to version 1.1.2
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41044 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 16:14:43 +00:00
Hauke Mehrtens c8621d02f5 brcm47xx: mips74k: optimize kernel config
This saves abount 15 kB of compressed kernel size.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41043 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 15:42:33 +00:00
Hauke Mehrtens 6143a2a98d bcm47xx: use eth0 for switch name
This fixes some strange problems with tg3. I assume that the Ethernet 
driver was not brought up if the switch was named switch0.

This was reported and tested by ernesto (Faulp3lz).

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41042 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 15:41:41 +00:00
Felix Fietkau 758e298a5d brcm47xx: add a "legacy" subtarget that is usable for low-end 802.11g devices like WRT54G
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41041 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 15:19:40 +00:00
Felix Fietkau 772ff2ddf4 mac80211: b43: fix B43_USE_SSB dependency
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41040 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 12:04:55 +00:00
Felix Fietkau 4529f05113 procd: Fix USB cellular modems hotplug events
Without this patch, /etc/hotplug.d/tty/30-3g won't be called when you insert or remove a USB-serial cellular modem.

(see Ticket #14117)

Signed-off-by: Matthew Reeve <mreeve@tenxnetworks.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41039 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 11:54:13 +00:00
Steven Barth e14ff4aa6b odhcpd: improve DHCPv4 range defaults
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41038 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 10:35:34 +00:00
Felix Fietkau b023acbfab b43: fix ssb/bcma dependencies
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41037 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-06 16:24:21 +00:00
Felix Fietkau 2ef5c5d472 binutils: decouple from toolchain selection, use version 2.24, fix libiberty installation
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41036 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-06 10:51:47 +00:00
Felix Fietkau 502d8e6357 oprofile: update to 0.9.9, fix compile error
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41035 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-06 10:51:44 +00:00
Felix Fietkau 49058e0cfd toolchain/binutils: remove obsolete patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41034 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-06 10:51:40 +00:00
John Crispin a0ebf58d0e ubi-utils: bump to version 1.5.1 for ubiblock support
ubiblock allows creating and removing read-only block devices
on top of ubi volumes.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41033 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-06 09:34:47 +00:00
John Crispin aeeb870b02 igmpproxy: report an error and dont start the instance if one of the interfaces is not up
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41032 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-06 09:34:38 +00:00