Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1891333lqe; Tue, 9 Apr 2024 03:47:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXKroaUeHorMam99jPuozjtXI6m+wzD21IuEwe/X88qfvynvn+pyWKBZ/+nn9S/3R9CXDPLmBl6Nowj7W6MFvgxU54MRfJZWXkEYxF8qw== X-Google-Smtp-Source: AGHT+IFnMn2T0+DcbBLsSey9+IBZc8SCMlSMvX73ne9OIqwMw4z8VRZk1pMecymkGo/3Vmzwx+j3 X-Received: by 2002:a05:690c:6905:b0:617:d49f:d5b9 with SMTP id if5-20020a05690c690500b00617d49fd5b9mr12073072ywb.14.1712659662535; Tue, 09 Apr 2024 03:47:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712659662; cv=pass; d=google.com; s=arc-20160816; b=QqHasrZT5Tvo2xIOY3g1+2cSzJqkqxyNu6HQ01CB6o55XBkp1oFSWAM1I3A3G4ruB5 NG+iIW/DC5D/aOmtCi4b5RJJwNFmvV9jIUw2XRK3iJDe0LxGpHco4wL9RFZ/0z6QjV2V rErx1WHaPZGEax/hj1FU2h+27J4oDcJWa4VRpMt+8jzMB89GEPvA99GMdNcmJw7Hoqrt SFDcX20XQh7bsx/nHRflhPeRVCMSIGckFW4QW/RwbHOHZM6/CZ8P/U8HhoOhI4VuInfi RWE7fmbZV5B/HgkD4EKfi+e0AF2eunNR1VBSiQsHbLQ4XqQfpEr8EaSKPcIqc1pt5d7Q tuNg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VkfiB3WMMHOTd7dOdfzkZhfMgCg5GQYY8zK+GgNQCx0=; fh=FMp0dJvy3u1CKOiQ4WS3w2pFhujHnNWAIIq7IDpk5cI=; b=yHfEeWrSYRzECRSU89wbEiyfiPnO+3/+psQxan2akDDj6OIuhtJ/jYMpjuxOGFL6vD BbB8c5YNJFGbuWMTBZZNh2pyeYnNDJH87j+cV6Zdzq+qoUUFuGexGcPL+3h1p4554mbt 6IyRppUBGyD0Sg3RsOTkN7u6rfHpiO4C/hYJIOIV7srB+GuWdu6tAvBHf5GMAxjfeS5G GYKoHcpTs63g5PbqbTBHLJo5PWTAm+qA5K0SxvVMRV6d8chqjeGFB89DWaK/hj7HxSiy eI0GjxGb+3TNQ66tYYW+Uh09UmGPMtet4+wqS/NhF8OkNo5x0GM7dpqCNMx4g6LiFBWk RVFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZzlC0fUL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-136701-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136701-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w1-20020ac87e81000000b00434e54824e5si610371qtj.648.2024.04.09.03.47.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 03:47:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136701-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZzlC0fUL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-136701-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136701-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7D6F91C235B5 for ; Tue, 9 Apr 2024 10:47:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 545BE83CB0; Tue, 9 Apr 2024 10:47:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZzlC0fUL" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73F0D26AEC; Tue, 9 Apr 2024 10:47:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712659647; cv=none; b=eQFk69o9uc+OodIoJnBe2iOaRPUbsYA94FXEpubh3SJo3E1n8B3uxxVT4f7J7a2v1OSQ3T9idGMPkeY/TEMM89GXcAjTL7YeLVzxC/lc3hsvw8RkxIsC8mQaHUr0VBHl55cHrgbYt2ZIcwjTiUeNh3+8uCO4+wSLpnsVcXuIiRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712659647; c=relaxed/simple; bh=GQyRhDS+e7UvbivEeGp6IgSBe+4m1AsAUSrkuomhjRI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dtSYYnHJ0YMBPvWnUytjgLQdJsBvyr0jCVvi26WP4kbiKHJMATooDNBDgmunM6P+Mhmsu5L07324/BX1fxWcO3QsqSQ9QABvpQWHBcNgjOZPhKBY2IoysZppEabhqrVeU2T5PLyGGE+mTsZYHrxayF7VKFOjE8Tze712VOuV3Bg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZzlC0fUL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 838EBC433F1; Tue, 9 Apr 2024 10:47:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712659646; bh=GQyRhDS+e7UvbivEeGp6IgSBe+4m1AsAUSrkuomhjRI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZzlC0fUL7LqSHLOPipy7bACooruKGDL+skwtjj/L1kDV3ukMuEnwcg+VSkznIgB3D hi5iK4ocGcWQ7jPXB987vLJv0Lx2G6PjF9FgTgYB45mSTIjTR8z96fZyGeYd5pua36 iH7LbtfzjDS/+hXpAM/2yEUnfLd2M8QS4rqmhO1QkNKnHIZcKpXPejNXfJTZdyuC1y KRzQYY0dWS1Czutvs4Onvm44+x7c7FMPNtvNUhU32ulJZsRrqxeEwwxos7SuA+OlXO YHt0bGH1TEf9cQf1Zg1E15lGUjGHKkUzc7zU/zaezgHPy4dfkEp1IyY2cZ9uPV7oSO MFiiuTCZN9GzQ== Date: Tue, 9 Apr 2024 18:47:23 +0800 From: Tzung-Bi Shih To: Pavan Holla Cc: Greg Kroah-Hartman , Heikki Krogerus , Benson Leung , Guenter Roeck , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Abhishek Pandit-Subedi , chrome-platform@lists.linux.dev Subject: Re: [PATCH v4 2/2] usb: typec: ucsi: Implement ChromeOS UCSI driver Message-ID: References: <20240409-public-ucsi-h-v4-0-e770735222a2@chromium.org> <20240409-public-ucsi-h-v4-2-e770735222a2@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240409-public-ucsi-h-v4-2-e770735222a2@chromium.org> On Tue, Apr 09, 2024 at 02:27:37AM +0000, Pavan Holla wrote: > Implementation of a UCSI transport driver for ChromeOS. The patch generally looks good to me just a few nits. > This driver will be loaded if the ChromeOS EC implements a PPM. Replied in v3, the patch (and the series) don't reflect the message. > diff --git a/drivers/usb/typec/ucsi/cros_ec_ucsi.c b/drivers/usb/typec/ucsi/cros_ec_ucsi.c > [...] > +static void cros_ucsi_work(struct work_struct *work) > +{ > + struct cros_ucsi_data *udata = container_of(work, struct cros_ucsi_data, work); > + u32 cci; > + int ret; > + > + ret = cros_ucsi_read(udata->ucsi, UCSI_CCI, &cci, sizeof(cci)); > + if (ret) > + return; `ret` can be dropped. > +static const struct platform_device_id cros_ucsi_id[] = { > + { DRV_NAME, 0}, To be neat, append an extra space after `0`.