Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp633265pxb; Wed, 16 Feb 2022 00:27:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9hrXljAf+oQlfkMuzNlHdgeb5BuGPtnFyz6ibP2QI/mWXeJqLWMxxZWpRywIg8MeT+ym8 X-Received: by 2002:a63:86:0:b0:36c:48e8:627e with SMTP id 128-20020a630086000000b0036c48e8627emr1383658pga.53.1645000040189; Wed, 16 Feb 2022 00:27:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645000040; cv=none; d=google.com; s=arc-20160816; b=zGqvfX9seEkgNxhNsbk2+AWXDtnBpLMNpV8c+sgxniX41RV8MQDL9urpMo9q4vbfqE LCYxwmZBnGz+lX4bv3wUBuVCYIWXfjyCiJKpDowtEjjFtLeT+PzQyBB6eVROnZd5MnvP 8adDuBjhEpPsRapBs01L/9pGPTSk9Z4/ADFlIn3jpa1OooGRkfTyRgl8NYVy0eo2nvo8 sgBKGuVQzok1WD+W7RcitSk7gNCZWkcRF1zb2PWDOoyfhuojndzqYD4oILv5uBkQ2WEp cx8Sbsyb9WPRhDTaLxnLwJ2kt6Oy0/BeoA25DEaS1oQ49kv92Zwli7U+Mx4YkxiJjotT DzPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=KAQc8YkqRT1ouuazoxPakEAsSCwiMEHewqlC7GzcM50=; b=Vs9kW+2mA/apblRC7cS/iHLWlT0GNrwZJr2JJHdk4L1wg5esWJr16x/nMxhP6FsyFv 5DnL8nY01SkE7s310GIILRPTkKRZGGL1Z2d3ZQNbruwgFyRzdpfx96m+rrUmiBT9MCmH xsk9uho5ZOGwHPVW14RsiaVhi3ZNPvhl+j1PRd5PyIDYejqoOcD9wijqXn1DY06i5MPu 7fTdStWzCYQ2mPa3t6BlyD5sUB6wE625ZHUKykoN/+dozFeYtfHuRJlWA5YkZ7QC63Fe LU4fPTpRh/2bASIzHgSqifaKKemTBZIWHn51S3wJqEJAd69yL0O0bmbzoCGJePNfsW/u LEYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AyF6sTSN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u6si19265211ple.88.2022.02.16.00.27.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 00:27:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AyF6sTSN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7109BC7D6E; Wed, 16 Feb 2022 00:12:45 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231478AbiBPIMw (ORCPT + 99 others); Wed, 16 Feb 2022 03:12:52 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:39328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231445AbiBPIMv (ORCPT ); Wed, 16 Feb 2022 03:12:51 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2BF5B0D2C; Wed, 16 Feb 2022 00:12:39 -0800 (PST) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 21G8CaVt091592; Wed, 16 Feb 2022 02:12:36 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1644999156; bh=KAQc8YkqRT1ouuazoxPakEAsSCwiMEHewqlC7GzcM50=; h=From:To:CC:Subject:Date; b=AyF6sTSNWEzgqtcXMnga5yQDzHPqM9OAEyaCt8WEXZtXmVgunHJNypfs1416z57GU x+8Pp1PtPVX70kTB0fe/mM4a7CyS0L/udhpK/0Ebxmb/R9gYtWjxVIbxEW+TKtRIuC qvsgnfNcVSA+ltIDkG3KuLyltDVctRkNcdSiWDt0= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 21G8CaoA064513 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 16 Feb 2022 02:12:36 -0600 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 16 Feb 2022 02:12:36 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Wed, 16 Feb 2022 02:12:36 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 21G8CYtC032917; Wed, 16 Feb 2022 02:12:35 -0600 From: Puranjay Mohan To: , , , , , , , CC: Puranjay Mohan Subject: [PATCH v5 0/2] remoteproc sysfs fixes/improvements Date: Wed, 16 Feb 2022 13:42:22 +0530 Message-ID: <20220216081224.9956-1-p-mohan@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a refresh of the patches from an old series [1]. Patch 1 of that series is not required now as [2] serves its purpose. Patch 2 has been improved and is being posted here. Patch 3 is unchanged, it has been rebased and posted. The features being introduced here will be needed by the recently posted PRU remoteproc driver [3] in addition to the existing Wkup M3 remoteproc driver. Both of these drivers follow a client-driven boot methodology, with the latter strictly booted by another driver in kernel. The PRU remoteproc driver will be supporting both in-kernel clients as well as control from userspace orthogonally. The logic though is applicable and useful to any remoteproc driver not using 'auto-boot' and using an external driver/application to boot the remoteproc. [1] https://patchwork.kernel.org/project/linux-remoteproc/cover/20201121030156.22857-1-s-anna@ti.com/ [2] https://patchwork.kernel.org/project/linux-remoteproc/patch/20201126210642.897302-4-mathieu.poirier@linaro.org/ [3] https://patchwork.kernel.org/project/linux-remoteproc/cover/20201119140850.12268-1-grzegorz.jaszczyk@linaro.org/ Puranjay Mohan (1): remoteproc: Introduce sysfs_read_only flag Suman Anna (1): remoteproc: wkup_m3: Set sysfs_read_only flag drivers/remoteproc/remoteproc_sysfs.c | 19 ++++++++++++++++++- drivers/remoteproc/wkup_m3_rproc.c | 1 + include/linux/remoteproc.h | 2 ++ 3 files changed, 21 insertions(+), 1 deletion(-) -- 2.17.1