From patchwork Fri Jun 19 14:33:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 191238 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp656279ilo; Fri, 19 Jun 2020 09:00:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMv3iPm7LnxORJb+pqnvdaMbsSmY2urx5T4SL0V8Xv9c2XDd+eNWN2/X3qAa6ArEdWin9G X-Received: by 2002:a17:907:11c8:: with SMTP id va8mr4618858ejb.90.1592582456722; Fri, 19 Jun 2020 09:00:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592582456; cv=none; d=google.com; s=arc-20160816; b=D3Qp9WDjunN5rDmlVvPDgSRf3iUUxv/td9umvD5aegklCFwYgZbq6VSCxy6YxqAXjM oXZtTipXK0KJZpqDiJAgEPcEGmLpCXr8SsaTJzwMoP2hpMTSxdWF5Z3/T/KcghmjylO1 b3mgURDYFj3mP7p69baQHfOE/BVNGTbYHocMe6nbCX/mmeCKTvqUVCnvk1cUDoHHkh2A 9oYuVCmR/8cFM6v419iTlc70W6Ii7p+azX8LgELdrtCURKbzx13SM9awillbXmnmgBAL XlCm9g04m+mIXvoAz0hQJywVB0FZb/aSRbwN4MGniqbGcBpMdTHqaHFubnandh2UcBx0 PmDA== 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=FSdh6GJ8dOrT3kKPvjb9ggM++eoJXI/5bzrFtcc0oaE=; b=q+E6/HZea5DvkdzmelWIQmI8E41JxQ2cwins9s0gLK86oDTp9WNWwmsS+QnInYXoeS upqix4yTsk5f+DMt1FDh/X6l1EYdzSr77M6tSrRXqiuxMkr3n6cFh6YoVhi4w8T38Rr6 Dm1CiYwFW7lUqMQyqAq0js5V8jrjKf+MF8cSPBDOzuaGbFj/sH4IlKUtJALGZzNKzqfR gXHqgTLskTc6ZHEYix2sO1vpzyX32A2hQYcnvlsL5gxsiF+5oMdIWbugXP3FFDalAyzL dH6vzpiehMkQyUUISulPW5R1RKerk+UNBL5jaGf2G7WlIcGbE9Bfwiht/Howe3DTuuVi GUaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mNVTQSUK; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 dn14si5274197ejc.414.2020.06.19.09.00.56; Fri, 19 Jun 2020 09:00:56 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-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=mNVTQSUK; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392298AbgFSPOD (ORCPT + 15 others); Fri, 19 Jun 2020 11:14:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:44592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392062AbgFSPOC (ORCPT ); Fri, 19 Jun 2020 11:14:02 -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 0527521582; Fri, 19 Jun 2020 15:14:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592579641; bh=QasecetVS2wywm5+DfOgUE0zZX8LEXJJBx2rbD4hdMc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mNVTQSUKUzaWQnhlFAk3gdmLX/vS2vOsXFT1irPNS28OH089QLz5Q8PH4VMlS1gbs RMoRhl4mBU0lTFyPEGN/zUg7t70qWarlzWdD1nwIwtr9+NH4TX3vNxM03uXb4eluWL mIXl0seINtZab7f5VrXPCKzy2FaHR5xrAGjui0jc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anders Roxell , Arnd Bergmann Subject: [PATCH 5.4 211/261] power: vexpress: add suppress_bind_attrs to true Date: Fri, 19 Jun 2020 16:33:42 +0200 Message-Id: <20200619141700.003858944@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619141649.878808811@linuxfoundation.org> References: <20200619141649.878808811@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Anders Roxell commit 73174acc9c75960af2daa7dcbdb9781fc0d135cb upstream. Make sure that the POWER_RESET_VEXPRESS driver won't have bind/unbind attributes available via the sysfs, so lets be explicit here and use ".suppress_bind_attrs = true" to prevent userspace from doing something silly. Link: https://lore.kernel.org/r/20200527112608.3886105-2-anders.roxell@linaro.org Cc: stable@vger.kernel.org Signed-off-by: Anders Roxell Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- drivers/power/reset/vexpress-poweroff.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/power/reset/vexpress-poweroff.c +++ b/drivers/power/reset/vexpress-poweroff.c @@ -143,6 +143,7 @@ static struct platform_driver vexpress_r .driver = { .name = "vexpress-reset", .of_match_table = vexpress_reset_of_match, + .suppress_bind_attrs = true, }, };