From patchwork Wed Jan 26 19:04:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepak Kumar Singh X-Patchwork-Id: 12725634 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0FC14C28CF5 for ; Wed, 26 Jan 2022 19:05:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242412AbiAZTFW (ORCPT ); Wed, 26 Jan 2022 14:05:22 -0500 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:7079 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232340AbiAZTFV (ORCPT ); Wed, 26 Jan 2022 14:05:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1643223921; x=1674759921; h=from:to:cc:subject:date:message-id:mime-version; bh=nxcJKTUMMSH8CpLn+YbNpYnBLguVnMx25AgvYIjSZkI=; b=HIQFyGtUu76IywkFn2ri8Jo1NKQbS20hpMNIFF3BGrHsTLq0d1J2Ikzy FvzkqNk/eYKzbwGmjSn31Fh/Oy1IFhvzaB1NOs3Pa2EdNZBexy7VIfpVj HbmK10I5nIvpUhJ5aTCTpy4UWKdTrJgnATI3qApejI+gmT49Bnu3UzWVw w=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-02.qualcomm.com with ESMTP; 26 Jan 2022 11:05:21 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2022 11:05:20 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Wed, 26 Jan 2022 11:05:20 -0800 Received: from deesin-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Wed, 26 Jan 2022 11:05:17 -0800 From: Deepak Kumar Singh To: , , , CC: , , , Deepak Kumar Singh Subject: [PATCH V1 0/3] rpmsg char fixes for race conditions in device reboot Date: Thu, 27 Jan 2022 00:34:43 +0530 Message-ID: <1643223886-28170-1-git-send-email-quic_deesin@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org Fix for different race conditions observed in rpmsg_char driver for reboot test of device. Deepak Kumar Singh (3): rpmsg: glink: Free device context only when cdev not in use rpmsg: glink: Add lock to avoid race when rpmsg device is released rpmsg: glink: Add lock for ctrl device drivers/rpmsg/rpmsg_char.c | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-)