Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp188440rdg; Thu, 12 Oct 2023 02:46:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEOT58V1p8ysfvNKW9a1qGam/4eUhnU0QBarhq8U1/tWJHGaZrLiqMeLYtxp/KJgxVYsBbV X-Received: by 2002:a05:6a21:339d:b0:16b:c20d:fcd1 with SMTP id yy29-20020a056a21339d00b0016bc20dfcd1mr21821580pzb.21.1697104012154; Thu, 12 Oct 2023 02:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697104012; cv=none; d=google.com; s=arc-20160816; b=e4ln08SLFWqebAXVqWI4vzFpSpJsdjijxg7F1r/FEROP8HkgrAEaM5IgwC/n5B0VtQ Twi9B1oGHjA/tsHXE38CNZGGiWoKf/6LQJX9ntHpTMCiaVSHyLgo9LRNC93YgqbTgGMK CTGloylhK9OD4eNUcYj3SzL1gn9mqkjDV/OrLgbvbfVByHSeBl66iinWa6GTWs5iuQC2 80jY1n7pKIBfyum+W6bxiEpwCuj4QanbiuK86B1hzdr4dJohuhiP52OEXOERMOofnmwL KQeBqgs8Lsy6DEDHeUu4xiOpAi0x73ss+ifBpowtboe/pM3Hbn069S7SiJu7E1Od1yM7 gcmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=rJTgY3pdESir2V2lRvZ1csC5QRdVFLdJ0mewmyEBZyI=; fh=DAAgJLf4s0smpgJqxZKr7c0el7KScJ0FbfhkC9eFTa4=; b=DIIPZH+AI4aQbDc+6ZrWzIbOEBQEJpDJnpXgcSoyWb2CgeQc6LRlK/JwIpmdAoiEMA vaz8CWgFPB4L8XKdgyI9SQXnw3GYPKHGg8gavjhfhytE9PO43S3t6XZKSrQW/dhlLBTA F1BNg/tzd9eiMPLnBzE+skOFHaxcbL6T/n1unQQcH8HPzOIaJYvV1S8kWzJTTp5R6ocs mvLFwCMSilKcrpAP8YAlxFYT1KM1LZk+EV8l6XOjBoTFUH/7ulEld0Y5HJcSHwz+AoDK fW5jwJeV1fYay+z7AL6qqyfFwI77iYe/uywyO87gAUuTsJ9D8cbXZo1qjqgqMQOMg3ya +Hhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id v12-20020a17090abb8c00b002792576aa86si1952680pjr.134.2023.10.12.02.46.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 02:46:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 45B6A8073DD3; Thu, 12 Oct 2023 02:46:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235457AbjJLJqf (ORCPT + 99 others); Thu, 12 Oct 2023 05:46:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232594AbjJLJqe (ORCPT ); Thu, 12 Oct 2023 05:46:34 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A089E91 for ; Thu, 12 Oct 2023 02:46:32 -0700 (PDT) Received: from dggpeml500002.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4S5l6f0SNhz9tG6; Thu, 12 Oct 2023 17:42:34 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by dggpeml500002.china.huawei.com (7.185.36.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Thu, 12 Oct 2023 17:46:30 +0800 From: Junhao He To: , CC: , , , , , , , Subject: [PATCH 0/3] Fixed some issues and cleanup of ultrasoc-smb Date: Thu, 12 Oct 2023 17:47:03 +0800 Message-ID: <20231012094706.21565-1-hejunhao3@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml500002.china.huawei.com (7.185.36.158) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 12 Oct 2023 02:46:46 -0700 (PDT) Fix the two issues listed below and code cleanup a) Fixed the BUG of atomic-sleep b) Fixed uninitialized before use buf_hw_base Junhao He (3): coresight: ultrasoc-smb: fix sleep while close preempt in enable_smb coresight: ultrasoc-smb: simplify the code for check to_copy valid coresight: ultrasoc-smb: fix uninitialized before use buf_hw_base drivers/hwtracing/coresight/ultrasoc-smb.c | 49 +++++++++------------- drivers/hwtracing/coresight/ultrasoc-smb.h | 6 +-- 2 files changed, 23 insertions(+), 32 deletions(-) -- 2.33.0