lkml.org 
[lkml]   [2017]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 2/2] hp-wmi: Fix detection for dock and tablet mode
On Fri, Apr 14, 2017 at 2:07 AM, Darren Hart <dvhart@infradead.org> wrote:
> On Thu, Apr 13, 2017 at 10:09:43PM +0200, Carlo Caione wrote:
>> On Thu, Apr 13, 2017 at 8:21 PM, Darren Hart <dvhart@infradead.org> wrote:
>> > On Sun, Apr 09, 2017 at 03:56:08PM +0200, Carlo Caione wrote:

> EINVAL is being used to broadly here. If the input values are incorrect, then
> yes -EINVAL is the right response. However, if the query was unsuccessful, that
> is more appropriately -EIO.
>
> If the handle/method doesn't exist, that would be -ENXIO.
>
> However, your changes make the driver self-consistent and I'll apply them as is
> to testing.

Darren, if it's not yet in for-next, I would like Carlo to update his
patch 1. I think it's better if we not shadow negative error code from
the callee.

--
With Best Regards,
Andy Shevchenko

\
 
 \ /
  Last update: 2017-04-19 18:25    [W:0.044 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site