Skip to content

Commit

Permalink
kernel: bump kernel 4.4 to 4.4.129 for 17.01
Browse files Browse the repository at this point in the history
* Refreshed patches

Compile-tested: ar71xx
Run-tested: ar71xx

Signed-off-by: Etienne Haarsma <bladeoner112@gmail.com>
  • Loading branch information
bladeoner authored and blogic committed Apr 30, 2018
1 parent afa8873 commit 81573ea
Show file tree
Hide file tree
Showing 43 changed files with 136 additions and 136 deletions.
4 changes: 2 additions & 2 deletions include/kernel-version.mk
Expand Up @@ -3,10 +3,10 @@
LINUX_RELEASE?=1

LINUX_VERSION-3.18 = .43
LINUX_VERSION-4.4 = .126
LINUX_VERSION-4.4 = .129

LINUX_KERNEL_HASH-3.18.43 = 1236e8123a6ce537d5029232560966feed054ae31776fe8481dd7d18cdd5492c
LINUX_KERNEL_HASH-4.4.126 = e9c8f4c4cda89124e7c53bda979db3f9c12f7c177bee90ddd3ab38d5ae99cd58
LINUX_KERNEL_HASH-4.4.129 = a165c4bada6a8d2355727ef6c97669e8c87c48f28bb410af34741c87fcf4712b

ifdef KERNEL_PATCHVER
LINUX_VERSION:=$(KERNEL_PATCHVER)$(strip $(LINUX_VERSION-$(KERNEL_PATCHVER)))
Expand Down
Expand Up @@ -30,7 +30,7 @@
#endif
}

@@ -2587,7 +2596,7 @@ static int emac_init_config(struct emac_
@@ -2605,7 +2614,7 @@ static int emac_init_config(struct emac_
if (of_device_is_compatible(np, "ibm,emac-apm821xx")) {
dev->features |= (EMAC_APM821XX_REQ_JUMBO_FRAME_SIZE |
EMAC_FTR_APM821XX_NO_HALF_DUPLEX |
Expand Down
Expand Up @@ -18,7 +18,7 @@ Subject: [PATCH] phy device tree support for emac
#include <linux/slab.h>

#include <asm/processor.h>
@@ -2392,6 +2393,246 @@ static int emac_read_uint_prop(struct de
@@ -2410,6 +2411,246 @@ static int emac_read_uint_prop(struct de
return 0;
}

Expand Down Expand Up @@ -265,7 +265,7 @@ Subject: [PATCH] phy device tree support for emac
static int emac_init_phy(struct emac_instance *dev)
{
struct device_node *np = dev->ofdev->dev.of_node;
@@ -2462,6 +2703,18 @@ static int emac_init_phy(struct emac_ins
@@ -2480,6 +2721,18 @@ static int emac_init_phy(struct emac_ins

emac_configure(dev);

Expand All @@ -284,15 +284,15 @@ Subject: [PATCH] phy device tree support for emac
if (dev->phy_address != 0xffffffff)
phy_map = ~(1 << dev->phy_address);

@@ -2489,6 +2742,7 @@ static int emac_init_phy(struct emac_ins
@@ -2507,6 +2760,7 @@ static int emac_init_phy(struct emac_ins
return -ENXIO;
}

+ init_phy:
/* Init PHY */
if (dev->phy.def->ops->init)
dev->phy.def->ops->init(&dev->phy);
@@ -2907,6 +3161,8 @@ static int emac_probe(struct platform_de
@@ -2925,6 +3179,8 @@ static int emac_probe(struct platform_de
/* I have a bad feeling about this ... */

err_detach_tah:
Expand All @@ -301,7 +301,7 @@ Subject: [PATCH] phy device tree support for emac
if (emac_has_feature(dev, EMAC_FTR_HAS_TAH))
tah_detach(dev->tah_dev, dev->tah_port);
err_detach_rgmii:
@@ -2957,6 +3213,11 @@ static int emac_remove(struct platform_d
@@ -2975,6 +3231,11 @@ static int emac_remove(struct platform_d
if (emac_has_feature(dev, EMAC_FTR_HAS_ZMII))
zmii_detach(dev->zmii_dev, dev->zmii_port);

Expand Down
Expand Up @@ -12,7 +12,7 @@
# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -110,6 +110,7 @@ obj-$(CONFIG_XZ_DEC) += xz/
@@ -108,6 +108,7 @@ obj-$(CONFIG_XZ_DEC) += xz/
obj-$(CONFIG_RAID6_PQ) += raid6/
obj-$(CONFIG_LZMA_COMPRESS) += lzma/
obj-$(CONFIG_LZMA_DECOMPRESS) += lzma/
Expand Down
12 changes: 6 additions & 6 deletions target/linux/ar71xx/patches-4.4/910-unaligned_access_hacks.patch
Expand Up @@ -267,7 +267,7 @@
case IPV6_2292HOPOPTS:
--- a/net/ipv6/ip6_gre.c
+++ b/net/ipv6/ip6_gre.c
@@ -395,7 +395,7 @@ static void ip6gre_err(struct sk_buff *s
@@ -397,7 +397,7 @@ static void ip6gre_err(struct sk_buff *s
return;
ipv6h = (const struct ipv6hdr *)skb->data;
greh = (const struct gre_base_hdr *)(skb->data + offset);
Expand All @@ -276,7 +276,7 @@

t = ip6gre_tunnel_lookup(skb->dev, &ipv6h->daddr, &ipv6h->saddr,
key, greh->protocol);
@@ -482,11 +482,11 @@ static int ip6gre_rcv(struct sk_buff *sk
@@ -484,11 +484,11 @@ static int ip6gre_rcv(struct sk_buff *sk
offset += 4;
}
if (flags&GRE_KEY) {
Expand All @@ -290,7 +290,7 @@
offset += 4;
}
}
@@ -748,7 +748,7 @@ static netdev_tx_t ip6gre_xmit2(struct s
@@ -750,7 +750,7 @@ static netdev_tx_t ip6gre_xmit2(struct s

if (tunnel->parms.o_flags&GRE_SEQ) {
++tunnel->o_seqno;
Expand All @@ -299,7 +299,7 @@
ptr--;
}
if (tunnel->parms.o_flags&GRE_KEY) {
@@ -844,7 +844,7 @@ static inline int ip6gre_xmit_ipv6(struc
@@ -846,7 +846,7 @@ static inline int ip6gre_xmit_ipv6(struc

dsfield = ipv6_get_dsfield(ipv6h);
if (t->parms.flags & IP6_TNL_F_USE_ORIG_TCLASS)
Expand All @@ -310,7 +310,7 @@
if (t->parms.flags & IP6_TNL_F_USE_ORIG_FWMARK)
--- a/net/ipv6/ip6_tunnel.c
+++ b/net/ipv6/ip6_tunnel.c
@@ -1307,7 +1307,7 @@ ip6ip6_tnl_xmit(struct sk_buff *skb, str
@@ -1310,7 +1310,7 @@ ip6ip6_tnl_xmit(struct sk_buff *skb, str

dsfield = ipv6_get_dsfield(ipv6h);
if (t->parms.flags & IP6_TNL_F_USE_ORIG_TCLASS)
Expand Down Expand Up @@ -838,7 +838,7 @@

--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -3818,14 +3818,16 @@ static bool tcp_parse_aligned_timestamp(
@@ -3820,14 +3820,16 @@ static bool tcp_parse_aligned_timestamp(
{
const __be32 *ptr = (const __be32 *)(th + 1);

Expand Down
Expand Up @@ -16,7 +16,7 @@ Signed-off-by: Michael Turquette <mturquette@baylibre.com>

--- a/drivers/clk/bcm/clk-bcm2835.c
+++ b/drivers/clk/bcm/clk-bcm2835.c
@@ -1170,22 +1170,24 @@ static int bcm2835_clock_is_on(struct cl
@@ -1172,22 +1172,24 @@ static int bcm2835_clock_is_on(struct cl

static u32 bcm2835_clock_choose_div(struct clk_hw *hw,
unsigned long rate,
Expand Down Expand Up @@ -49,7 +49,7 @@ Signed-off-by: Michael Turquette <mturquette@baylibre.com>

/* clamp to min divider of 1 */
div = max_t(u32, div, 1 << CM_DIV_FRAC_BITS);
@@ -1225,7 +1227,7 @@ static long bcm2835_clock_round_rate(str
@@ -1227,7 +1229,7 @@ static long bcm2835_clock_round_rate(str
unsigned long *parent_rate)
{
struct bcm2835_clock *clock = bcm2835_clock_from_hw(hw);
Expand All @@ -58,7 +58,7 @@ Signed-off-by: Michael Turquette <mturquette@baylibre.com>

return bcm2835_clock_rate_from_divisor(clock, *parent_rate, div);
}
@@ -1294,7 +1296,7 @@ static int bcm2835_clock_set_rate(struct
@@ -1296,7 +1298,7 @@ static int bcm2835_clock_set_rate(struct
struct bcm2835_clock *clock = bcm2835_clock_from_hw(hw);
struct bcm2835_cprman *cprman = clock->cprman;
const struct bcm2835_clock_data *data = clock->data;
Expand Down
Expand Up @@ -24,7 +24,7 @@ Signed-off-by: Michael Turquette <mturquette@baylibre.com>

--- a/drivers/clk/bcm/clk-bcm2835.c
+++ b/drivers/clk/bcm/clk-bcm2835.c
@@ -1222,16 +1222,6 @@ static long bcm2835_clock_rate_from_divi
@@ -1224,16 +1224,6 @@ static long bcm2835_clock_rate_from_divi
return temp;
}

Expand All @@ -41,7 +41,7 @@ Signed-off-by: Michael Turquette <mturquette@baylibre.com>
static unsigned long bcm2835_clock_get_rate(struct clk_hw *hw,
unsigned long parent_rate)
{
@@ -1303,13 +1293,75 @@ static int bcm2835_clock_set_rate(struct
@@ -1305,13 +1295,75 @@ static int bcm2835_clock_set_rate(struct
return 0;
}

Expand Down Expand Up @@ -118,7 +118,7 @@ Signed-off-by: Michael Turquette <mturquette@baylibre.com>
};

static int bcm2835_vpu_clock_is_on(struct clk_hw *hw)
@@ -1325,7 +1377,9 @@ static const struct clk_ops bcm2835_vpu_
@@ -1327,7 +1379,9 @@ static const struct clk_ops bcm2835_vpu_
.is_prepared = bcm2835_vpu_clock_is_on,
.recalc_rate = bcm2835_clock_get_rate,
.set_rate = bcm2835_clock_set_rate,
Expand All @@ -129,7 +129,7 @@ Signed-off-by: Michael Turquette <mturquette@baylibre.com>
};

static struct clk *bcm2835_register_pll(struct bcm2835_cprman *cprman,
@@ -1419,45 +1473,23 @@ static struct clk *bcm2835_register_cloc
@@ -1421,45 +1475,23 @@ static struct clk *bcm2835_register_cloc
{
struct bcm2835_clock *clock;
struct clk_init_data init;
Expand Down
Expand Up @@ -33,7 +33,7 @@ Signed-off-by: Michael Turquette <mturquette@baylibre.com>
struct bcm2835_pll {
struct clk_hw hw;
struct bcm2835_cprman *cprman;
@@ -1607,6 +1617,9 @@ static int bcm2835_clk_probe(struct plat
@@ -1609,6 +1619,9 @@ static int bcm2835_clk_probe(struct plat
cprman->regs + CM_PERIICTL, CM_GATE_BIT,
0, &cprman->regs_lock);

Expand Down
Expand Up @@ -66,7 +66,7 @@ Reviewed-by: Eric Anholt <eric@anholt.net>
};

struct bcm2835_pll {
@@ -1202,7 +1206,7 @@ static u32 bcm2835_clock_choose_div(stru
@@ -1204,7 +1208,7 @@ static u32 bcm2835_clock_choose_div(stru
GENMASK(CM_DIV_FRAC_BITS - data->frac_bits, 0) >> 1;
u64 temp = (u64)parent_rate << CM_DIV_FRAC_BITS;
u64 rem;
Expand All @@ -75,7 +75,7 @@ Reviewed-by: Eric Anholt <eric@anholt.net>

rem = do_div(temp, rate);
div = temp;
@@ -1212,11 +1216,23 @@ static u32 bcm2835_clock_choose_div(stru
@@ -1214,11 +1218,23 @@ static u32 bcm2835_clock_choose_div(stru
div += unused_frac_mask + 1;
div &= ~unused_frac_mask;

Expand Down Expand Up @@ -104,7 +104,7 @@ Reviewed-by: Eric Anholt <eric@anholt.net>

return div;
}
@@ -1310,9 +1326,26 @@ static int bcm2835_clock_set_rate(struct
@@ -1312,9 +1328,26 @@ static int bcm2835_clock_set_rate(struct
struct bcm2835_cprman *cprman = clock->cprman;
const struct bcm2835_clock_data *data = clock->data;
u32 div = bcm2835_clock_choose_div(hw, rate, parent_rate, false);
Expand Down
Expand Up @@ -33,7 +33,7 @@ Signed-off-by: Eric Anholt <eric@anholt.net>
const char *osc_name;

struct clk_onecell_data onecell;
@@ -1350,7 +1347,7 @@ static int bcm2835_clock_set_rate(struct
@@ -1352,7 +1349,7 @@ static int bcm2835_clock_set_rate(struct
}

static int bcm2835_clock_determine_rate(struct clk_hw *hw,
Expand All @@ -42,7 +42,7 @@ Signed-off-by: Eric Anholt <eric@anholt.net>
{
struct bcm2835_clock *clock = bcm2835_clock_from_hw(hw);
struct clk_hw *parent, *best_parent = NULL;
@@ -1408,7 +1405,6 @@ static u8 bcm2835_clock_get_parent(struc
@@ -1410,7 +1407,6 @@ static u8 bcm2835_clock_get_parent(struc
return (src & CM_SRC_MASK) >> CM_SRC_SHIFT;
}

Expand Down
Expand Up @@ -58,7 +58,7 @@ Acked-by: Eric Anholt <eric@anholt.net>
/*
* These are fixed clocks. They're probably not all root clocks and it may
* be possible to turn them on and off but until this is mapped out better
@@ -1048,6 +1070,36 @@ static int bcm2835_pll_set_rate(struct c
@@ -1050,6 +1072,36 @@ static int bcm2835_pll_set_rate(struct c
return 0;
}

Expand Down Expand Up @@ -95,15 +95,15 @@ Acked-by: Eric Anholt <eric@anholt.net>
static const struct clk_ops bcm2835_pll_clk_ops = {
.is_prepared = bcm2835_pll_is_on,
.prepare = bcm2835_pll_on,
@@ -1055,6 +1107,7 @@ static const struct clk_ops bcm2835_pll_
@@ -1057,6 +1109,7 @@ static const struct clk_ops bcm2835_pll_
.recalc_rate = bcm2835_pll_get_rate,
.set_rate = bcm2835_pll_set_rate,
.round_rate = bcm2835_pll_round_rate,
+ .debug_init = bcm2835_pll_debug_init,
};

struct bcm2835_pll_divider {
@@ -1157,6 +1210,26 @@ static int bcm2835_pll_divider_set_rate(
@@ -1159,6 +1212,26 @@ static int bcm2835_pll_divider_set_rate(
return 0;
}

Expand All @@ -130,15 +130,15 @@ Acked-by: Eric Anholt <eric@anholt.net>
static const struct clk_ops bcm2835_pll_divider_clk_ops = {
.is_prepared = bcm2835_pll_divider_is_on,
.prepare = bcm2835_pll_divider_on,
@@ -1164,6 +1237,7 @@ static const struct clk_ops bcm2835_pll_
@@ -1166,6 +1239,7 @@ static const struct clk_ops bcm2835_pll_
.recalc_rate = bcm2835_pll_divider_get_rate,
.set_rate = bcm2835_pll_divider_set_rate,
.round_rate = bcm2835_pll_divider_round_rate,
+ .debug_init = bcm2835_pll_divider_debug_init,
};

/*
@@ -1405,6 +1479,31 @@ static u8 bcm2835_clock_get_parent(struc
@@ -1407,6 +1481,31 @@ static u8 bcm2835_clock_get_parent(struc
return (src & CM_SRC_MASK) >> CM_SRC_SHIFT;
}

Expand Down Expand Up @@ -170,15 +170,15 @@ Acked-by: Eric Anholt <eric@anholt.net>
static const struct clk_ops bcm2835_clock_clk_ops = {
.is_prepared = bcm2835_clock_is_on,
.prepare = bcm2835_clock_on,
@@ -1414,6 +1513,7 @@ static const struct clk_ops bcm2835_cloc
@@ -1416,6 +1515,7 @@ static const struct clk_ops bcm2835_cloc
.determine_rate = bcm2835_clock_determine_rate,
.set_parent = bcm2835_clock_set_parent,
.get_parent = bcm2835_clock_get_parent,
+ .debug_init = bcm2835_clock_debug_init,
};

static int bcm2835_vpu_clock_is_on(struct clk_hw *hw)
@@ -1432,6 +1532,7 @@ static const struct clk_ops bcm2835_vpu_
@@ -1434,6 +1534,7 @@ static const struct clk_ops bcm2835_vpu_
.determine_rate = bcm2835_clock_determine_rate,
.set_parent = bcm2835_clock_set_parent,
.get_parent = bcm2835_clock_get_parent,
Expand Down
Expand Up @@ -56,7 +56,7 @@ Reviewed-by: Eric Anholt <eric@anholt.net>
struct bcm2835_pll {
struct clk_hw hw;
struct bcm2835_cprman *cprman;
@@ -1664,14 +1683,81 @@ static struct clk *bcm2835_register_cloc
@@ -1666,14 +1685,81 @@ static struct clk *bcm2835_register_cloc
return devm_clk_register(cprman->dev, &clock->hw);
}

Expand Down Expand Up @@ -139,7 +139,7 @@ Reviewed-by: Eric Anholt <eric@anholt.net>
if (!cprman)
return -ENOMEM;

@@ -1688,80 +1774,15 @@ static int bcm2835_clk_probe(struct plat
@@ -1690,80 +1776,15 @@ static int bcm2835_clk_probe(struct plat

platform_set_drvdata(pdev, cprman);

Expand Down
Expand Up @@ -473,7 +473,7 @@ Reviewed-by: Eric Anholt <eric@anholt.net>
struct bcm2835_pll {
struct clk_hw hw;
struct bcm2835_cprman *cprman;
@@ -1600,7 +1183,7 @@ bcm2835_register_pll_divider(struct bcm2
@@ -1602,7 +1185,7 @@ bcm2835_register_pll_divider(struct bcm2

memset(&init, 0, sizeof(init));

Expand All @@ -482,7 +482,7 @@ Reviewed-by: Eric Anholt <eric@anholt.net>
init.num_parents = 1;
init.name = divider_name;
init.ops = &bcm2835_pll_divider_clk_ops;
@@ -1699,50 +1282,401 @@ struct bcm2835_clk_desc {
@@ -1701,50 +1284,401 @@ struct bcm2835_clk_desc {
const void *data;
};

Expand Down
Expand Up @@ -17,7 +17,7 @@ Reviewed-by: Eric Anholt <eric@anholt.net>

--- a/drivers/clk/bcm/clk-bcm2835.c
+++ b/drivers/clk/bcm/clk-bcm2835.c
@@ -1644,6 +1644,13 @@ static const struct bcm2835_clk_desc clk
@@ -1646,6 +1646,13 @@ static const struct bcm2835_clk_desc clk
.div_reg = CM_HSMDIV,
.int_bits = 4,
.frac_bits = 8),
Expand Down
Expand Up @@ -14,7 +14,7 @@ Reviewed-by: Eric Anholt <eric@anholt.net>

--- a/drivers/clk/bcm/clk-bcm2835.c
+++ b/drivers/clk/bcm/clk-bcm2835.c
@@ -1393,6 +1393,22 @@ static const struct bcm2835_clk_desc clk
@@ -1395,6 +1395,22 @@ static const struct bcm2835_clk_desc clk
.load_mask = CM_PLLA_LOADPER,
.hold_mask = CM_PLLA_HOLDPER,
.fixed_divider = 1),
Expand All @@ -37,7 +37,7 @@ Reviewed-by: Eric Anholt <eric@anholt.net>

/* PLLB is used for the ARM's clock. */
[BCM2835_PLLB] = REGISTER_PLL(
@@ -1507,6 +1523,22 @@ static const struct bcm2835_clk_desc clk
@@ -1509,6 +1525,22 @@ static const struct bcm2835_clk_desc clk
.load_mask = CM_PLLD_LOADPER,
.hold_mask = CM_PLLD_HOLDPER,
.fixed_divider = 1),
Expand Down

0 comments on commit 81573ea

Please sign in to comment.