Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2623229pxa; Mon, 17 Aug 2020 14:41:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxf0K7hoO9t7zUvt5+Aafhu229YZ3IarYc4xWNbMKD/rJxpS5xwCROl5R3hORenPWCTTn2M X-Received: by 2002:a05:6402:1d93:: with SMTP id dk19mr16750467edb.382.1597700477469; Mon, 17 Aug 2020 14:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597700477; cv=none; d=google.com; s=arc-20160816; b=hWovvnRyiLjqZ4n9lKhNXacNm9DTx57mLmGp2gMabYHrse00PiPutT202C2UrwqSJg o+DnDoSxTjWA8mgB4PdMhf/GrxtIV66+cAIXNfkzpEjGxRyUKJVOH//yWXF4iz+8MvWg IA5+c+m61g915aZn5nUl+dBtk93xdYDlgPW0yppIVFzmlapAkNDhGQZoGEb/gnmdnidN NcmJEmovG+VDwtt163io/idjZQ6vROMljXYGKWyiTEem3Nl0/TiiDpO1RRRqFlG64V0N rHVGpHzSeHIDio7pyS97kJfXvbDS9AJktBRXmfNr3AAfy3x0qbADz+BmRHeA7ETv7nrs IFMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=36GQH+6rcaxPuR85IXE416JBp9i1UNU0BYJeyKjHFOE=; b=jilc6w3Cpz0fOt2f7W0pUKWDjyto5Zs2EkD2TrVbeKAn6E9B3rMaH+5jmn8SYbd2yc 87U5e3gH9B2I698Jw+8v+agEcbDv2fNJwavPuuIht+vOxu5PlABZh5NPpkeISgpjeWBu gCtTHOZu+7S9I4n2QRlPPO2/FCwIyzsKJ0bG7uxBbaoNZDgujLUsTbmkSA1dTrEkr+vi 1yaqwQUi9T2MdogDhNrVD2fd6mfdEVc6nqNL2PQi4U0cxgPz2o9cJvEXh+kE8LrXX1/I mRGgj4dNFx9kotQc6oj7bNvA1FMrqORgxhNsRaCkslxSn00A+qiBCe9PDopidZcX+N4W ClXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nZLHGjhc; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk14si11974994edb.61.2020.08.17.14.40.54; Mon, 17 Aug 2020 14:41:17 -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=@kernel.org header.s=default header.b=nZLHGjhc; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729174AbgHQPWV (ORCPT + 99 others); Mon, 17 Aug 2020 11:22:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:44502 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729382AbgHQPVp (ORCPT ); Mon, 17 Aug 2020 11:21:45 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C952322BF5; Mon, 17 Aug 2020 15:21:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597677705; bh=VVwKLpYeuD89UFfGouxauKaEfbKlFUh+w/sVl+NZxHM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nZLHGjhcu4y10JWHm2JtK9t7d3cX+WNhuQzDM7G4dHXn+14Nznyx/KvAp65uF0cE4 hT3kjSboYzqvvHp0CpDfg2rV53nvWmKuK6z+3HnIjOHDy4pnF+YEh5hcMBySwMQ885 Xg7feWFZUPPFOI0rjx/eXf/lwU5t03aag61fv5+o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stephen Boyd , Maulik Shah , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.8 078/464] soc: qcom: rpmh-rsc: Set suppress_bind_attrs flag Date: Mon, 17 Aug 2020 17:10:31 +0200 Message-Id: <20200817143837.516007275@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143833.737102804@linuxfoundation.org> References: <20200817143833.737102804@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maulik Shah [ Upstream commit 1a53ce9ab4faeb841b33d62d23283dc76c0e7c5a ] rpmh-rsc driver is fairly core to system and should not be removable once its probed. However it allows to unbind driver from sysfs using below command which results into a crash on sc7180. echo 18200000.rsc > /sys/bus/platform/drivers/rpmh/unbind Lets prevent unbind at runtime by setting suppress_bind_attrs flag. Reviewed-by: Stephen Boyd Signed-off-by: Maulik Shah Link: https://lore.kernel.org/r/1592808805-2437-1-git-send-email-mkshah@codeaurora.org Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- drivers/soc/qcom/rpmh-rsc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/qcom/rpmh-rsc.c b/drivers/soc/qcom/rpmh-rsc.c index 906778e2c1fae..ae66757825813 100644 --- a/drivers/soc/qcom/rpmh-rsc.c +++ b/drivers/soc/qcom/rpmh-rsc.c @@ -1031,6 +1031,7 @@ static struct platform_driver rpmh_driver = { .driver = { .name = "rpmh", .of_match_table = rpmh_drv_match, + .suppress_bind_attrs = true, }, }; -- 2.25.1