Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7408172rwn; Tue, 13 Sep 2022 20:37:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7vi6wSVsGGvOaNN92f6RcJ+vcr3L3N9HttPaih5zNfpDU7FwYu5HDrfy3a+z6qR9ReUtJb X-Received: by 2002:a17:90b:3b47:b0:202:a81f:4059 with SMTP id ot7-20020a17090b3b4700b00202a81f4059mr2608910pjb.150.1663126630379; Tue, 13 Sep 2022 20:37:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663126630; cv=none; d=google.com; s=arc-20160816; b=KNztZqQDFZq/SHIm5USzglxMBRXJouLlDkArevNBZZHTSoVQ0yFybMh593pEST/p8S awQi6D0fe9A4oTa1snNGfAi5MIRsHXQUcbkP5kAv91qOjUyTc+vwbFMfJBcXztELhzAc AKeuRvJsHOe3oUHQptfli8AgEwaMgXrqkpaiS+SO+xjtUTtbRT3wS0ic5k0QC36cjzmN md9ty24G9WqCHuI6vijOAYxew8YqBCrWBTxde0VQi28PVpcdFWrxH1rQIQC3gN7AC6eq v6pESL1EIRARWOPmg+qYvfzpPK5jHJ0lPttCmOwZLof2GJPwZUteYYaAy28M4v5v3A1w tm3Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :mailrelay-external-outbound:dkim-signature; bh=MAnCWMks98LyDPmpB7QKeFpBRrauPOVZdpEgrzki1Ow=; b=OZ0P1pUVf4ej5+DBvxxlgwTuwuWlUX2b8OlxICWLg32Z/kevkwSMhvbfHBEIihdWR/ F2HziEIe4gO4+Yl776II0Rmy9nsCKq2A3uNbLUvnb39kifo56tY+m+xnglQKGoDsZGQe H9xbXLDZQKBDaA3xToHez44+zkGOaUyVS7Fcu14Qe2tpsabB71E/62mzHFUgEI18V4V9 cnpsL5dSkHMhSbuxh45x38itGFitfgJn+U0uZJqRauMLFHL3pYo7AyJticDjZ7BDkTHE mloCRuQ1v/Lu23382MQ4kUtqmwCuxhHlIj5fBZp4LiImnPzEc4qEXRk4VFwtJgJVjLBH p1Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infineon.com header.s=IFXMAIL header.b=Gp5AWrzb; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=infineon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q12-20020a056a00084c00b005467198e522si3376260pfk.62.2022.09.13.20.37.02; Tue, 13 Sep 2022 20:37:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@infineon.com header.s=IFXMAIL header.b=Gp5AWrzb; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=infineon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229559AbiINDcz (ORCPT + 64 others); Tue, 13 Sep 2022 23:32:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229710AbiINDcw (ORCPT ); Tue, 13 Sep 2022 23:32:52 -0400 Received: from smtp12.infineon.com (smtp12.infineon.com [217.10.52.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55F735AC5E for ; Tue, 13 Sep 2022 20:32:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infineon.com; i=@infineon.com; q=dns/txt; s=IFXMAIL; t=1663126372; x=1694662372; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kNR9wU5Vm6vcqABxsSLd05mCCgqaP8bKlj11QZd8VRk=; b=Gp5AWrzbATBxv3CTWNX0fXFCgKTfeUuPxWaFDEByQIyX2333j8f36eb5 Yjd0G86tNsefKMfjWYQ8sU/g3l2gell9n9DACLhIL4X+Vz+JMaym/g+48 r2lfa56SnPh78AJyxV8VIJKk0kBwiIxAibHe+4BisT9WCSWU2kzL94uPh A=; X-SBRS: None X-IronPort-AV: E=McAfee;i="6500,9779,10469"; a="317079782" X-IronPort-AV: E=Sophos;i="5.93,313,1654552800"; d="scan'208";a="317079782" Received: from unknown (HELO mucxv001.muc.infineon.com) ([172.23.11.16]) by smtp11.infineon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2022 05:31:47 +0200 Received: from MUCSE812.infineon.com (MUCSE812.infineon.com [172.23.29.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mucxv001.muc.infineon.com (Postfix) with ESMTPS for ; Wed, 14 Sep 2022 05:31:46 +0200 (CEST) Received: from MUCSE824.infineon.com (172.23.29.55) by MUCSE812.infineon.com (172.23.29.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Wed, 14 Sep 2022 05:31:46 +0200 Received: from mailrelay-cypress4.infineon.com (172.23.18.56) by SMTP-MailRelay3.infineon.com (172.23.29.16) with Microsoft SMTP Server id 15.2.986.29; Wed, 14 Sep 2022 05:31:46 +0200 mailrelay-external-outbound: True X-IronPort-AV: E=McAfee;i="6500,9779,10469"; a="255706539" X-IronPort-AV: E=Sophos;i="5.93,313,1654552800"; d="scan'208";a="255706539" Received: from unknown (HELO mail.spansion.com) ([10.248.30.8]) by mailrelay-cypress4.infineon.com with ESMTP; 14 Sep 2022 05:31:45 +0200 Received: from inf2.aus.cypress.com (10.248.80.6) by BIZ-EXHT102.spansion.com (10.248.30.8) with Microsoft SMTP Server id 14.3.498.0; Tue, 13 Sep 2022 22:31:44 -0500 Received: from iot-wlan-dev-u03.aus.cypress.com (iot-wlan-dev-u03 [10.248.81.193]) by inf2.aus.cypress.com (Postfix) with ESMTP id 6E106100348; Tue, 13 Sep 2022 22:31:44 -0500 (CDT) Received: by iot-wlan-dev-u03.aus.cypress.com (Postfix, from userid 27991) id 6B7DB980794; Tue, 13 Sep 2022 22:31:44 -0500 (CDT) From: Ian Lin To: CC: , , , , , , Subject: [PATCH 3/5] brcmfmac: increase dcmd maximum buffer size Date: Tue, 13 Sep 2022 22:31:00 -0500 Message-ID: <20220914033102.27893-4-ian.lin@infineon.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20220914033102.27893-1-ian.lin@infineon.com> References: <20220914033102.27893-1-ian.lin@infineon.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: "Lo(Double)Hsiang Lo" Increase dcmd maximum buffer size to match firmware configuration for new chips. Signed-off-by: Lo(Double)Hsiang Lo Signed-off-by: Chi-Hsien Lin Signed-off-by: Ian Lin --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c index 02a56edf08ba..9ec0c60b6da1 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c @@ -87,6 +87,8 @@ struct brcmf_proto_bcdc_header { * plus any space that might be needed * for bus alignment padding. */ +#define ROUND_UP_MARGIN 2048 + struct brcmf_bcdc { u16 reqid; u8 bus_header[BUS_HEADER_LEN]; @@ -470,7 +472,7 @@ int brcmf_proto_bcdc_attach(struct brcmf_pub *drvr) drvr->hdrlen += BCDC_HEADER_LEN + BRCMF_PROT_FW_SIGNAL_MAX_TXBYTES; drvr->bus_if->maxctl = BRCMF_DCMD_MAXLEN + - sizeof(struct brcmf_proto_bcdc_dcmd); + sizeof(struct brcmf_proto_bcdc_dcmd) + ROUND_UP_MARGIN; return 0; fail: -- 2.25.0