Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp265909ybz; Fri, 17 Apr 2020 00:24:34 -0700 (PDT) X-Google-Smtp-Source: APiQypJId1tLgw10WpsC5SIoNcUGbSsB5OeXVNafxI5GWzajhVXNymbjpWf7Qz013iMfWarlea3x X-Received: by 2002:a17:906:288b:: with SMTP id o11mr1772245ejd.237.1587108274685; Fri, 17 Apr 2020 00:24:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587108274; cv=none; d=google.com; s=arc-20160816; b=ETwSJcvCPhvtR4H2i8lynFRm9hAbYdLQThfu5FvU9ISDGSJa+7hmgRHuB7uO2L0rZQ XH9gHuPA5cMnjDQnX/XXZnwgjuhs5Pkqb+hB1CUSVtnR2Pqvr1VSAkK66MEBDCfgeIwT SOnyVH3VentOBNVg6ejmJmy8w6w8Dng6ODc6ZZvaYpKXG8Lgq2PDVyA8n9ljpVL2/Mo+ SVdP/FzRNffcuoke/I5GFEg8LhuD81SKmoR43GQOW7bP0BnGSL9Xxe8gKkE4ytFvFQA9 cAsdBS7eXFahSkTsM3JG/0ta8hID0X4zJROH5286sdatxbbQf5g7NiYcL6Q4TfvKXbQb dNCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=rA7iAexd4wP+UbyJuh7JwfZi1usnt0xjffk5Mpiz7Yk=; b=AOUNYeq2VbsYtphXWwI6ksTbr4QqaE45GjYqgCllU5YkpD16rqq6lwJDmocCwYDzIt RHXfIEV19mOaLKzbc8Ep1zvUgx5A0uknJByLn5XzwpqArTtjXcQyub3lVeefKFUYwMsd 6UknKeEkXA9oe3dTMtmIROWJWBUn3X0acH2oI5g/sSLiW7KTI3P3Bz/10qDq5eB9EuWM p3ZDyPSMTY+LHwTiFvblXFPalQq7hJEL9MDuvR81NCbqjfrP3qx6z+skLShAu6k/vy3+ kvNTa4CUBjJowyZlWiNRPATwLRRPTK2aPEH6C+oJpfD54dylQxO53eUNVMfQBYZX5BWZ s+xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="m5JF8Y/O"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce22si14214062edb.145.2020.04.17.00.24.10; Fri, 17 Apr 2020 00:24:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="m5JF8Y/O"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728652AbgDQHXu (ORCPT + 99 others); Fri, 17 Apr 2020 03:23:50 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:18791 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728419AbgDQHXu (ORCPT ); Fri, 17 Apr 2020 03:23:50 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1587108229; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=rA7iAexd4wP+UbyJuh7JwfZi1usnt0xjffk5Mpiz7Yk=; b=m5JF8Y/OeXSdTqKExy/+PYshrvHcxX4sMK/xocfSePeVHD6v/Rg01HtmrYqoqhEYLGOoPTcg BIoe36iyxUdaerpUfHUyhX88J47z/qJxqSpTObJv6HbnwPRI5CHaviU2yrs2Yp9OhuA7FXLL m34wMHfJNN9natdK5nevi0Dtveg= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e995981.7f330a838688-smtp-out-n05; Fri, 17 Apr 2020 07:23:45 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 11A0BC433CB; Fri, 17 Apr 2020 07:23:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: wgong) by smtp.codeaurora.org (Postfix) with ESMTPSA id A55EFC433F2; Fri, 17 Apr 2020 07:23:44 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 17 Apr 2020 15:23:44 +0800 From: Wen Gong To: Kalle Valo Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org Subject: Re: [PATCH] ath10k: improve power save performance for sdio In-Reply-To: <87y2quponn.fsf@kamboji.qca.qualcomm.com> References: <0101016ed9241282-73dd8b35-e2e5-4f37-9b50-cf2fb6524dfc-000000@us-west-2.amazonses.com> <877dyfr4fb.fsf@kamboji.qca.qualcomm.com> <87y2quponn.fsf@kamboji.qca.qualcomm.com> Message-ID: X-Sender: wgong@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-04-17 15:17, Kalle Valo wrote: > Wen Gong writes: > >> On 2020-04-16 20:38, Kalle Valo wrote: >>> Wen Gong writes: >>> >> >>> >>>> +static inline int ath10k_hif_set_mbox_sleep(struct ath10k *ar, >>>> bool enable_sleep) >>>> +{ >>>> + if (ar->hif.ops->set_mbox_sleep) >>>> + return ar->hif.ops->set_mbox_sleep(ar, enable_sleep); >>>> + return 0; >>>> +} >>> >>> I don't think we need to add another hif op for this. I sent v2 which >>> uses existing op. >> >> Yes, I see it. but I see it removed ath10k_hif_set_mbox_sleep in >> ath10k_core_start, expected it will not effect the patch's power save. > > So the idea is that the same functionality is still there as with your > version, the callpath is just a bit different: > > ath10k_core_start() > -> ath10k_hif_start_post() > -> ath10k_sdio_hif_start_post() > -> ath10k_sdio_set_mbox_sleep() > > But please do double check that I didn't miss anything. yes, I see this now, so it not miss in v2. @@ -1749,6 +1819,8 @@ static int ath10k_sdio_hif_start_post(struct ath10k *ar) ar_sdio->swap_mbox = false; } + ath10k_sdio_hif_set_mbox_sleep(ar, true); + return 0; }