Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3069316pxj; Mon, 14 Jun 2021 13:42:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSkTLvx+83pnn8OFokVtB/cpY9J1J0eTpj4p7B8gZFX2lxhUE8JDUWSEvgx4CnXeDOKSgi X-Received: by 2002:a05:6402:152:: with SMTP id s18mr18880019edu.221.1623703336187; Mon, 14 Jun 2021 13:42:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623703336; cv=none; d=google.com; s=arc-20160816; b=ioipswuiNKwI+02zJzvtWg4OXJpVjaB2rrh0OhNuLz8YRr06BFPXWguy1ibETYqjIh 0/EYeH09mXogdS0uR24snlsJg0vvcNS/F081WvWAV1SDRcRD/tcLVaIUAqFczgQiPi4+ dt5dxWUthoXjnY8XxL0kBLRgkacdUh1AjAYMjHjvBeELTuOpNPz/rhG2/vTF5QgqUXdz tYYVAAeh4l8a3D5kmTAlMzEQoOi48mVWsPC0AsBz2qvD+Extjs4ehvKcPdBbg20JUTGf i2AZtc7GVXhIMG9SrJuAMQBj1xPwerU9vJ2eg0UpPPdlM1tihjuUxO2fOQmF3mKPZ7k/ uZ3Q== 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=wMvFvYlAu8/pSGZVYLtUuw7jWYqW1OvLE8HlOOTAm68=; b=dDQ5R363MOhCkdVbzHEofj6jeLJIdUDRHKozgLhdUzKVIjhv3Dfr5PEC/U4x5+P2qI 4BLdlgaS7VVA30o5+kM8puQNwQV1JM7ig7nwp/nshUGiuY33fY+Ni5UpZKaMqQjBF7Xv r/mFarVSpczNFi2wGI5Hp0dtC/D+/vepGRX2ACmzBbshyp3HnYamj2Oql8Bs7t3G2HnP sXA0DkmYBa6u5nsssOfODzPHVjBBUaGcCA/v/DdpwUZxHnMijprMr7ThuBpjZz6dFrGH 7gIziCB1Ee5xVaJaELwuclfBqQFANN6wmNr6NUJX23NyyKThX4B6G/XAfIoOrpbvcDwC oxEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="jH/TZf4Z"; 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 bl4si14839106ejb.689.2021.06.14.13.41.53; Mon, 14 Jun 2021 13:42:16 -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="jH/TZf4Z"; 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 S235172AbhFNUnC (ORCPT + 99 others); Mon, 14 Jun 2021 16:43:02 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:27850 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235187AbhFNUnC (ORCPT ); Mon, 14 Jun 2021 16:43:02 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1623703258; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=wMvFvYlAu8/pSGZVYLtUuw7jWYqW1OvLE8HlOOTAm68=; b=jH/TZf4Z00USKoRPf7bBxdfBnblvcyYYsCDRa7jw+JdhWDbrKvCsit04d4Bz3B6w2+fa/dH1 hdfJsNCnleS/cOtSGQ69diAO0gBSP4gsaaCJzV3jaCEjiFs/cP5vfRrDuAGESLHlLbKsJICZ 6ScaVml/LbI5VtpVaLDTwJ06iDA= X-Mailgun-Sending-Ip: 69.72.43.7 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-east-1.postgun.com with SMTP id 60c7bed8e27c0cc77f4f0fd3 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 14 Jun 2021 20:40:56 GMT Sender: sidgup=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 5E68EC4323A; Mon, 14 Jun 2021 20:40:55 +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 40E39C433D3; Mon, 14 Jun 2021 20:40:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 40E39C433D3 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 v2 0/4] remoteproc: core: Fixes for rproc cdev and add Date: Mon, 14 Jun 2021 13:40:40 -0700 Message-Id: <1623703244-26814-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(). 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 0000-cover-letter.patch.backup | 26 ++++++++++++++++++++++++++ drivers/remoteproc/remoteproc_cdev.c | 2 +- drivers/remoteproc/remoteproc_core.c | 27 ++++++++++++++++++--------- 3 files changed, 45 insertions(+), 10 deletions(-) create mode 100644 0000-cover-letter.patch.backup -- Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project