Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3950225pxj; Tue, 15 Jun 2021 12:05:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynDA+GeZ3ye3l+iLrFZYLzW0lamlYXceTApfW71iNYqQ2tQX2uC+iR39+VEGJhlLNQyTud X-Received: by 2002:a17:906:22c6:: with SMTP id q6mr1122631eja.275.1623783939327; Tue, 15 Jun 2021 12:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623783939; cv=none; d=google.com; s=arc-20160816; b=paj9ntmRwZPOaitIRdc0qai87oslbr77ixY20JWxB2IcY23xs6WPx6i+oEf5s2ZIOG Zd0i/9FBUD7IxW1KzK9mbSzT4JWvovPORLxknMq4eWDkKa+72fCPHNW98VoPggZrKbKG KYj/MnIgL9e4yORjNmD9lRYLvzjwcl2JrSTUbyPJG8iFy+jEUkzXydSCYzVG+xgfrZIj lVL9gvINjq1bgiu1FGnsSg2HpbHJFlTCHtLl6foGSh3HmC8ccs0qMmNQc0xAoM4uVWsX Yt9LtfZkHtoVsIwMuGzjYBIu67Tp7OaWcjf5qRs14tHHH6X0r4KZnh/7/gtp1Bjv41N1 UEMw== 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=A9Fg4K/FXAwPb6tt2/6YHal/c7q8k6fXMT7E617B4fQ=; b=buFkwC5N4rVz2FqMlsbpDtGTM8bFnAITkW5Txjt2P/2qoTPzIM+1d2C0llJ8jO0Tad CGY4KKZrMMmyQJ4fdM9zH+IsgBGedHU8VTMiQjZKPzVpusUTX4cBf7TEWXAOG9sCQYZv idRHp0+xDdw3Q7qvZM2Ak98RtVxFI17tSJsh+VKMPHhDioFBWTI0cqjuU1y4wlwoS5fy ag5pAlAfkgdKkKgUwe4woWPbuv6yc8VI3OOJiuNbuGXdrEFOtsyFAb21IC05YeePXu56 0YeXEpk/uC+OONwxu+Mrmd4O/d5waxckbE5J/LD5+fIlr8XkXds++mKvFKPcfjTwOgDq wt6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=ENRyT+se; 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 yh29si12853539ejb.592.2021.06.15.12.05.14; Tue, 15 Jun 2021 12:05:39 -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=ENRyT+se; 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 S231481AbhFOTGJ (ORCPT + 99 others); Tue, 15 Jun 2021 15:06:09 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:22820 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231276AbhFOTGG (ORCPT ); Tue, 15 Jun 2021 15:06:06 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1623783842; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=A9Fg4K/FXAwPb6tt2/6YHal/c7q8k6fXMT7E617B4fQ=; b=ENRyT+sewEssQ+Babd0oXjMCJuY1z8LQtsEimqjwC0z9/Ihil4UUld3D3t4vUtbTukNGC+Vy NP66qUU2LtVI02KUufSno596NOW8jEAZIMxNcT8FypbgiyJ+84pRwzFrrqISMIk02frwWnII P2XpDsGWABQQ3grr2CXHR7TD938= 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-n02.prod.us-west-2.postgun.com with SMTP id 60c8f9992eaeb98b5e89e585 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 15 Jun 2021 19:03:53 GMT Sender: sidgup=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 6C31CC4323A; Tue, 15 Jun 2021 19:03:53 +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 AC14BC433F1; Tue, 15 Jun 2021 19:03:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org AC14BC433F1 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 Subject: [PATCH v4 0/4] remoteproc: core: Fixes for rproc cdev and add Date: Tue, 15 Jun 2021 12:03:40 -0700 Message-Id: <1623783824-13395-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 rproc cdev remove and the order of dev_del() and cdev_del(). Patch 4: Adds error handling in rproc_add(). v3 -> v4: - Moved stable from CC to CC in sign-off area. 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