Re: [PATCH 0/2] This patch introduces a feature to force gpio-poweroff module

2019-09-30 Thread Jamie Lentin
vicetree/bindings/power/power-controller.txt https://elixir.bootlin.com/linux/latest/source/drivers/mfd/max77620.c#L566 ...maybe that can be added to the devices getting in the way? Cheers, [0] https://elixir.bootlin.com/linux/latest/source/drivers/watchdog/bcm2835_wdt.c#L152 (chosen at random) Andrew -- Jamie Lentin

[PATCH v2] drm/udl: Ensure channel is selected before using the device.

2016-08-22 Thread Jamie Lentin
Lift configuration command from udlfb. This appears to be essential for at least a Rextron VCUD-60, without which no URB communication occurs. Signed-off-by: Jamie Lentin --- udl_encoder_commit() is too late to do this set up in it seems. This setup doesn't need to be performed again af

[PATCH] drm/udl: Ensure channel is selected before using the device.

2016-08-14 Thread Jamie Lentin
on Linux 4.7.0 Signed-off-by: Jamie Lentin --- This ended up in udl_connector_init() since the name suggests it has something to do with configuring which output to use, although a quick search through other displaylink drivers didn't shed any light on what the bytes in set_def_chn actually

Re: [PATCH v0 06/10] arm: orion5x: Add DT-based support for Netgear WNR854T

2016-07-19 Thread Jamie Lentin
GPIO controller is available. I was also hoping that we could get to the point where pci_common_init() is only used for legacy machines without DT and without multiplatform, it seems I missed a couple of users here. Arnd -- Jamie Lentin

Re: [PATCH v0 06/10] arm: orion5x: Add DT-based support for Netgear WNR854T

2016-07-19 Thread Jamie Lentin
On Sun, 17 Jul 2016, Rob Herring wrote: On Sat, Jul 16, 2016 at 03:29:04PM +0100, Jamie Lentin wrote: This is a router based on the mv88f5181 chipset. http://www.netgear.com/support/product/WNR854T.aspx http://wiki.openwrt.org/toh/netgear/wnr854t Signed-off-by: Jamie Lentin

Re: [PATCH v0 06/10] arm: orion5x: Add DT-based support for Netgear WNR854T

2016-07-17 Thread Jamie Lentin
On Sat, 16 Jul 2016, Arnd Bergmann wrote: On Saturday, July 16, 2016 3:29:04 PM CEST Jamie Lentin wrote: + +#define WNR854T_PCI_SLOT0_OFFS 7 +#define WNR854T_PCI_SLOT0_IRQ_PIN 4 + +static void __init wnr854t_pci_preinit(void) +{ + int pin; + + /* +* Configure PCI GPIO

[PATCH v0 10/10] arm: orion5x: Configure Netgear WNR854T network port LEDs

2016-07-16 Thread Jamie Lentin
The default bootloader leaves the LEDs orange, and the 88E1121R driver applies it's own inappropriate configuration. Configure as per manual, i.e. orange = 100 / green = 1000 / blink = activity Signed-off-by: Jamie Lentin --- arch/arm/boot/dts/orion5x-netgear-wnr854t.dts

[PATCH v0 04/10] arm: orion5x: Generalise mv88f5181l pinctrl support for 88f5181

2016-07-16 Thread Jamie Lentin
As far as I'm aware the mv88f5181-b1 and mv88f5181l are the same at the pinctrl level, so re-use the definitions for both. Signed-off-by: Jamie Lentin --- .../bindings/pinctrl/marvell,orion-pinctrl.txt | 4 ++-- drivers/pinctrl/mvebu/pinctrl-orion.c

[PATCH v0 06/10] arm: orion5x: Add DT-based support for Netgear WNR854T

2016-07-16 Thread Jamie Lentin
This is a router based on the mv88f5181 chipset. http://www.netgear.com/support/product/WNR854T.aspx http://wiki.openwrt.org/toh/netgear/wnr854t Signed-off-by: Jamie Lentin --- .../bindings/arm/marvell/marvell,orion5x.txt | 1 + arch/arm/boot/dts/Makefile | 1

[PATCH v0 09/10] net: phy: Re-attempt custom DT configuration after configuration

2016-07-16 Thread Jamie Lentin
marvell,reg-init is generally used to apply a custom LED configuration on boot. However this is then blatted in m88e1121_config_aneg when the interface is brought up. Re-apply any custom configuration afterwards, to keep custom LED configuration. Signed-off-by: Jamie Lentin --- drivers/net/phy

[PATCH v0 02/10] arm: orion5x: Add documentation for SoC and board bindings

2016-07-16 Thread Jamie Lentin
Copy the format for kirkwood/dove to orion5x Signed-off-by: Jamie Lentin --- .../bindings/arm/marvell/marvell,orion5x.txt | 23 ++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/marvell/marvell,orion5x.txt diff --git a

[PATCH v0 05/10] arm: orion5x: Add DT include for mv88f5181

2016-07-16 Thread Jamie Lentin
Signed-off-by: Jamie Lentin --- .../bindings/arm/marvell/marvell,orion5x.txt | 1 + arch/arm/boot/dts/orion5x-mv88f5181.dtsi | 35 ++ 2 files changed, 36 insertions(+) create mode 100644 arch/arm/boot/dts/orion5x-mv88f5181.dtsi diff --git a/Documentation

[PATCH v0 01/10] arm: orion5x: Add required properties for orion-wdt to DT node

2016-07-16 Thread Jamie Lentin
orion-wdt refuses to start without these properties defined, so lift definitions out of kirkwood/dove.dtsi Signed-off-by: Jamie Lentin --- arch/arm/boot/dts/orion5x.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/orion5x.dtsi b/arch/arm/boot/dts

[PATCH v0 08/10] net: phy: Try looking for a phy-handle property to find the OF node

2016-07-16 Thread Jamie Lentin
If PHY is registered via. a DSA switch, the MDIO bus the phy is on does not exist in devicetree, but there may be a reference to the PHY node on the physical MDIO bus to use. Signed-off-by: Jamie Lentin --- drivers/net/phy/marvell.c | 22 -- 1 file changed, 16 insertions

[PATCH v0 00/10] Convert Netgear WNR854T to devicetree

2016-07-16 Thread Jamie Lentin
ollowing patch: https://github.com/lentinj/linux/commit/d6b7b4695b7dcbf36d0663aea9cb4ecd65a1ada8 ...but this is probably a matter for another thread. Cheers, [0] http://thread.gmane.org/gmane.linux.network/120616/focus=121320 [1] https://github.com/lentinj/linux/commit/a4bceebb08ecdc25a4d49e23f2abad2148

[PATCH v0 07/10] arm: orion5x: Remove old non-DT-based WNR854T support

2016-07-16 Thread Jamie Lentin
Signed-off-by: Jamie Lentin --- arch/arm/mach-orion5x/Makefile| 1 - arch/arm/mach-orion5x/wnr854t-setup.c | 185 -- 2 files changed, 186 deletions(-) delete mode 100644 arch/arm/mach-orion5x/wnr854t-setup.c diff --git a/arch/arm/mach-orion5x/Makefile

[PATCH v0 03/10] arm: orion5x: Add clk support for mv88f5181

2016-07-16 Thread Jamie Lentin
Referring to values in the u-boot port, add support for the mv88f5181 Signed-off-by: Jamie Lentin --- .../devicetree/bindings/clock/mvebu-core-clock.txt | 1 + drivers/clk/mvebu/orion.c | 70 ++ 2 files changed, 71 insertions(+) diff --git a

[PATCH 2/3] HID: lenovo: Add missing return-value check

2015-08-11 Thread Jamie Lentin
Signed-off-by: Jamie Lentin --- drivers/hid/hid-lenovo.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-lenovo.c b/drivers/hid/hid-lenovo.c index 65df414..265bfe2 100644 --- a/drivers/hid/hid-lenovo.c +++ b/drivers/hid/hid-lenovo.c @@ -178,9 +178,12

[PATCH 0/3] HID: lenovo: Improve wheel emulation

2015-08-11 Thread Jamie Lentin
tab as well as scrolling, for example. This means you can no longer long-middle-click, but I don't think this is likely to upset users as much as the current behaviour. Tested against 4.1.2 with both Bluetooth and USB compact keyboards. Cheers, Jamie Lentin (3): HID: lenovo: Use constant

[PATCH 3/3] HID: lenovo: Hide middle-button press until release

2015-08-11 Thread Jamie Lentin
Don't relay a middle button press to userspace until release, and then only if there was no scroll events inbetween. This is closer to what Xorg's wheel emulation does, and avoids spurious middle-click pastes. Signed-off-by: Jamie Lentin --- drivers/hid/hid-len

[PATCH 1/3] HID: lenovo: Use constants for axes names

2015-08-11 Thread Jamie Lentin
Signed-off-by: Jamie Lentin --- drivers/hid/hid-lenovo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hid/hid-lenovo.c b/drivers/hid/hid-lenovo.c index c4c3f09..65df414 100644 --- a/drivers/hid/hid-lenovo.c +++ b/drivers/hid/hid-lenovo.c @@ -117,10 +117,10

[PATCH 2/2] HID: lenovo: Use native middle-button mode for compact keyboards

2014-12-16 Thread Jamie Lentin
vent comes after the wheel events. Signed-off-by: Jamie Lentin --- drivers/hid/hid-lenovo.c | 37 + 1 file changed, 37 insertions(+) diff --git a/drivers/hid/hid-lenovo.c b/drivers/hid/hid-lenovo.c index 0f35a76..c4c3f09 100644 --- a/drivers/hid/hid-lenovo.c +

[PATCH 0/2] HID: lenovo: Extra features for compact keyboards

2014-12-16 Thread Jamie Lentin
Jamie Lentin (2): HID: lenovo: Add sensitivity control to compact keyboards HID: lenovo: Use native middle-button mode for compact keyboards drivers/hid/hid-lenovo.c | 79 +++- 1 file changed, 78 insertions(+), 1 deletion(-) -- 2.1.3 -- To

[PATCH 1/2] HID: lenovo: Add sensitivity control to compact keyboards

2014-12-16 Thread Jamie Lentin
The trackpoint sensitivity can also be controlled, expose this via sysfs. Signed-off-by: Jamie Lentin --- drivers/hid/hid-lenovo.c | 42 +- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-lenovo.c b/drivers/hid/hid-lenovo.c

[PATCH 1/2] HID: lenovo: Move USB KEY_FILE to 0x00f9 to prevent scancode clash

2014-11-09 Thread Jamie Lentin
The bluetooth keyboard also generates 0x00fa when the middle button is pressed. Move the made-up report out of the way so we don't trigger KEY_FILE when middle button is pressed Signed-off-by: Jamie Lentin --- drivers/hid/hid-lenovo.c | 12 ++-- 1 file changed, 6 insertions(

[PATCH 2/2] HID: lenovo: Don't set EV_REP to avoid repeating mice buttons

2014-11-09 Thread Jamie Lentin
On the USB keyboard, the VENDOR hotkeys share the same device as the mouse. Setting EV_REP also affects mouse buttons, so leave it off. The bluetooth keyboard still has autorepeating mouse buttons, as it only has one device and is set by the KEYBOARD pages. Signed-off-by: Jamie Lentin

[PATCH 0/2] HID: lenovo: Small fixups for compact keyboards

2014-11-09 Thread Jamie Lentin
is is currently solvable. The first 2 I will sort out once enough free time appears, if you would prefer a single large patchset, feel free to ignore this and wait for a bigger patchset. Many thanks, [0] https://lkml.org/lkml/2014/7/23/702 Jamie Lentin (2): HID: lenovo: Move USB KEY_FILE to 0

[PATCH v6 3/4] HID: lenovo: Don't call function in condition, show error codes

2014-07-26 Thread Jamie Lentin
Signed-off-by: Jamie Lentin --- drivers/hid/hid-lenovo.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/hid/hid-lenovo.c b/drivers/hid/hid-lenovo.c index a56b9e7..f96bf09 100644 --- a/drivers/hid/hid-lenovo.c +++ b/drivers/hid/hid-lenovo.c @@ -350,6 +350,7

Re: [PATCH v5 0/4] HID: lenovo: Add support for Lenovo Compact Keyboard

2014-07-26 Thread Jamie Lentin
On Fri, 25 Jul 2014, Antonio Ospite wrote: On Wed, 23 Jul 2014 23:30:44 +0100 Jamie Lentin wrote: This patchset follows on from my previous attempts to add support for these keyboards from Lenovo. Antonio, I've used cptkbd_data and left data_pointer for now. It'd be an easy patch

[PATCH v5 4/4] HID: lenovo: Add support for Compact (BT|USB) keyboard

2014-07-23 Thread Jamie Lentin
Add support for both ThinkPad Compact Bluetooth Keyboard with TrackPoint and ThinkPad Compact USB Keyboard with TrackPoint. Signed-off-by: Jamie Lentin --- Documentation/ABI/testing/sysfs-driver-hid-lenovo | 12 ++ drivers/hid/Kconfig | 2 + drivers/hid/hid

[PATCH v5 0/4] HID: lenovo: Add support for Lenovo Compact Keyboard

2014-07-23 Thread Jamie Lentin
ith Bluetooth and USB variants of the Compact Keyboard with Trackpoint. Cheers, Jamie Lentin (4): HID: lenovo: Rename hid-lenovo-tpkbd to hid-lenovo HID: lenovo: Prepare support for adding other devices HID: lenovo: Style fixes HID: lenovo: Add support for Compact (BT|USB) keyboard ...er

[PATCH v5 2/4] HID: lenovo: Prepare support for adding other devices

2014-07-23 Thread Jamie Lentin
Ensure all tpkbd specifics are within a postfixed function, the main functions for the driver should just switch to the appropriate function depending on product ID. Given this, we can add extra devices by including extra postfixed functions. Signed-off-by: Jamie Lentin --- drivers/hid/hid

[PATCH v5 1/4] HID: lenovo: Rename hid-lenovo-tpkbd to hid-lenovo

2014-07-23 Thread Jamie Lentin
Rename module and all functions within so we can add support for other keyboards in the same file. Rename the _tp postfix to _tpkbd, to signify functions relevant to the TP USB keyboard. Signed-off-by: Jamie Lentin --- ...er-hid-lenovo-tpkbd => sysfs-driver-hid-lenovo} | 0 drivers/

[PATCH v5 3/4] HID: lenovo: Style fixes

2014-07-23 Thread Jamie Lentin
Signed-off-by: Jamie Lentin --- drivers/hid/hid-lenovo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hid/hid-lenovo.c b/drivers/hid/hid-lenovo.c index a56b9e7..6d55939 100644 --- a/drivers/hid/hid-lenovo.c +++ b/drivers/hid/hid-lenovo.c @@ -350,6 +350,7

Re: [PATCH v4 1/4] Rename hid-lenovo-tpkbd to hid-lenovo

2014-07-18 Thread Jamie Lentin
On Mon, 14 Jul 2014, Antonio Ospite wrote: On Sun, 13 Jul 2014 08:24:19 +0100 Jamie Lentin wrote: Rename module and all functions within so we can add support for other keyboards in the same file. Rename the _tp postfix to _tpkbd, to signify functions relevant to the TP USB keyboard. Signed

[PATCH v4 1/4] Rename hid-lenovo-tpkbd to hid-lenovo

2014-07-13 Thread Jamie Lentin
Rename module and all functions within so we can add support for other keyboards in the same file. Rename the _tp postfix to _tpkbd, to signify functions relevant to the TP USB keyboard. Signed-off-by: Jamie Lentin --- ...er-hid-lenovo-tpkbd => sysfs-driver-hid-lenovo} | 0 drivers/

[PATCH v4 0/4] Add support for Lenovo Compact Keyboard

2014-07-13 Thread Jamie Lentin
Keyboard with Trackpoint. Cheers, Jamie Lentin (4): Rename hid-lenovo-tpkbd to hid-lenovo Make all base functions switch depending on product ID Style fixes Add support for Compact (Bluetooth|USB) keyboard with Trackpoint ...er-hid-lenovo-tpkbd => sysfs-driver-hid-lenovo} | 12 + dr

[PATCH v4 3/4] Style fixes

2014-07-13 Thread Jamie Lentin
Signed-off-by: Jamie Lentin --- drivers/hid/hid-lenovo.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/hid/hid-lenovo.c b/drivers/hid/hid-lenovo.c index d11e337..a1a693c 100644 --- a/drivers/hid/hid-lenovo.c +++ b/drivers/hid/hid-lenovo.c @@ -349,7 +349,7

[PATCH v4 4/4] Add support for Compact (Bluetooth|USB) keyboard with Trackpoint

2014-07-13 Thread Jamie Lentin
Signed-off-by: Jamie Lentin --- Documentation/ABI/testing/sysfs-driver-hid-lenovo | 12 ++ drivers/hid/Kconfig | 2 + drivers/hid/hid-core.c| 2 + drivers/hid/hid-ids.h | 2 + drivers/hid/hid-lenovo.c

[PATCH v4 2/4] Make all base functions switch depending on product ID

2014-07-13 Thread Jamie Lentin
Signed-off-by: Jamie Lentin --- drivers/hid/hid-lenovo.c | 45 ++--- 1 file changed, 38 insertions(+), 7 deletions(-) diff --git a/drivers/hid/hid-lenovo.c b/drivers/hid/hid-lenovo.c index 0320b96..d11e337 100644 --- a/drivers/hid/hid-lenovo.c +++ b

[PATCH v3 0/2] Add support for Lenovo Compact Keyboard

2014-06-15 Thread Jamie Lentin
USB variants of the Compact Keyboard with Trackpoint, as well as the original Thinkpad USB keyboard (thanks to Alexander Clouter). Cheers, Jamie Lentin (2): Rename hid-lenovo-tpkbd to hid-lenovo, so we can add other keyboards Add support for Compact (Bluetooth|USB) keyboard with Trackpoint dri

[PATCH v3 1/2] Rename hid-lenovo-tpkbd to hid-lenovo, so we can add other keyboards

2014-06-15 Thread Jamie Lentin
Signed-off-by: Jamie Lentin --- drivers/hid/Kconfig | 14 +- drivers/hid/Makefile | 2 +- drivers/hid/hid-core.c | 2 +- drivers/hid/{hid-lenovo-tpkbd.c => hid-lenovo.c} | 233 +-- 4 fi

[PATCH v3 2/2] Add support for Compact (Bluetooth|USB) keyboard with Trackpoint

2014-06-15 Thread Jamie Lentin
Signed-off-by: Jamie Lentin --- drivers/hid/Kconfig | 2 + drivers/hid/hid-core.c | 2 + drivers/hid/hid-ids.h| 2 + drivers/hid/hid-lenovo.c | 202 +++ include/linux/hid.h | 1 + 5 files changed, 209 insertions(+) diff --git a

Re: [PATCH v2 2/2] Add support for Compact (Bluetooth|USB) keyboard with Trackpoint

2014-06-12 Thread Jamie Lentin
On Wed, 11 Jun 2014, Antonio Ospite wrote: On Tue, 10 Jun 2014 23:24:54 +0100 Jamie Lentin wrote: Signed-off-by: Jamie Lentin Some minor comments here too. Thankyou for taking the time over both sets! All comments make sense. --- drivers/hid/hid-core.c | 2 + drivers/hid

[PATCH v2 2/2] Add support for Compact (Bluetooth|USB) keyboard with Trackpoint

2014-06-10 Thread Jamie Lentin
Signed-off-by: Jamie Lentin --- drivers/hid/hid-core.c | 2 + drivers/hid/hid-ids.h | 2 + drivers/hid/hid-lenovo-tpkbd.c | 203 + include/linux/hid.h| 1 + 4 files changed, 208 insertions(+) diff --git a/drivers/hid/hid

[PATCH v2 0/2] Add support for Lenovo Compact Keyboard

2014-06-10 Thread Jamie Lentin
I suspect in reality so long as Fn-Lock is left on nobody will really care what the Fn-Lock key does :) Applies and tested against 3.14.5. Cheers, [1] https://lkml.org/lkml/2014/3/25/535 Jamie Lentin (2): Loosen seams to allow support of other keyboards Add support for Compact (Bluetooth|USB

[PATCH v2 1/2] Loosen seams to allow support of other keyboards

2014-06-10 Thread Jamie Lentin
Signed-off-by: Jamie Lentin --- drivers/hid/hid-lenovo-tpkbd.c | 33 - 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/drivers/hid/hid-lenovo-tpkbd.c b/drivers/hid/hid-lenovo-tpkbd.c index 2d25b6c..3bec9f5 100644 --- a/drivers/hid/hid-lenovo-tpkbd.c

Re: [PATCH] hid: Add custom driver for Lenovo ThinkPad Compact Bluetooth Keyboard

2014-05-20 Thread Jamie Lentin
On Tue, 20 May 2014, Jiri Kosina wrote: On Tue, 25 Mar 2014, Jamie Lentin wrote: This keyboard requires some custom mappings for all keys to be available, and the Fn-lock toggle needs to be controlled in software. Signed-off-by: Jamie Lentin --- I assume that Linux users want Fn-Lock

[RESEND PATCH] hid: Add custom driver for Lenovo ThinkPad Compact Bluetooth Keyboard

2014-04-17 Thread Jamie Lentin
This keyboard requires some custom mappings for all keys to be available, and the Fn-lock toggle needs to be controlled in software. Signed-off-by: Jamie Lentin --- Apologies for nagging, but anyone got any feedback on this? I don't think there's anything massively contentious, but h

[PATCH] hid: Add custom driver for Lenovo ThinkPad Compact Bluetooth Keyboard

2014-03-25 Thread Jamie Lentin
This keyboard requires some custom mappings for all keys to be available, and the Fn-lock toggle needs to be controlled in software. Signed-off-by: Jamie Lentin --- I assume that Linux users want Fn-Lock enabled by default, so they can get at the function keys. If this is an incorrect assumption

Re: power: Add simple poweroff-gpio driver

2012-12-14 Thread Jamie Lentin
Commit: 96ff0f5c7efd4a2205c48a76a6a1fcd2731e6128 > Parent: f4a00139b7cbeff538e616a21f6b57249a9d3ed8 > Author: Jamie Lentin > AuthorDate: Sat Nov 17 09:51:04 2012 +0100 > Committer: Jason Cooper > CommitDate: Sat Nov 24 02:56:38 2012 + > > power: Add simple poweroff-gpio drive