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 3FC6FECAAD3 for ; Thu, 15 Sep 2022 13:41:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229622AbiIONlH (ORCPT ); Thu, 15 Sep 2022 09:41:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229814AbiIONlG (ORCPT ); Thu, 15 Sep 2022 09:41:06 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E704876B3 for ; Thu, 15 Sep 2022 06:41:02 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id AA2FD660201C; Thu, 15 Sep 2022 14:40:59 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1663249260; bh=zYYC92DvHJUObyUM5S/7ri6RSWuGzu/a+XAg0lAgeRM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=eB7zaRSdS+qOQmwskdo+APTfYt4q71qhd/MX+RIIc1gmR+YW48sflbJe+Kko5bsoO 6yimiqGBKD5Hj6XgXCI8qHsmV8v5AycFrPUGJRgo9DJvF0rhHfroVAtVpx5ppQAHvu 5SrBi1O6AXzZz9XC3gP8FUxPexUSXfuBLzYNGxWepBhJ4ZvCMOg64t2APWfH2WZpa+ tZttaheNq3u1kCEKcMiW/MmelW0O5EnoaTHcZde+Y8ab1CJt4/OyRPcWVFCSN9Awc3 af3HaWh3mE+QJ58OVhz4bfAgfuX3lYso+f4nxHeiXVgkBYNiRXM/ZlMwDCp74V6VLh eOzUf3bTtlazA== Message-ID: <8eca314f-c6b1-c1fa-4cad-772715de2ba1@collabora.com> Date: Thu, 15 Sep 2022 15:40:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH] wifi: mt76: mt7921s: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() Content-Language: en-US To: Deren Wu , Felix Fietkau , Lorenzo Bianconi Cc: Sean Wang , Soul Huang , YN Chen , Leon Yen , Eric-SY Chang , KM Lin , Robin Chiu , CH Yeh , Posh Sun , Stella Chang , Evelyn Tsai , Ryder Lee , Shayne Chen , linux-wireless , linux-mediatek References: From: AngeloGioacchino Del Regno In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Il 15/09/22 10:36, Deren Wu ha scritto: > From: Deren Wu > > Use the new DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to > handle the .suspend/.resume callbacks. The new macros allow suspend > and resume functions to be automatically dropped without any #ifdef > guards. > > Tested-by: YN Chen > Signed-off-by: Deren Wu Reviewed-by: AngeloGioacchino Del Regno