mbox series

[v3,0/4] Fixed some issues and cleanup of ultrasoc-smb

Message ID 20231114133346.30489-1-hejunhao3@huawei.com (mailing list archive)
Headers show
Series Fixed some issues and cleanup of ultrasoc-smb | expand

Message

Junhao He Nov. 14, 2023, 1:33 p.m. UTC
Fix the Three issues listed below and use guards to cleanup
a) Fixed the BUG of atomic-sleep
b) Fixed uninitialized before use buf_hw_base
c) Fixed use unreset SMB buffer

Changes since V2:
 * Ignore the return value of smb_config_inport()

Link to V2: https://lore.kernel.org/lkml/20231021083822.18239-1-hejunhao3@huawei.com/

Changes since V1:
 * Add comment for remove lock from smb_read()
 * Move reset buffer to before register sink
 * Remove patch "simplify the code for check to_copy valid"
 * Add two new patches

Link to V1: https://lore.kernel.org/lkml/20231012094706.21565-1-hejunhao3@huawei.com/

Junhao He (4):
  coresight: ultrasoc-smb: Fix sleep while close preempt in enable_smb
  coresight: ultrasoc-smb: Config SMB buffer before register sink
  coresight: ultrasoc-smb: Fix uninitialized before use buf_hw_base
  coresight: ultrasoc-smb: Use guards to cleanup

 drivers/hwtracing/coresight/ultrasoc-smb.c | 108 +++++++--------------
 drivers/hwtracing/coresight/ultrasoc-smb.h |   6 +-
 2 files changed, 38 insertions(+), 76 deletions(-)

Comments

Suzuki K Poulose Nov. 21, 2023, 11:34 a.m. UTC | #1
On Tue, 14 Nov 2023 21:33:42 +0800, Junhao He wrote:
> Fix the Three issues listed below and use guards to cleanup
> a) Fixed the BUG of atomic-sleep
> b) Fixed uninitialized before use buf_hw_base
> c) Fixed use unreset SMB buffer
> 
> Changes since V2:
>  * Ignore the return value of smb_config_inport()
> 
> [...]

Applied, first 3 patches to fixes

[1/4] coresight: ultrasoc-smb: Fix sleep while close preempt in enable_smb
      https://git.kernel.org/coresight/c/b8411287aef4
[2/4] coresight: ultrasoc-smb: Config SMB buffer before register sink
      https://git.kernel.org/coresight/c/830a7f54db10
[3/4] coresight: ultrasoc-smb: Fix uninitialized before use buf_hw_base
      https://git.kernel.org/coresight/c/862c135bde8b

And the last one to next branch

[4/4] coresight: ultrasoc-smb: Use guards to cleanup
      https://git.kernel.org/coresight/c/60e5f23dc5d6

Best regards,