Re: [PATCH] net-sysfs: Add entry for nl80211 interface type

2013-04-17 Thread Nicolas Cavallari
On 18/04/2013 00:09, Johannes Berg wrote: > On Wed, 2013-04-17 at 15:06 -0700, Bing Zhao wrote: >> Add a "wireless/nl80211_iftype" entry in the net device sysfs >> file structure to indicate the mode of the wireless device so >> it can be discovered easily from userspace. > > What's wrong with "iw

[RFC UGLY 2/2] arm: Re-enable interrupts after shutting down non-boot CPUs.

2018-10-04 Thread Nicolas Cavallari
Some system power controller are behind bus like i2c, whose controller driver requires interrupts to work. Signed-off-by: Nicolas Cavallari --- arch/arm/kernel/reboot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/kernel/reboot.c b/arch/arm/kernel/reboot.c index 3b2aa9a9fe26

[RFC 1/2] reboot: Make restart_handler_list a blocking notifier chain.

2018-10-04 Thread Nicolas Cavallari
notifier chain instead. Signed-off-by: Nicolas Cavallari --- kernel/reboot.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/reboot.c b/kernel/reboot.c index 8fb44dec9ad7..f0ba0008dbde 100644 --- a/kernel/reboot.c +++ b/kernel/reboot.c @@ -135,7 +135,7

Reboot using an i2c power-system-controller ?

2018-10-04 Thread Nicolas Cavallari
So i got this ARM board with a rtc controlled by i2c that can also cut power. I want to use it to reboot, because it will also cut power to clumsy USB and MMC devices. So the natural thing to do would be to just register a restart_handler that will kindly do i2c (saw at least a driver doing it), o

Re: [RFC 1/2] reboot: Make restart_handler_list a blocking notifier chain.

2018-10-05 Thread Nicolas Cavallari
On 04/10/2018 18:49, Russell King - ARM Linux wrote: > This isn't going to work. > > For example, sysrq processing (which can happen in IRQ context) calls > emergency_restart() for the reboot sysrq. That calls through to > machine_restart(), which then calls do_kernel_restart(). > > If do_kernel_

[PATCH RESEND v2] ipv4: Do not cache routing failures due to disabled forwarding.

2014-10-30 Thread Nicolas Cavallari
forwarding is enabled on them. The opposite is also true. This can be verified with two interfaces A and B and an output interface C, where B has forwarding enabled, but not A and trying ip route get $dst iif A from $src && ip route get $dst iif B from $src Signed-off-by: Nicolas C