Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp613208pxk; Wed, 9 Sep 2020 14:05:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyx5qYxYocNNeNU6p8R2CjmBjixqwk+3fWgRZUAOWc+aTvyJl6cMOZrYhfrbCry1nArPy97 X-Received: by 2002:a17:906:3e90:: with SMTP id a16mr5268787ejj.363.1599685540952; Wed, 09 Sep 2020 14:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599685540; cv=none; d=google.com; s=arc-20160816; b=TFsiBSw/YTpwRYNyynJYsR9adHj380D+Nb1EQPcbP6UZYyC270APtajJ8yhzOHyfzH jCWGEZpEUYtsLynd0HipI08JTC0Bm1BC4QtvvzFtTmKX4v/+NogZ+rtEDWvkD4SctGGV DNUvpBoC7/mo1R32Hqq30PwC5uXHT7JJF6mdbCikxavZL7ZTJkCbPJ5+6t3eTOeK4cMQ FBFSXo7RO1Dlts3fAldUM0NC93JabaQWl+F2KxUm5rqI/LX+ahra0TGgirZNcrHi5yru /XViDEw6dpWHLRlMftUxNU3xImmkuyWX25mK3qBPsc1NORutU+JuY1vgNnEV1F2tuEH6 zxqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=duyVyKDxPe1AVCpSV8nmqOMfTiZWSiAAWpLSXZctuCQ=; b=VfAatqxeG98JCkhi2EwBGIsRdfsr3dWMRbkApTDp3eRh3s91DLEC2c81wGH1QWPmDo vVjALjC8uDdCiJl6zdqQQPxIpyoM4gqCQzVkg1yGyRIyNQ4q9yxjEbEr2UPzP7uTXQUC 2+ZNYPL0GYO5tcDhGEJm/aY3BoE36nG6PPoiLnK1GuryM42VXsxAh06wAghOTfmX7Wr8 r7uAz0Z32HfbMoaF7gzBz9fkIrFzXMfVoD1EzmZB3812lu80mCopXT7tFcok/MUsAh6i RXxTjXQaWlihQ6L4FxQWmidsdcCk+Q+T0ycBUZt9neSd03QSyzseYI4jq88a6zHO1jNM CKtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="WDDG/wks"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id co12si2476355edb.104.2020.09.09.14.05.18; Wed, 09 Sep 2020 14:05:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="WDDG/wks"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726534AbgIIVB0 (ORCPT + 99 others); Wed, 9 Sep 2020 17:01:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726414AbgIIVBX (ORCPT ); Wed, 9 Sep 2020 17:01:23 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71229C061573 for ; Wed, 9 Sep 2020 14:01:23 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id 5so2970522pgl.4 for ; Wed, 09 Sep 2020 14:01:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=duyVyKDxPe1AVCpSV8nmqOMfTiZWSiAAWpLSXZctuCQ=; b=WDDG/wksKWGosu3IMdzqGPi7tJ00A2nker4TK2MQr4gMxAJ0Hv/9J7iEGSdWQABZS7 3Bzjz5we0K9w5ZOXO/2ZOWqxAJ89FrGo8H2zTRFwjbbfWzIUht7jS1zsoWgOkWHwteN/ b3wY30sv0huQRQw8irbr0tUtTaFiJolNWCk58= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=duyVyKDxPe1AVCpSV8nmqOMfTiZWSiAAWpLSXZctuCQ=; b=BQ6DAfNum2BDhLeeaMHSoKWBQsyGJNIKWzViP099evjsmxdOtbbYE5aMuMimHPDk6Y w8fHjW2WsRVbUtGXgReTakUKDbzawGAavdt4EF24slwOBBrvAliSSdtQpM6I4FJ2OWrp 8S4doC8QgvtKn0RyvzgLdBlkMkgjb0GgsrzfhnwHcbbgj1kRayG2MnrfZoeuBFr98P+k RBFIZRSJQAx9Mlv3W9CBmzdBERshRkY9kyHqwtEoFJx9iH2yPQrCDeOTkFxDkqhogO3P uA/Czqukf/MlPQm1Ap2KFBOlAsNOkbKEgFjzab6Z6B4yWRg+U+CGMCN91qBmLQuUEuL6 fOyg== X-Gm-Message-State: AOAM531qmm5K72og2+1oKNWIdKsPoBlKDZ8s2b0LbUbaTfHS1gvfH0WP eyRyU21l2rdxjZTi2SSXR1fIiA== X-Received: by 2002:a65:49c7:: with SMTP id t7mr1943498pgs.131.1599685281943; Wed, 09 Sep 2020 14:01:21 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:3e52:82ff:fe6c:83ab]) by smtp.gmail.com with ESMTPSA id s9sm2984482pgm.40.2020.09.09.14.01.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 14:01:21 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20200909202609.1630698-1-swboyd@chromium.org> Subject: Re: [PATCH] platform/chrome: Don't populate lightbar device if it isn't there From: Stephen Boyd Cc: Benson Leung , Enric Balletbo i Serra , linux-kernel , Gwendal Grignou , Guenter Roeck , Lee Jones To: Guenter Roeck Date: Wed, 09 Sep 2020 14:01:20 -0700 Message-ID: <159968528004.454335.687873020977684163@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Guenter Roeck (2020-09-09 13:48:41) > On Wed, Sep 9, 2020 at 1:26 PM Stephen Boyd wrote: > > -static int get_lightbar_version(struct cros_ec_dev *ec, > > - uint32_t *ver_ptr, uint32_t *flg_ptr) > > -{ > > - struct ec_params_lightbar *param; > > - struct ec_response_lightbar *resp; > > - struct cros_ec_command *msg; > > - int ret; > > - > > - msg =3D alloc_lightbar_cmd_msg(ec); > > - if (!msg) > > - return 0; > > - > > - param =3D (struct ec_params_lightbar *)msg->data; > > - param->cmd =3D LIGHTBAR_CMD_VERSION; > > - ret =3D cros_ec_cmd_xfer_status(ec->ec_dev, msg); > > - if (ret < 0) { >=20 > I am quite sure this conflicts against the patch series I submitted > earlier, specifically "cros_ec_lightbar: Accept more error codes from > cros_ec_cmd_xfer_status". Thanks! A pointer to git commit would have been helpful to find it even faster but I got it now. I'll rebase and resend.