From patchwork Tue Dec 1 19:58:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 335147 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp417645ilb; Tue, 1 Dec 2020 12:00:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWxGZahA8zEwQAqHa4KNtpE2ADoSVkkClxKvGDXL8KXlNS81bXgwfZsz7y3QJi7lpmjrdv X-Received: by 2002:a2e:9a59:: with SMTP id k25mr2231226ljj.48.1606852838435; Tue, 01 Dec 2020 12:00:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606852838; cv=none; d=google.com; s=arc-20160816; b=tXimCa1nnen5AjCEk3vspiQn81o4Ss98034G4OOH08jPZyEks8KPWmti4h1zhU4I/y JwVnQ4XPjUCxQ33u2gCiiW35v8JH4J/fQAFUbJ38MgzashVA2bAnRMnhmIg+Z/Wytp4G kPadnVuPAa6fX9Vumx0fbgAK8vzZBSbfkdpqy//Od1FVW+tPtMmelQg+MMl1KkAQirLX X0RE2VEVxHEbdIq3MeDFvbVggRmSvFlm/wEG5Tz96E+/qPR0z4/WlAUP8yHvBydVyJMF kpXrymjhaN+QTyiE+EsjBLLp1iBnR5KjqEsmoYtD532Gq3ckpW40MVak8p2JNsR5r7RS X+Pg== 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=T/kUmZerIKMIo3G0Zg7dzOfj7yPRKwMEiqeAhWfpzbI=; b=vT9kezA6QmXFnqu/LANUIPac9PHtIo3DT2hzI/gyBayj5HnEUiqdQFUjYyfIM9VqLV hYH0gjWgGaD+jS1s3hdh66VHJr2D5PiKGsslLNw4cEiexZ3oljnNfR1I9h2AeMmg844v RLDPpfPO7mDRthTT+yWqPbJlVEPfcS1Yw4LeBOlkQBFHmhBZdA9gsYxfAM3OIJiYWRRQ E5lBXoqC/CwCv8L3INb2gZSxPNQ76FURiwoKw3a6wGcTU9xQbKL4H9oWL4/X2+h2OEbD UQjrTVGOOdQGrew+cho4i9SO/KobJMSQu6YRQ0/SyQyOk0j8j3eULCzAOO560oVrD2ej refg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZG11Ti5r; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 x1si382242ljd.462.2020.12.01.12.00.38; Tue, 01 Dec 2020 12:00:38 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-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=ZG11Ti5r; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 S2404412AbgLAT7z (ORCPT + 8 others); Tue, 1 Dec 2020 14:59:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404393AbgLAT7t (ORCPT ); Tue, 1 Dec 2020 14:59:49 -0500 Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B010C0613D4 for ; Tue, 1 Dec 2020 11:59:03 -0800 (PST) Received: by mail-io1-xd43.google.com with SMTP id t8so2914290iov.8 for ; Tue, 01 Dec 2020 11:59:03 -0800 (PST) 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=T/kUmZerIKMIo3G0Zg7dzOfj7yPRKwMEiqeAhWfpzbI=; b=ZG11Ti5rGFFD7LKyI1SjbcVJ6b/VJCcMu6PebA6MhY3vvMIxuei1hAKszHkUMX36jo d4OSmeSrI4A5o4Y34FKP5JBTmte4JXGYw2AuOlFVpkPOXj1FrnjA3/sQ+KrnyFd0MRLp ZYUXK2zylpW6hodPknh1OGItya6H7zNTys4COZgfZnGExV1RjmzAwFJBSBUftgp04Vck /6gTDazXjidKRDI6+yWSITEiNFyLrOi3q4byayB9q8vQhs2GnRVzPCGXnf5FjkxkuLXJ 2SCbDoo+qFQOJSc1qAbXcJ5oY9Ry165SeyJCI9HpgZgWFAzLD2nzlFer9+e9bL1JAklq KeyQ== 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=T/kUmZerIKMIo3G0Zg7dzOfj7yPRKwMEiqeAhWfpzbI=; b=T5omL30myqMYjs/Ukg37cTqYVH8gPp2AyHXka+Sj6MiTWattbaYeOBwQ86pQrSRDgJ KSrlegAR12qBj5vUBCeHHXJpUbee3y63x4+jOAIjApEljGtiJnxiC9bI5Zh7OA4ohdA8 dEEAMQf3/zVj3q0N1MsYULmiQiBvIaWXQ9rrESq9T2r+g/6PTCAA8nYDRUyu7rPbI/R6 LuXAlUQcut7GWsYhWHzw/tIM4y4iea/sYhyXfAxs4+6B/QULA4qsntFVodzbbnFcYBuR n3IjuO26OOTt1NHl4ZiPF4nIUuoRjGg3QxMYDl9zT4z7IEqyWC4j3brhgUzgq/+JEVfw xDgQ== X-Gm-Message-State: AOAM531zpMZmO/t+AyeD+itQ3VHBKDfzgPaD0Wx9AlNrRHSdX+tuv4SH MBtwfbrd1yzWlOM2M1t8quLq1g== X-Received: by 2002:a05:6602:6c9:: with SMTP id n9mr3731666iox.112.1606852742976; Tue, 01 Dec 2020 11:59:02 -0800 (PST) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id j12sm318041ioq.24.2020.12.01.11.59.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 11:59:02 -0800 (PST) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: jonathanh@nvidia.com, evgreen@chromium.org, cpratapa@codeaurora.org, bjorn.andersson@linaro.org, subashab@codeaurora.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next] net: ipa: fix build-time bug in ipa_hardware_config_qsb() Date: Tue, 1 Dec 2020 13:58:55 -0600 Message-Id: <20201201195855.30735-1-elder@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Jon Hunter reported observing a build bug in the IPA driver: https://lore.kernel.org/netdev/5b5d9d40-94d5-5dad-b861-fd9bef8260e2@nvidia.com The problem is that the QMB0 max read value set for IPA v4.5 (16) is too large to fit in the 4-bit field. This is a quick fix to resolve the build bug; this might change again in the future if I learn there is a better value to use. Reported-by: Jon Hunter Tested-by: Jon Hunter Signed-off-by: Alex Elder --- drivers/net/ipa/ipa_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 diff --git a/drivers/net/ipa/ipa_main.c b/drivers/net/ipa/ipa_main.c index f25bcfe51dd4b..192f9d6bccf19 100644 --- a/drivers/net/ipa/ipa_main.c +++ b/drivers/net/ipa/ipa_main.c @@ -280,7 +280,7 @@ static void ipa_hardware_config_qsb(struct ipa *ipa) max1 = 0; /* PCIe not present */ break; case IPA_VERSION_4_5: - max0 = 16; + max0 = 15; break; } val = u32_encode_bits(max0, GEN_QMB_0_MAX_READS_FMASK);