From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE67DC3F2D3 for ; Fri, 28 Feb 2020 18:34:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B83FC246A3 for ; Fri, 28 Feb 2020 18:34:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="sia8DF2P" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726822AbgB1SeE (ORCPT ); Fri, 28 Feb 2020 13:34:04 -0500 Received: from mail-yw1-f66.google.com ([209.85.161.66]:33364 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726766AbgB1SeE (ORCPT ); Fri, 28 Feb 2020 13:34:04 -0500 Received: by mail-yw1-f66.google.com with SMTP id j186so4281196ywe.0 for ; Fri, 28 Feb 2020 10:34:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7wb4fM/fxsBWj2lM6yFnKblnS6hqlfKT/9ovNQOCelQ=; b=sia8DF2PMZvqJTaJ2BJs3rWU3msaKBIuEH2gPCHv0JJgn6W+hTvHfJRKTwcp4IklR1 oO0c1a1oEWC+/wMl2RYPML96chVYwx8gV9CQHY8c57P9MunsWLkIV+Rr16kBrmg2B/av FPophBKQnG5A5m/ot141yYwRwXUu+hj2SNi+jArp2bs1MkM3y+srh1lASYCF3ba4Tquk rIUHuplZ6W6BBm2MvCpNJ70cmgXBMpDm1wFnBVEuewJvxETJA1o/VtCt4Mk4NOcLuVAI IZL0cJ6GlaEPfnxm8NoyaL9MlXlzqYu2BuPwRTrkE7HfyH+Rh8FRYiiv4hT0uOkmqnoG LMDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7wb4fM/fxsBWj2lM6yFnKblnS6hqlfKT/9ovNQOCelQ=; b=mSscXC/tIvF+bszEvC0E/KiHR5Wg8eTjyC8LRLCF4nvA0SLf8WSt2v/mZ1Ar/eWYEr c2VXuDGsaqpOQ+ay2R3cJXVu6KVmr76kwnQ2rj6Wj5v9E9QiXrBnJrmyDJPKPfvmKA/1 XAVmmEraWkYgPvS72ZydNCs8cTpJWZTk4u47yd5DBlWOPoTHOAry0y2UecwfYzHtqIMF 0XZpQTBINAbbW5nu3becy8MGvNo1jCiFhtC7g1uJhfvXc7WUmCAaXior6trBnKrKkYtk mLxVIdESzCGr80J4RdGS8hllKNb94ZEH4XymuM/1mUr6UKE1wo0e5RouUOQbH0SChsB2 mXyA== X-Gm-Message-State: APjAAAXuEdK0lTkqlr00rLUkegJi/+4W6ntRBt9vLy/SpD92qYAqzDUN OTFQ3b+txqJs4fnR4+Ld9aDwLw== X-Google-Smtp-Source: APXvYqzczBTiNG47/L6qDWHBWVsGtRUHy5XwYXQS7CV1VyIbsG528QGtwlJyZAQ3dQf5N+GR6iDVLA== X-Received: by 2002:a25:8449:: with SMTP id r9mr4754880ybm.244.1582914843320; Fri, 28 Feb 2020 10:34:03 -0800 (PST) Received: from localhost.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id o127sm4409884ywf.43.2020.02.28.10.34.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2020 10:34:02 -0800 (PST) From: Alex Elder To: Ohad Ben-Cohen , Bjorn Andersson , Andy Gross Cc: linux-remoteproc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] remoteproc: some bug fixes Date: Fri, 28 Feb 2020 12:33:55 -0600 Message-Id: <20200228183359.16229-1-elder@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series fixes some bugs in the remoteproc code. - The first patch moves some checks of the remoteproc state inside the protection of the mutex. - The second just eliminates an unsafe state check before calling a function, because the function will make the same check safely. - The third does proper recovery in the q6v5_probe() error path. - The last returns EINVAL if an unrecognized value is written into the "recovery" debugfs file. This series is available (based on v5.6-rc3) in branch "remoteproc-v1" in this git repository: https://git.linaro.org/people/alex.elder/linux.git -Alex Alex Elder (4): remoteproc: re-check state in rproc_trigger_recovery() remoteproc: remoteproc debugfs file fixes remoteproc: qcom: fix q6v5 probe error paths remoteproc: return error for bad "recovery" debugfs input drivers/remoteproc/qcom_q6v5_mss.c | 23 +++++++++++++++-------- drivers/remoteproc/remoteproc_core.c | 12 ++++++++---- drivers/remoteproc/remoteproc_debugfs.c | 14 +++++++------- 3 files changed, 30 insertions(+), 19 deletions(-) -- 2.20.1