Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp539813ybl; Fri, 10 Jan 2020 02:47:37 -0800 (PST) X-Google-Smtp-Source: APXvYqyBmkbA3KIeVRqdke/7+OF39Xpj0QHDjWgSEVe46mv8PT4wm+V9SaDCWUJria06hYRry/o7 X-Received: by 2002:a05:6830:1481:: with SMTP id s1mr2074483otq.66.1578653257328; Fri, 10 Jan 2020 02:47:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578653257; cv=none; d=google.com; s=arc-20160816; b=SuwMWaeBgiseWU+3cev+yrp5s2gQ2v4WTeN74Y2w2wHlKPs+alUzASlmudGKsIOQVb 0X1u54XXjAnUn01beDCWuX0MhCY+XkUfmJOtgArspjV2lItgxXmmCn7dHKX9ooAXul2n 6tLp98aHTpywYa/tHNIoj+S+qrL+rwJOwtySnL5oJxTFNpXMsWEf8wGP89F0pghizMIX Cp2+E52j4JI17GWhRnTxi4z6f3j5sMTvfhYPTViCqOM2KSXGkGD+I/BmI8Q7llyOAzfg NXFFieDc83IEHDQNFdiW6D/xTqnz7zmu3ziFnJxg3uykBFA74gBAlaAPZBooYol61psD noeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from; bh=gEioUaD+qBGyvPRKV3b2mUcYse6CSQ7iJZg3whqKHW8=; b=T9EX5k0GWBEpbxp6LKNtS0vW7gGu715vnGFLvXtaSCNrrBzukcxqZ5GDrW8jR73B0B BWOo9uZ9PxYWqmFopNUQyjaHCoGj/C3O00Kpg95fdwCuCzLZ05gULQC7JSGr07ggoZ0c d8FqyaXOF+E9/yubuxcq4cF9FCu7Xm6QmRz36Xwr1rihoiWnvFkXwNNAbs0OPhWRom5E uI1bJeLB1tJdwKkVZR+tKb7zbfDhMXsjMAe5XVtpobGq5r6z149qL33NQ6CYMI3lWd4b XwSbEIX5CxD3cljK3ftVDgUXY0nlzQh8aKYmcvVUJN5dMcG7bhyZxwSQ8IkkuXcHnKa5 ZBsw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n14si1037447otk.179.2020.01.10.02.47.26; Fri, 10 Jan 2020 02:47:37 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727582AbgAJKqN (ORCPT + 99 others); Fri, 10 Jan 2020 05:46:13 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:51748 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727345AbgAJKqN (ORCPT ); Fri, 10 Jan 2020 05:46:13 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 18972293A50 From: Enric Balletbo i Serra Subject: Re: [PATCH] platform/chrome: wilco_ec: Fix keyboard backlight probing To: Daniel Campello Cc: LKML , Nick Crews , Benson Leung References: <20200107112400.1.Iedcdbae5a7ed79291b557882130e967f72168a9f@changeid> <20200108155948.GA47901@chromium.org> Message-ID: Date: Fri, 10 Jan 2020 11:46:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <20200108155948.GA47901@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, On 8/1/20 16:59, Daniel Campello wrote: > 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 for the explanation I understand now what is happening. I added the Fixed tag and queued as a fix for chrome-platform-5.5 Thanks, Enric >> >> Thanks, >> Enric >>