From patchwork Thu Apr 23 00:37:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 11504777 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9A76D913 for ; Thu, 23 Apr 2020 00:38:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 82F472076C for ; Thu, 23 Apr 2020 00:38:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Bt1mUO+l" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726021AbgDWAiI (ORCPT ); Wed, 22 Apr 2020 20:38:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725895AbgDWAiH (ORCPT ); Wed, 22 Apr 2020 20:38:07 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 709A0C03C1AD for ; Wed, 22 Apr 2020 17:38:07 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id 7so3013578pjo.0 for ; Wed, 22 Apr 2020 17:38:07 -0700 (PDT) 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=75TUGWxKMG+i7tFa2VqXTsbczTpvn8gAWE0prn7/ZWo=; b=Bt1mUO+l/1mVfkOUUYZ/vPLooOPPe2yy40kGK8VcjvtAzsSqTHrRzK2SrxdZfESL25 xIhyrTUVQOpkLdo2Cy3uiDoEjf3Jbz7eT1wgoK9POxngD3LR5FziEYCRZYgW6NJY6GGw 5Ud1iXBI0aLIgsvXnrO9Y8T07eEsOCqRd2cY1a3kpqOc34nnZoNmeVqri1MpehT38tTX mKNE+EGdlZ3oySSoIghIScraOGmz/RuK4j20yUW7xf3Ip2aDehUuteE3XSC4Z0HMKw/L IAasCCd0aLdN18dqDWj0SyEPxg+qjZvTRVmlS3aDZvHSjsTdPpuJqqGZxuROsUD9Fcjx wvmA== 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=75TUGWxKMG+i7tFa2VqXTsbczTpvn8gAWE0prn7/ZWo=; b=rc8GUtgYcsky1C8Aky8pISRt8c/+I44UF0fEEzoaWY3xUBzHKkgZK6Jo+vmoX3NX/5 x5F5fUgPcYPR2W9PYdpcHiTWrlw0SgaQWbiGYt8bWSgFz7jJgPE+JKJmVWJvgt9lWv3d +qJyTQcj+AO1S2HqYX5mZJcnCST0UjPuFLnD+KI0NNyK17MnbCEBTBXQp5Rmhy0CQYh6 N/272RxdIEE17Yv5Z2bvTGK6biuxRVsg19VC72+BeCAKLiOS9P//x/70k88cnat2Mw9a +wgCmDsrk4EmwWj0KUrlgucem2zZI7yDbp6J4JLrAT/rNdWA6L0iK/DeNufqpq0QGasP u67w== X-Gm-Message-State: AGi0PubuTcSUPjllDlsid3djzq4yAy4qmuRb0SrKmCapyMybqDrkW8Cd Ku00JdO6YWT1/IpP91BZDp/oNw== X-Google-Smtp-Source: APiQypKajNV82QXE5K2iKfsEJ0r4+uN55Qcwur5XRKTlxsgeo77a7Pr94QQHDYOrM+bNQLwFdLPljQ== X-Received: by 2002:a17:902:b187:: with SMTP id s7mr1435976plr.0.1587602286693; Wed, 22 Apr 2020 17:38:06 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id 6sm432225pgz.0.2020.04.22.17.38.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Apr 2020 17:38:05 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Ohad Ben-Cohen Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, Chris Lew , Sibi , Siddharth Gupta Subject: [PATCH 0/4] rpmsg: Refactor Qualcomm glink_ssr Date: Wed, 22 Apr 2020 17:37:32 -0700 Message-Id: <20200423003736.2027371-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org In order to allow for wider use of the SSR notifier in remoteproc's qcom_common this series internalizes the notifier chain used by glink_ssr. To simplify the Kconfig dependencies it also moves the glink_ssr implementation to rpmsg and merges it with qcom_glink_native, as these do go hand in hand. Bjorn Andersson (4): remoteproc: qcom: Pass ssr_name to glink subdevice soc: qcom: glink_ssr: Internalize ssr_notifiers rpmsg: glink: Integrate glink_ssr in qcom_glink arm64: defconfig: Remove QCOM_GLINK_SSR arch/arm64/configs/defconfig | 1 - drivers/remoteproc/qcom_common.c | 17 ++++++++++- drivers/remoteproc/qcom_common.h | 5 +++- drivers/remoteproc/qcom_q6v5_adsp.c | 2 +- drivers/remoteproc/qcom_q6v5_mss.c | 2 +- drivers/remoteproc/qcom_q6v5_pas.c | 2 +- drivers/rpmsg/Kconfig | 6 ++-- drivers/rpmsg/Makefile | 3 +- .../glink_ssr.c => rpmsg/qcom_glink_ssr.c} | 28 +++++++++++++------ drivers/soc/qcom/Kconfig | 9 ------ drivers/soc/qcom/Makefile | 1 - include/linux/rpmsg/qcom_glink.h | 3 +- 12 files changed, 49 insertions(+), 30 deletions(-) rename drivers/{soc/qcom/glink_ssr.c => rpmsg/qcom_glink_ssr.c} (83%)