Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3269123pxj; Mon, 14 Jun 2021 19:28:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMDuEWMts6iqkFMvXOKZkdCVbg6U9O5tl0fejAmMnPk2WEdE8CR3inuG9L1Y1bWR+GY5tI X-Received: by 2002:a05:6402:510c:: with SMTP id m12mr18924829edd.126.1623724116437; Mon, 14 Jun 2021 19:28:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623724116; cv=none; d=google.com; s=arc-20160816; b=J7fxBQFwesJY/NEhR+jirAxZcOQUEpzDBK5Y2otwmobDyniU4/hqetrRCeiPZcembN NkLn56aXePjamtjEY/CF2xuqq+2+5X3KRtAkCkau/KHascUCnxYnQzFW6NwX0hEM1qT4 lMtFvCYDTV3U5btHsEt+8sstW8bmEbSwZ93HsdnaMNTLxiQLcHBY8ixpvYVg+mpdNrYA fDhzm61MCFEW6AUIBGfBJ14w4HCbL74HLAcKsIBKVEPmeK05G3uJicWU6y0uVJ2AL2EO NdwNDv32OHTP9FCx/k2UOSZRjhUHf8CRTBgqPq2XgljhOqU/BAm2BN3XdcEwNR2e+9UL dCpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=2Mxmy8FQE/u8N8PCwEBPxghlnJW8fjvbaM/3RXM7hX8=; b=AREIH4mPbwtld94yIodaubgAeOwEd1Ck4SmPXtZREnVjvOnSueEP8mhCHgzVwTzuFc U0CUYnLWwQWxv/PwfdBOMplOPdj+YXjA/5eKdMm01hXvW2Xbpg6Kj7U0tH3ztZNQSCmo 3T1H7vNzh9y4lUb/1I2+UOzB/mYdCSpseHycro+DYFIYVsgoNlxC3BB9w5L7fAF5CeMi dh8BpZdOU3VuS6shqE+68s+awze1wrD9b6RfBEjHS6EBis7r7IIthKeleZ7kKB3i/R81 CdAgDgcSpK6wiB+Z/I8IJOoqtFoT2G6G0TioFK9kIbQxzipUNGmRMAWlI9zzUQ01OwZi Jllw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=msFKR5CU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si9266423ede.515.2021.06.14.19.28.13; Mon, 14 Jun 2021 19:28:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=msFKR5CU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229728AbhFOC0P (ORCPT + 99 others); Mon, 14 Jun 2021 22:26:15 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:12620 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231753AbhFOC0I (ORCPT ); Mon, 14 Jun 2021 22:26:08 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1623723845; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=2Mxmy8FQE/u8N8PCwEBPxghlnJW8fjvbaM/3RXM7hX8=; b=msFKR5CUqeWBgOwL8ewBjNeqSepAMfZlW1LGN3j/G/uZQ+X/TrEhVJiEbnPoTh73DrWY9FL6 pD8OFwzhSlcTVCKWgLFbCN7NLV074p5i+m69/PlFEpo12ewuRViK3qjYi5G7qr7l7WdfvAt7 /5Y9HqceiKHv9MSYzBsYE+OnwHY= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n07.prod.us-west-2.postgun.com with SMTP id 60c80ea0b6ccaab753d5c657 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 15 Jun 2021 02:21:20 GMT Sender: sidgup=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 00D9FC4338A; Tue, 15 Jun 2021 02:21:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from sidgup-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sidgup) by smtp.codeaurora.org (Postfix) with ESMTPSA id 04D6DC433F1; Tue, 15 Jun 2021 02:21:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 04D6DC433F1 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=sidgup@codeaurora.org From: Siddharth Gupta To: bjorn.andersson@linaro.org, ohad@wizery.com, linux-remoteproc@vger.kernel.org Cc: Siddharth Gupta , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, psodagud@codeaurora.org, stable@vger.kernel.org Subject: [PATCH v3 0/4] remoteproc: core: Fixes for rproc cdev and add Date: Mon, 14 Jun 2021 19:21:07 -0700 Message-Id: <1623723671-5517-1-git-send-email-sidgup@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series contains stability fixes and error handling for remoteproc. The changes included in this series do the following: Patch 1: Fixes the creation of the rproc character device. Patch 2: Validates rproc as the first step of rproc_add(). Patch 3: Fixes the rproc cdev remove and the order of dev_del() and cdev_del(). Patch 4: Adds error handling in rproc_add(). v2 -> v3: - Removed extra file that got added by mistake. v1 -> v2: - Added extra patch which addresses Bjorn's comments on patch 3 from v1. - Fixed commit text for patch 2 (s/calling making/making). Siddharth Gupta (4): remoteproc: core: Move cdev add before device add remoteproc: core: Move validate before device add remoteproc: core: Fix cdev remove and rproc del remoteproc: core: Cleanup device in case of failure drivers/remoteproc/remoteproc_cdev.c | 2 +- drivers/remoteproc/remoteproc_core.c | 27 ++++++++++++++++++--------- 2 files changed, 19 insertions(+), 10 deletions(-) -- Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project