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 X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7FE2C4320A for ; Mon, 26 Jul 2021 20:11:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 91DBE60F8F for ; Mon, 26 Jul 2021 20:11:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231598AbhGZTbN (ORCPT ); Mon, 26 Jul 2021 15:31:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbhGZTbL (ORCPT ); Mon, 26 Jul 2021 15:31:11 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DEC7C061760 for ; Mon, 26 Jul 2021 13:11:40 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id l18so13397126ioh.11 for ; Mon, 26 Jul 2021 13:11:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=A9jwJu5xi4wkqd+cosT28d+xkLhRgxnSiCg6LQzktSs=; b=LKgln55ijSKVjdSPI0gxwva38SOmK0EEOnSgR5IcEnR+RMnWprvkZpykuWTtlpWehN m2gB3J8TWwOCYR68khUeYJMjCJ7rv1Wc9Ggts83uWJHAmkP8TLqtCx+WoFqnG8qb8x8g viyzUnACK3Xxrsig4PnFiUhgllSkCXjCPDN5XQH7grNl6lzLBFv1kA+MCE/NyOTDmQgL szbmzgX7Mjbz9ibuG5gJYMq8fb3hqqbqZqlZw2BveIRNM2tJZoOOFQlQxLPn8MJAJCGF ip9kaiput6aTO6Gd09Jy4D8pIRtM4dxWVCFtuSCLUD1PVYX6SCANZC47QayZ9dPY0htN 5yOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=A9jwJu5xi4wkqd+cosT28d+xkLhRgxnSiCg6LQzktSs=; b=TuE8/lY9NyVlB9Pw0lHiGbiT+/I60uClJrGPBhsyL0vQUuvWRfjLMm14i5YEsbOQa1 JSFmiCLMU1s5vOyPKmdRP/7LpbPgjdAvcESTIVM5F/g5JziPyxxu1JA0IhiYHbb7vO/h WpT4jHPlmN5o8Ijx5wGJuYZfF8fnQFrOPMwTYL+Mj0RhucOLdn0G+iJ6AhdAtTPadH2q q/Rb7gI9rwqwvobEtmIbO7hcGZtJeeoXR0pS+sqTOi38rhH47hMZtMJLg76h+HBSMiUN ok97IcHQEh7YyL2/WKNt5WCY2gYKruKvfO7UG21fvTXcz0b8as3HDfdnZDTcb1bd+56W IjoQ== X-Gm-Message-State: AOAM533JkGnF3f9LIQZOizpCFHh8WpEfS561VNQhfuTRm7MueVKqAXYz ORJkHptkhusHtE5qeMg7RKGRuTqmERjdHw== X-Google-Smtp-Source: ABdhPJw1BgCjvrOnf80g7WL2/+i36ERMwpKh07clz3M1BhruqGOrW+uRI71vQ1uhvnLzLWUHcUqmpA== X-Received: by 2002:a02:ca58:: with SMTP id i24mr17910189jal.101.1627330299558; Mon, 26 Jul 2021 13:11:39 -0700 (PDT) Received: from presto.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id z10sm425964iln.8.2021.07.26.13.11.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 13:11:38 -0700 (PDT) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: bjorn.andersson@linaro.org, evgreen@chromium.org, cpratapa@codeaurora.org, subashab@codeaurora.org, elder@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 0/5] net: ipa: defer taking uC proxy clock Date: Mon, 26 Jul 2021 15:11:31 -0500 Message-Id: <20210726201136.502800-1-elder@linaro.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series rearranges some of the IPA initialization code. The first patch gets rid of two trivial setup and teardown functions, open-coding them in their callers instead. The second patch has memory regions get configured before endpoints. IPA interrupts do not depend on GSI being initialized. Therefore they can be initialized in the config phase rather than waiting for setup. The third patch moves this initialization earlier; memory regions must already be defined, so it's done after memory config. The microcontroller also has no dependency on GSI, though it does require IPA interrupts to be configured. The fourth patch moves microcontroller initialization so it too happens during the config phase rather than setup. Finally, we currently take a "proxy clock" for the microcontroller during the config phase, dropping it only after we learn the microcontroller is initialized. But microcontroller initialization is started by the modem, so there's no point in taking that clock reference before we know the modem has booted. So the last patch arranges to wait to take the "proxy clock" for the microcontroller until we know the modem is about to boot. -Alex Alex Elder (5): net: ipa: kill ipa_modem_setup() net: ipa: configure memory regions early net: ipa: set up IPA interrupts earlier net: ipa: set up the microcontroller earlier net: ipa: introduce ipa_uc_clock() drivers/net/ipa/ipa.h | 2 ++ drivers/net/ipa/ipa_interrupt.c | 8 ++--- drivers/net/ipa/ipa_interrupt.h | 8 ++--- drivers/net/ipa/ipa_main.c | 56 ++++++++++++++++++--------------- drivers/net/ipa/ipa_modem.c | 12 ++----- drivers/net/ipa/ipa_modem.h | 4 --- drivers/net/ipa/ipa_qmi.c | 6 ++-- drivers/net/ipa/ipa_qmi.h | 19 +++++++++++ drivers/net/ipa/ipa_uc.c | 52 +++++++++++++++++------------- drivers/net/ipa/ipa_uc.h | 22 ++++++++++--- 10 files changed, 112 insertions(+), 77 deletions(-) -- 2.27.0