[PATCH 5.10 195/717] mmc: pxamci: Fix error return code in pxamci_probe

2020-12-28 Thread Greg Kroah-Hartman
From: Zhihao Cheng [ Upstream commit d7b819b5d33869d41bdaa427aeb98ae24c57a38b ] Fix to return the error code from devm_gpiod_get_optional() instaed of 0 in pxamci_probe(). Fixes: f54005b508b9a9d9c ("mmc: pxa: Use GPIO descriptor for power") Reported-by: Hulk Robot Signed-off-by: Zhihao Cheng

[PATCH 5.10 194/717] ARM: dts: at91: sama5d3_xplained: add pincontrol for USB Host

2020-12-28 Thread Greg Kroah-Hartman
From: Cristian Birsan [ Upstream commit e1062fa7292f1e3744db0a487c4ac0109e09b03d ] The pincontrol node is needed for USB Host since Linux v5.7-rc1. Without it the driver probes but VBus is not powered because of wrong pincontrol configuration. Fixes: b7c2b61570798 ("ARM: at91: add Atmel's SAMA5

[PATCH 5.10 186/717] staging: mfd: hi6421-spmi-pmic: fix error return code in hi6421_spmi_pmic_probe()

2020-12-28 Thread Greg Kroah-Hartman
From: Wang Hai [ Upstream commit ba3e4a2a0b3c639d3835f2f1dce27d79576ae453 ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 4524ac56cdca ("staging: mfd: add a PMIC driver for HiSilicon 6421 SPMI version") Reported-by: Hu

[PATCH 5.10 174/717] drm/meson: dw-hdmi: Disable clocks on driver teardown

2020-12-28 Thread Greg Kroah-Hartman
From: Marc Zyngier [ Upstream commit 1dfeea904550c11eccf3fd5f6256e4b0f0208dfe ] The HDMI driver request clocks early, but never disable them, leaving the clocks on even when the driver is removed. Fix it by slightly refactoring the clock code, and register a devm action that will eventually dis

Re: [PATCH v10 0/3] leds: trigger: implement a tty trigger

2020-12-28 Thread Greg Kroah-Hartman
On Fri, Dec 18, 2020 at 11:42:43AM +0100, Uwe Kleine-König wrote: > From: Uwe Kleine-König > > Hello, > > here comes v10 of this series. Changes compared to v9 sent with > Message-Id: 20201018204022.910815-1-u.kleine-koe...@pengutronix.de in > October: First 2 patches now applied to my tree. I

Re: [PATCH v1 1/2] dt-bindings: drm/bridge: anx7625: add DPI flag and swing setting

2020-12-28 Thread Laurent Pinchart
Hi Xin Ji, Thank you for the patch. On Fri, Dec 25, 2020 at 07:01:09PM +0800, Xin Ji wrote: > Add DPI flag for distinguish MIPI input signal type, DSI or DPI. Add > swing setting for adjusting DP tx PHY swing > > Signed-off-by: Xin Ji > --- > .../bindings/display/bridge/analogix,anx7625.yaml

[PATCH 5.10 171/717] crypto: omap-aes - Fix PM disable depth imbalance in omap_aes_probe

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit ff8107200367f4abe0e5bce66a245e8d0f2d229e ] The pm_runtime_enable will increase power disable depth. Thus a pairing decrement is needed on the error handling path to keep it balanced according to context. Fixes: f7b2b5dd6a62a ("crypto: omap-aes - add error ch

[PATCH 5.10 172/717] crypto: sun8i-ce - fix two error paths memory leak

2020-12-28 Thread Greg Kroah-Hartman
From: Corentin Labbe [ Upstream commit 732b764099f651a088fd931d7b8121b6aa84e62e ] This patch fixes the following smatch warnings: drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c:412 sun8i_ce_hash_run() warn: possible memory leak of 'result' Note: "buf" is leaked as well. Furthermore, in case

[PATCH 5.10 170/717] crypto: crypto4xx - Replace bitwise OR with logical OR in crypto4xx_build_pd

2020-12-28 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit 5bdad829c31a09069fd508534f03c2ea1576ac75 ] Clang warns: drivers/crypto/amcc/crypto4xx_core.c:921:60: warning: operator '?:' has lower precedence than '|'; '|' will be evaluated first [-Wbitwise-conditional-parentheses] (crypto_tfm_alg_t

[PATCH 5.10 144/717] drm/meson: dw-hdmi: Ensure that clocks are enabled before touching the TOP registers

2020-12-28 Thread Greg Kroah-Hartman
From: Marc Zyngier [ Upstream commit b33340e33acdfe5ca6a5aa1244709575ae1e0432 ] Removing the meson-dw-hdmi module and re-inserting it results in a hang as the driver writes to HDMITX_TOP_SW_RESET. Similar effects can be seen when booting with mainline u-boot and using the u-boot provided DT (whi

[PATCH 5.10 117/717] ionic: change set_rx_mode from_ndo to can_sleep

2020-12-28 Thread Greg Kroah-Hartman
From: Shannon Nelson [ Upstream commit 81dbc24147f9250c186ae5875b3ed3136e9e293b ] Instead of having two different ways of expressing the same sleepability concept, using opposite logic, we can rework the from_ndo to can_sleep for a more consistent usage. Fixes: 1800eee16676 ("net: ionic: Replac

[PATCH 5.10 115/717] ionic: use mc sync for multicast filters

2020-12-28 Thread Greg Kroah-Hartman
From: Shannon Nelson [ Upstream commit e0243e1966592859da4c6ffe6d43e1576ec3c457 ] We should be using the multicast sync routines for the multicast filters. Also, let's just flatten the logic a bit and pull the small unicast routine back into ionic_set_rx_mode(). Fixes: 1800eee16676 ("net: ioni

[PATCH 5.10 149/717] Input: ads7846 - fix unaligned access on 7845

2020-12-28 Thread Greg Kroah-Hartman
From: Dmitry Torokhov [ Upstream commit 03e2c9c782f721b661a0e42b1b58f394b5298544 ] req->sample[1] is not naturally aligned at word boundary, and therefore we should use get_unaligned_be16() when accessing it. Fixes: 3eac5c7e44f3 ("Input: ads7846 - extend the driver for ads7845 controller suppo

[PATCH 5.10 167/717] rcu: Allow rcu_irq_enter_check_tick() from NMI

2020-12-28 Thread Greg Kroah-Hartman
From: Peter Zijlstra [ Upstream commit 6dbce04d8417ae706596366e16841d77c454ba52 ] Eugenio managed to tickle #PF from NMI context which resulted in hitting a WARN in RCU through irqentry_enter() -> __rcu_irq_enter_check_tick(). However, this situation is perfectly sane and does not warrant an WA

[PATCH] gpiolib: warning on gpiochip->to_irq defined

2020-12-28 Thread Nikita Shubin
gpiochip->to_irq method is redefined in gpiochip_add_irqchip. A lot of gpiod driver's still define ->to_irq method, let's give a gentle warning that they can no longer rely on it, so they can remove it on ocassion. Fixes: e0d8972898139 ("gpio: Implement tighter IRQ chip integration") Signed-off-b

[PATCH 5.10 152/717] usb/max3421: fix return error code in max3421_probe()

2020-12-28 Thread Greg Kroah-Hartman
From: Yang Yingliang [ Upstream commit 5a569343e8a618dc73edebe0957eb42f2ab476bd ] retval may be reassigned to 0 after max3421_of_vbus_en_pin(), if allocate memory failed after this, max3421_probe() cann't return ENOMEM, fix this by moving assign retval afther max3421_probe(). Fixes: 721fdc83b31

[PATCH 5.10 165/717] scsi: ufs: Avoid to call REQ_CLKS_OFF to CLKS_OFF

2020-12-28 Thread Greg Kroah-Hartman
From: Jaegeuk Kim [ Upstream commit fd62de114f8c9df098dcd43b5d83c5714176dd12 ] Once UFS is gated with CLKS_OFF, it should not call REQ_CLKS_OFF again. This can lead to hibern8_enter failure. Link: https://lore.kernel.org/r/20201117165839.1643377-2-jaeg...@kernel.org Reviewed-by: Can Guo Signed

[PATCH 5.10 118/717] media: tm6000: Fix sizeof() mismatches

2020-12-28 Thread Greg Kroah-Hartman
From: Colin Ian King [ Upstream commit a08ad6339e0441ca12533969ed94a87e3655426e ] The are two instances of sizeof() being used incorrectly. The sizeof(void *) is incorrect because urb_buffer is a char ** pointer, fix this by using sizeof(*dev->urb_buffer). The sizeof(dma_addr_t *) is incorrect,

[PATCH 5.10 079/717] spi: tegra20-sflash: fix reference leak in tegra_sflash_resume

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 3482e797ab688da6703fe18d8bad52f94199f4f2 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak in tegra_sflash_resume, so we should fix it. Fixes: 8528547bcc336 ("spi: tegra: a

[PATCH 5.10 122/717] media: mtk-vcodec: add missing put_device() call in mtk_vcodec_init_enc_pm()

2020-12-28 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 4affafd7bec7c65da31777f18bd20420f1aeb5f8 ] if of_find_device_by_node() succeed, mtk_vcodec_init_enc_pm() doesn't have a corresponding put_device(). Thus add jump target to fix the exception handling for this function implementation. Fixes: 4e855a6efa54 ("[media]

[PATCH 5.10 136/717] media: venus: put dummy vote on video-mem path after last session release

2020-12-28 Thread Greg Kroah-Hartman
From: Mansur Alisha Shaik [ Upstream commit eff5ce02e170125936c43ca96c7dc701a86681ed ] As per current implementation, video driver is unvoting "videom-mem" path for last video session during vdec_session_release(). While video playback when we try to suspend device, we see video clock warnings s

[PATCH 5.10 111/717] staging: greybus: codecs: Fix reference counter leak in error handling

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 3952659a6108f77a0d062d8e8487bdbdaf52a66c ] gb_pm_runtime_get_sync has increased the usage counter of the device here. Forgetting to call gb_pm_runtime_put_noidle will result in usage counter leak in the error branch of (gbcodec_hw_params and gbcodec_prepare).

[PATCH 5.10 137/717] media: solo6x10: fix missing snd_card_free in error handling case

2020-12-28 Thread Greg Kroah-Hartman
From: Qinglang Miao [ Upstream commit dcdff74fa6bc00c32079d0bebd620764c26f2d89 ] Fix to goto snd_error in error handling case when fails to do snd_ctl_add, as done elsewhere in this function. Fixes: 28cae868cd24 ("[media] solo6x10: move out of staging into drivers/media/pci.") Reported-by: Hul

[PATCH 5.10 138/717] video: fbdev: atmel_lcdfb: fix return error code in atmel_lcdfb_of_init()

2020-12-28 Thread Greg Kroah-Hartman
From: Yang Yingliang [ Upstream commit ba236455ee750270f33998df57f982433cea4d8e ] If devm_kzalloc() failed after the first time, atmel_lcdfb_of_init() can't return -ENOMEM, fix this by putting the error code in loop. Fixes: b985172b328a ("video: atmel_lcdfb: add device tree suport") Reported-by

[PATCH 5.10 140/717] drm/omap: dmm_tiler: fix return error code in omap_dmm_probe()

2020-12-28 Thread Greg Kroah-Hartman
From: Yang Yingliang [ Upstream commit 723ae803218da993143387bf966042eccefac077 ] Return -ENOMEM when allocating refill memory failed. Fixes: 71e8831f6407 ("drm/omap: DMM/TILER support for OMAP4+ platform") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang Signed-off-by: Thomas Zimmermann

[PATCH 5.10 112/717] staging: gasket: interrupt: fix the missed eventfd_ctx_put() in gasket_interrupt.c

2020-12-28 Thread Greg Kroah-Hartman
From: Jing Xiangfeng [ Upstream commit ab5b769a23af12a675b9f3d7dd529250c527f5ac ] gasket_interrupt_set_eventfd() misses to call eventfd_ctx_put() in an error path. We check interrupt is valid before calling eventfd_ctx_fdget() to fix it. There is the same issue in gasket_interrupt_clear_eventfd

[PATCH 5.10 113/717] scripts: kernel-doc: Restore anonymous enum parsing

2020-12-28 Thread Greg Kroah-Hartman
From: Andy Shevchenko [ Upstream commit ae5b17e464146ddb8fee744fa2150922d6072916 ] The commit d38c8cfb0571 ("scripts: kernel-doc: add support for typedef enum") broke anonymous enum parsing. Restore it by relying on members rather than its name. Fixes: d38c8cfb0571 ("scripts: kernel-doc: add su

[PATCH 5.10 116/717] ionic: flatten calls to ionic_lif_rx_mode

2020-12-28 Thread Greg Kroah-Hartman
From: Shannon Nelson [ Upstream commit e94f76bb206333efcd0c02da5dbb142518c941a2 ] The _ionic_lif_rx_mode() is only used once and really doesn't need to be broken out. Signed-off-by: Shannon Nelson Reviewed-by: Saeed Mahameed Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- .../

[PATCH 5.10 159/717] powerpc/powernv/sriov: fix unsigned int win compared to less than zero

2020-12-28 Thread Greg Kroah-Hartman
From: Kaixu Xia [ Upstream commit 027717a45ca251a7ba67a63db359994836962cd2 ] Fix coccicheck warning: arch/powerpc/platforms/powernv/pci-sriov.c:443:7-10: WARNING: Unsigned expression compared with zero: win < 0 arch/powerpc/platforms/powernv/pci-sriov.c:462:7-10: WARNING: Unsigned expr

[PATCH v6 0/2] PCI: cadence: Retrain Link to work around Gen2

2020-12-28 Thread Nadeem Athani
Cadence controller will not initiate autonomous speed change if strapped as Gen2. The Retrain Link bit is set as quirk to enable this speed change. Adding a quirk flag for defective IP. In future IP revisions this will not be applicable. Version history: Changes in v6: - Move the position of func

[PATCH 5.10 166/717] scsi: ufs: Fix clkgating on/off

2020-12-28 Thread Greg Kroah-Hartman
From: Jaegeuk Kim [ Upstream commit 8eb456be75af7e5a7ac0cd223eaa198cf7ee2ac1 ] The following call stack prevents clk_gating at every I/O completion. We can remove the condition, ufshcd_any_tag_in_use(), since clkgating_work will check it again. ufshcd_complete_requests(struct ufs_hba *hba) u

[PATCH 5.10 141/717] drm/meson: Free RDMA resources after tearing down DRM

2020-12-28 Thread Greg Kroah-Hartman
From: Marc Zyngier [ Upstream commit fa62ee25280ff6ae1f720f363263cb5e7743a8c8 ] Removing the meson DRM module results in the following splat: [ 2179.451346] Hardware name: , BIOS 2021.01-rc2-00012-gde865f7ee1 11/16/2020 [ 2179.458316] Workqueue: events drm_mode_rmfb_work_fn [drm] [ 2179.463597

[PATCH 5.10 153/717] spi: mxs: fix reference leak in mxs_spi_probe

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 03fc41afaa6549baa2dab7a84e1afaf5cadb5b18 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak in mxs_spi_probe, so we should fix it. Fixes: b7969caf41a1d ("spi: mxs: implement

Re: [PATCH] tty: serial: amba-pl011: added RS485 support

2020-12-28 Thread Greg Kroah-Hartman
On Tue, Dec 22, 2020 at 12:18:48AM +0100, Ivan Sistik wrote: > This patch is ported and corrected version of my previous patch which can > be reviewed here: > https://lore.kernel.org/lkml/20200106235203.27256-1-sis...@3ksolutions.sk/ > > I have been waiting for some time to see if Lukas Wunner >

Re: [v6,3/4] PCI: mediatek-gen3: Add MediaTek Gen3 driver for MT8192

2020-12-28 Thread Marc Zyngier
On Mon, 28 Dec 2020 12:01:57 +, Jianjun Wang wrote: > > On Fri, 2020-12-25 at 19:22 +, Marc Zyngier wrote: Dropped , as it bounces: : host mailgw01.mediatek.com[216.200.240.184] said: 550 Relaying mail to project_global_chrome_upstream_gr...@mediatek.com is not allowed (in reply

[PATCH 5.10 161/717] mfd: MFD_SL28CPLD should depend on ARCH_LAYERSCAPE

2020-12-28 Thread Greg Kroah-Hartman
From: Geert Uytterhoeven [ Upstream commit de1292817cf736c04fab31903a6aa9d9ffe60b79 ] Currently the Kontron sl28cpld Board Management Controller is found only on Kontron boards equipped with a Freescale Layerscape SoC. Hence add a dependency on ARCH_LAYERSCAPE, to prevent asking the user about

[PATCH v6 1/2] PCI: cadence: Retrain Link to work around Gen2 training defect.

2020-12-28 Thread Nadeem Athani
Moving the function above to remove compilation error. No changes in function. Signed-off-by: Nadeem Athani --- drivers/pci/controller/cadence/pcie-cadence-host.c | 33 +++--- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/drivers/pci/controller/cadence/pcie-cade

[PATCH v6 2/2] PCI: cadence: Retrain Link to work around Gen2 training defect.

2020-12-28 Thread Nadeem Athani
Cadence controller will not initiate autonomous speed change if strapped as Gen2. The Retrain Link bit is set as quirk to enable this speed change. Signed-off-by: Nadeem Athani --- drivers/pci/controller/cadence/pci-j721e.c | 3 ++ drivers/pci/controller/cadence/pcie-cadence-host.c | 32

[PATCH 5.10 164/717] EDAC/mce_amd: Use struct cpuinfo_x86.cpu_die_id for AMD NodeId

2020-12-28 Thread Greg Kroah-Hartman
From: Yazen Ghannam [ Upstream commit 8de0c9917cc1297bc5543b61992d5bdee4ce621a ] The edac_mce_amd module calls decode_dram_ecc() on AMD Family17h and later systems. This function is used in amd64_edac_mod to do system-specific decoding for DRAM ECC errors. The function takes a "NodeId" as a para

[PATCH 5.10 163/717] mfd: cpcap: Fix interrupt regression with regmap clear_ack

2020-12-28 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit 14639a22de657eabbb776f503a816594393cc935 ] With commit 3a6f0fb7b8eb ("regmap: irq: Add support to clear ack registers"), the cpcap interrupts are no longer getting acked properly leading to a very unresponsive device with CPUs fully loaded spinning in the th

[PATCH 5.10 155/717] powerpc: Avoid broken GCC __attribute__((optimize))

2020-12-28 Thread Greg Kroah-Hartman
From: Ard Biesheuvel [ Upstream commit a7223f5bfcaeade4a86d35263493bcda6c940891 ] Commit 7053f80d9696 ("powerpc/64: Prevent stack protection in early boot") introduced a couple of uses of __attribute__((optimize)) with function scope, to disable the stack protector in some early boot code. Unfo

[PATCH 5.10 162/717] mfd: stmfx: Fix dev_err_probe() call in stmfx_chip_init()

2020-12-28 Thread Greg Kroah-Hartman
From: Amelie Delaunay [ Upstream commit d75846ed08e6f4135ec73778575c34d9c0ace993 ] 'ret' may be 0 so, dev_err_probe() should be called only when 'ret' is an error code. Fixes: 41c9c06c491a ("mfd: stmfx: Simplify with dev_err_probe()") Signed-off-by: Amelie Delaunay Signed-off-by: Lee Jones Si

[PATCH 5.10 143/717] drm/meson: dw-hdmi: Register a callback to disable the regulator

2020-12-28 Thread Greg Kroah-Hartman
From: Marc Zyngier [ Upstream commit 0405f94a1ae0586ca237aec0e859f1b796d6325d ] Removing the meson-dw-hdmi module results in the following splat: i[ 43.340509] WARNING: CPU: 0 PID: 572 at drivers/regulator/core.c:2125 _regulator_put.part.0+0x16c/0x174 [...] [ 43.454870] CPU: 0 PID: 572 Com

[PATCH 5.10 084/717] ath11k: Handle errors if peer creation fails

2020-12-28 Thread Greg Kroah-Hartman
From: Alex Dewar [ Upstream commit c134d1f8c436d96b3f62896c630278e3ec001280 ] ath11k_peer_create() is called without its return value being checked, meaning errors will be unhandled. Add missing check and, as the mutex is unconditionally unlocked on leaving this function, simplify the exit path.

[PATCH 5.10 160/717] mfd: htc-i2cpld: Add the missed i2c_put_adapter() in htcpld_register_chip_i2c()

2020-12-28 Thread Greg Kroah-Hartman
From: Jing Xiangfeng [ Upstream commit 9a463284706c5217872c3cadaca863d47129bd95 ] htcpld_register_chip_i2c() misses to call i2c_put_adapter() in an error path. Add the missed function call to fix it. Fixes: 6048a3dd2371 ("mfd: Add HTCPLD driver") Signed-off-by: Jing Xiangfeng Signed-off-by: Le

[PATCH 5.10 082/717] spi: imx: fix reference leak in two imx operations

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 1dcbdd944824369d4569959f8130336fe6fe5f39 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak in callers(spi_imx_prepare_message and spi_imx_remove), so we should fix it. Fixe

Re: [RFC PATCH 0/3] gpio: ep93xx: convert to multi irqchips

2020-12-28 Thread nikita . shubin
27.12.2020, 16:55, "Linus Walleij" : > Paging Hartley who I think uses this chip. > > On Thu, Dec 24, 2020 at 12:22 PM Nikita Shubin > wrote: > >>  I was lucky enough to became an owner of some splendid piece's of >>  antiques called ts7250 based on the top of Cirrus Logic EP9302. >> >>  I don't k

[PATCH 5.10 121/717] media: mtk-vcodec: add missing put_device() call in mtk_vcodec_release_dec_pm()

2020-12-28 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 27c3943683f74e35e1d390ceb2e3639eff616ad6 ] mtk_vcodec_release_dec_pm() will be called in two places: a. mtk_vcodec_init_dec_pm() succeed while mtk_vcodec_probe() return error. b. mtk_vcodec_dec_remove(). In both cases put_device() call is needed, since of_find_d

[PATCH 5.10 081/717] spi: bcm63xx-hsspi: fix missing clk_disable_unprepare() on error in bcm63xx_hsspi_resume

2020-12-28 Thread Greg Kroah-Hartman
From: Qinglang Miao [ Upstream commit 9bb9ef2b3e5d9d012876e7e2d7757eb30e865bee ] Fix the missing clk_disable_unprepare() before return from bcm63xx_hsspi_resume in the error handling case when fails to prepare and enable bs->pll_clk. Fixes: 0fd85869c2a9 ("spi/bcm63xx-hsspi: keep pll clk enabled

Re: [PATCH 0/7] STM32 uart cleanup and improvements

2020-12-28 Thread Greg Kroah-Hartman
On Fri, Dec 18, 2020 at 08:00:11PM +0100, Erwan Le Ray wrote: > This series brings various fixes, cleanups and improvements to stm32-usart > driver. This patch series does not apply to 5.11-rc1. Please fix up and resend. thanks, greg k-h

Re: [PATCH v3 0/2] Kbuild: DWARF v5 support

2020-12-28 Thread Sedat Dilek
On Sun, Dec 27, 2020 at 7:47 PM Sedat Dilek wrote: > > On Fri, Dec 4, 2020 at 2:13 AM 'Nick Desaulniers' via Clang Built > Linux wrote: > > > > sigh...I ran a broken script to send the series which doesn't cc folks > > properly. > > + lkml, linux-kbuild > > (Might just resend, properly) > > > >

[PATCH 5.10 080/717] spi: tegra114: fix reference leak in tegra spi ops

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit a042184c7fb99961ea083d4ec192614bec671969 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak in two callers(tegra_spi_setup and tegra_spi_resume), so we should fix it. Fixes:

[PATCH 5.10 120/717] media: mtk-vcodec: add missing put_device() call in mtk_vcodec_init_dec_pm()

2020-12-28 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 5d4fa2c50125c9cda9e380d89268757cc5fa743d ] if of_find_device_by_node() succeed, mtk_vcodec_init_dec_pm() doesn't have a corresponding put_device(). Thus add jump target to fix the exception handling for this function implementation. Fixes: 590577a4e525 ("[media]

[PATCH 5.10 109/717] firmware: arm_scmi: Fix missing destroy_workqueue()

2020-12-28 Thread Greg Kroah-Hartman
From: Qinglang Miao [ Upstream commit 6bbdb46c4b1bd57839c9c0a110bd81b0be0a4046 ] destroy_workqueue is required before the return from scmi_notification_init in case devm_kcalloc fails to allocate registered_protocols. Fix this by simply moving registered_protocols allocation before alloc_workque

[PATCH 5.10 105/717] drm/amdgpu: fix compute queue priority if num_kcq is less than 4

2020-12-28 Thread Greg Kroah-Hartman
From: Nirmoy Das [ Upstream commit 3f66bf401e9fde1c35bb8b02dd7975659c40411d ] Compute queues are configurable with module param, num_kcq. amdgpu_gfx_is_high_priority_compute_queue was setting 1st 4 queues to high priority queue leaving a null drm scheduler in adev->gpu_sched[hw_ip]["normal_prio"

[PATCH 5.10 104/717] MIPS: BCM47XX: fix kconfig dependency bug for BCM47XX_BCMA

2020-12-28 Thread Greg Kroah-Hartman
From: Necip Fazil Yildiran [ Upstream commit 3a5fe2fb9635c43359c9729352f45044f3c8df6b ] When BCM47XX_BCMA is enabled and BCMA_DRIVER_PCI is disabled, it results in the following Kbuild warning: WARNING: unmet direct dependencies detected for BCMA_DRIVER_PCI_HOSTMODE Depends on [n]: MIPS [=y]

[PATCH 5.10 066/717] ath11k: Fix number of rules in filtered ETSI regdomain

2020-12-28 Thread Greg Kroah-Hartman
From: Sven Eckelmann [ Upstream commit 6189be7d145c3a2d48514eb8755483602ff5a4b4 ] The ath11k code will try to insert wheather rader related limits when the DFS region is set to ETSI. For this reason, it will add two more entries in the array of reg_rules. But the 2.4.0.1 firmware is prefiltering

[PATCH 5.10 050/717] spi: spi-mem: fix reference leak in spi_mem_access_start

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit c02bb16b0e826bf0e19aa42c3ae60ea339f32cf5 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak in spi_mem_access_start, so we should fix it. Fixes: f86c24f479530 ("spi: spi-mem

[PATCH 5.10 046/717] drm/msm/dp: DisplayPort PHY compliance tests fixup

2020-12-28 Thread Greg Kroah-Hartman
From: Tanmay Shah [ Upstream commit 6625e2637d93d2f52ef0d17656f21bfa2cb4983a ] Bandwidth code was being used as test link rate. Fix this by converting bandwidth code to test link rate Do not reset voltage and pre-emphasis level during IRQ HPD attention interrupt. Also fix pre-emphasis parsing d

[PATCH 5.10 076/717] spi: spi-ti-qspi: fix reference leak in ti_qspi_setup

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 45c0cba753641e5d7c3207f04241bd0e7a021698 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak in ti_qspi_setup, so we should fix it. Fixes: 505a14954e2d7 ("spi/qspi: Add qspi

[PATCH 5.10 034/717] crypto: talitos - Endianess in current_desc_hdr()

2020-12-28 Thread Greg Kroah-Hartman
From: Christophe Leroy [ Upstream commit 195404db27f9533c71fdcb78d32a77075c2cb4a2 ] current_desc_hdr() compares the value of the current descriptor with the next_desc member of the talitos_desc struct. While the current descriptor is obtained from in_be32() which return CPU ordered bytes, next_

[PATCH 5.10 088/717] firmware: tegra: fix strncpy()/strncat() confusion

2020-12-28 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 9294996f0be40e9da818ed891c82397ab63c00d0 ] The way that bpmp_populate_debugfs_inband() uses strncpy() and strncat() makes no sense since the size argument for the first is insufficient to contain the trailing '/' and the second passes the length of the input

[PATCH 5.10 013/717] arm64: dts: qcom: sc7180: Fix one forgotten interconnect reference

2020-12-28 Thread Greg Kroah-Hartman
From: Douglas Anderson [ Upstream commit 228813aaa71113d7a12313b87c4905a9d3f9df37 ] In commit e23b1220a246 ("arm64: dts: qcom: sc7180: Increase the number of interconnect cells") we missed increasing the cells on one interconnect. That's no bueno. Fix it. NOTE: it appears that things aren't t

[PATCH 5.10 089/717] drm/msm/dp: return correct connection status after suspend

2020-12-28 Thread Greg Kroah-Hartman
From: Kuogee Hsieh [ Upstream commit 19e52bcb27c2ba140699d2230d722366d7d048a1 ] During suspend, dp host controller and hpd block are disabled due to both ahb and aux clock are disabled. Therefore hpd plug/unplug interrupts will not be generated. At dp_pm_resume(), reinitialize both dp host contr

Re: [PATCH v2 11/48] opp: Add dev_pm_opp_find_level_ceil()

2020-12-28 Thread Dmitry Osipenko
28.12.2020 09:22, Viresh Kumar пишет: > On 24-12-20, 16:00, Dmitry Osipenko wrote: >> In a device driver I want to set PD to the lowest performance state by >> removing the performance vote when dev_pm_opp_set_rate(dev, 0) is >> invoked by the driver. >> >> The OPP core already does this, but if OP

[PATCH 5.10 103/717] arm64: dts: ti: k3-am65*/j721e*: Fix unit address format error for dss node

2020-12-28 Thread Greg Kroah-Hartman
From: Nishanth Menon [ Upstream commit cfbf17e69ae82f647c287366b7573e532fc281ee ] Fix the node address to follow the device tree convention. This fixes the dtc warning: : Warning (simple_bus_reg): /bus@10/dss@04a0: simple-bus unit address format error, expected "4a0" Fixes: 76921f1

[PATCH 5.10 087/717] drm/msm/a5xx: Clear shadow on suspend

2020-12-28 Thread Greg Kroah-Hartman
From: Rob Clark [ Upstream commit 5771de5d5b3bfaf279e5c262a113d4b6fbe54355 ] Similar to the previous patch, clear shadow on suspend to avoid timeouts waiting for ringbuffer space. Fixes: 8907afb476ac ("drm/msm: Allow a5xx to mark the RPTR shadow as privileged") Signed-off-by: Rob Clark Signed

[PATCH 5.10 095/717] ASoC: wm8998: Fix PM disable depth imbalance on error

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 193aa0a043645220d2a2f783ba06ae13d4601078 ] The pm_runtime_enable will increase power disable depth. Thus a pairing decrement is needed on the error handling path to keep it balanced according to context. Fixes: 31833ead95c2c ("ASoC: arizona: Move request of

[PATCH 5.10 086/717] drm/msm/a6xx: Clear shadow on suspend

2020-12-28 Thread Greg Kroah-Hartman
From: Rob Clark [ Upstream commit e8b0b994c3a5881f0648d53f90435120089c56ad ] Clear the shadow rptr on suspend. Otherwise, when we resume, we can have a stale value until CP_WHERE_AM_I executes. If we suspend near the ringbuffer wraparound point, this can lead to a chicken/egg situation where w

[PATCH 5.10 100/717] ASoC: arizona: Fix a wrong free in wm8997_probe

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 5e7aace13df24ff72511f29c14ebbfe638ef733c ] In the normal path, we should not free the arizona, we should return immediately. It will be free when call remove operation. Fixes: 31833ead95c2c ("ASoC: arizona: Move request of speaker IRQs into bus probe") Repo

[PATCH 5.10 085/717] mwifiex: fix mwifiex_shutdown_sw() causing sw reset failure

2020-12-28 Thread Greg Kroah-Hartman
From: Tsuchiya Yuto [ Upstream commit fa74cb1dc0f4da46c441b735ca865ac52de42c0e ] When a PCIe function level reset (FLR) is performed but without fw reset for some reasons (e.g., on Microsoft Surface devices, fw reset requires other quirks), it fails to reset wifi properly. You can trigger the is

Re: Linux 5.11-rc1

2020-12-28 Thread Sedat Dilek
On Mon, Dec 28, 2020 at 9:04 AM Sedat Dilek wrote: > > On Mon, Dec 28, 2020 at 8:30 AM Sedat Dilek wrote: > > > > [ Please CC me I am not subscribed to LKML and linux-kbuild ML ] > > > > Hi Linus, Hi Mashiro, > > > > thanks for the Linux v5.11-rc1 release. > > > > With a new release I always do m

[PATCH 5.10 051/717] scsi: aacraid: Improve compat_ioctl handlers

2020-12-28 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 077054215a7f787e389a807ece8a39247abbbc1e ] The use of compat_alloc_user_space() can be easily replaced by handling compat arguments in the regular handler, and this will make it work for big-endian kernels as well, which at the moment get an invalid indirect

[PATCH 5.10 069/717] arm64: dts: exynos: Include common syscon restart/poweroff for Exynos7

2020-12-28 Thread Greg Kroah-Hartman
From: Paweł Chmiel [ Upstream commit 73bc7510ea0dafb4ff1ae6808759627a8ec51f5a ] Exynos7 uses the same syscon reboot and poweroff nodes as other Exynos SoCs, so instead of duplicating code we can just include common dtsi file, which already contains definitions of them. After this change, powerof

[PATCH 5.10 048/717] drm/msm/dsi_pll_10nm: restore VCO rate during restore_state

2020-12-28 Thread Greg Kroah-Hartman
From: Dmitry Baryshkov [ Upstream commit a4ccc37693a271330a46208afbeaed939d54fdbb ] PHY disable/enable resets PLL registers to default values. Thus in addition to restoring several registers we also need to restore VCO rate settings. Signed-off-by: Dmitry Baryshkov Fixes: c6659785dfb3 ("drm/ms

[PATCH 5.10 047/717] drm/msm/dsi_pll_7nm: restore VCO rate during restore_state

2020-12-28 Thread Greg Kroah-Hartman
From: Dmitry Baryshkov [ Upstream commit 5047ab95bb7db0e7b2ecfd5e9bcafc7fd822c652 ] PHY disable/enable resets PLL registers to default values. Thus in addition to restoring several registers we also need to restore VCO rate settings. Signed-off-by: Dmitry Baryshkov Fixes: 1ef7c99d145c ("drm/ms

[PATCH 5.10 065/717] ath11k: Initialize complete alpha2 for regulatory change

2020-12-28 Thread Greg Kroah-Hartman
From: Sven Eckelmann [ Upstream commit 383a32cde4172db19d4743d4c782c00af39ff275 ] The function ath11k_wmi_send_init_country_cmd is taking 3 byte from alpha2 of the structure wmi_init_country_params. But the function ath11k_reg_notifier is only initializing 2 bytes. The third byte is therefore al

[PATCH 5.10 072/717] Bluetooth: Fix null pointer dereference in hci_event_packet()

2020-12-28 Thread Greg Kroah-Hartman
From: Anmol Karn [ Upstream commit 6dfccd13db2ff2b709ef60a50163925d477549aa ] AMP_MGR is getting derefernced in hci_phy_link_complete_evt(), when called from hci_event_packet() and there is a possibility, that hcon->amp_mgr may not be found when accessing after initialization of hcon. - net/blu

[PATCH 5.10 063/717] x86/mce: Correct the detection of invalid notifier priorities

2020-12-28 Thread Greg Kroah-Hartman
From: Zhen Lei [ Upstream commit 15af36596ae305aefc8c502c2d3e8c58221709eb ] Commit c9c6d216ed28 ("x86/mce: Rename "first" function as "early"") changed the enumeration of MCE notifier priorities. Correct the check for notifier priorities to cover the new range. [ bp: Rewrite commit message

[PATCH 5.10 045/717] perf test: Use generic event for expand_libpfm_events()

2020-12-28 Thread Greg Kroah-Hartman
From: Namhyung Kim [ Upstream commit 9b0a7836359443227c9af101f7aea8412e739458 ] I found that the UNHALTED_CORE_CYCLES event is only available in the Intel machines and it makes other vendors/archs fail on the test. As libpfm4 can parse the generic events like cycles, let's use them. Fixes: 40b

[PATCH 5.10 074/717] Bluetooth: hci_h5: fix memory leak in h5_close

2020-12-28 Thread Greg Kroah-Hartman
From: Anant Thazhemadam [ Upstream commit 855af2d74c870d747bf53509f8b2d7b9dc9ee2c3 ] When h5_close() is called, h5 is directly freed when !hu->serdev. However, h5->rx_skb is not freed, which causes a memory leak. Freeing h5->rx_skb and setting it to NULL, fixes this memory leak. Fixes: ce94555

[PATCH 5.10 062/717] bpf: Fix tests for local_storage

2020-12-28 Thread Greg Kroah-Hartman
From: KP Singh [ Upstream commit f0e5ba0bc481df77cf0afac2b33e420b33eeb463 ] The {inode,sk}_storage_result checking if the correct value was retrieved was being clobbered unconditionally by the return value of the bpf_{inode,sk}_storage_delete call. Also, consistently use the newly added BPF_LOC

[PATCH 5.10 073/717] Bluetooth: Fix: LL PRivacy BLE device fails to connect

2020-12-28 Thread Greg Kroah-Hartman
From: Sathish Narasimman [ Upstream commit 1fb17dfc258ff6208f7873cc7b8e40e27515d2d5 ] When adding device to white list the device is added to resolving list also. It has to be added only when HCI_ENABLE_LL_PRIVACY flag is set. HCI_ENABLE_LL_PRIVACY flag has to be tested before adding/deleting de

[PATCH 5.10 044/717] RDMA/mlx5: Fix corruption of reg_pages in mlx5_ib_rereg_user_mr()

2020-12-28 Thread Greg Kroah-Hartman
From: Jason Gunthorpe [ Upstream commit fc3325701a6353594083f08e297d4c1965c601aa ] reg_pages should always contain mr->npage since when the mr is finally de-reg'd it is always subtracted out. If there were any error exits then mlx5_ib_rereg_user_mr() would leave the reg_pages adjusted and this

[PATCH 5.10 060/717] nl80211/cfg80211: fix potential infinite loop

2020-12-28 Thread Greg Kroah-Hartman
From: Colin Ian King [ Upstream commit ba5c25236bc3d399df82ebe923490ea8d2d35cf2 ] The for-loop iterates with a u8 loop counter and compares this with the loop upper limit of request->n_ssids which is an int type. There is a potential infinite loop if n_ssids is larger than the u8 loop counter, s

[PATCH 5.10 070/717] arm64: dts: exynos: Correct psci compatible used on Exynos7

2020-12-28 Thread Greg Kroah-Hartman
From: Paweł Chmiel [ Upstream commit e1e47fbca668507a81bb388fcae044b89d112ecc ] It's not possible to reboot or poweroff Exynos7420 using PSCI. Instead we need to use syscon reboot/poweroff drivers, like it's done for other Exynos SoCs. This was confirmed by checking vendor source and testing it

[PATCH 5.10 055/717] libbpf: Fix BTF data layout checks and allow empty BTF

2020-12-28 Thread Greg Kroah-Hartman
From: Andrii Nakryiko [ Upstream commit d8123624506cd62730c9cd9c7672c698e462703d ] Make data section layout checks stricter, disallowing overlap of types and strings data. Additionally, allow BTFs with no type data. There is nothing inherently wrong with having BTF with no types (put potentiall

[PATCH 5.10 016/717] RDMA/bnxt_re: Set queue pair state when being queried

2020-12-28 Thread Greg Kroah-Hartman
From: Kamal Heib [ Upstream commit 53839b51a7671eeb3fb44d479d541cf3a0f2dd45 ] The API for ib_query_qp requires the driver to set cur_qp_state on return, add the missing set. Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver") Link: https://lore.kernel.org/r/20201021114952.38876-1-kama

[PATCH 5.10 031/717] sched/deadline: Fix sched_dl_global_validate()

2020-12-28 Thread Greg Kroah-Hartman
From: Peng Liu [ Upstream commit a57415f5d1e43c3a5c5d412cd85e2792d7ed9b11 ] When change sched_rt_{runtime, period}_us, we validate that the new settings should at least accommodate the currently allocated -dl bandwidth: sched_rt_handler() --> sched_dl_bandwidth_validate() {

[PATCH 5.10 030/717] ASoC: qcom: fix unsigned int bitwidth compared to less than zero

2020-12-28 Thread Greg Kroah-Hartman
From: Colin Ian King [ Upstream commit bcc96dc3cf8048c80af7c487af17e19be27ac57d ] The check for an error return from the call to snd_pcm_format_width is never true as the unsigned int bitwidth can never be less than zero. Fix this by making bitwidth an int. Fixes: 7cb37b7bd0d3 ("ASoC: qcom: Add

[PATCH 5.10 000/717] 5.10.4-rc1 review

2020-12-28 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.10.4 release. There are 717 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed, 30 Dec 2020 12:48:23 +. Anything rec

[PATCH 5.10 002/717] drm/gma500: fix double free of gma_connector

2020-12-28 Thread Greg Kroah-Hartman
From: Tom Rix [ Upstream commit 4e19d51ca5b28a1d435a844c7b2a8e1b1b6fa237 ] clang static analysis reports this problem: cdv_intel_dp.c:2101:2: warning: Attempt to free released memory kfree(gma_connector); ^~~~ In cdv_intel_dp_init() when the call to cdv_intel_ed

[PATCH 5.10 057/717] crypto: arm/aes-neonbs - fix usage of cbc(aes) fallback

2020-12-28 Thread Greg Kroah-Hartman
From: Horia Geantă [ Upstream commit a2715fbdc6fc387e85211df917a4778761ec693d ] Loading the module deadlocks since: -local cbc(aes) implementation needs a fallback and -crypto API tries to find one but the request_module() resolves back to the same module Fix this by changing the module alias f

[PATCH 5.10 053/717] ASoC: pcm: DRAIN support reactivation

2020-12-28 Thread Greg Kroah-Hartman
From: Cezary Rojewski [ Upstream commit 4c22b80f61540ea99d9b4af0127315338755f05b ] soc-pcm's dpcm_fe_dai_do_trigger() supported DRAIN commnad up to kernel v5.4 where explicit switch(cmd) has been introduced which takes into account all SNDRV_PCM_TRIGGER_xxx but SNDRV_PCM_TRIGGER_DRAIN. Update sw

[PATCH 5.10 008/717] arm64: dts: renesas: cat875: Remove rxc-skew-ps from ethernet-phy node

2020-12-28 Thread Greg Kroah-Hartman
From: Biju Das [ Upstream commit 53e573dc39fba1834f3e4fa002cb754b61a30701 ] The CAT875 sub board from Silicon Linux uses Realtek phy and the driver does not support rxc-skew-ps property. Fixes: 6b170cd3ed02949f ("arm64: dts: renesas: cat875: Add ethernet support") Signed-off-by: Biju Das Revie

[PATCH 5.10 039/717] ARM: dts: aspeed: tiogapass: Remove vuart

2020-12-28 Thread Greg Kroah-Hartman
From: Vijay Khemka [ Upstream commit 14f100c00f1e35e5890340d4c6a64bda5dff4320 ] Removed vuart for facebook tiogapass platform as it uses uart2 and uart3 pin with aspeed uart routing feature. Signed-off-by: Vijay Khemka Reviewed-by: Joel Stanley Fixes: ffdbf494821d ("ARM: dts: aspeed: tiogapas

[PATCH 5.10 017/717] rtc: pcf2127: fix pcf2127_nvmem_read/write() returns

2020-12-28 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit ba1c30bf3f2536f248d262c6f257b5a787305991 ] These functions should return zero on success. Non-zero returns are treated as error. On some paths, this doesn't matter but in nvmem_cell_read() a non-zero return would be passed to ERR_PTR() and lead to an Oops.

Re: [PATCH 1/1] PM / devfreq: Replace devfreq->dev.parent as dev in devfreq_add_device

2020-12-28 Thread pierre kuo
Hi myungjoo, kyungmin and cw: Would you please help to review this patch? Thanks a lot. pierre Kuo 於 2020年12月16日 週三 上午10:26寫道: > > In devfreq_add_device, replace devfreq->dev.parent > as dev to keep code simple. > > Signed-off-by: pierre Kuo > --- > drivers/devfreq/devfreq.c | 4 ++-- > 1 file

[PATCH 5.10 054/717] drm/bridge: tpd12s015: Fix irq registering in tpd12s015_probe

2020-12-28 Thread Greg Kroah-Hartman
From: YueHaibing [ Upstream commit c2530cc9610d84a5a0118ba40d0f09309605047f ] gpiod_to_irq() return negative value in case of error, the existing code doesn't handle negative error codes. If the HPD gpio supports IRQs (gpiod_to_irq returns a valid number), we use the IRQ. If it doesn't (gpiod_to

[PATCH 5.10 052/717] pinctrl: core: Add missing #ifdef CONFIG_GPIOLIB

2020-12-28 Thread Greg Kroah-Hartman
From: He Zhe [ Upstream commit b507cb92477ad85902783a183c5ce01d16296687 ] To fix the following build warnings when CONFIG_GPIOLIB=n. drivers/pinctrl/core.c:1607:20: warning: unused variable 'chip' [-Wunused-variable] 1608 | struct gpio_chip *chip; |^~~~ drivers/pinc

  1   2   3   4   5   6   7   8   9   10   >