can: m_can: Limit coalescing to peripheral instances
Subsystems (14)
Sasha Levin
maintainerPATCH 1/18 can: m_can: Limit coalescing to peripheral instances
From: Markus Schneider-Pargmann <[email protected]>
[ Upstream commit e443d15b949952ee039b731d5c35bcbafa300024 ]
The use of coalescing for non-peripheral chips in the current implementation is limited to non-existing. Disable the possibility to set coalescing through ethtool.
--- drivers/net/can/m_can/m_can.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-)
drivers/net/can/m_can/m_can.c +9 -7
@@ -2129,7 +2129,7 @@ static int m_can_set_coalesce(struct net_device *dev,return 0 ; } -static const struct ethtool_ops m_can_ethtool_ops = { +static const struct ethtool_ops m_can_ethtool_ops_coalescing = { .supported_coalesce_params =ETHTOOL_COALESCE_RX_USECS_IRQ |ETHTOOL_COALESCE_RX_MAX_FRAMES_IRQ | ETHTOOL_COALESCE_TX_USECS_IRQ |
@@ -2140,18 +2140,20 @@ static const struct ethtool_ops m_can_ethtool_ops = { .set_coalesce = m_can_set_coalesce, }; -static const struct ethtool_ops m_can_ethtool_ops_polling = { +static const struct ethtool_ops m_can_ethtool_ops = { .get_ts_info = ethtool_op_get_ts_info, }; -static int register_m_can_dev (struct net_device *dev) +static int register_m_can_dev (struct m_can_classdev *cdev) { +struct net_device *dev = cdev->net; + dev->flags |=IFF_ECHO ;/* we support local echo */ dev->netdev_ops = &m_can_netdev_ops; -if (dev->irq) - dev->ethtool_ops = &m_can_ethtool_ops; +if (dev->irq && cdev->is_peripheral) + dev->ethtool_ops = &m_can_ethtool_ops_coalescing;else - dev->ethtool_ops = &m_can_ethtool_ops_polling; + dev->ethtool_ops = &m_can_ethtool_ops;return register_candev (dev); }
@@ -2337,7 +2339,7 @@ int m_can_class_register(struct m_can_classdev *cdev)if (ret) goto rx_offload_del; - ret =register_m_can_dev (cdev->net); + ret =register_m_can_dev (cdev);if (ret) {dev_err (cdev->dev,"registering %s failed (err=%d)\n" , cdev->net->name, ret);
Signature · 1 line
2.43.0
Sasha Levin
maintainerPATCH 2/18 can: mcp251xfd: mcp251xfd_ring_init(): check TX-coalescing configuration
From: Marc Kleine-Budde <[email protected]>
[ Upstream commit ac2b81eb8b2d104033560daea886ee84531e3d0a ]
When changing the interface from CAN-CC to CAN-FD mode the old coalescing parameters are re-used. This might cause problem, as the configured parameters are too big for CAN-FD mode.
During testing an invalid TX coalescing configuration has been seen. The problem should be been fixed in the previous patch, but add a safeguard here to ensure that the number of TEF coalescing buffers (if configured) is exactly the half of all TEF buffers.
--- drivers/net/can/spi/mcp251xfd/mcp251xfd-ring.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)
drivers/net/can/spi/mcp251xfd/mcp251xfd-ring.c +11 -3
@@ -289,7 +289,7 @@ int mcp251xfd_ring_init(struct mcp251xfd_priv *priv)const struct mcp251xfd_rx_ring *rx_ring;u16 base =0 , ram_used;u8 fifo_nr =1 ; -int i; +int err =0 , i;netdev_reset_queue (priv->ndev);
@@ -385,10 +385,18 @@ int mcp251xfd_ring_init(struct mcp251xfd_priv *priv)netdev_err (priv->ndev,"Error during ring configuration, using more RAM (%u bytes) than available (%u bytes).\n" , ram_used,MCP251XFD_RAM_SIZE ); -return -ENOMEM ; + err = -ENOMEM ; } -return 0 ; +if (priv->tx_obj_num_coalesce_irq && + priv->tx_obj_num_coalesce_irq *2 != priv->tx->obj_num) { +netdev_err (priv->ndev, +"Error during ring configuration, number of TEF coalescing buffers (%u) must be half of TEF buffers (%u).\n" , + priv->tx_obj_num_coalesce_irq, priv->tx->obj_num); + err = -EINVAL ; + } + +return err; }void mcp251xfd_ring_free (struct mcp251xfd_priv *priv)
Signature · 1 line
2.43.0
Sasha Levin
maintainerPATCH 3/18 ASoC: Intel: soc-acpi-cht: Make Lenovo Yoga Tab 3 X90F DMI match less strict
In reply to Sasha LevinFrom: Hans de Goede <[email protected]>
[ Upstream commit 839a4ec06f75cec8fec2cc5fc14e921d0c3f7369 ]
There are 2G and 4G RAM versions of the Lenovo Yoga Tab 3 X90F and it turns out that the 2G version has a DMI product name of "CHERRYVIEW D1 PLATFORM" where as the 4G version has "CHERRYVIEW C0 PLATFORM". The sys-vendor + product-version check are unique enough that the product-name check is not necessary.
Drop the product-name check so that the existing DMI match for the 4G RAM version also matches the 2G RAM version.
--- sound/soc/intel/common/soc-acpi-intel-cht-match.c | 1 - 1 file changed, 1 deletion(-)
sound/soc/intel/common/soc-acpi-intel-cht-match.c +0 -1
@@ -84,7 +84,6 @@ static const struct dmi_system_id lenovo_yoga_tab3_x90[] = {/* Lenovo Yoga Tab 3 Pro YT3-X90, codec missing from DSDT */ .matches = {DMI_MATCH (DMI_SYS_VENDOR ,"Intel Corporation" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"CHERRYVIEW D1 PLATFORM" ), DMI_MATCH(DMI_PRODUCT_VERSION, "Blade3-10A-001"), }, },
Signature · 1 line
2.43.0
Sasha Levin
maintainerPATCH 4/18 ASoC: intel: fix module autoloading
In reply to Sasha LevinFrom: Liao Chen <[email protected]>
[ Upstream commit ae61a3391088d29aa8605c9f2db84295ab993a49 ]
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table.
--- sound/soc/intel/keembay/kmb_platform.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/intel/keembay/kmb_platform.c +1 -0
@@ -814,6 +814,7 @@ static const struct of_device_id kmb_plat_of_match[] = { { .compatible = "intel,keembay-tdm", .data = &intel_kmb_tdm_dai}, {} }; +MODULE_DEVICE_TABLE (of, kmb_plat_of_match);static int kmb_plat_dai_probe (struct platform_device *pdev) {
Signature · 1 line
2.43.0
Sasha Levin
maintainerPATCH 5/18 ASoC: google: fix module autoloading
In reply to Sasha LevinFrom: Liao Chen <[email protected]>
[ Upstream commit 8e1bb4a41aa78d6105e59186af3dcd545fc66e70 ]
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table.
--- sound/soc/google/chv3-i2s.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/google/chv3-i2s.c +1 -0
@@ -322,6 +322,7 @@ static const struct of_device_id chv3_i2s_of_match[] = { { .compatible = "google,chv3-i2s" }, {}, }; +MODULE_DEVICE_TABLE (of, chv3_i2s_of_match);static struct platform_driver chv3_i2s_driver = { .probe = chv3_i2s_probe,
Signature · 1 line
2.43.0
Sasha Levin
maintainerPATCH 6/18 ASoC: tda7419: fix module autoloading
In reply to Sasha LevinFrom: Liao Chen <[email protected]>
[ Upstream commit 934b44589da9aa300201a00fe139c5c54f421563 ]
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table.
--- sound/soc/codecs/tda7419.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/codecs/tda7419.c +1 -0
@@ -623,6 +623,7 @@ static const struct of_device_id tda7419_of_match[] = { { .compatible = "st,tda7419" }, { }, }; +MODULE_DEVICE_TABLE (of, tda7419_of_match);static struct i2c_driver tda7419_driver = { .driver = {
Signature · 1 line
2.43.0
Sasha Levin
maintainerPATCH 7/18 ASoC: fix module autoloading
In reply to Sasha LevinFrom: Liao Chen <[email protected]>
[ Upstream commit 6ba20539ac6b12ea757b3bfe11adf8de1672d7b8 ]
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table.
--- sound/soc/codecs/chv3-codec.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/codecs/chv3-codec.c +1 -0
@@ -26,6 +26,7 @@ static const struct of_device_id chv3_codec_of_match[] = { { .compatible = "google,chv3-codec", }, { } }; +MODULE_DEVICE_TABLE (of, chv3_codec_of_match);static struct platform_driver chv3_codec_platform_driver = { .driver = {
Signature · 1 line
2.43.0
Sasha Levin
maintainerPATCH 8/18 ASoC: mediatek: mt8188-mt6359: Modify key
In reply to Sasha LevinFrom: Zhang Yi <[email protected]>
[ Upstream commit 5325b96769a5b282e330023e1d0881018e89e266 ]
In order to get the correct keys when using the ES8326.We will associate SND_JACK_BTN_1 to KEY_VOLUMEUP and SND_JACK_BTN_2 to KEY_VOLUMEDOWN when the ES8326 flag is recognized.
--- sound/soc/mediatek/mt8188/mt8188-mt6359.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-)
sound/soc/mediatek/mt8188/mt8188-mt6359.c +13 -4
@@ -734,6 +734,7 @@ static int mt8188_headset_codec_init(struct snd_soc_pcm_runtime *rtd)struct mtk_soc_card_data *soc_card_data =snd_soc_card_get_drvdata (rtd->card);struct snd_soc_jack *jack = &soc_card_data->card_data->jacks[MT8188_JACK_HEADSET ];struct snd_soc_component *component =snd_soc_rtd_to_codec (rtd,0 )->component; +struct mtk_platform_card_data *card_data = soc_card_data->card_data;int ret; ret = snd_soc_dapm_new_controls(&card->dapm, mt8188_nau8825_widgets,
@@ -762,10 +763,18 @@ static int mt8188_headset_codec_init(struct snd_soc_pcm_runtime *rtd)return ret; } -snd_jack_set_key (jack->jack,SND_JACK_BTN_0 ,KEY_PLAYPAUSE ); -snd_jack_set_key (jack->jack,SND_JACK_BTN_1 ,KEY_VOICECOMMAND ); -snd_jack_set_key (jack->jack,SND_JACK_BTN_2 ,KEY_VOLUMEUP ); -snd_jack_set_key (jack->jack,SND_JACK_BTN_3 ,KEY_VOLUMEDOWN ); +if (card_data->flags &ES8326_HS_PRESENT ) { +snd_jack_set_key (jack->jack,SND_JACK_BTN_0 ,KEY_PLAYPAUSE ); +snd_jack_set_key (jack->jack,SND_JACK_BTN_1 ,KEY_VOLUMEUP ); +snd_jack_set_key (jack->jack,SND_JACK_BTN_2 ,KEY_VOLUMEDOWN ); +snd_jack_set_key (jack->jack,SND_JACK_BTN_3 ,KEY_VOICECOMMAND ); + }else { +snd_jack_set_key (jack->jack,SND_JACK_BTN_0 ,KEY_PLAYPAUSE ); +snd_jack_set_key (jack->jack,SND_JACK_BTN_1 ,KEY_VOICECOMMAND ); +snd_jack_set_key (jack->jack,SND_JACK_BTN_2 ,KEY_VOLUMEUP ); +snd_jack_set_key (jack->jack,SND_JACK_BTN_3 ,KEY_VOLUMEDOWN ); + } + ret =snd_soc_component_set_jack (component, jack,NULL );if (ret) {
Signature · 1 line
2.43.0
Sasha Levin
maintainerPATCH 9/18 spi: spidev: Add an entry for elgin,jg10309-01
In reply to Sasha LevinFrom: Fabio Estevam <[email protected]>
[ Upstream commit 5f3eee1eef5d0edd23d8ac0974f56283649a1512 ]
The rv1108-elgin-r1 board has an LCD controlled via SPI in userspace. The marking on the LCD is JG10309-01.
Add the "elgin,jg10309-01" compatible string.
--- drivers/spi/spidev.c | 1 + 1 file changed, 1 insertion(+)
drivers/spi/spidev.c +1 -0
@@ -731,6 +731,7 @@ static int spidev_of_check(struct device *dev)static const struct of_device_id spidev_dt_ids[] = { { .compatible ="cisco,spi-petra" , .data = &spidev_of_check }, { .compatible ="dh,dhcom-board" , .data = &spidev_of_check }, + { .compatible ="elgin,jg10309-01" , .data = &spidev_of_check }, { .compatible ="lineartechnology,ltc2488" , .data = &spidev_of_check }, { .compatible ="lwn,bk4" , .data = &spidev_of_check }, { .compatible ="menlo,m53cpld" , .data = &spidev_of_check },
Signature · 1 line
2.43.0
Mark Brown
maintainerRe: [PATCH AUTOSEL 6.10 09/18] spi: spidev: Add an entry for elgin,jg10309-01
Quoted 8 lines · Sasha Levin
From: Fabio Estevam <[email protected]>
[ Upstream commit
5f3eee1eef5d0edd23d8ac0974f56283649a1512]The rv1108-elgin-r1 board has an LCD controlled via SPI in userspace. The marking on the LCD is JG10309-01.
Add the "elgin,jg10309-01" compatible string.
There's also 5478a4f7b94414def7b56d2f18bc2ed9b0f3f1f2.
Sasha Levin
maintainerRe: [PATCH AUTOSEL 6.10 09/18] spi: spidev: Add an entry for elgin,jg10309-01
Quoted 11 lines · Mark Brown
Quoted 8 lines · Sasha Levin
From: Fabio Estevam <[email protected]>
[ Upstream commit
5f3eee1eef5d0edd23d8ac0974f56283649a1512]The rv1108-elgin-r1 board has an LCD controlled via SPI in userspace. The marking on the LCD is JG10309-01.
Add the "elgin,jg10309-01" compatible string.
There's also
5478a4f7b94414def7b56d2f18bc2ed9b0f3f1f2.
I'll take it too, thanks!
Signature · 2 lines
Thanks, Sasha
Sasha Levin
maintainerPATCH 10/18 ASoC: amd: yc: Add a quirk for MSI Bravo 17 (D7VEK)
In reply to Sasha LevinFrom: Markuss Broks <[email protected]>
[ Upstream commit 283844c35529300c8e10f7a263e35e3c5d3580ac ]
MSI Bravo 17 (D7VEK), like other laptops from the family, has broken ACPI tables and needs a quirk for internal mic to work.
--- sound/soc/amd/yc/acp6x-mach.c | 7 +++++++ 1 file changed, 7 insertions(+)
sound/soc/amd/yc/acp6x-mach.c +7 -0
@@ -353,6 +353,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "Bravo 15 C7VF"), } }, + { + .driver_data = &acp6x_card, + .matches = { +DMI_MATCH (DMI_BOARD_VENDOR ,"Micro-Star International Co., Ltd." ), + DMI_MATCH(DMI_PRODUCT_NAME, "Bravo 17 D7VEK"), + } + }, { .driver_data = &acp6x_card, .matches = {
Signature · 1 line
2.43.0
Sasha Levin
maintainerPATCH 11/18 clk: qcom: gcc-sm8650: Don't use shared clk_ops for QUPs
In reply to Sasha LevinFrom: Neil Armstrong <[email protected]>
[ Upstream commit aa2eb2c4356affa2799efd95a4ee2d239ca630f8 ]
The QUPs aren't shared in a way that requires parking the RCG at an always on parent in case some other entity turns on the clk. The hardware is capable of setting a new frequency itself with the DFS mode, so parking is unnecessary. Furthermore, there aren't any GDSCs for these devices, so there isn't a possibility of the GDSC turning on the clks for housekeeping purposes.
Like for the SM8550 GCC QUP clocks at [1], do not use shared clk_ops for QUPs.
[1] https://lore.kernel.org/all/[email protected]/
--- drivers/clk/qcom/gcc-sm8650.c | 56 +++++++++++++++++------------------ 1 file changed, 28 insertions(+), 28 deletions(-)
drivers/clk/qcom/gcc-sm8650.c +28 -28
@@ -713,7 +713,7 @@ static struct clk_rcg2 gcc_qupv3_i2c_s0_clk_src = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, }, };
@@ -728,7 +728,7 @@ static struct clk_rcg2 gcc_qupv3_i2c_s1_clk_src = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, }, };
@@ -743,7 +743,7 @@ static struct clk_rcg2 gcc_qupv3_i2c_s2_clk_src = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, }, };
@@ -758,7 +758,7 @@ static struct clk_rcg2 gcc_qupv3_i2c_s3_clk_src = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, }, };
@@ -773,7 +773,7 @@ static struct clk_rcg2 gcc_qupv3_i2c_s4_clk_src = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, }, };
@@ -788,7 +788,7 @@ static struct clk_rcg2 gcc_qupv3_i2c_s5_clk_src = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, }, };
@@ -803,7 +803,7 @@ static struct clk_rcg2 gcc_qupv3_i2c_s6_clk_src = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, }, };
@@ -818,7 +818,7 @@ static struct clk_rcg2 gcc_qupv3_i2c_s7_clk_src = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, }, };
@@ -833,7 +833,7 @@ static struct clk_rcg2 gcc_qupv3_i2c_s8_clk_src = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, }, };
@@ -848,7 +848,7 @@ static struct clk_rcg2 gcc_qupv3_i2c_s9_clk_src = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, }, };
@@ -863,7 +863,7 @@ static struct clk_init_data gcc_qupv3_wrap1_qspi_ref_clk_src_init = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, };static struct clk_rcg2 gcc_qupv3_wrap1_qspi_ref_clk_src = {
@@ -899,7 +899,7 @@ static struct clk_init_data gcc_qupv3_wrap1_s0_clk_src_init = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, };static struct clk_rcg2 gcc_qupv3_wrap1_s0_clk_src = {
@@ -916,7 +916,7 @@ static struct clk_init_data gcc_qupv3_wrap1_s1_clk_src_init = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, };static struct clk_rcg2 gcc_qupv3_wrap1_s1_clk_src = {
@@ -948,7 +948,7 @@ static struct clk_init_data gcc_qupv3_wrap1_s3_clk_src_init = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, };static struct clk_rcg2 gcc_qupv3_wrap1_s3_clk_src = {
@@ -980,7 +980,7 @@ static struct clk_init_data gcc_qupv3_wrap1_s4_clk_src_init = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, };static struct clk_rcg2 gcc_qupv3_wrap1_s4_clk_src = {
@@ -997,7 +997,7 @@ static struct clk_init_data gcc_qupv3_wrap1_s5_clk_src_init = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, };static struct clk_rcg2 gcc_qupv3_wrap1_s5_clk_src = {
@@ -1014,7 +1014,7 @@ static struct clk_init_data gcc_qupv3_wrap1_s6_clk_src_init = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, };static struct clk_rcg2 gcc_qupv3_wrap1_s6_clk_src = {
@@ -1031,7 +1031,7 @@ static struct clk_init_data gcc_qupv3_wrap1_s7_clk_src_init = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, };static struct clk_rcg2 gcc_qupv3_wrap1_s7_clk_src = {
@@ -1059,7 +1059,7 @@ static struct clk_rcg2 gcc_qupv3_wrap2_ibi_ctrl_0_clk_src = { .parent_data = gcc_parent_data_2, .num_parents = ARRAY_SIZE(gcc_parent_data_2), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, }, };
@@ -1068,7 +1068,7 @@ static struct clk_init_data gcc_qupv3_wrap2_s0_clk_src_init = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, };static struct clk_rcg2 gcc_qupv3_wrap2_s0_clk_src = {
@@ -1085,7 +1085,7 @@ static struct clk_init_data gcc_qupv3_wrap2_s1_clk_src_init = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, };static struct clk_rcg2 gcc_qupv3_wrap2_s1_clk_src = {
@@ -1102,7 +1102,7 @@ static struct clk_init_data gcc_qupv3_wrap2_s2_clk_src_init = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, };static struct clk_rcg2 gcc_qupv3_wrap2_s2_clk_src = {
@@ -1119,7 +1119,7 @@ static struct clk_init_data gcc_qupv3_wrap2_s3_clk_src_init = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, };static struct clk_rcg2 gcc_qupv3_wrap2_s3_clk_src = {
@@ -1136,7 +1136,7 @@ static struct clk_init_data gcc_qupv3_wrap2_s4_clk_src_init = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, };static struct clk_rcg2 gcc_qupv3_wrap2_s4_clk_src = {
@@ -1153,7 +1153,7 @@ static struct clk_init_data gcc_qupv3_wrap2_s5_clk_src_init = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, };static struct clk_rcg2 gcc_qupv3_wrap2_s5_clk_src = {
@@ -1186,7 +1186,7 @@ static struct clk_init_data gcc_qupv3_wrap2_s6_clk_src_init = { .parent_data = gcc_parent_data_10, .num_parents = ARRAY_SIZE(gcc_parent_data_10), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, };static struct clk_rcg2 gcc_qupv3_wrap2_s6_clk_src = {
@@ -1203,7 +1203,7 @@ static struct clk_init_data gcc_qupv3_wrap2_s7_clk_src_init = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, };static struct clk_rcg2 gcc_qupv3_wrap2_s7_clk_src = {
@@ -1226,7 +1226,7 @@ static struct clk_init_data gcc_qupv3_wrap3_qspi_ref_clk_src_init = { .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, };static struct clk_rcg2 gcc_qupv3_wrap3_qspi_ref_clk_src = {
Signature · 1 line
2.43.0
Sasha Levin
maintainerPATCH 12/18 ALSA: hda: add HDMI codec ID for Intel PTL
In reply to Sasha LevinFrom: Kai Vehmanen <[email protected]>
[ Upstream commit e9481d9b83f8d9b3251aa428b02d8eba89d839ff ]
Add HDMI codec ID for Intel Panther Lake platform.
--- sound/pci/hda/patch_hdmi.c | 1 + 1 file changed, 1 insertion(+)
sound/pci/hda/patch_hdmi.c +1 -0
@@ -4639,6 +4639,7 @@ HDA_CODEC_ENTRY(0x8086281d, "Meteor Lake HDMI", patch_i915_adlp_hdmi),HDA_CODEC_ENTRY (0x8086281e ,"Battlemage HDMI" , patch_i915_adlp_hdmi),HDA_CODEC_ENTRY (0x8086281f ,"Raptor Lake P HDMI" , patch_i915_adlp_hdmi),HDA_CODEC_ENTRY (0x80862820 ,"Lunar Lake HDMI" , patch_i915_adlp_hdmi), +HDA_CODEC_ENTRY (0x80862822 ,"Panther Lake HDMI" , patch_i915_adlp_hdmi),HDA_CODEC_ENTRY (0x80862880 ,"CedarTrail HDMI" , patch_generic_hdmi),HDA_CODEC_ENTRY (0x80862882 ,"Valleyview2 HDMI" , patch_i915_byt_hdmi), HDA_CODEC_ENTRY(0x80862883, "Braswell HDMI", patch_i915_byt_hdmi),
Signature · 1 line
2.43.0
Sasha Levin
maintainerPATCH 13/18 drm: komeda: Fix an issue related to normalized zpos
In reply to Sasha LevinFrom: "hongchi.peng" <[email protected]>
[ Upstream commit 258905cb9a6414be5c9ca4aa20ef855f8dc894d4 ]
We use komeda_crtc_normalize_zpos to normalize zpos of affected planes to their blending zorder in CU. If there's only one slave plane in affected planes and its layer_split property is enabled, order++ for its split layer, so that when calculating the normalized_zpos of master planes, the split layer of the slave plane is included, but the max_slave_zorder does not include the split layer and keep zero because there's only one slave plane in affacted planes, although we actually use two slave layers in this commit.
In most cases, this bug does not result in a commit failure, but assume the following situation:
slave_layer 0: zpos = 0, layer split enabled, normalized_zpos = 0;(use slave_layer 2 as its split layer)
master_layer 0: zpos = 2, layer_split enabled, normalized_zpos = 2;(use master_layer 2 as its split layer)
master_layer 1: zpos = 4, normalized_zpos = 4; master_layer 3: zpos = 5, normalized_zpos = 5; kcrtc_st->max_slave_zorder = 0;
When we use master_layer 3 as a input of CU in function komeda_compiz_set_input and check it with function komeda_component_check_input, the parameter idx is equal to normailzed_zpos minus max_slave_zorder, the value of idx is 5 and is euqal to CU's max_active_inputs, so that komeda_component_check_input returns a -EINVAL value.
To fix the bug described above, when calculating the max_slave_zorder with the layer_split enabled, count the split layer in this calculation directly.
--- drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
drivers/gpu/drm/arm/display/komeda/komeda_kms.c +7 -3
@@ -160,6 +160,7 @@ static int komeda_crtc_normalize_zpos(struct drm_crtc *crtc,struct drm_plane *plane;struct list_head zorder_list;int order =0 , err; +u32 slave_zpos =0 ;DRM_DEBUG_ATOMIC ("[CRTC:%d:%s] calculating normalized zpos values\n" , crtc->base.id, crtc->name);
@@ -199,10 +200,13 @@ static int komeda_crtc_normalize_zpos(struct drm_crtc *crtc, plane_st->zpos, plane_st->normalized_zpos);/* calculate max slave zorder */ -if (has_bit (drm_plane_index (plane), kcrtc->slave_planes)) +if (has_bit (drm_plane_index (plane), kcrtc->slave_planes)) { + slave_zpos = plane_st->normalized_zpos; +if (to_kplane_st (plane_st)->layer_split) + slave_zpos++; kcrtc_st->max_slave_zorder = -max (plane_st->normalized_zpos, - kcrtc_st->max_slave_zorder); +max (slave_zpos, kcrtc_st->max_slave_zorder); + } } crtc_st->zpos_changed = true;
Signature · 1 line
2.43.0
Sasha Levin
maintainerPATCH 14/18 spi: bcm63xx: Enable module autoloading
In reply to Sasha LevinFrom: Liao Chen <[email protected]>
[ Upstream commit 709df70a20e990d262c473ad9899314039e8ec82 ]
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table.
--- drivers/spi/spi-bcm63xx.c | 1 + 1 file changed, 1 insertion(+)
drivers/spi/spi-bcm63xx.c +1 -0
@@ -472,6 +472,7 @@ static const struct of_device_id bcm63xx_spi_of_match[] = { { .compatible = "brcm,bcm6358-spi", .data = &bcm6358_spi_reg_offsets }, { }, }; +MODULE_DEVICE_TABLE (of, bcm63xx_spi_of_match);static int bcm63xx_spi_probe (struct platform_device *pdev) {
Signature · 1 line
2.43.0
Sasha Levin
maintainerPATCH 15/18 Revert "wifi: ath11k: restore country code during resume"
In reply to Sasha LevinFrom: Baochen Qiang <[email protected]>
[ Upstream commit d3e154d7776ba57ab679fb816fb87b627fba21c9 ]
This reverts commit 7f0343b7b8710436c1e6355c71782d32ada47e0c.
We are going to revert commit 166a490f59ac ("wifi: ath11k: support hibernation"), on which this commit depends. With that commit reverted, this one is not needed any more, so revert this commit first.
--- drivers/net/wireless/ath/ath11k/core.c | 10 ---------- 1 file changed, 10 deletions(-)
drivers/net/wireless/ath/ath11k/core.c +0 -10
@@ -1009,16 +1009,6 @@ int ath11k_core_resume(struct ath11k_base *ab)return -ETIMEDOUT ; } -if (ab->hw_params.current_cc_support && - ar->alpha2[0 ] !=0 && ar->alpha2[1 ] !=0 ) { - ret =ath11k_reg_set_cc (ar); -if (ret) { -ath11k_warn (ab,"failed to set country code during resume: %d\n" , - ret); -return ret; - } - } - ret =ath11k_dp_rx_pktlog_start (ab);if (ret) ath11k_warn(ab, "failed to start rx pktlog during resume: %d\n",
Signature · 1 line
2.43.0
Sasha Levin
maintainerPATCH 16/18 smb: client: fix hang in wait_for_response() for negproto
In reply to Sasha LevinFrom: Paulo Alcantara <[email protected]>
[ Upstream commit 7ccc1465465d78e6411b7bd730d06e7435802b5c ]
Call cifs_reconnect() to wake up processes waiting on negotiate protocol to handle the case where server abruptly shut down and had no chance to properly close the socket.
Simple reproducer:
ssh 192.168.2.100 pkill -STOP smbd
mount.cifs //192.168.2.100/test /mnt -o ... [never returns]
--- fs/smb/client/connect.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
fs/smb/client/connect.c +13 -1
@@ -656,6 +656,19 @@ allocate_buffers(struct TCP_Server_Info *server)static bool server_unresponsive (struct TCP_Server_Info *server) { +/* +* If we're in the process of mounting a share or reconnecting a session +* and the server abruptly shut down (e.g. socket wasn't closed, packet +* had been ACK'ed but no SMB response), don't wait longer than 20s to +* negotiate protocol. +*/ +spin_lock (&server->srv_lock); +if (server->tcpStatus == CifsInNegotiate && +time_after (jiffies, server->lstrp +20 *HZ )) { +spin_unlock (&server->srv_lock); +cifs_reconnect (server, false); +return true; + }/* * We need to wait 3 echo intervals to make sure we handle such * situations right:
@@ -667,7 +680,6 @@ server_unresponsive(struct TCP_Server_Info *server)* 65s kernel_recvmsg times out, and we see that we haven't gotten * a response in >60s. */ -spin_lock (&server->srv_lock); if ((server->tcpStatus == CifsGood || server->tcpStatus == CifsNeedNegotiate) && (!server->ops->can_echo || server->ops->can_echo(server)) &&
Signature · 1 line
2.43.0
Sasha Levin
maintainerPATCH 17/18 platform/x86/amd: pmf: Make ASUS GA403 quirk generic
In reply to Sasha LevinFrom: "Luke D. Jones" <[email protected]>
[ Upstream commit d34af755a533271f39cc7d86e49c0e74fde63a37 ]
The original quirk should match to GA403U so that the full range of GA403U models can benefit.
--- drivers/platform/x86/amd/pmf/pmf-quirks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/amd/pmf/pmf-quirks.c +1 -1
@@ -25,7 +25,7 @@ static const struct dmi_system_id fwbug_list[] = { .ident = "ROG Zephyrus G14", .matches = {DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTeK COMPUTER INC." ), - DMI_MATCH(DMI_PRODUCT_NAME, "GA403UV"), + DMI_MATCH(DMI_PRODUCT_NAME, "GA403U"), }, .driver_data = &quirk_no_sps_bug, },
Signature · 1 line
2.43.0
Sasha Levin
maintainerPATCH 18/18 ice: check for XDP rings instead of bpf program when unconfiguring
In reply to Sasha LevinFrom: Larysa Zaremba <[email protected]>
[ Upstream commit f50c68763436bc8f805712a7c5ceaf58cfcf5f07 ]
If VSI rebuild is pending, .ndo_bpf() can attach/detach the XDP program on VSI without applying new ring configuration. When unconfiguring the VSI, we can encounter the state in which there is an XDP program but no XDP rings to destroy or there will be XDP rings that need to be destroyed, but no XDP program to indicate their presence.
When unconfiguring, rely on the presence of XDP rings rather then XDP program, as they better represent the current state that has to be destroyed.
--- drivers/net/ethernet/intel/ice/ice_lib.c | 4 ++-- drivers/net/ethernet/intel/ice/ice_main.c | 4 ++-- drivers/net/ethernet/intel/ice/ice_xsk.c | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-)
drivers/net/ethernet/intel/ice/ice_lib.c +2 -2
@@ -2426,7 +2426,7 @@ void ice_vsi_decfg(struct ice_vsi *vsi)dev_err (ice_pf_to_dev (pf),"Failed to remove RDMA scheduler config for VSI %u, err %d\n" , vsi->vsi_num, err); -if (ice_is_xdp_ena_vsi (vsi)) +if (vsi->xdp_rings)/* return value check can be skipped here, it always returns * 0 if reset is in progress */
@@ -2528,7 +2528,7 @@ static void ice_vsi_release_msix(struct ice_vsi *vsi)for (q =0 ; q < q_vector->num_ring_tx; q++) {ice_write_itr (&q_vector->tx,0 );wr32 (hw,QINT_TQCTL (vsi->txq_map[txq]),0 ); -if (ice_is_xdp_ena_vsi (vsi)) { +if (vsi->xdp_rings) {u32 xdp_txq = txq + vsi->num_xdp_txq;wr32 (hw,QINT_TQCTL (vsi->txq_map[xdp_txq]),0 );
drivers/net/ethernet/intel/ice/ice_main.c +2 -2
@@ -7222,7 +7222,7 @@ int ice_down(struct ice_vsi *vsi)if (tx_err)netdev_err (vsi->netdev,"Failed stop Tx rings, VSI %d error %d\n" , vsi->vsi_num, tx_err); -if (!tx_err &&ice_is_xdp_ena_vsi (vsi)) { +if (!tx_err && vsi->xdp_rings) { tx_err =ice_vsi_stop_xdp_tx_rings (vsi);if (tx_err) netdev_err(vsi->netdev, "Failed stop XDP rings, VSI %d error %d\n",
@@ -7239,7 +7239,7 @@ int ice_down(struct ice_vsi *vsi)ice_for_each_txq (vsi, i)ice_clean_tx_ring (vsi->tx_rings[i]); -if (ice_is_xdp_ena_vsi (vsi)) +if (vsi->xdp_rings)ice_for_each_xdp_txq (vsi, i)ice_clean_tx_ring (vsi->xdp_rings[i]);
drivers/net/ethernet/intel/ice/ice_xsk.c +3 -3
@@ -39,7 +39,7 @@ static void ice_qp_reset_stats(struct ice_vsi *vsi, u16 q_idx) sizeof(vsi_stat->rx_ring_stats[q_idx]->rx_stats));memset (&vsi_stat->tx_ring_stats[q_idx]->stats,0 ,sizeof (vsi_stat->tx_ring_stats[q_idx]->stats)); -if (ice_is_xdp_ena_vsi (vsi)) +if (vsi->xdp_rings)memset (&vsi->xdp_rings[q_idx]->ring_stats->stats,0 ,sizeof (vsi->xdp_rings[q_idx]->ring_stats->stats)); }
@@ -52,7 +52,7 @@ static void ice_qp_reset_stats(struct ice_vsi *vsi, u16 q_idx)static void ice_qp_clean_rings (struct ice_vsi *vsi,u16 q_idx) {ice_clean_tx_ring (vsi->tx_rings[q_idx]); -if (ice_is_xdp_ena_vsi (vsi)) +if (vsi->xdp_rings)ice_clean_tx_ring (vsi->xdp_rings[q_idx]);ice_clean_rx_ring (vsi->rx_rings[q_idx]); }
@@ -194,7 +194,7 @@ static int ice_qp_dis(struct ice_vsi *vsi, u16 q_idx) err =ice_vsi_stop_tx_ring (vsi,ICE_NO_RESET ,0 , tx_ring, &txq_meta);if (!fail) fail = err; -if (ice_is_xdp_ena_vsi (vsi)) { +if (vsi->xdp_rings) {struct ice_tx_ring *xdp_ring = vsi->xdp_rings[q_idx];memset (&txq_meta,0 ,sizeof (txq_meta));
Signature · 1 line
2.43.0