Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3826212pxv; Mon, 26 Jul 2021 13:12:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZKOVdIo83dQdB8Wu95XlZSrOcfXG5HTyJKvVvUfaB2E3W0HSJVnqdrlMgJ/VRyCAppAXY X-Received: by 2002:a02:93a7:: with SMTP id z36mr17771655jah.112.1627330357199; Mon, 26 Jul 2021 13:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627330357; cv=none; d=google.com; s=arc-20160816; b=cu9KIOe4J7xTbVdvCDkWhb6fvWSQGk8DGKeApPd3GzuT72YJDKIEnAIWT2UepB63qE psXtchoRJ6yUPb2EUvJ83x/ImBWfQGs/kbb8HRQE1mxeTlpGfNCxI9Y6dQWW7qPA1c10 xqJuU2sE9B0q/QnQLhLlMGCgqYLHw7vbgmsgWNmjJA0baCLujzGRkxVDsDTO9nZHpl5P MWYiy+dYzY9s/p4XwxapS6BqUyqrW1PYqy56P/8gmkHqH0fleR0UukbnFfRj6ZxI6uTQ NX+tcw6e2y1Cu6/WBCLX8cJuDdT/5sw+B1oiVspO4QzoDGYFgi+c8Cwo9N2bZSTJRKHf QUdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=A9jwJu5xi4wkqd+cosT28d+xkLhRgxnSiCg6LQzktSs=; b=mfsq9y6+/IMgW8oDw4ejwzn2/95uMGctZy1ERtNK54n3ppK8yGJVEjuZrn7/ml6G01 ddWtc/iMwj5DG7pWDNnMhlqIes84M8MKcoRaVTNadrQwvXGYVNpFChbR+BzFznpc5IPg LkYv+uhoMFQQGCIZPK9v1tvgUDZ3RNoXbjst6hb/QXNEQ6QDks5C2kiOrTBvOryY9eRg FjtEOeWb7ddyRXKV5D5VDkLIzCsjG9hkcFYChn2Rd9cgpuzU3gJxlcI1rbL8lPkB/9xf owD60C4UOtmHIlSoC0gla/ekRsTkYGHbAtm7DvfYs4idN3rkcCLkL8bGuunXeFYblY++ o3VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LKgln55i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g5si793040ilk.74.2021.07.26.13.12.25; Mon, 26 Jul 2021 13:12:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LKgln55i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232117AbhGZTbM (ORCPT + 99 others); Mon, 26 Jul 2021 15:31:12 -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-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