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 DF6AFC4332F for ; Thu, 14 Dec 2023 03:09:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443071AbjLNDJk (ORCPT ); Wed, 13 Dec 2023 22:09:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230117AbjLNDJi (ORCPT ); Wed, 13 Dec 2023 22:09:38 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C29DB0 for ; Wed, 13 Dec 2023 19:09:45 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19CCFC433C8; Thu, 14 Dec 2023 03:09:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702523384; bh=xzN8VBpaQ+C7FVjwAk3uk6XkuZkz8OK0t7++aNp/cIM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nC+RhMcTfI/6+5mFEnRMg0ZdIKa7dY0hlVas3wsZuOWL4dp4qkeELxPuR3z0z+M0w XnLvoKtUCNSQbw8YLXWwmvhJLa7eb5rHfU+VXUd9Q+kVtosQ3yhZDlmAdwV2T5nMVV 6j0J2beZpq1bzBCSABWofyFdhI0wcbt/45kPk1Mdovuxj95c5YMMl/TswoWh/Pj89J 42aJkUJBMovQJzuZYkaWMG4/BtPiTozdNRA+n2YOyF2irlRvEehsr4gKR4zatKEYrQ 7DK91asMXsHWtdZSyOE6TwJZX53lZ1kPlpx3N5mcmtQvyd6N8QzPBuylQoPrVBPKgs Fnf129/eaGwwg== Date: Thu, 14 Dec 2023 11:09:41 +0800 From: Tzung-Bi Shih To: Mark Hasemeyer Cc: LKML , Raul Rangel , Benson Leung , Bhanu Prakash Maiya , Chen-Yu Tsai , Guenter Roeck , Prashant Malani , Rob Barnes , chrome-platform@lists.linux.dev Subject: Re: [PATCH v1 6/6] platform/chrome: cros_ec: Use PM subsystem to manage wakeirq Message-ID: References: <20231213110009.v1.1.Ifd0903f1c351e84376d71dbdadbd43931197f5ea@changeid> <20231213110009.v1.6.Ieee574a0e94fbaae01fd6883ffe2ceeb98d7df28@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231213110009.v1.6.Ieee574a0e94fbaae01fd6883ffe2ceeb98d7df28@changeid> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 13, 2023 at 11:00:24AM -0700, Mark Hasemeyer wrote: > The cros ec driver is manually managing the wake irq by calling > enable_irq_wake/disable_irq_wake during suspend/resume. > > Modify the driver to use the power management subsystem to manage the > wakeirq. > > The wake capability of the interrupt is provided by the underlying > firmware/device tree. Some Chromebooks rely solely on the ec_sync pin to > wake the AP but they do not specify the interrupt as wake capable in the > ACPI _CRS or device tree. For LPC/ACPI based systems a DMI quirk is > introduced listing boards whose firmware should not be trusted to > provide correct wake capable values. > > The irq wake logic was added on an interface basis (lpc, spi, uart) as > opposed to adding it to cros_ec.c because the i2c subsystem already does > this work on our behalf. It looks to me the patch combines multiple changes. Please separate them into smaller pieces for reviewing easier. Another confusing about the patch subject: "6/6"? Is it a series? I don't see the cover letter.