Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1082742ybl; Wed, 8 Jan 2020 10:41:43 -0800 (PST) X-Google-Smtp-Source: APXvYqw8hFKE+IaURFYrfc2XNYpYGgnrIcQaV5qSI/7Ys7+G5Ahg0MLjyEAUiOyFF6F/vWwoQQlp X-Received: by 2002:a05:6830:1188:: with SMTP id u8mr5259137otq.274.1578508903817; Wed, 08 Jan 2020 10:41:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578508903; cv=none; d=google.com; s=arc-20160816; b=tbpe1jiJWDz+P4z7iMbLFnEas6YUPzrPIM2ax9GtblBPuLV60ixWQk1TA6NFBzqH8V iWrBcDVlDPKovRhFlihqvyICc1hldb1ReKYW3LgJTC1kcYwGieQPQ8FJbqlvBS7sI1Sz 0U+79YNBr/fMNf3n63ung+kp1ngOr/n1DWaALOM01bHoeyZyQjFZXiC15rIPjtFk1Th+ lPfSvzukIgMkojQX7nMrv2My2ql83u3ZNK+JI5ShJePKKD280KpfGEBoBTLNLuuBN+6k en3CjGeAfKfU/EXMqTip8uoP0tHGEkfSJ5dlvbxOMh4TZJm0937dfaZP9gYOyB8hzl+F mYrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=z4SW3YsZrYC7C7z4MOssIKys1QtDj3mTOPrqO+DqHxg=; b=VoscGMocm5mqdXX4kPH2shT2Nt7/yLXFkQugISBdtx2zoOUR88HCIkL2rjgOv2ZNMr +XR0BYYnv3BIQBeRpTE3OoWKyXg9gDP+UZ+jDLByAE+oZqqthl80fNPTAR7cJstwPTAQ OLRQTcHpHEkxMqcUeM1lt2IxaC0dJWTq9ChGWIve5uR4r1jDOv2NjtvieS2lZSkmbwqQ 4KbtA/iJj78Ak9SwZmztCaOUZOGEC2wU4zuLPhoeOqLitmr0TnRVVgJ/Uk6xrGAG5GNr mXbxKGlj5ApVLchYhP/eLJ/Aq4Y0qLUrQngks90m/y5TFStWUizjruHCzoJINdBN6DGg MaUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jvRapN2z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si2167447otq.112.2020.01.08.10.41.32; Wed, 08 Jan 2020 10:41:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jvRapN2z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728835AbgAHP7w (ORCPT + 99 others); Wed, 8 Jan 2020 10:59:52 -0500 Received: from mail-io1-f66.google.com ([209.85.166.66]:37764 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727154AbgAHP7v (ORCPT ); Wed, 8 Jan 2020 10:59:51 -0500 Received: by mail-io1-f66.google.com with SMTP id k24so3745796ioc.4 for ; Wed, 08 Jan 2020 07:59:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=z4SW3YsZrYC7C7z4MOssIKys1QtDj3mTOPrqO+DqHxg=; b=jvRapN2z7Ugtj0mNucj74lU2w6NUWvODfZdVWa8Tp8XYxysb0PZ1Rw1lKxyoxZ9xtC suNyB0wDpdw7inNGYEIbN2R3ePE8Wd58r7cNorQYRbj0dtNxZMggS1slZHUIvcFFMCxI AtjEUxeVN8kLjOcvxt+1GzfS0bsmVkkvdJJ3o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=z4SW3YsZrYC7C7z4MOssIKys1QtDj3mTOPrqO+DqHxg=; b=OQnFJJIHzRMQ1SkFz51OjB70eKy4VHLO/w/Wj/5iSpvcwIoeRw9cJtqleV+mApJrfJ IsFrgC1hVR0O9U0Bnjw1nbQUvjvjRJkSBeP6quWCoffPi1Ysi//T5xHDuFVG6mbh64Um kC9wGS9cFHjrNyTDHpxiC/30VEUP/iD7Oc2Svf16sbd/S1iFupD3nEP+EZCFc3TVl9gB 9MVveW50LuTHx4TI5/PfS2A20A+7ZgyCa9VuV2xN89TggVxX57gko8lcY6u0XqCKayzx wDpJeXJaAOaxAYdd1Cu6+Wc4D71O+CIge+OvwNoZsvUiDcwrge3pjonvXZ8H7gU6zcfx Q5HQ== X-Gm-Message-State: APjAAAXXPg0kvnnexpd6pHVLUYXl4gvSTe5EeMHnBW4+IYuq02juAH3S as3S3UcTVQChFMr5z0dGUmBC/w== X-Received: by 2002:a05:6638:618:: with SMTP id g24mr4669791jar.87.1578499190795; Wed, 08 Jan 2020 07:59:50 -0800 (PST) Received: from chromium.org ([2620:15c:183:200:5d69:b29f:8fd8:6f45]) by smtp.gmail.com with ESMTPSA id d12sm1079889iln.63.2020.01.08.07.59.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 07:59:50 -0800 (PST) Date: Wed, 8 Jan 2020 08:59:48 -0700 From: Daniel Campello To: Enric Balletbo i Serra Cc: LKML , Nick Crews , Benson Leung Subject: Re: [PATCH] platform/chrome: wilco_ec: Fix keyboard backlight probing Message-ID: <20200108155948.GA47901@chromium.org> References: <20200107112400.1.Iedcdbae5a7ed79291b557882130e967f72168a9f@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Enric, On Wed, Jan 08, 2020 at 11:38:58AM +0100, Enric Balletbo i Serra wrote: > Hi Daniel, > > Many thanks for sending the patch upstream. > > On 7/1/20 19:24, Daniel Campello wrote: > > The EC on the Wilco platform responds with 0xFF to commands related to > > the keyboard backlight on the absence of a keyboard backlight module. > > This change allows the EC driver to continue loading even if the > > backlight module is not present. > > > > Could you explain a bit more which is the problem you're trying to solve? I am > not sure I understand it, isn't the kbbl_exist call for that purpose? (in > absence of the keyboard backligh module just don't init the device?) kbbl_exists is intended to return a bool based on response.status != 0xFF. Without this patch kbbl_exists will fail and return an -EIO error on any value of response.status > > Thanks, > Enric >