Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp7121615ybf; Fri, 6 Mar 2020 10:47:18 -0800 (PST) X-Google-Smtp-Source: ADFU+vtC3kQrF3KYp55QyzPXuybPLPLqwxV6F6kz3Rjtkp/o7y0065lMQ2Oh/xxt9d9RcXzJOm2I X-Received: by 2002:a05:6808:14d:: with SMTP id h13mr3650391oie.121.1583520438490; Fri, 06 Mar 2020 10:47:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583520438; cv=none; d=google.com; s=arc-20160816; b=x9xhoJZ9hYkngYp/paWOHiW4jxMm/QdE7slt3hHSzNEyInIqV2v1Q8DcF1FL/aktd3 BbwwCWq4E0yA8xmcXMzTrzNwuomItHTmqJslL8216+xntItAE0QWkbpQJFoGljJpQMtA 3UM3aOx/xYh5lVSkt0JFsU/XVSs+gSeU/ZNoAd7wVmdLdJtBvZLFMv9k1rAGVi1I8Hg4 PZrF1/EEOAxxUkQpz3xEzYYZfOW51z51sZcn0v2J2zBi3rP4CM9hQ+W+6MVpPMnMl9gU ejCPulcelMfg31hJj/kJk5UriXMXCmkhIzCjf1P07VWAinoxvLZN0ibHyDWnL7vsc8K9 N0+A== 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=qs7ImbJabDiO2c+nA0PLDjvn+ichuXUQrVBrfX1bZCI=; b=GZmzrfSqIfEQ2XmN2GNvehJFPx74YSCHjuP5alRcWBpDXclgMBY5GrCyk2JNQgXWTM QnGUQQcqGspWylppx2A5MK4cxPnZ1i8TfydhiFX1QE7p+dA6jsK9jwF289xnii1fRYhP 62xTyn/qMxnv5JsXAjukv0uM6dGw06Km0bc4Ndhkr+DXn1q6v17D9eZ6P7FOH17/RnDL +pQ+hMrSXyBkl1wJZiBZ5u6gwjhChjXfmEm4/3L5gBiYFyQ1ElSLwHqJsMv4NNPnTWH2 aMmpIvrO3RHRyScQQzn6OY9p9t4H8wqToi4k8EfGKznwmu7QxE0GL/QLfP3zmShPM27m xDcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=khCBdBgU; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 194si153852oii.2.2020.03.06.10.47.06; Fri, 06 Mar 2020 10:47:18 -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=@google.com header.s=20161025 header.b=khCBdBgU; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726300AbgCFSqg (ORCPT + 99 others); Fri, 6 Mar 2020 13:46:36 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:50912 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbgCFSqg (ORCPT ); Fri, 6 Mar 2020 13:46:36 -0500 Received: by mail-pj1-f67.google.com with SMTP id nm6so1431555pjb.0 for ; Fri, 06 Mar 2020 10:46:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=qs7ImbJabDiO2c+nA0PLDjvn+ichuXUQrVBrfX1bZCI=; b=khCBdBgUrq3Iro4lw6N8B1QoPsldVk3UXCYnzdH2RAiDgk8c2S3c45df/hn2BZNJhN w6rlV1YFrXTosRLkr/OSdw0yE4ecr0+pisMvuHB8LRzUU6XNsBTL7VZx6ZG8yyuqcmnD aKJ0b7uj8VM28iYubhChlsntpMu88ekQOoTAR/afX1b8Rt3kNZAsIylW8rsSJL6WeU3g CUDNdMzxRro6nw+UpGjmeaI5rydk9TugiNJi1PftLlGAqwtPv/JdLZM22YZm9TQBtuBm TXXeh7umTTNUwjlNMM7Rf7ni3tKcBXiF9qQL9ExAwlxHJVoMJd+IGgdhYH9MCxeQ9nj9 +5Dg== 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=qs7ImbJabDiO2c+nA0PLDjvn+ichuXUQrVBrfX1bZCI=; b=SMSIujpDyHujB4U0Q3bslXl8ty29EtlVpFWVJ/DH+NgdURGLcjtYerxSD/5kUr8S20 Tq3VfusgNWUqGbq8VPujehuNIwVBevkA9b9wkzMwbvcWaaBg8WlYM6UAL9CaNda1qvpt 8zaVq1fRbfQdGa1Pv0wvdNiuyChqgGBlp7Ze77G95o1vmnMdbREalR6E7ETAZuqopqSf nR4eNmwzTmkmaofjIcElMTqZZ3ZUjM9Lkcp4u6Eb2sO75lXD6690vqejKCq7GyPR7nDc l4NCjUmQfMx0TlXwXhgeVL+NByBaLOErItEId+leMPsY87MIfCu6A+iWFC4M3YfmteoL wquA== X-Gm-Message-State: ANhLgQ0LFUriWKfRjCNnAPSohWXGCyKxYCbL7Vmowh8i4JqCWs0KZxl/ YkbdjY0ALoik4WLYJSegns99Jw== X-Received: by 2002:a17:902:74c2:: with SMTP id f2mr4107359plt.318.1583520394996; Fri, 06 Mar 2020 10:46:34 -0800 (PST) Received: from google.com ([2620:15c:202:201:bc61:d85d:eb16:9036]) by smtp.gmail.com with ESMTPSA id 18sm37442928pfj.20.2020.03.06.10.46.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2020 10:46:34 -0800 (PST) Date: Fri, 6 Mar 2020 10:46:29 -0800 From: Benson Leung To: Gwendal Grignou Cc: bleung@chromium.org, enric.balletbo@collabora.com, jflat@chromium.org, linux-kernel@vger.kernel.org, pmalani@chromium.org Subject: Re: [PATCH] platform: chrome: Fix cros-usbpd-notify notifier Message-ID: <20200306184629.GA253583@google.com> References: <20200304232108.149553-1-gwendal@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <20200304232108.149553-1-gwendal@chromium.org> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Gwendal, On Wed, Mar 04, 2020 at 03:21:08PM -0800, Gwendal Grignou wrote: > cros-usbpd-notify notifier was returning NOTIFY_BAD when no host event > was available in the MKBP message. > But MKBP messages are used to transmit other information, so return > NOTIFY_DONE instead, to allow other notifier to be called. >=20 > Fixes: ec2daf6e33f9f ("platform: chrome: Add cros-usbpd-notify driver") >=20 > Signed-off-by: Gwendal Grignou Queued for v5.7. Thank you, Benson > --- > drivers/platform/chrome/cros_usbpd_notify.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/platform/chrome/cros_usbpd_notify.c b/drivers/platfo= rm/chrome/cros_usbpd_notify.c > index 3851bbd6e9a39..ca2c0181a1dbf 100644 > --- a/drivers/platform/chrome/cros_usbpd_notify.c > +++ b/drivers/platform/chrome/cros_usbpd_notify.c > @@ -84,7 +84,7 @@ static int cros_usbpd_notify_plat(struct notifier_block= *nb, > u32 host_event =3D cros_ec_get_host_event(ec_dev); > =20 > if (!host_event) > - return NOTIFY_BAD; > + return NOTIFY_DONE; > =20 > if (host_event & EC_HOST_EVENT_MASK(EC_HOST_EVENT_PD_MCU)) { > blocking_notifier_call_chain(&cros_usbpd_notifier_list, > --=20 > 2.25.0.265.gbab2e86ba0-goog >=20 --=20 Benson Leung Staff Software Engineer Chrome OS Kernel Google Inc. bleung@google.com Chromium OS Project bleung@chromium.org --EVF5PPMfhYS0aIcm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQCtZK6p/AktxXfkOlzbaomhzOwwgUCXmKahQAKCRBzbaomhzOw whwQAP4jCnzsupC6BWVC0gEzvODtsZAj6A5R19O/esCpw3QAaQD8DydhtsM7aqLZ 9uhlqN32iPL4n82hdYy+CKfNN6XwEAI= =9AS2 -----END PGP SIGNATURE----- --EVF5PPMfhYS0aIcm--