From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 815ACC3DA7D for ; Tue, 3 Jan 2023 07:32:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231274AbjACHcO (ORCPT ); Tue, 3 Jan 2023 02:32:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236918AbjACHcI (ORCPT ); Tue, 3 Jan 2023 02:32:08 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45EB7DEC2; Mon, 2 Jan 2023 23:32:07 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CE85B611B1; Tue, 3 Jan 2023 07:32:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD685C433EF; Tue, 3 Jan 2023 07:32:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1672731126; bh=H24tvaVsrQoX2ADT0MUXQLccLC7C362GsTZw5z5q+kE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=k1KeNQy42WiuWE0X+nRN77v/lkFfxwl/YxDyC5GYqHm9PvkfAtxe08eW/z042CMnO DDvNm3x7fWhMTS0Cx05ZO2lB/7u3QPy+yRmMC2d/T+y3pBilqy2aL3ir+H6m8oOOlE TAMsG1AiCR6eiGmrNnli6sfdIFJN23UPwiZHqjmM= Date: Tue, 3 Jan 2023 08:32:03 +0100 From: Greg Kroah-Hartman To: Haotien Hsu Cc: Heikki Krogerus , Sing-Han Chen , Sanket Goswami , Wayne Chang , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Jonathan Hunter , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] ucsi_ccg: Refine the UCSI Interrupt handling Message-ID: References: <20230103024023.235098-1-haotienh@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230103024023.235098-1-haotienh@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 03, 2023 at 10:40:23AM +0800, Haotien Hsu wrote: > From: Sing-Han Chen > > For the CCGx, when the OPM field in the INTR_REG is cleared, then the > CCI data in the PPM is reset. > > To align with the CCGx UCSI interface guide, this patch updates the > driver to copy CCI and MESSAGE_IN before clearing UCSI interrupt. > When a new command is sent, the driver will clear the old CCI and > MESSAGE_IN copy. > > Finally, clear UCSI_READ_INT before calling complete() to ensure that > the ucsi_ccg_sync_write() would wait for the interrupt handling to > complete. > It prevents the driver from resetting CCI prematurely. > > Signed-off-by: Sing-Han Chen > Signed-off-by: Haotien Hsu > Reported-by: kernel test robot The test robot reported this whole issue? If not, it should not be here. thanks, greg k-h