From patchwork Fri Jun 19 14:33:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "gregkh@linuxfoundation.org" X-Patchwork-Id: 191263 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp700734ilo; Fri, 19 Jun 2020 09:50:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvaigJ4NQ1amAmNYF/zPOZwQ4hS5BDjAaSOmRTsjLVZuskP3NR4n6rdqPoZOZXp3gTsoz/ X-Received: by 2002:a17:907:11c2:: with SMTP id va2mr4608278ejb.98.1592585414052; Fri, 19 Jun 2020 09:50:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592585414; cv=none; d=google.com; s=arc-20160816; b=Xn739sueD8AVRDojYBjqLCitgb5OyFeD/IOldsOi8A0tFI8KJmowhHMBC2W4vsqVTR fJAs9Vg7Nr0rfJkzlwlJ9ikny4MaC7HoWfaFJ2Lp/o67oayA+zyE1Rmki3tLt6KbMH7R RDUZ2gdInkKaNAlJKn5P2T4rj0P4Jpp1mPhqFSPp+0QsneI6pZyF+fkRTqLWbD2uMsrv XkU08vD564YPXUavZuc3xqLY/+jjuIPZqz7MDJ3DruoSvyXy0dubn23elzCuMuyCNiSC Dc896G4B1fQugdLxSbljt61HScUr5FOYc5LMYJUeSIoBh+f4eOjpDsvrGseLT8UglhGN WnXw== 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=iEgipgwj4hS3KDezLb3Jth6NMUvM+tyiFCMP/FYwEFs=; b=kftWLyi8Zrhhtg1KgVgxDYaqHIhaCFzhwhiLpy09f0VTtj4R3i8rfjdxWHnkd+80GW 4DcYE26AZA5dkLoM74rcVneqANJmSJGlPqduD84JCVqRmG+McdW9a2BWBa5t3wlHyxsp sPMCPSE+Fvyiqcaxb7QjMRujNoYrDT4kA/LqLM2/5c3ssxd0U2SNWt4QpEOyScBeFMoU cmYB9zKe1N45nAUshSfijo+Ybg3L4fao4GJj8kD4fM0fdThHyP55zLss8Rq192ELXxfi 77XA7yy/z0jhKghnvylSzVFAPgGTfYPvh71h5oJof+NBBjDvL0k0EVVVbR3g+wYWu19w EQ0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rFTivql9; 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 m17si359088ejj.153.2020.06.19.09.50.13; Fri, 19 Jun 2020 09:50:14 -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=rFTivql9; 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 S2387950AbgFSOjA (ORCPT + 15 others); Fri, 19 Jun 2020 10:39:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:56248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387945AbgFSOi6 (ORCPT ); Fri, 19 Jun 2020 10:38:58 -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 4B21920DD4; Fri, 19 Jun 2020 14:38:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592577537; bh=4JFtDNHFFW5pg3sH6TQO9VaAPDJzQon9y+GOPrV4sBw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rFTivql9sd/kEwN9TllJMNa7KyDyQHaFBmFmaDzjd6S6CkoGw2Vy344ml1fgMlomJ VWujn3ChaffkgqLfcv/epGJfx1grEglAWjkaP/Oi1Np9YDgfdtaAX0xAYDs9R35isJ BN7YOiVnR1s6OGId0rycAwQWtj1zkmsNoFOGm9d4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anders Roxell , Arnd Bergmann Subject: [PATCH 4.4 090/101] power: vexpress: add suppress_bind_attrs to true Date: Fri, 19 Jun 2020 16:33:19 +0200 Message-Id: <20200619141618.685917411@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619141614.001544111@linuxfoundation.org> References: <20200619141614.001544111@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 @@ -150,6 +150,7 @@ static struct platform_driver vexpress_r .driver = { .name = "vexpress-reset", .of_match_table = vexpress_reset_of_match, + .suppress_bind_attrs = true, }, };