Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2232822rda; Tue, 24 Oct 2023 17:24:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5I20RMNr6z1X5saRRUds1sQ4vIPdP8LFRjhJQZVilhY6+ja3nTBTNY4jakn/lNi8QwCTK X-Received: by 2002:a05:6808:b0b:b0:3ad:f5b3:844c with SMTP id s11-20020a0568080b0b00b003adf5b3844cmr15361794oij.18.1698193441468; Tue, 24 Oct 2023 17:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698193441; cv=none; d=google.com; s=arc-20160816; b=vT+ppgwIZr6K2sTbOP+M7eUkhWiISbpiew5VjQD5/liSnObt1ujljzvNQxxSO1Qk9z ZdDMx+KN6mhcMCUj5F4rKtzUjdpXpPYp01I/uiGkYYPagHMzR0ZcLGZRm/MgV6OgCvcR L8Lk93f/iYJRDc/UzgLP18H0wqTmlkg+rNGDNDTOs454TbHbuGpySdrvqL4tNzB9spSt NXlpT4RgVuT1SLW2NDH1horPsy+6eILDv0sL9A3zRbWCX0rne8BF2aFWNDu6mrCcNQBw ActCj4EoRsGMoOSz9gW6bF91Cm7xdNSoe/jFDA00tM00Cwf2jhFVIbLi6KTarwdn+hUM 5WKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fEmlS61KrC2o8j0Be74D3gmQzZtZSzCbq/ulHbuY1tA=; fh=kwlQWOvc4FKK/jTFnej6jLaHsZCoQUXMgX/pUTqkAoY=; b=HS0KKMei7B0X7z1WHTd0ZFxf+i338aC73aQOycyaaVkEHpkuZS1RL/V70v280geJB3 mIfgTApQnx1r+u3ErvOSCdU46WnhD3PKu2sxlu9xXvr9KYKXWOVgxnuSPzTFQbJN4aSo HvgQk1ts/By+ASHFLBfXKCFVrFj404zmx2SE82OwEfGducDNKXDvLkopX2scCTvp12HL c69pV4lkM6cmBUahRAH2LFGFewI4dORktbdKM5NEx/aIUd/LEQ1Jc0ksXDPFYveAgtGD GNp/KCXNlCu05v0l6K9uSl/c+xg66LmF/03X3EBXrw+nx2Z8A99p5rIJ+JYQpTOIWcUp vCxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rc0Stsvd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id z36-20020a25ada4000000b00d9ac1761266si8995463ybi.273.2023.10.24.17.24.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 17:24:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rc0Stsvd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 00B0C80C2556; Tue, 24 Oct 2023 17:23:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344742AbjJYAXv (ORCPT + 99 others); Tue, 24 Oct 2023 20:23:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344718AbjJYAXu (ORCPT ); Tue, 24 Oct 2023 20:23:50 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5D3B118 for ; Tue, 24 Oct 2023 17:23:48 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50297C433C7; Wed, 25 Oct 2023 00:23:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698193428; bh=OOSuxQm14WNxh8bzblwazb72+Ue/BHDl6bfJlSn+a9Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rc0Stsvdmt6kheDfreXEeFxLVlzWJQWcB2vlMD4Dp02l0x0iYORV7WIctKw8B/LZl BxaLN8o4Cbml57dnciL8E3ar5DWH1n7i8PqZJy4QOqpCOL9TtkUtB8pHYsGu+4JWk3 NKAe4laxAuscY7eEjKLwz6RatJv+343h/EWf5rbxl/uZep0lq6l+t5WDRti0alsyBS wSCpZYAH38pMeCnRknhrI9xB9ciHaknbVsSdxOC3pVt0BRIizq6/y9fJN8ebgqjmTx ggzqXm03iSrSIk7ZPLpSPa9R2BRDeRJvUQ/GU6JE2B9hd4PzvaLTc46tM5NHTVUw8F 4DXnFafl/rh7Q== Date: Wed, 25 Oct 2023 08:23:45 +0800 From: Tzung-Bi Shih To: Lalith Rajendran Cc: LKML , Benson Leung , Guenter Roeck , Raul E Rangel , Tim Van Patten , chrome-platform@lists.linux.dev Subject: Re: [PATCH v3] platform/chrome: cros_ec_lpc: Separate host command and irq disable Message-ID: References: <20231024105820.v3.1.Icccaed152371dbab868295a6c83d257e8409cf2d@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231024105820.v3.1.Icccaed152371dbab868295a6c83d257e8409cf2d@changeid> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 24 Oct 2023 17:23:59 -0700 (PDT) On Tue, Oct 24, 2023 at 10:58:21AM -0500, Lalith Rajendran wrote: > +/** > + * cros_ec_suspend_prepare() - Handle a suspend prepare operation for the ChromeOS EC device. > + * @ec_dev: Device to suspend. > + * > + * This can be called by drivers to handle a suspend prepare stage of suspend. > + * > + * Return: 0 on success or negative error code. Please update accordingly to reflect the fact. > +/** > + * cros_ec_suspend_late() - Handle a suspend late operation for the ChromeOS EC device. > + * @ec_dev: Device to suspend. > + * > + * This can be called by drivers to handle a suspend late stage of suspend. > + * > + * Return: 0 on success or negative error code. Ditto. > + */ > +int cros_ec_suspend_late(struct cros_ec_device *ec_dev) > +{ > + cros_ec_disable_irq(ec_dev); > + return 0; > +} > +EXPORT_SYMBOL(cros_ec_suspend_late); > > +/** > + * cros_ec_suspend() - Handle a suspend operation for the ChromeOS EC device. > + * @ec_dev: Device to suspend. > + * > + * This can be called by drivers to handle a suspend event. > + * > + * Return: 0 on success or negative error code. Ditto. > +/** > + * cros_ec_resume_early() - Handle a resume early operation for the ChromeOS EC device. > + * @ec_dev: Device to resume. > + * > + * This can be called by drivers to handle a resume early stage of resume. > + * > + * Return: 0 on success or negative error code. Ditto. > + */ > +int cros_ec_resume_early(struct cros_ec_device *ec_dev) > +{ > + cros_ec_enable_irq(ec_dev); > + return 0; > +} > +EXPORT_SYMBOL(cros_ec_resume_early); > > +/** > + * cros_ec_resume() - Handle a resume operation for the ChromeOS EC device. > + * @ec_dev: Device to resume. > + * > + * This can be called by drivers to handle a resume event. > + * > + * Return: 0 on success or negative error code. Ditto.