Re: [PATCH 4.9 27/75] net: igmp: Use correct source address on IGMPv3 reports

2018-01-16 Thread Kevin Cernekee
On Tue, Jan 16, 2018 at 1:18 AM, Sebastian Gottschall wrote: > >> According to my understanding of igmpv3_newpack(), the destination >> address should always be IGMPV3_ALL_MCR = 224.0.0.22. That is what I >> see in my testing. >> >> However, your packet trace says 239.35.100.8. I don't know how

Re: [PATCH 4.9 27/75] net: igmp: Use correct source address on IGMPv3 reports

2018-01-15 Thread Kevin Cernekee
On Mon, Jan 15, 2018 at 8:44 PM, Sebastian Gottschall wrote: > Am 16.01.2018 um 05:32 schrieb Kevin Cernekee: >> >> On Mon, Jan 15, 2018 at 8:26 PM, Sebastian Gottschall >> wrote: >>> >>> havent check the source addresses right now. i basicly discovered

Re: [PATCH 4.9 27/75] net: igmp: Use correct source address on IGMPv3 reports

2018-01-15 Thread Kevin Cernekee
On Mon, Jan 15, 2018 at 8:26 PM, Sebastian Gottschall wrote: > havent check the source addresses right now. i basicly discovered that this > patch breaks the igmp routing and all traffic stops > this here is from a working system with the reverted patch. if you really > need that i break it again

Re: [PATCH 4.9 27/75] net: igmp: Use correct source address on IGMPv3 reports

2018-01-15 Thread Kevin Cernekee
On Mon, Jan 15, 2018 at 7:50 PM, Sebastian Gottschall wrote: > please revert that on 4.9 and 4.14 > it breaks igmp routing. it can be reproduced with any iptv connection using > igmp-proxy. reverting this patch fixes the issue. Hi Sebastian, Is this the correct igmp-proxy (based on mrouted)? ht

[PATCH] net: igmp: Use correct source address on IGMPv3 reports

2017-12-11 Thread Kevin Cernekee
hip=239.0.1.68:10.1.1.1 & sleep 1 ip addr del 10.1.1.1/24 dev dummy0 sleep 5 kill %tcpdump RFC 3376 specifies that the report must be sent with a valid IP source address from the destination subnet, or from address 0.0.0.0. Add an extra check to make sure this is the case. Si

[PATCH V2] netlink: Add netns check on taps

2017-12-06 Thread Kevin Cernekee
-binary abc123 /tmp/nlmon.pcap Signed-off-by: Kevin Cernekee --- net/netlink/af_netlink.c | 3 +++ 1 file changed, 3 insertions(+) V1->V2: Drop the special exception for init_net. Compile-tested only, will retest later today. diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlin

Re: [PATCH] netlink: Add netns check on taps

2017-12-05 Thread Kevin Cernekee
On Tue, Dec 5, 2017 at 6:19 PM, David Ahern wrote: >> + if (!net_eq(dev_net(dev), sock_net(sk)) && >> + !net_eq(dev_net(dev), &init_net)) { > > Why is init_net special? Seems like snooping should be limited to the > namespace you are in. Depends how important it is to preserve the cur

[PATCH] netfilter: xt_osf: Add missing permission checks

2017-12-05 Thread Kevin Cernekee
T_ADMIN to bypass the netlink_net_capable() check: vpnns -- nfnl_osf -f /tmp/pf.os vpnns -- nfnl_osf -f /tmp/pf.os -d These non-root operations successfully modify the systemwide OS fingerprint list. Add new capable() checks so that they can't. Signed-off-by: Kevin Cernekee ---

[PATCH] netlink: Add netns check on taps

2017-12-05 Thread Kevin Cernekee
00 grep abc123 /tmp/nlmon.pcap Signed-off-by: Kevin Cernekee --- net/netlink/af_netlink.c | 5 + 1 file changed, 5 insertions(+) diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index b9e0ee4..88381a2 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netli

[PATCH] netfilter: nfnetlink_cthelper: Add missing permission checks

2017-12-03 Thread Kevin Cernekee
a_len = 24, .status = enabled, }; Add capable() checks in nfnetlink_cthelper, as this is cleaner than trying to generalize the solution. Signed-off-by: Kevin Cernekee --- net/netfilter/nfnetlink_cthelper.c | 10 ++ 1 file changed, 10 insertions(+) I think xt_osf ha

[PATCH V2 2/2] netfilter: ctnetlink: Fix regression in CTA_HELP processing

2017-01-26 Thread Kevin Cernekee
of generating an error. Signed-off-by: Kevin Cernekee --- V1->V2: - Add comment and update changelog, per code review feedback - Rebase + retest on net-next net/netfilter/nf_conntrack_netlink.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/net/net

[PATCH V2 1/2] netfilter: ctnetlink: Fix regression in CTA_STATUS processing

2017-01-26 Thread Kevin Cernekee
userland helpers because they operate on unconfirmed connections. Instead of returning -EBUSY if the user program asks to modify an unchangeable bit, simply ignore the change. Also, fix the logic so that user programs are allowed to clear the bits that they are allowed to change. Signed-off-b

[PATCH 0/4] Make xfrm usable by 32-bit programs

2017-01-20 Thread Kevin Cernekee
www.spinics.net/lists/netdev/msg126176.html Kevin Cernekee (4): xfrm: Constify xfrm_user arguments and xfrm_mgr callback APIs xfrm_user: Allow common functions to be called from another file xfrm_user: Initial commit of xfrm_user_legacy.c xfrm_user: Add new 32/64-agnostic netlink m

[PATCH 1/4] xfrm: Constify xfrm_user arguments and xfrm_mgr callback APIs

2017-01-20 Thread Kevin Cernekee
This provides a better sense of the data flow and inputs/outputs. No change to code size or functionality. Signed-off-by: Kevin Cernekee --- include/net/xfrm.h | 36 -- net/key/af_key.c | 34 +++-- net/xfrm/xfrm_policy.c | 8 +- net/xfrm/xfrm_state.c | 2 +- net/xfrm

[PATCH 2/4] xfrm_user: Allow common functions to be called from another file

2017-01-20 Thread Kevin Cernekee
xfrm_user_legacy.c will need to call a few common functions. Make sure them have an "xfrm_" prefix, and declare them in a new xfrm_user.h header. Signed-off-by: Kevin Cernekee --- net/xfrm/xfrm_user.c | 147 +-- net/xfrm/xfrm_us

[PATCH 4/4] xfrm_user: Add new 32/64-agnostic netlink messages

2017-01-20 Thread Kevin Cernekee
the old format or the new format (for both requests and replies). For kernel->user multicasts, both types will be sent. setsockopt() will deduce the format from the length. Signed-off-by: Kevin Cernekee --- include/uapi/linux/xfrm.h | 152 ++- ne

[PATCH 3/4] xfrm_user: Initial commit of xfrm_user_legacy.c

2017-01-20 Thread Kevin Cernekee
ecessary functions from xfrm_user.c, for ease of reviewing. The next commit will contain all of the changes needed to make these functions handle legacy messages correctly. Signed-off-by: Kevin Cernekee --- net/xfrm/Kconfig| 14 + net/xfrm/Makefile |8 +- net/xfrm/

[RFC/PATCH 1/3] netfilter: ctnetlink: Fix regression in CTA_TIMEOUT processing

2017-01-16 Thread Kevin Cernekee
set for an unconfirmed connection, restore the old behavior of ignoring it (rather than setting up a connection that expires immediately). Signed-off-by: Kevin Cernekee --- net/netfilter/nf_conntrack_netlink.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/net

[RFC/PATCH 2/3] netfilter: ctnetlink: Fix regression in CTA_STATUS processing

2017-01-16 Thread Kevin Cernekee
use they operate on unconfirmed connections. Instead of returning -EBUSY if the user program asks to modify an unchangeable bit, simply ignore the change. Also, fix the logic so that user programs are allowed to clear the bits that they are allowed to change. Signed-off-by: Kevin Cernekee ---

[RFC/PATCH 3/3] netfilter: ctnetlink: Fix regression in CTA_HELP processing

2017-01-16 Thread Kevin Cernekee
If a user program specifies CTA_HELP but the argument matches the current conntrack helper name, ignore it instead of generating an error. Signed-off-by: Kevin Cernekee --- net/netfilter/nf_conntrack_netlink.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/net

[RFC/PATCH 0/3] Fix ctnetlink regressions

2017-01-16 Thread Kevin Cernekee
rface remains bug-compatible with old user code. Kevin Cernekee (3): netfilter: ctnetlink: Fix regression in CTA_TIMEOUT processing netfilter: ctnetlink: Fix regression in CTA_STATUS processing netfilter: ctnetlink: Fix regression in CTA_HELP processing include/uapi/linux/netfilter/nf_conntr

[PATCH] printk: Make %pS print offsets into modules

2016-10-23 Thread Kevin Cernekee
stead, print the offset from the module's base, so that the offending location can be easily located in a disassembly of the .ko file: Call trace: [] [mwifiex_pcie+0x37f4/0x9000] [] [mwifiex_pcie+0x40ac/0x9000] [] mwifiex_main_process+0xdc/0x6fc [mwifiex] Signed-off-by: Kevi

Re: [PATCH] MIPS: Flush cache after DMA_FROM_DEVICE for agressively speculative CPUs

2015-05-13 Thread Kevin Cernekee
On Wed, May 13, 2015 at 6:49 PM, Leonid Yegoshin wrote: > Some MIPS CPUs have an aggressive speculative load and may erroneuosly load > some cache line in the middle of DMA transaction. CPU discards result but > cache > doesn't. If DMA happens from device then additional cache invalidation is >

Re: [PATCH V4 3/5] ASoC: tas571x: Add DT binding document

2015-05-05 Thread Kevin Cernekee
On Tue, May 5, 2015 at 3:32 PM, Mark Brown wrote: > On Tue, May 05, 2015 at 03:14:15PM -0700, Kevin Cernekee wrote: >> Document the bindings for the soon-to-be-added tas571x driver. > > If this is different to the already applied patches send incremental > updates. If this

[PATCH] ASoC: tas571x: Eliminate redundant dev->of_node NULL check

2015-05-05 Thread Kevin Cernekee
of_match_device() checks if dev->of_node is NULL, so we don't need to do it again in the probe function. Signed-off-by: Kevin Cernekee --- This applies to the broonie/sound.git for-next branch. sound/soc/codecs/tas571x.c | 13 - 1 file changed, 4 insertions(+), 9 d

[PATCH V4 3/5] ASoC: tas571x: Add DT binding document

2015-05-05 Thread Kevin Cernekee
Document the bindings for the soon-to-be-added tas571x driver. Signed-off-by: Kevin Cernekee --- .../devicetree/bindings/sound/tas571x.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/tas571x.txt diff --git a

[PATCH V4 2/5] regmap: Use regcache_mark_dirty() to indicate power loss or reset

2015-05-05 Thread Kevin Cernekee
ed any writes, they should be sent to the hardware regardless of whether they match the HW default. Currently this will write out all values in the regcache, since we don't maintain per-register dirty bits. Suggested-by: Mark Brown Signed-off-by: Kevin Cernekee --- drivers/base/regm

[PATCH V4 1/5] regmap: Add a helper function for regcache sync test

2015-05-05 Thread Kevin Cernekee
We're going to add another "does this register need syncing?" check, so rather than repeating it in three places, we'll separate all of the relevant logic into a helper function. Signed-off-by: Kevin Cernekee --- drivers/base/regmap/regcache.c | 26 +++---

[PATCH V4 4/5] ASoC: tas571x: New driver for TI TAS571x power amplifiers

2015-05-05 Thread Kevin Cernekee
Introduce a new codec driver for the Texas Instruments TAS5711/TAS5717/TAS5719 power amplifier chips. These chips are typically used to take an I2S digital audio input and drive 10-20W into a pair of speakers. Signed-off-by: Kevin Cernekee --- sound/soc/codecs/Kconfig | 5 + sound/soc

[PATCH V4 5/5] MAINTAINERS: Add entry for tas571x ASoC codec driver

2015-05-05 Thread Kevin Cernekee
Add self as maintainer for the new driver. Signed-off-by: Kevin Cernekee --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ea0001760035..15153fc37cc4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9878,6 +9878,12 @@ L: net

[PATCH V4 0/5] tas571x amplifier driver

2015-05-05 Thread Kevin Cernekee
V3->V4: Eliminate unnecessary dev->of_node NULL check. Move the "should I sync this register?" test into a common helper function. Clear map->no_sync_defaults at the end of the regcache_sync functions. Kevin Cernekee (5): regmap: Add a helper function for regcache sync

Re: [PATCH 3/6] MAINTAINERS: Remove section BROADCOM BCM33XX MIPS ARCHITECTURE

2015-05-05 Thread Kevin Cernekee
On Tue, May 5, 2015 at 9:32 AM, Joe Perches wrote: > commit 5f2d44591fb3 ("MIPS: bcm3384: Rename "bcm3384" target to "bmips"") > renamed the files and integrated them into an existing section. > > Remove the section. > > Signed-off-by: Joe Perches

Re: [PATCH V3 1/4] regmap: Use regcache_mark_dirty() to indicate power loss or reset

2015-05-04 Thread Kevin Cernekee
On Sun, May 3, 2015 at 11:38 PM, Lars-Peter Clausen wrote: >> diff --git a/drivers/base/regmap/regcache.c >> b/drivers/base/regmap/regcache.c >> index 7eb7b3b98794..63af3103d0c6 100644 >> --- a/drivers/base/regmap/regcache.c >> +++ b/drivers/base/regmap/regcache.c >> @@ -253,6 +253,9 @@ static int

Re: [PATCH V3 3/4] ASoC: tas571x: New driver for TI TAS571x power amplifiers

2015-05-04 Thread Kevin Cernekee
On Mon, May 4, 2015 at 4:45 AM, Mark Brown wrote: > On Sun, May 03, 2015 at 05:00:18PM -0700, Kevin Cernekee wrote: >> + if (dev->of_node) { >> + const struct of_device_id *of_id; >> + >> + of_id = of_match_device(tas571x_of_match, de

[PATCH V3 4/4] MAINTAINERS: Add entry for tas571x ASoC codec driver

2015-05-03 Thread Kevin Cernekee
Add self as maintainer for the new driver. Signed-off-by: Kevin Cernekee --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ea0001760035..15153fc37cc4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9878,6 +9878,12 @@ L: net

[PATCH V3 2/4] ASoC: tas571x: Add DT binding document

2015-05-03 Thread Kevin Cernekee
Document the bindings for the soon-to-be-added tas571x driver. Signed-off-by: Kevin Cernekee --- .../devicetree/bindings/sound/tas571x.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/tas571x.txt diff --git a

[PATCH V3 3/4] ASoC: tas571x: New driver for TI TAS571x power amplifiers

2015-05-03 Thread Kevin Cernekee
Introduce a new codec driver for the Texas Instruments TAS5711/TAS5717/TAS5719 power amplifier chips. These chips are typically used to take an I2S digital audio input and drive 10-20W into a pair of speakers. Signed-off-by: Kevin Cernekee --- sound/soc/codecs/Kconfig | 5 + sound/soc

[PATCH V3 1/4] regmap: Use regcache_mark_dirty() to indicate power loss or reset

2015-05-03 Thread Kevin Cernekee
ed any writes, they should be sent to the hardware regardless of whether they match the HW default. Currently this will write out all values in the regcache, since we don't maintain per-register dirty bits. Suggested-by: Mark Brown Signed-off-by: Kevin Cernekee --- drivers/base/regm

[PATCH V3 0/4] tas571x amplifier driver

2015-05-03 Thread Kevin Cernekee
in cache_only (tas571x pdn) mode. One assumption here is that regcache_sync() will be called once on resume, before any other writes. If it fails, the no_sync_defaults flag will be cleared and the next sync attempt, if any, will try to write out all contents of the cache. Kevin Cernekee

Re: [PATCH V2 1/4] regmap: cache: Add "was_reset" argument to regcache_sync_region()

2015-04-29 Thread Kevin Cernekee
On Wed, Apr 29, 2015 at 9:46 AM, Mark Brown wrote: > On Wed, Apr 29, 2015 at 07:13:27AM -0700, Kevin Cernekee wrote: >> On Wed, Apr 29, 2015 at 3:40 AM, Mark Brown wrote: > >> > Like I said above we can tell if the hardware was reset because >> > mark_dirty() i

Re: [PATCH V2 1/4] regmap: cache: Add "was_reset" argument to regcache_sync_region()

2015-04-29 Thread Kevin Cernekee
On Wed, Apr 29, 2015 at 3:40 AM, Mark Brown wrote: > On Tue, Apr 28, 2015 at 09:58:48PM -0700, Kevin Cernekee wrote: >> On Sat, Apr 25, 2015 at 4:32 AM, Mark Brown wrote: > >> > What we should be doing here is providing a way for users to tell regmap >> > if they

Re: [PATCH V2 1/4] regmap: cache: Add "was_reset" argument to regcache_sync_region()

2015-04-28 Thread Kevin Cernekee
On Sat, Apr 25, 2015 at 4:32 AM, Mark Brown wrote: > On Fri, Apr 24, 2015 at 03:36:45PM -0700, Kevin Cernekee wrote: > >> index 116655d92269..ece122a6fdeb 100644 >> --- a/include/linux/regmap.h >> +++ b/include/linux/regmap.h >> @@ -438,7 +438,7 @@ bool regmap_ca

[PATCH] MIPS: BMIPS: Delete unused Kconfig symbol

2015-04-28 Thread Kevin Cernekee
This was left over from an earlier iteration of the BMIPS irqchip changes. It doesn't actually have an effect, so let's nuke it. Reported-by: Valentin Rothberg Signed-off-by: Kevin Cernekee --- Ralf - could you please pull this for 4.1? arch/mips/Kconfig | 1 - 1 file changed,

Re: [PATCH V2 1/4] regmap: cache: Add "was_reset" argument to regcache_sync_region()

2015-04-24 Thread Kevin Cernekee
On Fri, Apr 24, 2015 at 3:36 PM, Kevin Cernekee wrote: > regcache_sync() and regcache_sync_region() currently assume that the > hardware has just emerged from a clean reset, and that all registers are > in their default states. But that isn't the only possibility; the device > m

[PATCH V2 2/4] ASoC: tas571x: Add DT binding document

2015-04-24 Thread Kevin Cernekee
Document the bindings for the soon-to-be-added tas571x driver. Signed-off-by: Kevin Cernekee --- .../devicetree/bindings/sound/tas571x.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/tas571x.txt diff --git a

[PATCH V2 4/4] MAINTAINERS: Add entry for tas571x ASoC codec driver

2015-04-24 Thread Kevin Cernekee
Add self as maintainer for the new driver. Signed-off-by: Kevin Cernekee --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ea0001760035..15153fc37cc4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9878,6 +9878,12 @@ L: net

[PATCH V2 1/4] regmap: cache: Add "was_reset" argument to regcache_sync_region()

2015-04-24 Thread Kevin Cernekee
ned-off-by: Kevin Cernekee --- drivers/base/regmap/internal.h| 5 ++- drivers/base/regmap/regcache-lzo.c| 2 +- drivers/base/regmap/regcache-rbtree.c | 5 ++- drivers/base/regmap/regcache.c| 75 --- drivers/media/radio/radio-si476x

[PATCH V2 3/4] ASoC: tas571x: New driver for TI TAS571x power amplifiers

2015-04-24 Thread Kevin Cernekee
Introduce a new codec driver for the Texas Instruments TAS5711/TAS5717/TAS5719 power amplifier chips. These chips are typically used to take an I2S digital audio input and drive 10-20W into a pair of speakers. Signed-off-by: Kevin Cernekee --- sound/soc/codecs/Kconfig | 5 + sound/soc

[PATCH V2 0/4] tas571x amplifier driver

2015-04-24 Thread Kevin Cernekee
are registers that don't contain their power-on-reset values Kevin Cernekee (4): regmap: cache: Add "was_reset" argument to regcache_sync_region() ASoC: tas571x: Add DT binding document ASoC: tas571x: New driver for TI TAS571x power amplifiers MAINTAINERS: Add entry for

Re: [PATCH 2/3] ASoC: tas571x: New driver for TI TAS571x power amplifiers

2015-04-24 Thread Kevin Cernekee
On Fri, Apr 24, 2015 at 2:28 AM, Mark Brown wrote: > On Thu, Apr 23, 2015 at 05:47:49PM -0700, Kevin Cernekee wrote: > >> This is mostly working OK, but regcache_sync() assumes that the >> hardware registers have been reset back to the default values. The >> "pdn&quo

Re: [PATCH 2/3] ASoC: tas571x: New driver for TI TAS571x power amplifiers

2015-04-23 Thread Kevin Cernekee
On Sat, Apr 18, 2015 at 9:16 AM, Kevin Cernekee wrote: >>> + case SND_SOC_BIAS_OFF: >>> + /* Note that this kills I2C accesses. */ >>> + assert_pdn = 1; >> >> No, the GPIO set associated with it kills I2C access. I'd also ex

Re: [PATCH 1/3] ASoC: tas571x: Add DT binding document

2015-04-20 Thread Kevin Cernekee
On Mon, Apr 20, 2015 at 3:03 PM, Mark Brown wrote: > On Mon, Apr 20, 2015 at 02:18:56PM -0700, Kevin Cernekee wrote: >> On Sat, Apr 18, 2015 at 4:16 AM, Mark Brown wrote: >> > On Wed, Apr 15, 2015 at 02:42:19PM -0700, Kevin Cernekee wrote: > >> >> +- VDD-suppl

Re: [PATCH 1/3] ASoC: tas571x: Add DT binding document

2015-04-20 Thread Kevin Cernekee
Resending from the correct account. On Sat, Apr 18, 2015 at 4:16 AM, Mark Brown wrote: > On Wed, Apr 15, 2015 at 02:42:19PM -0700, Kevin Cernekee wrote: > >> +- VDD-supply: regulator phandle for the AVDD/DVDD/HP_VDD supply > > This is clearly not correct - if there are three

Re: [PATCH 1/3] ASoC: tas571x: Add DT binding document

2015-04-20 Thread Kevin Cernekee
On Sat, Apr 18, 2015 at 4:16 AM, Mark Brown wrote: > On Wed, Apr 15, 2015 at 02:42:19PM -0700, Kevin Cernekee wrote: > >> +- VDD-supply: regulator phandle for the AVDD/DVDD/HP_VDD supply > > This is clearly not correct - if there are three separate physical > supplies

Re: [alsa-devel] [PATCH 2/3] ASoC: tas571x: New driver for TI TAS571x power amplifiers

2015-04-20 Thread Kevin Cernekee
On Thu, Apr 16, 2015 at 5:57 AM, Lars-Peter Clausen wrote: > On 04/15/2015 11:42 PM, Kevin Cernekee wrote: >> >> Introduce a new codec driver for the Texas Instruments >> TAS5711/TAS5717/TAS5719 power amplifier chips. These chips are typically >> used to take an I2S di

Re: [PATCH 2/3] ASoC: tas571x: New driver for TI TAS571x power amplifiers

2015-04-20 Thread Kevin Cernekee
On Mon, Apr 20, 2015 at 5:21 AM, Mark Brown wrote: > On Sat, Apr 18, 2015 at 01:07:07PM -0700, Kevin Cernekee wrote: >> On Sat, Apr 18, 2015 at 10:11 AM, Mark Brown wrote: > >> > Someone trying to use the atmel_wm8904 driver with something other than >> > a wm8904 s

Re: [PATCH 2/3] ASoC: tas571x: New driver for TI TAS571x power amplifiers

2015-04-18 Thread Kevin Cernekee
On Sat, Apr 18, 2015 at 10:11 AM, Mark Brown wrote: > On Sat, Apr 18, 2015 at 09:16:36AM -0700, Kevin Cernekee wrote: >> On Sat, Apr 18, 2015 at 4:36 AM, Mark Brown wrote: > >> >> +static int tas571x_set_sysclk(struct snd_soc_dai *dai, >> >> +

Re: [PATCH 2/3] ASoC: tas571x: New driver for TI TAS571x power amplifiers

2015-04-18 Thread Kevin Cernekee
On Sat, Apr 18, 2015 at 4:36 AM, Mark Brown wrote: > On Wed, Apr 15, 2015 at 02:42:20PM -0700, Kevin Cernekee wrote: >> +static int tas571x_set_sysclk(struct snd_soc_dai *dai, >> + int clk_id, unsigned int freq, int dir) >> +{ >> + /* >&

[PATCH 2/3] ASoC: tas571x: New driver for TI TAS571x power amplifiers

2015-04-15 Thread Kevin Cernekee
Introduce a new codec driver for the Texas Instruments TAS5711/TAS5717/TAS5719 power amplifier chips. These chips are typically used to take an I2S digital audio input and drive 10-20W into a pair of speakers. Signed-off-by: Kevin Cernekee --- sound/soc/codecs/Kconfig | 5 + sound/soc

[PATCH 3/3] MAINTAINERS: Add entry for tas571x ASoC codec driver

2015-04-15 Thread Kevin Cernekee
Add self as maintainer for the new driver. Signed-off-by: Kevin Cernekee --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index c72a7baec55c..d7d848f840d0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9847,6 +9847,12 @@ L: net

[PATCH 1/3] ASoC: tas571x: Add DT binding document

2015-04-15 Thread Kevin Cernekee
Document the bindings for the soon-to-be-added tas571x driver. Signed-off-by: Kevin Cernekee --- .../devicetree/bindings/sound/tas571x.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/tas571x.txt diff --git a

[PATCH V4 2/5] of/fdt: Add endianness helper function for early init code

2015-04-09 Thread Kevin Cernekee
Provide a libfdt-based equivalent for of_device_is_big_endian(), suitable for use in the early_init_* functions. Signed-off-by: Kevin Cernekee --- drivers/of/fdt.c | 19 +++ include/linux/of_fdt.h | 2 ++ 2 files changed, 21 insertions(+) diff --git a/drivers/of/fdt.c b

[PATCH V4 1/5] of: Add helper function to check MMIO register endianness

2015-04-09 Thread Kevin Cernekee
el in the absence of instructions to the contrary, so that will be our fallback. Signed-off-by: Kevin Cernekee --- drivers/of/base.c | 23 +++ include/linux/of.h | 6 ++ 2 files changed, 29 insertions(+) diff --git a/drivers/of/base.c b/drivers/of/base.c index 8f165b112e03..3a10d

[PATCH V4 3/5] of: Document {little,big,native}-endian bindings

2015-04-09 Thread Kevin Cernekee
These apply to newly converted drivers, like serial8250/libahci/... The examples were adapted from the regmap bindings document. Signed-off-by: Kevin Cernekee --- .../devicetree/bindings/common-properties.txt | 60 ++ 1 file changed, 60 insertions(+) create mode 100644

[PATCH V4 5/5] serial: of_serial: Support big-endian register accesses

2015-04-09 Thread Kevin Cernekee
If the device node has a "big-endian" property and 32-bit registers, tell the serial driver to use UPIO_MEM32BE instead of UPIO_MEM32. Signed-off-by: Kevin Cernekee --- drivers/tty/serial/of_serial.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/

[PATCH V4 0/5] Add big-endian MMIO support to serial8250

2015-04-09 Thread Kevin Cernekee
V3->V4: Rebase on Linus' head of tree Tweak documentation per Grant's request Drop the of_earlycon patches in favor of Peter's series Kevin Cernekee (5): of: Add helper function to check MMIO register endianness of/fdt: Add endianness helper function for early init c

[PATCH V4 4/5] serial: 8250: Add support for big-endian MMIO accesses

2015-04-09 Thread Kevin Cernekee
Add cases for UPIO_MEM32BE wherever there are currently cases handling UPIO_MEM32. Signed-off-by: Kevin Cernekee --- drivers/tty/serial/8250/8250_core.c | 20 drivers/tty/serial/8250/8250_early.c | 5 + 2 files changed, 25 insertions(+) diff --git a/drivers/tty

Re: MIPS: BMIPS: broken select on RAW_IRQ_ACCESSORS

2015-03-26 Thread Kevin Cernekee
On Thu, Mar 26, 2015 at 3:47 AM, Valentin Rothberg wrote: > Hi Kevin, > > your commit dd6d84812b1a ("MIPS: BMIPS: Enable additional peripheral > and CPU support in defconfig") adds a select on the Kconfig symbol > RAW_IRQ_ACCESORS. However, this symbol is not defined in Kconfig so > that the sel

Re: [PATCH V6 15/25] MIPS: BMIPS: Flush the readahead cache after DMA

2015-03-25 Thread Kevin Cernekee
On Wed, Mar 25, 2015 at 2:23 AM, Ralf Baechle wrote: > On Thu, Dec 25, 2014 at 09:49:10AM -0800, Kevin Cernekee wrote: > >> BMIPS 3300/435x/438x CPUs have a readahead cache that is separate from >> the L1/L2. During a DMA operation, accesses adjacent to a DMA buffer >> ma

Re: [PATCH v2] PM / sleep: add configurable delay for pm_test

2015-02-22 Thread Kevin Cernekee
orris > > Acked-by: Pavel Machek > > (Does this need documentation in kernel-parameters.txt or in place > where pm_test is documented?) Perhaps both places? Documentation/power/basic-pm-debugging.txt still has the "wait 5 seconds" verbiage. Beyond that, it looks good t

Re: [v7,2/3] i2c: iproc: Add Broadcom iProc I2C Driver

2015-02-06 Thread Kevin Cernekee
On Fri, Feb 6, 2015 at 2:48 PM, Dmitry Torokhov wrote: > On Fri, Feb 6, 2015 at 2:31 PM, Kevin Cernekee wrote: >> On Mon, Jan 19, 2015 at 01:51:49PM -0800, Ray Jui wrote: >>> + >>> + dev_dbg(iproc_i2c->device, "xfer %c, addr=0x%02x, len=%d\n", >&g

Re: [v7,2/3] i2c: iproc: Add Broadcom iProc I2C Driver

2015-02-06 Thread Kevin Cernekee
FO threshold to zero */ > + val = (1 << M_FIFO_RX_FLUSH_SHIFT) | (1 << M_FIFO_TX_FLUSH_SHIFT); > + writel(val, iproc_i2c->base + M_FIFO_CTRL_OFFSET); > + > + /* disable all interrupts */ > + writel(0, iproc_i2c->base + IE_OFFSET); > + &g

Re: [PATCH 2/5] mtd: nand: Add qcom nand controller driver

2015-01-26 Thread Kevin Cernekee
On Wed, Jan 21, 2015 at 10:36 PM, Archit Taneja wrote: > On 01/21/2015 06:24 AM, Daniel Ehrenberg wrote: >> On Fri, Jan 16, 2015 at 6:48 AM, Archit Taneja >> wrote: >>> >>> +/* >>> + * the bad block marker is readable only when we read the page with ECC >>> + * disabled. all the read/write comman

[PATCH V6 11/25] irqchip: Add new driver for BCM7038-style level 1 interrupt controllers

2014-12-25 Thread Kevin Cernekee
exists on the ARM BCM7xxx chips, but typically the ARM GIC is used instead. So this driver is primarily intended for MIPS STB chips. Signed-off-by: Kevin Cernekee --- .../interrupt-controller/brcm,bcm7038-l1-intc.txt | 52 drivers/irqchip/Kconfig| 5

[PATCH V6 13/25] MIPS: Fall back to the generic restart notifier

2014-12-25 Thread Kevin Cernekee
If the machine doesn't set its own _machine_restart callback, call the common do_kernel_restart() instead. This allows arch-independent reset drivers from drivers/power/reset/ to be used to reboot the machine. Signed-off-by: Kevin Cernekee --- arch/mips/kernel/reset.c | 2 ++ 1 file chang

[PATCH V6 12/25] MIPS: Let __dt_register_buses accept a single bus type

2014-12-25 Thread Kevin Cernekee
Some machines only have one bus type to register (e.g. "simple-bus"). Signed-off-by: Kevin Cernekee --- arch/mips/kernel/prom.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/mips/kernel/prom.c b/arch/mips/kernel/prom.c index 452d435..e303cb1 100644 --- a

[PATCH V6 02/25] MIPS: Move device-trees into vendor sub-directories

2014-12-25 Thread Kevin Cernekee
From: Andrew Bresticker Move the MIPS device-trees into the appropriate vendor sub-directories. Signed-off-by: Andrew Bresticker Tested-by: Kevin Cernekee --- arch/mips/Makefile | 2 +- arch/mips/boot/dts/Makefile| 33

[PATCH V6 15/25] MIPS: BMIPS: Flush the readahead cache after DMA

2014-12-25 Thread Kevin Cernekee
: Kevin Cernekee Signed-off-by: Jaedon Shin --- arch/mips/mm/dma-default.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c index af5f046..38ee47a 100644 --- a/arch/mips/mm/dma-default.c +++ b/arch/mips/mm/dma-default.c

[PATCH V6 16/25] MIPS: BMIPS: Document the firmware->kernel DTB interface

2014-12-25 Thread Kevin Cernekee
Add a new section covering the Generic BMIPS machine type. Signed-off-by: Kevin Cernekee --- Documentation/devicetree/booting-without-of.txt | 28 + 1 file changed, 28 insertions(+) diff --git a/Documentation/devicetree/booting-without-of.txt b/Documentation/devicetree

[PATCH V6 18/25] MIPS: BMIPS: Remove bogus bus name

2014-12-25 Thread Kevin Cernekee
There is no "bcm3384" bus so let's just remove it to avoid confusion. Signed-off-by: Kevin Cernekee --- arch/mips/bmips/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/bmips/setup.c b/arch/mips/bmips/setup.c index 5099109..ac402ed 100644

[PATCH V6 03/25] MIPS: Add dtbs_install target

2014-12-25 Thread Kevin Cernekee
From: Andrew Bresticker Add the dtbs_install Makefile target to install the dtb files into $INSTALL_DTBS_PATH. Signed-off-by: Andrew Bresticker Tested-by: Kevin Cernekee --- arch/mips/Makefile | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/mips/Makefile b/arch/mips/Makefile

[PATCH V6 21/25] MIPS: BMIPS: Use a non-default FIXADDR_TOP setting

2014-12-25 Thread Kevin Cernekee
This will be required to support BMIPS3300 platforms. Signed-off-by: Kevin Cernekee --- arch/mips/include/asm/mach-bmips/spaces.h | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 arch/mips/include/asm/mach-bmips/spaces.h diff --git a/arch/mips/include/asm/mach

[PATCH V6 04/25] MIPS: Create a common

2014-12-25 Thread Kevin Cernekee
11 platforms require at least one of these workarounds to be enabled; 22 platforms do not. In the latter case we can fall back to a generic version. Note that this also deletes an orphaned reference to RM9000_CDEX_SMP_WAR. Suggested-by: Arnd Bergmann Signed-off-by: Kevin Cernekee --- arch

[PATCH V6 19/25] MIPS: BMIPS: Add quirks for several Broadcom platforms

2014-12-25 Thread Kevin Cernekee
A couple of chips require special handling in order to make SMP secondary boot and/or exception vectors work correctly. Take care of these in setup.c. Signed-off-by: Kevin Cernekee --- arch/mips/bmips/setup.c | 101 +++- 1 file changed, 99 insertions

[PATCH V6 05/25] MIPS: bcm3384: Rename "bcm3384" target to "bmips"

2014-12-25 Thread Kevin Cernekee
This platform is configured primarily through device tree, and we can reuse the same code to support a bunch of other chips. Change the name to reflect this. Signed-off-by: Kevin Cernekee --- arch/mips/Kbuild.platforms | 2 +- arch/mips/Kconfig

[PATCH V6 22/25] MIPS: BMIPS: Enable additional peripheral and CPU support in defconfig

2014-12-25 Thread Kevin Cernekee
Also, add an LE defconfig for set-top box (BCM7xxx). This will allow the BMIPS kernel to run on several non-BCM3384 platforms. Signed-off-by: Kevin Cernekee Signed-off-by: Jaedon Shin --- arch/mips/Kconfig | 18 +-- arch/mips/configs/bmips_be_defconfig | 9 +++- arch

[PATCH V6 01/25] MIPS: bcm3384: Fix outdated use of mips_cpu_intc_init()

2014-12-25 Thread Kevin Cernekee
This function was renamed to mips_cpu_irq_of_init(), so fix it to avoid a compile error. Signed-off-by: Kevin Cernekee --- arch/mips/bcm3384/irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/bcm3384/irq.c b/arch/mips/bcm3384/irq.c index 0fb5134..fd94fe8 100644

[PATCH V6 06/25] irqchip: Update docs regarding irq_domain_add_tree()

2014-12-25 Thread Kevin Cernekee
Several drivers now use this API, including the ARM GIC driver, so remove the outdated comment. Signed-off-by: Kevin Cernekee --- Documentation/IRQ-domain.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Documentation/IRQ-domain.txt b/Documentation/IRQ-domain.txt index

[PATCH V6 07/25] irqchip: brcmstb-l2: don't clear wakeable interrupts at init time

2014-12-25 Thread Kevin Cernekee
they call request_irq(). (This is technically already the correct development practice, but some drivers probably expect not to receive interrupts until they have performed some I/O.) Signed-off-by: Brian Norris Signed-off-by: Kevin Cernekee --- drivers/irqchip/irq-brcmstb-l2.c | 9 ++--- 1

[PATCH V6 24/25] MIPS: BMIPS: Update DT bindings to reflect new SoC support

2014-12-25 Thread Kevin Cernekee
Add an entry for each supported Broadcom SoC. Signed-off-by: Kevin Cernekee Signed-off-by: Jaedon Shin --- Documentation/devicetree/bindings/mips/brcm/cm-dsl.txt | 11 --- Documentation/devicetree/bindings/mips/brcm/soc.txt| 12 2 files changed, 12 insertions(+), 11

[PATCH V6 20/25] MIPS: BMIPS: Delete the irqchip driver from irq.c

2014-12-25 Thread Kevin Cernekee
BCM3384/BCM63xx can use the common drivers/irqchip/irq-bcm7120-l2.c for this purpose; BCM7xxx will use drivers/irqchip/irq-bcm7038-l1.c. We no longer need this code under arch/mips. Signed-off-by: Kevin Cernekee --- .../devicetree/bindings/mips/brcm/bcm3384-intc.txt | 37 arch/mips/bmips

[PATCH V6 17/25] MIPS: BMIPS: Rewrite DMA code to use "dma-ranges" property

2014-12-25 Thread Kevin Cernekee
This is a more standardized way of handling DMA remapping, and it is suitable for the memory map found on BCM3384. Signed-off-by: Kevin Cernekee --- arch/mips/bmips/dma.c | 100 ++ 1 file changed, 68 insertions(+), 32 deletions(-) diff --git a

[PATCH V6 14/25] MIPS: Reorder MIPS_L1_CACHE_SHIFT priorities

2014-12-25 Thread Kevin Cernekee
MIPS_L1_CACHE_SHIFT_x option is selected, Kconfig sets CONFIG_MIPS_L1_CACHE_SHIFT to the highest value. Signed-off-by: Kevin Cernekee --- arch/mips/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 31bbec0..d28c29e 100644

[PATCH V6 10/25] irqchip: bcm7120-l2: Add support for BCM3380-style controllers

2014-12-25 Thread Kevin Cernekee
These controllers support multiple enable/status pairs (64+ IRQs), can put the enable/status words at different offsets, and do not support multiple parent IRQs. Signed-off-by: Kevin Cernekee --- .../interrupt-controller/brcm,bcm3380-l2-intc.txt | 41 drivers/irqchip/irq

[PATCH V6 08/25] irqchip: bcm7120-l2: Refactor driver for arbitrary IRQEN/IRQSTAT offsets

2014-12-25 Thread Kevin Cernekee
the same register spacing. This patch changes the "plumbing" but doesn't yet provide a way for users to instantiate a controller with arbitrary IRQEN/IRQSTAT offsets. Signed-off-by: Kevin Cernekee --- drivers/irqchip/irq-bcm7120-l2.c | 41 +++- 1 f

[PATCH V6 23/25] MIPS: BMIPS: Refresh BCM3384 DTS files

2014-12-25 Thread Kevin Cernekee
The DT bindings for this platform have changed as the bootloader and product requirements evolved. In particular, there are both Linux-on-Zephyr and Linux-on-Viper configurations. Signed-off-by: Kevin Cernekee --- arch/mips/boot/dts/brcm/bcm3384.dtsi| 109 arch

[PATCH V6 25/25] MIPS: BMIPS: Add DTS files for several platforms

2014-12-25 Thread Kevin Cernekee
Most of the supported chips use legacy (non-DT) bootloaders, so they will need to select an appropriate builtin DTB at compile time until the bootloader is updated. Provide suitable DTS files, and a means to compile one of them into the kernel image. Signed-off-by: Kevin Cernekee Signed-off-by

[PATCH V6 09/25] irqchip: bcm7120-l2: Split STB-specific logic into its own function

2014-12-25 Thread Kevin Cernekee
and use dedicated L1 lines - one enable/status pair (32 bits only) Much of the driver code can be shared with BCM3380-style controllers, but in order to do this cleanly, let's split out the BCM7xxx-specific logic first. Signed-off-by: Kevin Cernekee --- .../interrupt-controller/brcm,bcm7

[PATCH V6 00/25] Generic BMIPS kernel

2014-12-25 Thread Kevin Cernekee
e-trees into vendor sub-directories MIPS: Add dtbs_install target Brian Norris (1): irqchip: brcmstb-l2: don't clear wakeable interrupts at init time Kevin Cernekee (22): MIPS: bcm3384: Fix outdated use of mips_cpu_intc_init() MIPS: Create a common MIPS: bcm3384: Rename "bcm

Re: [PATCH V2 1/2] MIPS: Move device-trees into vendor sub-directories

2014-12-23 Thread Kevin Cernekee
he series: Tested-by: Kevin Cernekee -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

  1   2   3   >