Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2662653rdb; Mon, 4 Dec 2023 04:16:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFcSbZkFhJIqPXsjnw4wElxVgXJjdvSBd6V9OZsdVZCxsqo+RmPOWgivr6ADpNJnrfLtLH2 X-Received: by 2002:a17:90a:474e:b0:286:55f6:4311 with SMTP id y14-20020a17090a474e00b0028655f64311mr4320867pjg.19.1701692198829; Mon, 04 Dec 2023 04:16:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701692198; cv=none; d=google.com; s=arc-20160816; b=jpbUULG2tfqCOJEzTZO/LI7IG+as48Jfcu1GikB/W3SKhigjvnzV2Wz9+N5bvDu3+i SZvZszks3J11xJzP+gla6TGbUVc7NqDb0/9mYLVgmozp4W2yDAtux4SoJ2mKo+D0J/Ve lqSitjXPLIPFlL+pz6PdI7EYND8La194B7Lvdw2Iv/27baGVnkJD/iLwH8lNKWIPRJ1s hND4lk+sW7XKeVUipoAh3jpcAwxgFTG+geIoymh00Kfj6kZ/XaCbCRKizHnVQ6Ov35Tz TJ+DdtagijQSG2rRUtxz0tRJILcRMZ9lc51PMHjz3wSXywvEFVYOWW8fyJE3YFsAsM4k 1DPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=+Y+zGENVcnzhoscliHU+zgNY/Kp3swiQEJXLblhwy8A=; fh=NACLMhJzHToNGmJgCdNICPe+UXn9qtkYQ/IwuhaobWA=; b=NdeUuTtEGuAt7NU9RSMMDTDpvOXW1mmc/8DLyZeR+MjdjMxwEGOSL1m4n3uvumw19X UQcRNMKoy/4lT6ZsTaIlg5sGboT+M1Lp+mI9rYOtmKHNGzsEJv1L3jHOPuX1DtGOmKpH OBDg+MawDaHEGnoI8LiLIIyDZnstlb0BZTc6eO9A/0B7NDp2GjVmlYDc/xtwxGM0o2OW azFA7qL0Wvs5fv7i9MCBXcmmDaeHB2EV2q1TgnaHqUb6++EnuE15nrkHJH72fO2CNrb2 5OrSH7Udqy/CGm5L4Jg0deuWyXbLtOZS2bknpqNkWwyJVUFcjnArDumGKTsXY9Fh4Be3 SHbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DcEDU0RA; spf=pass (google.com: domain of linux-wireless+bounces-376-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-376-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id lj12-20020a17090b344c00b0028659d5fb6bsi5646914pjb.143.2023.12.04.04.16.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:16:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-376-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DcEDU0RA; spf=pass (google.com: domain of linux-wireless+bounces-376-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-376-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 439C9B20A43 for ; Mon, 4 Dec 2023 12:16:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 321DD23777; Mon, 4 Dec 2023 12:16:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DcEDU0RA" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F60623760; Mon, 4 Dec 2023 12:16:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61F13C433C7; Mon, 4 Dec 2023 12:16:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701692187; bh=fc/FTHJIR3OE8ibUODqU3UGV2wgertJeCOgaje1qPgA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=DcEDU0RATDwbEkEUo5QMJpTaaSeruSNmxpEF/b6F0PSPJItD4Hii6Gpn0HPB6DttL wgZeIvv3RFoMJ5SUjEZFQgLOxEnCsWG8tJTARCMJicm+K7xzSLXhstdd7nnaSMQ6Nf JcZMPAwPtCKMIHZkhxVrjsg8j2xG9USuYhsJGoyvd7NJbVYoekk7nMPBPgPqs1UGA+ 2yhOVxJ2LkUdGdrUS1CIfa084PImSYHs3h7rSKSerW0wWm4yP8yINoZ9IbgFksO0PO iPDggsbClUzBLp+1BWC9Gv3uIMqHfOHsswbsh8PP3yGm/tYGWC9/Rne2req1pk74Y3 xfG+h8lZWrsOQ== From: Kalle Valo To: Dmitry Baryshkov Cc: Jeff Johnson , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH] wifi: ath10k: Default to board.bin for legacy board data file References: <20230825202610.1580132-1-dmitry.baryshkov@linaro.org> <87pm3afjda.fsf@kernel.org> Date: Mon, 04 Dec 2023 14:16:24 +0200 In-Reply-To: (Dmitry Baryshkov's message of "Sat, 26 Aug 2023 16:56:43 +0300") Message-ID: <87plzmqi1z.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Dmitry Baryshkov writes: > On Sat, 26 Aug 2023 at 08:44, Kalle Valo wrote: >> >> Dmitry Baryshkov writes: >> >> > Default to 'board.bin' for the legacy board data file, in case the >> > hw_params array doesn't list hw-specific board data file name (e.g. for >> > WCN3990). >> > >> > Signed-off-by: Dmitry Baryshkov >> >> Could you provide more background _why_ this is needed. What are you >> trying to fix? > > Sure. For wcn3990 we do not have the > `ath10k_hw_params_list[].fw.board' set. So if the board data is not > present in `board-2.bin', the driver will skip looking into > `board.bin' and will error out. > > I had two options: either to set the `.fw.board' in > `ath10k_hw_params_list', or to provide this default. Granted that the > check for `fw.board' also prevents the `board-%s-%s.bin' lookup, I > opted for the second option. Ah, now I understand. > Maybe I should just set the .fw.board to "board.bin" and > .fw.board_size to 26328 (?) Yeah, I think that would be much better to set those fields for WCN3990. Please also include to the commit message the description you wrote above. I can't remember anymore why even have this struct ath10k_hw_params_fw::board field in the first, most likely due to some legacy reasons before we had board-2.bin. I suspect all the fields even contain the same "board.bin" string so in theory the field is not really needed. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches