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=-6.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no 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 55D01C4363D for ; Tue, 6 Oct 2020 21:30:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C5CEF206BE for ; Tue, 6 Oct 2020 21:30:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GHikp9gt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727407AbgJFVa4 (ORCPT ); Tue, 6 Oct 2020 17:30:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727301AbgJFVa4 (ORCPT ); Tue, 6 Oct 2020 17:30:56 -0400 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66609C061755 for ; Tue, 6 Oct 2020 14:30:56 -0700 (PDT) Received: by mail-il1-x141.google.com with SMTP id q7so255344ile.8 for ; Tue, 06 Oct 2020 14:30:56 -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=BMsqqfJIL4fFlYLnqY+a4r1RHb+1tAuL+qe7bBh9m1M=; b=GHikp9gtOR5vwaEIdrJYP8nqy1dsU9d/Cfnb7FBFdOkO8ErSafqVoyW3eL+RLzLRVF ZjL+PmoFMPDgYZ8sbfv4Yln/o/cZIdOfaeFe460PRYOqE3BXAGUY5G2hFWcgXsG1Ixjw W43exqEsQUqWI92cKx3sD0ENDtEJQIuFqiVnmY5rAj1rDvY5DI4ijMz1fiK5aQ6C9i+a BFufl0KfiDrV2ehw5mTNyk9K4sGXI7j3mJqPtEWeYZZs2ewgfFmjUAPvRygmrYHrD4jr GZziTAGfAuTmE1dqH1gS+ISfpihRQXNeEYtq67xMuRggliDa3axZ89bSkqzAx6McOV86 4ZzQ== 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=BMsqqfJIL4fFlYLnqY+a4r1RHb+1tAuL+qe7bBh9m1M=; b=mEC59Rqi7LjTOd9xWxDqo+dIJ/QriYocQSRU0nZ/q0Dc4WnqW0hxyEab2MbYUx9oay CVvIi25uuZKoQerFNbWSVXzZ4AiHm6KWteymdzsvz5twkEoDBegYyI7Jp+UzdEMratAn UVJDo8tHVSn169Vnhshd5yBQO0Uu/VdWiYl0lb1EYlWeaFsVrLSTdGiG93y70NcFq1iw BchdhLgEt6yJjtjlh0Eaqr1EHPtPKdr+DweKptzJ9btrOQ88Jf6IkpDpMqHcubWjgtmL olkzrhXboL0w9TRbYWwM7wUuo47x2MM5IBunfY8YWAV9A2FVVBLMzxns3wyfRG+cYV42 yQBg== X-Gm-Message-State: AOAM531B+X/gqxrpZ5z0LepDb9oPffWyW51M/E8spgn/WJ7AotbHd1if 6gbBMMW6/Fsq8jSAHRwy11JtYA== X-Google-Smtp-Source: ABdhPJzNCel9QtHRenLw+gBXDP0q6l89iGgOsoQvr06aIYEdp0XfwA60DryeLCijTiPRRPkz4djr5Q== X-Received: by 2002:a92:2602:: with SMTP id n2mr194390ile.82.1602019855646; Tue, 06 Oct 2020 14:30:55 -0700 (PDT) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id z20sm2043215ior.2.2020.10.06.14.30.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2020 14:30:54 -0700 (PDT) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: evgreen@chromium.org, subashab@codeaurora.org, cpratapa@codeaurora.org, bjorn.andersson@linaro.org, mka@chromium.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net 0/2] net: ipa: non-setup bug fixes Date: Tue, 6 Oct 2020 16:30:45 -0500 Message-Id: <20201006213047.31308-1-elder@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series fixes two bugs that occur if the IPA driver has not completed its setup phase of initialization when an event occurs. One event is the crash of the modem. If the modem crashes, ipa_modem_crashed() is called, and it performs various activities intended to put the IPA hardware into a good state before the modem reboots. But if the IPA setup has not completed, resources used for this cleanup will not be properly initialized. So we must skip doing this activity if we have not completed setup. Similarly, if a system suspend is initiated but IPA setup has not completed, the processing done in ipa_endpoint_suspend() should be avoided. And a subsequent system resume should also avoid resuming endpoints that have not been initialized by IPA setup. -Alex Alex Elder (2): net: ipa: only clear hardware state if setup has completed net: ipa: skip suspend/resume activities if not set up drivers/net/ipa/ipa_endpoint.c | 6 ++++++ drivers/net/ipa/ipa_modem.c | 3 +++ 2 files changed, 9 insertions(+) -- 2.20.1