linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] marvell: Fix firmware filenames for sd8977/sd8997 chipsets
@ 2020-06-03  8:22 Pali Rohár
  2020-06-03  8:22 ` [PATCH 1/4] mwifiex: Fix firmware filename for sd8977 chipset Pali Rohár
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Pali Rohár @ 2020-06-03  8:22 UTC (permalink / raw)
  To: Ganapathi Bhat, Amitkumar Karwar, Xinming Hu, Kalle Valo,
	Marek Behún
  Cc: linux-bluetooth, linux-kernel, linux-wireless,
	Hemantkumar Suthar, Rakesh Parmar, Zhaoyang Liu, Cathy Luo

This patch series fixes mwifiex and btmrvl drivers to load firmware for sd8977
and sd8997 chipsets from correct filename.

Both Marvell distribution package and linux-firmware repository [1] contain
firmware for these chipsets in files sdsd8977_combo_v2.bin/sdsd8997_combo_v4.bin.

Linux drivers mwifiex and btmrvl try to load firmware for these chipsets from
sd8977_uapsta.bin/sd8997_uapsta.bin files which obviously fails as these files
do not exist neither in linux-firmware [1] nor in Marvell distribution packages.

So the result is that Marvell sd8977 and sd8997 chipsets via mainline kernel
drivers (mwifiex and btmrvl) do not work out of box.

Each patch in this series fixes particular git commit which introduced usage
of incorrect firmware filename. Also each patch contains Fixes: line for easier
backporting to stable kernels.

mwifiex (1/4, 2/4) and btmrvl (3/4, 4/4) parts of this patch series can be
applied separately via wireless and bluetooth trees. I'm sending all four
patches in one patch series for easier review.

[1] - https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mrvl

Pali Rohár (4):
  mwifiex: Fix firmware filename for sd8977 chipset
  mwifiex: Fix firmware filename for sd8997 chipset
  btmrvl: Fix firmware filename for sd8977 chipset
  btmrvl: Fix firmware filename for sd8997 chipset

 drivers/bluetooth/btmrvl_sdio.c             | 8 ++++----
 drivers/net/wireless/marvell/mwifiex/sdio.h | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 1/4] mwifiex: Fix firmware filename for sd8977 chipset
  2020-06-03  8:22 [PATCH 0/4] marvell: Fix firmware filenames for sd8977/sd8997 chipsets Pali Rohár
@ 2020-06-03  8:22 ` Pali Rohár
  2020-06-03  9:18   ` [EXT] " Ganapathi Bhat
  2020-06-03  8:22 ` [PATCH 2/4] mwifiex: Fix firmware filename for sd8997 chipset Pali Rohár
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 11+ messages in thread
From: Pali Rohár @ 2020-06-03  8:22 UTC (permalink / raw)
  To: Ganapathi Bhat, Amitkumar Karwar, Xinming Hu, Kalle Valo,
	Marek Behún
  Cc: linux-bluetooth, linux-kernel, linux-wireless,
	Hemantkumar Suthar, Rakesh Parmar, Zhaoyang Liu, Cathy Luo

Firmware for sd8977 chipset is distributed by Marvell package and also as
part of the linux-firmware repository in filename sdsd8977_combo_v2.bin.

This patch fixes mwifiex driver to load correct firmware file for sd8977.

Fixes: 1a0f547831dce ("mwifiex: add support for sd8977 chipset")
Signed-off-by: Pali Rohár <pali@kernel.org>
---
 drivers/net/wireless/marvell/mwifiex/sdio.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.h b/drivers/net/wireless/marvell/mwifiex/sdio.h
index 71cd8629b28e..0cac2296ed53 100644
--- a/drivers/net/wireless/marvell/mwifiex/sdio.h
+++ b/drivers/net/wireless/marvell/mwifiex/sdio.h
@@ -36,7 +36,7 @@
 #define SD8897_DEFAULT_FW_NAME "mrvl/sd8897_uapsta.bin"
 #define SD8887_DEFAULT_FW_NAME "mrvl/sd8887_uapsta.bin"
 #define SD8801_DEFAULT_FW_NAME "mrvl/sd8801_uapsta.bin"
-#define SD8977_DEFAULT_FW_NAME "mrvl/sd8977_uapsta.bin"
+#define SD8977_DEFAULT_FW_NAME "mrvl/sdsd8977_combo_v2.bin"
 #define SD8987_DEFAULT_FW_NAME "mrvl/sd8987_uapsta.bin"
 #define SD8997_DEFAULT_FW_NAME "mrvl/sd8997_uapsta.bin"
 
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 2/4] mwifiex: Fix firmware filename for sd8997 chipset
  2020-06-03  8:22 [PATCH 0/4] marvell: Fix firmware filenames for sd8977/sd8997 chipsets Pali Rohár
  2020-06-03  8:22 ` [PATCH 1/4] mwifiex: Fix firmware filename for sd8977 chipset Pali Rohár
@ 2020-06-03  8:22 ` Pali Rohár
  2020-06-03  9:18   ` [EXT] " Ganapathi Bhat
  2020-06-03  8:22 ` [PATCH 3/4] btmrvl: Fix firmware filename for sd8977 chipset Pali Rohár
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 11+ messages in thread
From: Pali Rohár @ 2020-06-03  8:22 UTC (permalink / raw)
  To: Ganapathi Bhat, Amitkumar Karwar, Xinming Hu, Kalle Valo,
	Marek Behún
  Cc: linux-bluetooth, linux-kernel, linux-wireless,
	Hemantkumar Suthar, Rakesh Parmar, Zhaoyang Liu, Cathy Luo

Firmware for sd8997 chipset is distributed by Marvell package and also as
part of the linux-firmware repository in filename sdsd8997_combo_v4.bin.

This patch fixes mwifiex driver to load correct firmware file for sd8997.

Fixes: 6d85ef00d9dfe ("mwifiex: add support for 8997 chipset")
Signed-off-by: Pali Rohár <pali@kernel.org>
---
 drivers/net/wireless/marvell/mwifiex/sdio.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.h b/drivers/net/wireless/marvell/mwifiex/sdio.h
index 0cac2296ed53..8b476b007c5e 100644
--- a/drivers/net/wireless/marvell/mwifiex/sdio.h
+++ b/drivers/net/wireless/marvell/mwifiex/sdio.h
@@ -38,7 +38,7 @@
 #define SD8801_DEFAULT_FW_NAME "mrvl/sd8801_uapsta.bin"
 #define SD8977_DEFAULT_FW_NAME "mrvl/sdsd8977_combo_v2.bin"
 #define SD8987_DEFAULT_FW_NAME "mrvl/sd8987_uapsta.bin"
-#define SD8997_DEFAULT_FW_NAME "mrvl/sd8997_uapsta.bin"
+#define SD8997_DEFAULT_FW_NAME "mrvl/sdsd8997_combo_v4.bin"
 
 #define BLOCK_MODE	1
 #define BYTE_MODE	0
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 3/4] btmrvl: Fix firmware filename for sd8977 chipset
  2020-06-03  8:22 [PATCH 0/4] marvell: Fix firmware filenames for sd8977/sd8997 chipsets Pali Rohár
  2020-06-03  8:22 ` [PATCH 1/4] mwifiex: Fix firmware filename for sd8977 chipset Pali Rohár
  2020-06-03  8:22 ` [PATCH 2/4] mwifiex: Fix firmware filename for sd8997 chipset Pali Rohár
@ 2020-06-03  8:22 ` Pali Rohár
  2020-06-03  9:19   ` [EXT] " Ganapathi Bhat
  2020-06-03  8:22 ` [PATCH 4/4] btmrvl: Fix firmware filename for sd8997 chipset Pali Rohár
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 11+ messages in thread
From: Pali Rohár @ 2020-06-03  8:22 UTC (permalink / raw)
  To: Ganapathi Bhat, Amitkumar Karwar, Xinming Hu, Kalle Valo,
	Marek Behún
  Cc: linux-bluetooth, linux-kernel, linux-wireless,
	Hemantkumar Suthar, Rakesh Parmar, Zhaoyang Liu, Cathy Luo

Firmware for sd8977 chipset is distributed by Marvell package and also as
part of the linux-firmware repository in filename sdsd8977_combo_v2.bin.

This patch fixes mwifiex driver to load correct firmware file for sd8977.

Fixes: 8c57983bf7a79 ("Bluetooth: btmrvl: add support for sd8977 chipset")
Signed-off-by: Pali Rohár <pali@kernel.org>
---
 drivers/bluetooth/btmrvl_sdio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c
index 0f3a020703ab..7aa2c94720bc 100644
--- a/drivers/bluetooth/btmrvl_sdio.c
+++ b/drivers/bluetooth/btmrvl_sdio.c
@@ -328,7 +328,7 @@ static const struct btmrvl_sdio_device btmrvl_sdio_sd8897 = {
 
 static const struct btmrvl_sdio_device btmrvl_sdio_sd8977 = {
 	.helper         = NULL,
-	.firmware       = "mrvl/sd8977_uapsta.bin",
+	.firmware       = "mrvl/sdsd8977_combo_v2.bin",
 	.reg            = &btmrvl_reg_8977,
 	.support_pscan_win_report = true,
 	.sd_blksz_fw_dl = 256,
@@ -1831,6 +1831,6 @@ MODULE_FIRMWARE("mrvl/sd8787_uapsta.bin");
 MODULE_FIRMWARE("mrvl/sd8797_uapsta.bin");
 MODULE_FIRMWARE("mrvl/sd8887_uapsta.bin");
 MODULE_FIRMWARE("mrvl/sd8897_uapsta.bin");
-MODULE_FIRMWARE("mrvl/sd8977_uapsta.bin");
+MODULE_FIRMWARE("mrvl/sdsd8977_combo_v2.bin");
 MODULE_FIRMWARE("mrvl/sd8987_uapsta.bin");
 MODULE_FIRMWARE("mrvl/sd8997_uapsta.bin");
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 4/4] btmrvl: Fix firmware filename for sd8997 chipset
  2020-06-03  8:22 [PATCH 0/4] marvell: Fix firmware filenames for sd8977/sd8997 chipsets Pali Rohár
                   ` (2 preceding siblings ...)
  2020-06-03  8:22 ` [PATCH 3/4] btmrvl: Fix firmware filename for sd8977 chipset Pali Rohár
@ 2020-06-03  8:22 ` Pali Rohár
  2020-06-03  9:19   ` [EXT] " Ganapathi Bhat
  2020-06-03  9:17 ` [EXT] [PATCH 0/4] marvell: Fix firmware filenames for sd8977/sd8997 chipsets Ganapathi Bhat
  2020-06-03 17:47 ` Marcel Holtmann
  5 siblings, 1 reply; 11+ messages in thread
From: Pali Rohár @ 2020-06-03  8:22 UTC (permalink / raw)
  To: Ganapathi Bhat, Amitkumar Karwar, Xinming Hu, Kalle Valo,
	Marek Behún
  Cc: linux-bluetooth, linux-kernel, linux-wireless,
	Hemantkumar Suthar, Rakesh Parmar, Zhaoyang Liu, Cathy Luo

Firmware for sd8997 chipset is distributed by Marvell package and also as
part of the linux-firmware repository in filename sdsd8997_combo_v4.bin.

This patch fixes mwifiex driver to load correct firmware file for sd8997.

Fixes: f0ef67485f591 ("Bluetooth: btmrvl: add sd8997 chipset support")
Signed-off-by: Pali Rohár <pali@kernel.org>
---
 drivers/bluetooth/btmrvl_sdio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c
index 7aa2c94720bc..4c7978cb1786 100644
--- a/drivers/bluetooth/btmrvl_sdio.c
+++ b/drivers/bluetooth/btmrvl_sdio.c
@@ -346,7 +346,7 @@ static const struct btmrvl_sdio_device btmrvl_sdio_sd8987 = {
 
 static const struct btmrvl_sdio_device btmrvl_sdio_sd8997 = {
 	.helper         = NULL,
-	.firmware       = "mrvl/sd8997_uapsta.bin",
+	.firmware       = "mrvl/sdsd8997_combo_v4.bin",
 	.reg            = &btmrvl_reg_8997,
 	.support_pscan_win_report = true,
 	.sd_blksz_fw_dl = 256,
@@ -1833,4 +1833,4 @@ MODULE_FIRMWARE("mrvl/sd8887_uapsta.bin");
 MODULE_FIRMWARE("mrvl/sd8897_uapsta.bin");
 MODULE_FIRMWARE("mrvl/sdsd8977_combo_v2.bin");
 MODULE_FIRMWARE("mrvl/sd8987_uapsta.bin");
-MODULE_FIRMWARE("mrvl/sd8997_uapsta.bin");
+MODULE_FIRMWARE("mrvl/sdsd8997_combo_v4.bin");
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* RE: [EXT] [PATCH 0/4] marvell: Fix firmware filenames for sd8977/sd8997 chipsets
  2020-06-03  8:22 [PATCH 0/4] marvell: Fix firmware filenames for sd8977/sd8997 chipsets Pali Rohár
                   ` (3 preceding siblings ...)
  2020-06-03  8:22 ` [PATCH 4/4] btmrvl: Fix firmware filename for sd8997 chipset Pali Rohár
@ 2020-06-03  9:17 ` Ganapathi Bhat
  2020-06-03 17:47 ` Marcel Holtmann
  5 siblings, 0 replies; 11+ messages in thread
From: Ganapathi Bhat @ 2020-06-03  9:17 UTC (permalink / raw)
  To: Pali Rohár, Amitkumar Karwar, Xinming Hu, Kalle Valo,
	Marek Behún
  Cc: linux-bluetooth, linux-kernel, linux-wireless,
	Hemantkumar Suthar, Rakesh Parmar, Zhaoyang Liu, Cathy Luo

Hi Pali,

> This patch series fixes mwifiex and btmrvl drivers to load firmware for
> sd8977 and sd8997 chipsets from correct filename.

Thanks you for the changes, I will ack each patch;

Regards,
Ganapathi


^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: [EXT] [PATCH 2/4] mwifiex: Fix firmware filename for sd8997 chipset
  2020-06-03  8:22 ` [PATCH 2/4] mwifiex: Fix firmware filename for sd8997 chipset Pali Rohár
@ 2020-06-03  9:18   ` Ganapathi Bhat
  0 siblings, 0 replies; 11+ messages in thread
From: Ganapathi Bhat @ 2020-06-03  9:18 UTC (permalink / raw)
  To: Pali Rohár, Amitkumar Karwar, Xinming Hu, Kalle Valo,
	Marek Behún
  Cc: linux-bluetooth, linux-kernel, linux-wireless,
	Hemantkumar Suthar, Rakesh Parmar, Zhaoyang Liu, Cathy Luo

Acked-by: Ganapathi Bhat <ganapathi.bhat@nxp.com>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: [EXT] [PATCH 1/4] mwifiex: Fix firmware filename for sd8977 chipset
  2020-06-03  8:22 ` [PATCH 1/4] mwifiex: Fix firmware filename for sd8977 chipset Pali Rohár
@ 2020-06-03  9:18   ` Ganapathi Bhat
  0 siblings, 0 replies; 11+ messages in thread
From: Ganapathi Bhat @ 2020-06-03  9:18 UTC (permalink / raw)
  To: Pali Rohár, Amitkumar Karwar, Xinming Hu, Kalle Valo,
	Marek Behún
  Cc: linux-bluetooth, linux-kernel, linux-wireless,
	Hemantkumar Suthar, Rakesh Parmar, Zhaoyang Liu, Cathy Luo

Acked-by: Ganapathi Bhat <ganapathi.bhat@nxp.com>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: [EXT] [PATCH 3/4] btmrvl: Fix firmware filename for sd8977 chipset
  2020-06-03  8:22 ` [PATCH 3/4] btmrvl: Fix firmware filename for sd8977 chipset Pali Rohár
@ 2020-06-03  9:19   ` Ganapathi Bhat
  0 siblings, 0 replies; 11+ messages in thread
From: Ganapathi Bhat @ 2020-06-03  9:19 UTC (permalink / raw)
  To: Pali Rohár, Amitkumar Karwar, Xinming Hu, Kalle Valo,
	Marek Behún
  Cc: linux-bluetooth, linux-kernel, linux-wireless,
	Hemantkumar Suthar, Rakesh Parmar, Zhaoyang Liu, Cathy Luo

Acked-by: Ganapathi Bhat <ganapathi.bhat@nxp.com>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: [EXT] [PATCH 4/4] btmrvl: Fix firmware filename for sd8997 chipset
  2020-06-03  8:22 ` [PATCH 4/4] btmrvl: Fix firmware filename for sd8997 chipset Pali Rohár
@ 2020-06-03  9:19   ` Ganapathi Bhat
  0 siblings, 0 replies; 11+ messages in thread
From: Ganapathi Bhat @ 2020-06-03  9:19 UTC (permalink / raw)
  To: Pali Rohár, Amitkumar Karwar, Xinming Hu, Kalle Valo,
	Marek Behún
  Cc: linux-bluetooth, linux-kernel, linux-wireless,
	Hemantkumar Suthar, Rakesh Parmar, Zhaoyang Liu, Cathy Luo

Acked-by: Ganapathi Bhat <ganapathi.bhat@nxp.com>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 0/4] marvell: Fix firmware filenames for sd8977/sd8997 chipsets
  2020-06-03  8:22 [PATCH 0/4] marvell: Fix firmware filenames for sd8977/sd8997 chipsets Pali Rohár
                   ` (4 preceding siblings ...)
  2020-06-03  9:17 ` [EXT] [PATCH 0/4] marvell: Fix firmware filenames for sd8977/sd8997 chipsets Ganapathi Bhat
@ 2020-06-03 17:47 ` Marcel Holtmann
  5 siblings, 0 replies; 11+ messages in thread
From: Marcel Holtmann @ 2020-06-03 17:47 UTC (permalink / raw)
  To: Pali Rohár
  Cc: Ganapathi Bhat, Amitkumar Karwar, Xinming Hu, Kalle Valo,
	Marek Behún, Bluez mailing list, linux-kernel,
	linux-wireless, Hemantkumar Suthar, Rakesh Parmar, Zhaoyang Liu,
	Cathy Luo

Hi Pali,

> This patch series fixes mwifiex and btmrvl drivers to load firmware for sd8977
> and sd8997 chipsets from correct filename.
> 
> Both Marvell distribution package and linux-firmware repository [1] contain
> firmware for these chipsets in files sdsd8977_combo_v2.bin/sdsd8997_combo_v4.bin.
> 
> Linux drivers mwifiex and btmrvl try to load firmware for these chipsets from
> sd8977_uapsta.bin/sd8997_uapsta.bin files which obviously fails as these files
> do not exist neither in linux-firmware [1] nor in Marvell distribution packages.
> 
> So the result is that Marvell sd8977 and sd8997 chipsets via mainline kernel
> drivers (mwifiex and btmrvl) do not work out of box.
> 
> Each patch in this series fixes particular git commit which introduced usage
> of incorrect firmware filename. Also each patch contains Fixes: line for easier
> backporting to stable kernels.
> 
> mwifiex (1/4, 2/4) and btmrvl (3/4, 4/4) parts of this patch series can be
> applied separately via wireless and bluetooth trees. I'm sending all four
> patches in one patch series for easier review.
> 
> [1] - https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mrvl
> 
> Pali Rohár (4):
>  mwifiex: Fix firmware filename for sd8977 chipset
>  mwifiex: Fix firmware filename for sd8997 chipset
>  btmrvl: Fix firmware filename for sd8977 chipset
>  btmrvl: Fix firmware filename for sd8997 chipset
> 
> drivers/bluetooth/btmrvl_sdio.c             | 8 ++++----
> drivers/net/wireless/marvell/mwifiex/sdio.h | 4 ++--
> 2 files changed, 6 insertions(+), 6 deletions(-)

all 4 patches have been applied to bluetooth-next tree.

Regards

Marcel


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-06-03 17:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-03  8:22 [PATCH 0/4] marvell: Fix firmware filenames for sd8977/sd8997 chipsets Pali Rohár
2020-06-03  8:22 ` [PATCH 1/4] mwifiex: Fix firmware filename for sd8977 chipset Pali Rohár
2020-06-03  9:18   ` [EXT] " Ganapathi Bhat
2020-06-03  8:22 ` [PATCH 2/4] mwifiex: Fix firmware filename for sd8997 chipset Pali Rohár
2020-06-03  9:18   ` [EXT] " Ganapathi Bhat
2020-06-03  8:22 ` [PATCH 3/4] btmrvl: Fix firmware filename for sd8977 chipset Pali Rohár
2020-06-03  9:19   ` [EXT] " Ganapathi Bhat
2020-06-03  8:22 ` [PATCH 4/4] btmrvl: Fix firmware filename for sd8997 chipset Pali Rohár
2020-06-03  9:19   ` [EXT] " Ganapathi Bhat
2020-06-03  9:17 ` [EXT] [PATCH 0/4] marvell: Fix firmware filenames for sd8977/sd8997 chipsets Ganapathi Bhat
2020-06-03 17:47 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).