From patchwork Mon Oct 24 23:48:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 13018391 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39301C38A2D for ; Tue, 25 Oct 2022 00:59:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229696AbiJYA72 (ORCPT ); Mon, 24 Oct 2022 20:59:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231325AbiJYA6l (ORCPT ); Mon, 24 Oct 2022 20:58:41 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D65B4BA49 for ; Mon, 24 Oct 2022 16:49:06 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id o4so10155635wrq.6 for ; Mon, 24 Oct 2022 16:49:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=INM0X9nAcAvNb9TJaNUKsyqVPgEHr1UlnG5q98DRrSI=; b=t5GVk+k5k+51LqxpwlfF1A3PiSI603YNrmNPV2GMBI1fqcXRXlT7FCTqMmWDzASAV7 JUrulPot3hiZ0lA84kB9v71cJDZg3Yuia0oc9owu5BKeHdVyDpehosmMfGkEqu7+yYYU /SMSVd3I7JvUE2/s+UsvuYlR9GC0BONbOSTAgpyNJUKW+THukQNbzzqzjy+KjxWriWtS x5p5wSaPlw7O5Aeyy0xDd+V2qUePfoCcLNtytZrAH/01i1SFeaKWqbGtMW02IjzwGfKq T9xJZkw2s4WU3mMtNr/HykQtRCd5xR7qD0A1Hknjz5hvzDe4K40P8dONgbtG8OoLajg5 Kghg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=INM0X9nAcAvNb9TJaNUKsyqVPgEHr1UlnG5q98DRrSI=; b=HAl3Y8ujmW3hTa6W/7ZsBIleoUaa9iIZ2U0BWbEFWcm5fDvr7GBMOefu5ynAwLRkHY euo2XhFjS3J2Mqryz81q74UOuFgZTRGj+S3xxyVazcqCSGtFND4/mgTf9NM83plHRFgX /wPofZhJxSDKuVQ6uyc+6RjBsPhjNt3Eb1fzUe7QvBjmbc6H/46uwijeSFDNGfQRwjjx ywLctChzRfNR4zarwhd/WPD9LwP0SrcZhFLzgrWbxXYAek6mpnF2K7lHS4pq6Kp8ymEv QsuQMrryAyonRIol4/FRbNK506dLUJt07rsoRrcC57lkLOa2rQ64GdKc0jNfdgJ+UxbY ML8w== X-Gm-Message-State: ACrzQf0ij3o8ZdsTD5tGPfTQElWXvBTfzS/xmVK+vELjRBEhLsIpxG/a /+TvEqUFRY4RFkgxJdcmqekTSQ== X-Google-Smtp-Source: AMsMyM735urZrNFZGTxRr30NpBKG66yBbTZicBVsvTjJL1NrHfL2Ka2HlE/TCdi9Pko9YlE46Glexg== X-Received: by 2002:a5d:5a82:0:b0:224:f744:1799 with SMTP id bp2-20020a5d5a82000000b00224f7441799mr23154371wrb.582.1666655344946; Mon, 24 Oct 2022 16:49:04 -0700 (PDT) Received: from localhost.localdomain (cpc76482-cwma10-2-0-cust629.7-3.cable.virginm.net. [86.14.22.118]) by smtp.gmail.com with ESMTPSA id iv13-20020a05600c548d00b003b4fdbb6319sm9783809wmb.21.2022.10.24.16.49.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 16:49:04 -0700 (PDT) From: Caleb Connolly To: Alex Elder , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jami Kettunen Cc: Caleb Connolly , Alex Elder , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH] net: ipa: don't configure IDLE_INDICATION on v3.1 Date: Tue, 25 Oct 2022 00:48:50 +0100 Message-Id: <20221024234850.4049778-1-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org IPA v3.1 doesn't support the IDLE_INDICATION_CFG register, this was causing a harmless splat in ipa_idle_indication_cfg(), add a version check to prevent trying to fetch this register on v3.1 Fixes: 6a244b75cfab ("net: ipa: introduce ipa_reg()") Signed-off-by: Caleb Connolly Reviewed-by: Alex Elder Tested-by: Jami Kettunen --- This will need to wait for Jami's Tested-by as I don't have any v3.1 hardware. --- drivers/net/ipa/ipa_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ipa/ipa_main.c b/drivers/net/ipa/ipa_main.c index 3461ad3029ab..49537fccf6ad 100644 --- a/drivers/net/ipa/ipa_main.c +++ b/drivers/net/ipa/ipa_main.c @@ -434,6 +434,9 @@ static void ipa_idle_indication_cfg(struct ipa *ipa, const struct ipa_reg *reg; u32 val; + if (ipa->version < IPA_VERSION_3_5_1) + return; + reg = ipa_reg(ipa, IDLE_INDICATION_CFG); val = ipa_reg_encode(reg, ENTER_IDLE_DEBOUNCE_THRESH, enter_idle_debounce_thresh);