Re: [ibm-acpi-devel] [PATCH v2] platform/x86: thinkpad_acpi: Add support for calculator hotkey

2018-06-22 Thread Darren Hart
enrique, queued up. -- Darren Hart VMware Open Source Technology Center -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http

Re: [ibm-acpi-devel] platform/x86/thinkpad_acpi: Adjustments for four function implementations

2018-01-05 Thread Darren Hart
e argued to outweigh the risks - or that it would be worth the effort. Henrique, I'm going to stop there and let you chime in if you feel differently about any of the above. -- Darren Hart VMware Open Source Technology Center

Re: [ibm-acpi-devel] platform/x86/thinkpad_acpi: Adjustments for four function implementations

2018-01-02 Thread Darren Hart
On Tue, Jan 02, 2018 at 04:49:43PM -0800, Joe Perches wrote: > On Tue, 2018-01-02 at 16:10 -0800, Darren Hart wrote: > > > > Leave those pr_ messages alone, please, > [] > > Andy and Henrique raised a few reasons why these patches should not be > > accepted: > &g

Re: [ibm-acpi-devel] platform/x86/thinkpad_acpi: Adjustments for four function implementations

2018-01-02 Thread Darren Hart
inkpad driver for this reason. So it isn't that we place a low value on coding style guidelines, but rather we place higher value on not perturbing code we can't fully test without a demonstrable functional reasons to do so. Thanks, -- Darren Hart VMware Open Source Technology Ce

Re: [ibm-acpi-devel] [PATCH 1/3 v6] battery: Add the battery hooking API

2017-12-20 Thread Darren Hart
On Wed, Dec 20, 2017 at 10:23:30PM +0100, Ognjen Galić wrote: > On 20/12/2017, Darren Hart wrote: > > On Wed, Dec 20, 2017 at 03:30:18PM +0100, Ognjen Galić wrote: > >> On 18/12/2017, Rafael J. Wysocki wrote: > >> > Also, what if someone attempts to ad

Re: [ibm-acpi-devel] [PATCH 1/3 v6] battery: Add the battery hooking API

2017-12-20 Thread Darren Hart
fail to load with the following > > > [ 149.259127] thinkpad_acpi: Unknown symbol battery_hook_register (err 0) > > [ 149.259158] thinkpad_acpi: Unknown symbol battery_hook_unregister (err 0) Will a synchronous request_module() address this concern? -- Darren Hart

Re: [ibm-acpi-devel] [PATCH v2] platform/x86: thinkpad_acpi: Fix warning about deprecated hwmon_device_register

2017-08-18 Thread Darren Hart
; /sys/devices/platform/thinkpad_acpi/. > Sysfs device attributes for the sensors and fan are on the > thinkpad_hwmon device's sysfs attribute space, but you should locate it > looking for a hwmon device with the name attribute of "thinkpad", or > -better yet, through lib

Re: [ibm-acpi-devel] [PATCH 09/11] platform: thinkpad_acpi: convert to use DRIVER_ATTR_RO/RW

2017-06-09 Thread Darren Hart
saying that in a 00/11 email, I > forgot that for this series. OK, no dependencies that I see, but it's a simple mechanical change. Happy for it to go through Greg's tree. Reviewed-by: Darren Hart (VMware) -- Darren Hart VMware Open Source Technology Center ---

Re: [ibm-acpi-devel] [PATCH] x86: thinkpad_acpi: Handle return error.

2017-03-15 Thread Darren Hart
bug on hardware, I will presume the same approach was taken here. I'm dropping this patch as "changes requested" because at the very least this needs a commit log which documents the problem manifested and why the behavioral change is appropriate. -- Darren Hart VMware Open Source T

Re: [ibm-acpi-devel] [PATCH v5 2/6] leds: triggers: Add a keyboard backlight trigger

2017-01-13 Thread Darren Hart
ignore those voices until the voices understand the current > >>> design :-). > >> > >> Sheer user is not interested in design, but in usability. > > > > Well, end user is not expected to touch /sys

Re: [ibm-acpi-devel] [PATCH v3 5/5] platform: x86: dell-*: Simplify dell-rbtn integration with dell-laptop [untested]

2017-01-10 Thread Darren Hart
you like the approach of this patch? > > > > It is not related, but if above is truth, then another rewrite (also of > > those your changes!) is needed. So maybe it would be better to postpone > > (or

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: Fix old style declaration GCC warning

2016-12-12 Thread Darren Hart
> > Acked-by: Henrique de Moraes Holschuh > Queued to testing, thank you. -- Darren Hart Intel Open Source Technology Center -- Check out the vibrant tech community on one of the world's most engaging

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: adding new hotkey ID for Lenovo thinkpad

2016-12-12 Thread Darren Hart
wo deltas: 1) HKEY_HID is LEN0268 2) MHKV is 0x200 This patch appears to address only #1. Is another patch needed for #2? (I'm digging myself out of a deep backlog, so if it's here already, I'll find it, but it might expedite things to point it out to me). Thanks for the pa

Re: [ibm-acpi-devel] [PATCH v5 2/2] thinkpad_acpi: Add support for X1 Yoga (2016) Tablet Mode

2016-12-12 Thread Darren Hart
e. > Values on this handle are either 0x1, laptop mode, or 0x6, tablet mode. > > Tested-by: Daniel Martin > Signed-off-by: Lyude Our apologies for the delay. Thank you for the updates. Queued to testing. -- Darren Hart Inte

Re: [ibm-acpi-devel] [PATCH v2 1/3] thinkpad_acpi: Move tablet detection into separate function

2016-11-05 Thread Darren Hart
acement of "v2" in the subject [PATCH vX N/M] prefix. Most all of my feedback here is minor, but there were enough little things that added up and I'd like to see this resubmitted as a series with those addressed that applies cleanly - largely to make sure I haven't missed cont

Re: [ibm-acpi-devel] [PATCH 3/3 v3] thinkpad_acpi: Add support for X1 Yoga (2016) Tablet Mode

2016-11-05 Thread Darren Hart
) { > + /* For X1 Yoga (2016) */ > + tp_features.hotkey_tablet = TP_HOTKEY_TABLET_USES_CMMD; > + type = "CMMD"; > } > > if (!tp_features.hotkey_tablet) > @@ -3928,6 +3951,12 @@ static bool hotkey_notify_6xxx(const u32 hkey, > *ignore_a

Re: [ibm-acpi-devel] [PATCH 1/3] thinkpad_acpi: Move tablet detection into separate function

2016-11-05 Thread Darren Hart
let" : "laptop"); > - res = add_to_attr_set(hotkey_dev_attributes, > - &dev_attr_hotkey_tablet_mode.attr); > - } > - > if (!res) > res = register_attr_set_with_sysfs( > hotkey_

Re: [ibm-acpi-devel] [PATCH v2] thinkpad_acpi: Add support for X1 Yoga (2016) Tablet Mode

2016-11-05 Thread Darren Hart
On Sat, Nov 05, 2016 at 11:45:22AM -0700, Darren Hart wrote: > On Thu, Oct 27, 2016 at 03:46:44PM -0400, Lyude wrote: > > For whatever reason, the X1 Yoga doesn't support the normal method of > > querying for tablet mode. Instead of providing the MHKG method under the >

Re: [ibm-acpi-devel] [PATCH v2] thinkpad_acpi: Add support for X1 Yoga (2016) Tablet Mode

2016-11-05 Thread Darren Hart
tion/SubmittingPatches. I've queued this to testing as it addresses Henrique's change request. Henrique, I'll add your Reviewed-by if you send it along, or drop it if you have more reservations. Thanks,

Re: [ibm-acpi-devel] [PATCH 0857/1285] Replace numeric parameter like 0444 with macro

2016-08-05 Thread Darren Hart
ese for pdx86 unless a compelling argument arises for including them (like - the only subsystem not taking these is pdx86...) -- Darren Hart Intel Open Source Technology Center -- _

Re: [ibm-acpi-devel] [PATCH v2] thinkpad_acpi: Add support for HKEY version 0x200

2016-06-09 Thread Darren Hart
On Thu, Jun 09, 2016 at 06:04:52PM -0300, Henrique de Moraes Holschuh wrote: > On Thu, 09 Jun 2016, Darren Hart wrote: > > On Thu, Jun 09, 2016 at 01:05:12AM -0400, Marco Trevisan (Treviño) wrote: > > > 2016-06-08 10:54 GMT-04:00 Lyude : > > > > From: Dennis Wass

Re: [ibm-acpi-devel] [PATCH v2] thinkpad_acpi: Add support for HKEY version 0x200

2016-06-09 Thread Darren Hart
a...@vger.kernel.org so that it can be imported > there once merged? It doesn't meet stable kernel rules unfortunately, with 143 lines diff. Henrique, do you want to weigh in on whether this goes back to stable? One thing I could do is includ

Re: [ibm-acpi-devel] [PATCH v2] thinkpad_acpi: Add support for HKEY version 0x200

2016-06-08 Thread Darren Hart
+ break; > + > + case 2: > + /* > + * MHKV 0x200 in X1, T460s, X260, T560, X1 Tablet (2016) > + */ > + > + /* Paranoia c

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: Add support for HKEY version 0x200

2016-06-07 Thread Darren Hart
testing. > > There's a few things that need changing, I've outlined them below: (for the > > future, it's recommended to send patches for the kernel inline in emails to > > make > > them easier to review). If someone would please update the patch with any pendin

Re: [ibm-acpi-devel] [PATCH] Remove ambiguous logging for "Unsupported brightness interface"

2016-02-07 Thread Darren Hart
e 16: > bright_maxlvl = 15; > - pr_info("detected a 16-level brightness capable ThinkPad\n"); > break; > case 8: > case 0: > bright_maxlvl = 7; > - pr_info("detected a 8-l

Re: [ibm-acpi-devel] [PATCH 4/4] Revert "thinkpad_acpi: Use acpi_video_handles_brightness_key_presses()"

2016-01-14 Thread Darren Hart
ot > use it as is since thinkpad_acpi caches the return value. > > This reverts commit 7714687a2b2d ("thinkpad_acpi: Use > acpi_video_handles_brightness_key_presses()"). > Rafael, I presume this would go through your tree? No objection from me. Henrique? Acked-by: Darre

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: Add support for keyboard backlight

2016-01-12 Thread Darren Hart
supported. > > > I've dropped this patch. Please let me know if I should pick it back up. > > Please pick it back up. > Gah, these two threads landed next to each other in my Inbox and I didn't p

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: Add support for keyboard backlight

2016-01-11 Thread Darren Hart
. If there is a way to add an "alias" of > kbd_backlight that won't drive userspace crazy, we might do that though. > But it looks quite risky to me... Henrique, so are you taking back your Ack from 10 minutes prior? I've dropped this patch. Please let me know if I should pick

Re: [ibm-acpi-devel] [PATCH v2] thinkpad_acpi: Add support for keyboard backlight

2016-01-04 Thread Darren Hart
On Mon, Jan 04, 2016 at 09:51:23PM +0100, Pali Rohár wrote: > On Monday 04 January 2016 21:40:20 Darren Hart wrote: > > On Mon, Jan 04, 2016 at 09:26:19PM +0100, Pali Rohár wrote: > > > On Monday 04 January 2016 21:04:25 Darren Hart wrote: > > > > On Wed, Dec 30,

Re: [ibm-acpi-devel] [PATCH v2] thinkpad_acpi: Add support for keyboard backlight

2016-01-04 Thread Darren Hart
On Mon, Jan 04, 2016 at 09:26:19PM +0100, Pali Rohár wrote: > On Monday 04 January 2016 21:04:25 Darren Hart wrote: > > On Wed, Dec 30, 2015 at 11:27:41PM +0100, Pali Rohár wrote: > > > This patch adds support for controlling keyboard backlight via > > > standar

Re: [ibm-acpi-devel] [PATCH v2] thinkpad_acpi: Add support for keyboard backlight

2016-01-04 Thread Darren Hart
enrique, I'm holding off a bit more to give you time to respond given the holiday season. Thanks, -- Darren Hart Intel Open Source Technology Center -- ___ ibm-acpi-devel

Re: [ibm-acpi-devel] [PATCH 0/5] acpi-video and platform/x86 driver fixes

2015-12-22 Thread Darren Hart
ying similarly broken paltforms to the Vostro V131, and provide users with a temporary solution until the DMI match can be added. Very practical. I have no objection to the changes in platform-drivers-x86. Reviewed-by: Darren Hart -- Da

Re: [ibm-acpi-devel] [PATCH 4/5] acpi-video: Add a module option to disable the reporting of keypresses

2015-12-22 Thread Darren Hart
,7 +2087,8 @@ bool acpi_video_handles_brightness_key_presses(void) > have_video_busses = !list_empty(&video_bus_head); > mutex_unlock(&video_list_lock); > > - return have_video_busses; > +

Re: [ibm-acpi-devel] [PATCH 2/5] dell-wmi: Use acpi_video_handles_brightness_key_presses()

2015-12-22 Thread Darren Hart
_keymap_report_entry(dell_wmi_input_dev, key, 1, true); > @@ -398,7 +397,6 @@ static int __init dell_wmi_init(void) > } > > dmi_walk(find_hk_type, NULL); > - acpi_video = acpi_vide

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: don't yell on unsupported brightness interfaces

2015-11-06 Thread Darren Hart
On Fri, Nov 06, 2015 at 03:19:43PM +0100, David Herrmann wrote: > Hi Darren! > > On Wed, Oct 21, 2015 at 4:44 PM, Darren Hart wrote: > > On Wed, Oct 21, 2015 at 12:33:52PM -0200, Henrique de Moraes Holschuh wrote: > >> On Wed, Oct 21, 2015, at 08:46, David He

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: don't yell on unsupported brightness interfaces

2015-10-21 Thread Darren Hart
) and stop telling people > > to report it to IBM. > > IBM? Those reports go directly to me. > > > Signed-off-by: David Herrmann > > Acked-by: Henrique de Moraes Holschu

Re: [ibm-acpi-devel] thinkpad_acpi: Lenovo ThinkPad Yoga 12 side lock button (0x6020)

2015-10-11 Thread Darren Hart
On Sun, Oct 11, 2015 at 09:12:54AM -0300, Henrique de Moraes Holschuh wrote: > On Sat, 10 Oct 2015, Darren Hart wrote: > > The Lenovo ThinkPad Yogo 12 has a button on the side by the power and volume > > keys with a padlock icon on it, I presume intended to be used as Screenlock. &g

[ibm-acpi-devel] thinkpad_acpi: Lenovo ThinkPad Yoga 12 side lock button (0x6020)

2015-10-10 Thread Darren Hart
instead (as a hotkey). Is this a keymap change candidate? If so, How do I map 0x6020 to a scancode? -- Darren Hart Intel Open Source Technology Center -- ___ ibm-acpi-devel mailing

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: Add TP_HKEY_EV_SCREEN_FLIP (0x60c0) for Lenovo ThinkPad Yoga 12

2015-10-10 Thread Darren Hart
On Sat, Oct 10, 2015 at 06:40:34PM -0300, Henrique de Moraes Holschuh wrote: > On Sat, 10 Oct 2015, Darren Hart wrote: > > On Sat, Oct 10, 2015 at 11:41:47AM -0700, Darren Hart wrote: > > > From: Darren Hart > > > > > > thinkpad_acpi reports "un

[ibm-acpi-devel] [PATCH] thinkpad_acpi: Add TP_HKEY_EV_SCREEN_FLIP (0x60c0) for Lenovo ThinkPad Yoga 12

2015-10-10 Thread Darren Hart
From: Darren Hart thinkpad_acpi reports "unhandled HKEY event 0x60c0" when switching between laptop and tent/tablet mode on the ThinkPad Yoga 12. This key is reported by atkbd serio0 as e058 and e059. Add TP_HKEY_EV_SCREEN_FLIP to the list of ignored events and silence the warning

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: Add TP_HKEY_EV_SCREEN_FLIP (0x60c0) for Lenovo ThinkPad Yoga 12

2015-10-10 Thread Darren Hart
On Sat, Oct 10, 2015 at 11:41:47AM -0700, Darren Hart wrote: > From: Darren Hart > > thinkpad_acpi reports "unhandled HKEY event 0x60c0" when switching > between laptop and tent/tablet mode on the ThinkPad Yoga 12. This key is > reported by atkbd serio0 a

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: Remove side effects from vdbg_printk -> no_printk macro

2015-08-28 Thread Darren Hart
me > > 609186184 824 67926 10956 > > drivers/platform/x86/thinkpad_acpi.o.new > > 609276184 824 67935 1095f > > drivers/platform/x86/thinkpad_acpi.o.old > > > > Signed-off-by: Joe Perches > > Ack

Re: [ibm-acpi-devel] [PATCH v2 00/32] acpi-video: Rewrite backlight interface selection logic

2015-06-18 Thread Darren Hart
On Wed, Jun 17, 2015 at 11:36:13AM +0200, Rafael J. Wysocki wrote: > On Wed, Jun 17, 2015 at 5:39 AM, Darren Hart wrote: > > On Tue, Jun 16, 2015 at 01:22:40AM +0200, Rafael Wysocki wrote: > >> On Friday, June 12, 2015 01:23:19 PM Hans de Goede wrote: > >> > Hi All,

Re: [ibm-acpi-devel] [PATCH v2 00/32] acpi-video: Rewrite backlight interface selection logic

2015-06-16 Thread Darren Hart
ly instead and which is now > in my linux-next branch. > > Can you please rebase the series on top of linux-pm.git/linux-next and resend > it? Rafael, do you intent to carry this entire series and submit via linux-pm? -- Darren Hart Intel Open Source Technology Center

Re: [ibm-acpi-devel] [PATCH 1/1] thinkpad-acpi: Reduce screen brightness user visible noise.

2015-06-15 Thread Darren Hart
acpi video " > +"or gpu drivers"); Please run checkpatch on your patch (don't break quoted strings - it makes it hard to find them with grep). > return 1; > > if (!brightness_enable) { > -- > 1.9.1 > > -- Darren H

Re: [ibm-acpi-devel] [RFC 07/24] x86/thinkpad_acpi: Use arch_nvram_ops methods instead of nvram_read_byte() and nvram_write_byte()

2015-06-03 Thread Darren Hart
On Wed, Jun 03, 2015 at 07:37:13AM -0300, Henrique de Moraes Holschuh wrote: > On Wed, Jun 3, 2015, at 00:34, Darren Hart wrote: > > On Tue, Jun 02, 2015 at 07:09:28AM -0300, Henrique de Moraes Holschuh > > wrote: > > > Test results were sent to me privately,

Re: [ibm-acpi-devel] [RFC 07/24] x86/thinkpad_acpi: Use arch_nvram_ops methods instead of nvram_read_byte() and nvram_write_byte()

2015-06-02 Thread Darren Hart
r pull request. Reviewed-by: Darren Hart -- Darren Hart Intel Open Source Technology Center -- ___ ibm-acpi-devel mailing list ibm-acpi-devel@lists.sourceforge.net https://lists.s

Re: [ibm-acpi-devel] [PATCH v2] thinkpad_acpi: revert unintentional device attribute renaming

2015-05-20 Thread Darren Hart
de Moraes Holschuh > > Signed-off-by: Bjørn Mork > > --- > > v2: kept the original function names, using the DEVICE_ATTR instead > > Acked-by: Henrique de Moraes Holschuh Thanks for the catch Bjørn, much appreciated. Queued for 4.1 fixes. -- Darren Hart Intel Open Sour

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: Fix warning

2015-04-27 Thread Darren Hart
hotkey_mask_warn_incomplete_mask(void) > > ^ > > > > Signed-off-by: Jean Delvare > > Cc: Henrique de Moraes Holschuh > > Cc: Darren Hart > > Acked-by: Henrique de Moraes Holschuh Queued, thank you. -- Darren Hart Intel Open Source Technology Center ---

Re: [ibm-acpi-devel] [PATCH 59/86] x86/thinkpad_acpi: use uapi/linux/pci_ids.h directly

2015-04-01 Thread Darren Hart
ne yet, so I presume whoever is pushing the move to next will pick this up as well and keep it all together. Acked-by: Darren Hart > --- > drivers/platform/x86/thinkpad_acpi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/platform/x86/thinkp

Re: [ibm-acpi-devel] [patch 1/2] thinkpad_acpi: signedness bugs getting current_mode

2015-03-18 Thread Darren Hart
cludes > anything in linux-next) - what you do in your own (logically private) > development tree is your own business. Thanks for the guidance Stephen. Unless a more compelling argument comes up, I'll stick to this goi

Re: [ibm-acpi-devel] [patch 1/2] thinkpad_acpi: signedness bugs getting current_mode

2015-03-14 Thread Darren Hart
tatic int adaptive_keyboard_get_next_mode(int mode) > > static bool adaptive_keyboard_hotkey_notify_hotkey(unsigned int scancode) > { > - u32 current_mode = 0; > + int current_mode = 0; > int new_mode = 0; > int keycode; > > -- Darren Hart In

Re: [ibm-acpi-devel] [patch 2/2] thinkpad_acpi: off by one in adaptive_keyboard_hotkey_notify_hotkey()

2015-03-14 Thread Darren Hart
d8557084 ('thinkpad_acpi: Add support for more adaptive kbd > buttons') > Signed-off-by: Dan Carpenter Queued, thanks. -- Darren Hart Intel Open Source Technology Center -- Dive into the World of Para

Re: [ibm-acpi-devel] [patch 1/2] thinkpad_acpi: signedness bugs getting current_mode

2015-03-14 Thread Darren Hart
r > Queued, thanks Dan! -- Darren Hart Intel Open Source Technology Center -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media

Re: [ibm-acpi-devel] [PATCH 1/7] thinkpad_acpi: Remember adaptive kbd presence

2015-03-06 Thread Darren Hart
On Tue, Mar 03, 2015 at 03:39:54PM -0300, Henrique de Moraes Holschuh wrote: > On Tue, Mar 3, 2015, at 13:52, Darren Hart wrote: > > Henrique, I believe I may have overstepped with thinkpad-acpi and dealt > > with it like the other drivers in platform/drivers/x86, when instea

Re: [ibm-acpi-devel] [PATCH 1/7] thinkpad_acpi: Remember adaptive kbd presence

2015-03-03 Thread Darren Hart
On Fri, Feb 27, 2015 at 08:16:19AM -0300, Henrique de Moraes Holschuh wrote: > On Fri, Feb 27, 2015, at 08:05, Henrique de Moraes Holschuh wrote: > > On Thu, Feb 26, 2015, at 03:18, Darren Hart wrote: > > > On Fri, Feb 20, 2015 at 03:44:10PM +0100, Bastien Nocera wrote: &

Re: [ibm-acpi-devel] [PATCH 4/4] thinkpad_acpi: Add support for more adaptive kbd buttons

2015-03-03 Thread Darren Hart
es a careful code review. No need for both. I'm queueing these for testing in the pdx86 tree because we've been discussing that approach. However, I've asked Henrique to let me know how he prefers to handle this dri

Re: [ibm-acpi-devel] [PATCH 1/7] thinkpad_acpi: Remember adaptive kbd presence

2015-02-25 Thread Darren Hart
nrique? Henrique, when you're satisfied, please provide a Reviewed-by for the series. Thanks, -- Darren Hart Intel Open Source Technology Center -- Dive into the World of Parallel Programming The Go Parallel Website, s

Re: [ibm-acpi-devel] [PATCH 4/6] thinkpad_acpi: Add support for more adaptive kbd buttons

2015-02-19 Thread Darren Hart
scancode < FIRST_ADAPTIVE_KEY || > + scancode > FIRST_ADAPTIVE_KEY + > + TPACPI_HOTKEY_MAP_LEN - > + ADAPTIVE_KEY_OFFSET) { > + pr_info("Unhandled adaptive keyboard key: 0x%x\n", > +

Re: [ibm-acpi-devel] [PATCH 3/6] thinkpad_acpi: Add adaptive_kbd_mode sysfs attr

2015-02-19 Thread Darren Hart
+ __ATTR(adaptive_kbd_mode, S_IWUSR | S_IRUGO, > + adaptive_kbd_mode_show, adaptive_kbd_mode_store); > + Please use DEVICE_ATTR_RW() macros for new sysfs files. I'd very much like to see a cleanup of the driver to use these as well. Henrique, your thoughts / preference? -

Re: [ibm-acpi-devel] [PATCH 2/6] thinkpad_acpi: Factor out get/set adaptive kbd mode

2015-02-19 Thread Darren Hart
} else { > - new_mode = adaptive_keyboard_get_next_mode( > - current_mode); > - } > + new_mode = adaptive_keyboard_get_nex

Re: [ibm-acpi-devel] [PATCH 1/6] thinkpad_acpi: Remember adaptive kbd presence

2015-02-19 Thread Darren Hart
board_prev_mode)) { > - pr_err("Cannot set adaptive keyboard mode.\n"); > - } > + if (tp_features.has_adaptive_kbd) { > + if (!acpi_evalf(hkey_handle, > + NULL, > +

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: unhandled hkey event

2015-02-17 Thread Darren Hart
return true; No need to duplicate the logic here, just add TP_HKEY_EV_KEY_FN_ESC to the list of fallthrough keys (right after TP_HKEY_EV_KEY_FN). -- Darren Hart Intel Open Source Technology Center -- Download BIRT

Re: [ibm-acpi-devel] [PATCH v2] thinkpad_acpi: unhandled hkey event

2015-02-17 Thread Darren Hart
On Tue, Feb 10, 2015 at 08:45:18AM +0100, Xavier Naveira wrote: > Pressing Fn+Esc in a Lenovo Thinkpad x240 to lock the Fn keys generates > an unhandled hkey event > > Signed-off-by: Xavier Naveira Queued, thanks. -- Darren Hart Intel Open Source Techn

Re: [ibm-acpi-devel] [PATCH v2] thinkpad_acpi: support new BIOS version string pattern

2015-02-17 Thread Darren Hart
= 'T' || s[3] == 'N') && > - tpacpi_is_fw_digit(s[4]) && > - tpacpi_is_fw_digit(s[5]); > + tpacpi_is_fw_digit(s[2]) && > + s[3] == t && > + (s[4] == 'T' || s[4] ==

Re: [ibm-acpi-devel] [PATCH] x86: thinkpad_acpi.c: fix sparse warning

2015-02-17 Thread Darren Hart
ame is sufficient, no need to preface with x86:. Always capitalize the first word after the filename: thinkpad_acpi: Fix sparse warning Corrected and applied, thanks! -- Darren Hart Intel Open Source Technology Center ---

Re: [ibm-acpi-devel] thinkpad_acpi: mute button stop working on x240

2015-02-17 Thread Darren Hart
u treat the mute button as just another key of the >keyboard and let the software deal with it. > >It is a shame that manufacturers can't keep standards (de facto or >actual) on top of not delivering proper Linux modules. > >My interest on how Linux kernel and drivers has

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: unhandled hkey event

2015-02-17 Thread Darren Hart
On Mon, Feb 09, 2015 at 08:44:26PM +0100, Xavier Naveira wrote: > On 2015-02-07 05:22, Darren Hart wrote: > >On Sat, Jan 31, 2015 at 07:52:03PM +0100, Xavier Naveira wrote: > >>Pressing Fn+Esc in a Lenovo Thinkpad x240 to lock the Fn keys generates > >>an unhandled hke

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: support new BIOS version string pattern

2015-02-17 Thread Darren Hart
) && As far as I can tell, the only significant difference here (compared to above) is an additional leading digit and the subsequent string indices? Seems to me this could be done fairly easily in the same block with only a minor adjustment at the beginning and the use of an increment

Re: [ibm-acpi-devel] [PATCH 17/22] thinkpad_acpi: Replace strnicmp with strncasecmp

2014-09-20 Thread Darren Hart
s renamed to strncasecmp, and strnicmp made into a wrapper > for the new strncasecmp to avoid breaking existing users. When was this done? As of this morning I still see them as independent functions in lib/string.c. -- Darren Hart Intel Open Source Te

Re: [ibm-acpi-devel] [PATCH] x86: thinkpad_acpi.c: fixed spacing coding style issue

2014-09-20 Thread Darren Hart
On Wed, Sep 17, 2014 at 12:01:08AM +0200, Jan van den Berg wrote: > Fixed 22 similar coding style issues: "ERROR: spaces required around that '?'" > > Signed-off-by: Jan van den Berg Queued, thanks. -- Darren Hart Intel