Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp900552iob; Wed, 4 May 2022 10:13:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzz8vFSsMLci/mp/C/O+7sNoZMua4KAgvYWkmMDcSB0FwRipGRyQDpXsAetR8iCwOX0OGgn X-Received: by 2002:a05:6402:4249:b0:427:cfac:fd43 with SMTP id g9-20020a056402424900b00427cfacfd43mr13860487edb.92.1651684418842; Wed, 04 May 2022 10:13:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651684418; cv=none; d=google.com; s=arc-20160816; b=xNAR5sos/uxYuDp3bnvQNB7ptoQ0eKD5YhP+h/KsqUE4ocybS7AYgBGCs7Joy/E36x j1oyviI8ZzLNjVRQH/SyVkQUf0uhPR0uBxq92tUESBEr7PGGwMEpwtCcAjiBllkbmo2i GuLFDBpxTJbNvPPSM3ibDCqFLnT1i9et1lbo7RCWrgARrf+liYGdlkoE2ud12jiSpiPp SC9Qc5IwSgFDAOyni+qIBUhO3vhCjfXU1WFSDBFBRpOwO3R9q6Hp/n/aojMToigBCmRY FiWlUtTpY5k/t94FMFJ71EdNJ9a9fg8V4WxoWDyaOyH9Otzg+bTCNRwJD7c27obBVlqs d2Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=9CGQpWnVnQo7MGm9xTU6pXaEdwhxYD8JsqZkos0xftA=; b=SaWBP/QX8OqjwkRG9u3kCxv1mCvx470NQCjdDUuurXdD93EDwvkMtNjN5/inDAua/l gMeZomAhCgPzlOau+CkSxln9eKAEPCpwouGo3QlUnaBp8kwpXePNFz7uuLPJWsVZsPHq GK1sj47DLQweQk6mZDDpy7HWhaI1+7xDJeSpW+TQzyqVkO82TeKCq5cCQFruAXedR1fs FcZvCyiCwguw5lOPslDbMejMGhS8DolgB/PRGf0w75XkZW58K2TBhzJtcufZRVneMn5I UTudcJkLv4qxoTh8gpWnkDWq839rAVcsTQDQLs6ZQJnELyKuXy3bvHga7GkPgAOrOAzc Leiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kCQSo7SP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g2-20020aa7d1c2000000b00425b6b8e8afsi15506813edp.399.2022.05.04.10.13.14; Wed, 04 May 2022 10:13:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kCQSo7SP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241737AbiECTKq (ORCPT + 99 others); Tue, 3 May 2022 15:10:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236659AbiECTKl (ORCPT ); Tue, 3 May 2022 15:10:41 -0400 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A61872ED5A for ; Tue, 3 May 2022 12:07:08 -0700 (PDT) Received: by mail-ot1-x336.google.com with SMTP id y14-20020a9d460e000000b00605ee347da1so9715935ote.8 for ; Tue, 03 May 2022 12:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=9CGQpWnVnQo7MGm9xTU6pXaEdwhxYD8JsqZkos0xftA=; b=kCQSo7SPBG4pQiMa+oHKXJei13jCGwLFxchqNHQRGju6m9P4564X0jrYHeKmrjEL9a d1gSyH+NSripPXyzr1fPlDh4U1uCVwPM7TxaJANEWLqz9KbQLvJXnTH8/nl4Kl4vokDg lbxqJhbPIfz8uGnJ7dWuf4cCePj0Vcfc2sL5E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=9CGQpWnVnQo7MGm9xTU6pXaEdwhxYD8JsqZkos0xftA=; b=HrK2X0rJv5nCayl1DEBTkrvaGzEgbkaFom2ZhOSItMInGb1nOAZaQ9tyq8LO48KoQy edpJbWK1WqpKQ7bIqZVKsyHAJWN5vlkH5Qzyx6tJzLMdNzfnWA6BJgbTykzkHb11Eoz2 Ny9f5uwj4XCdj2rrESfE4aeLdHvrQnYTAVhredmsB9YMhGMKrq8zSc8vgQ5jq653TLvL ZGBPpIfWkuLqkx2u+RfGgui8n+c/x/iphdxtSirRqXXHOhv4CHuxl+CwEYvz9EwUHxU/ k/dEUls219R/u5SASBxLB/C2I1neEAUvxx5oEkcNbhIxXjBeIE0K0aTX0wAq/J5SxCrc KnRw== X-Gm-Message-State: AOAM531iMLFbxpcR71kbambLF1avelsTF4qK5kfSQoQ1p8P9A3pQ7p7I mgr9fjpiCzBhbK92y7yspRWYH7WXj4vfjR0jFHz/FT3gwz4= X-Received: by 2002:a9d:20a1:0:b0:5e8:d2b6:f63f with SMTP id x30-20020a9d20a1000000b005e8d2b6f63fmr6157739ota.159.1651604828022; Tue, 03 May 2022 12:07:08 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 3 May 2022 15:07:07 -0400 MIME-Version: 1.0 In-Reply-To: References: <20220427013226.341209-1-swboyd@chromium.org> From: Stephen Boyd User-Agent: alot/0.10 Date: Tue, 3 May 2022 15:07:07 -0400 Message-ID: Subject: Re: [PATCH] interconnect: Restore sync state by ignoring ipa-virt in provider count To: Nathan Chancellor Cc: Georgi Djakov , linux-kernel@vger.kernel.org, patches@lists.linux.dev, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, Bjorn Andersson , Doug Anderson , Alex Elder , Taniya Das , Mike Tipton Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Nathan Chancellor (2022-05-02 08:18:24) > Hi Stephen, > > On Tue, Apr 26, 2022 at 06:32:26PM -0700, Stephen Boyd wrote: > > Ignore compatible strings for the IPA virt drivers that were removed in > > commits 2fb251c26560 ("interconnect: qcom: sdx55: Drop IP0 > > interconnects") and 2f3724930eb4 ("interconnect: qcom: sc7180: Drop IP0 > > interconnects") so that the sync state logic can kick in again. > > Otherwise all the interconnects in the system will stay pegged at max > > speeds because 'providers_count' is always going to be one larger than > > the number of drivers that will ever probe on sc7180 or sdx55. This > > fixes suspend on sc7180 and sdx55 devices when you don't have a > > devicetree patch to remove the ipa-virt compatible node. > > > > Cc: Bjorn Andersson > > Cc: Doug Anderson > > Cc: Alex Elder > > Cc: Taniya Das > > Cc: Mike Tipton > > Fixes: 2fb251c26560 ("interconnect: qcom: sdx55: Drop IP0 interconnects") > > Fixes: 2f3724930eb4 ("interconnect: qcom: sc7180: Drop IP0 interconnects") > > Signed-off-by: Stephen Boyd > > This patch as commit ad3cc2f05fda ("interconnect: Restore sync state by > ignoring ipa-virt in provider count") in -next causes the following > build warning when CONFIG_OF is disabled because of_match_node is just > NULL: > > drivers/interconnect/core.c:1090:28: warning: unused variable 'ignore_list' [-Wunused-variable] > const struct of_device_id ignore_list[] = { > ^ > 1 warning generated. > > Should it just be marked as __maybe_unused or is there a different fix > that would be more appropriate? Yeah I think __maybe_unused would work. The other approach would be to make of_match_node() a static inline that returns false with CONFIG_OF=n but that's probably a super large change. I hope the compiler would be able to optimize that whole thing away because the arguments are const pointers but I don't know.