From patchwork Fri Jun 19 14:33:37 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: 191211 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp598870ilo; Fri, 19 Jun 2020 07:52:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwn1xFaZLZD+Devh5P/LD8w2XeHJNo1yHWrlJLyPZQlQw2bf2f3N70JuTs7ZY2hwt+PGM3j X-Received: by 2002:a05:6402:b13:: with SMTP id bm19mr3826909edb.82.1592578333988; Fri, 19 Jun 2020 07:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592578333; cv=none; d=google.com; s=arc-20160816; b=XclUwlYs4+URiy8VL7ibjeKrz75bTzEnsQ1Rbs0hzHC05WgSaSlE28WxuNv5tb/Yqa YBU0ZEE75lMrYY3vj1I04LfdOotRjW07BcB1n6tRmnVn/FD1nO+etJLkvQ3z9J8xihoJ nUCNu3fYIdtI3Atsjp5IgN48hP7D3T0orvTdw8w6mypQv2a+MWQdJGxjbgcNxzQrN8Cy cXM0Z82yg/bOqKNiLE55FWGaDSrX1fQoQiF+bAleU/iAEq1cRMSsmMUVZ5Q3SIjYYdAh cD4XgYvvM1Ae3DWIIvtgxrVf5Wd8dSqtblBbSM39nraHuox17Q39hQnAKhx0eey4KbMl IJgw== 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=ktwux1zs15zKAsAXfSDKFLxYEmn/FeUJjYjoRH1xh6szGlalaqeF1IvU+t4qQbogID TSLqkTQzKblySSqphMzPPyjKy+hzzPqHe1God/QOOxz/o63yR+YMdD+V382Mi1Sy0wF9 LdEZkwJ1FsqH/+CMNo0efT02E/fjdskTij20t52fCmDVEi6EXIZrtKjP5yaquHyTeOlr A4GMD9JeRc4f6SMdtVnHKYh3Wm7qgHstPMH7M+D78PLfOIH3fLqM2KFejsjp84GzPPcN B21vzNeF2oYi10iJik/7BrJnsRIfxoexGBW6mQ3wlHucvFLenF2IqNTGxVJ2ISk11DFR ShjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CROfPqyD; 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 a5si4098058ejv.78.2020.06.19.07.52.13; Fri, 19 Jun 2020 07:52:13 -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=CROfPqyD; 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 S2389535AbgFSOwK (ORCPT + 15 others); Fri, 19 Jun 2020 10:52:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:46190 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389402AbgFSOwJ (ORCPT ); Fri, 19 Jun 2020 10:52:09 -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 5B12A21556; Fri, 19 Jun 2020 14:52:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592578329; bh=4JFtDNHFFW5pg3sH6TQO9VaAPDJzQon9y+GOPrV4sBw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CROfPqyDUETcZ3dXKdLTeqn3qSC5xchjmxzuiEtUp7IBUm+2PQb9893cdiPAwn/rg FFdW6NMZxe/q7IVhQ9UjEAudG713xOCAZKqj5xOx1Zss688sJxykQreeUuHHNi5dol YjfxeS2+2yl/JBjGTNeFHHy85Kwa4eRABsf9thCM= 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.14 172/190] power: vexpress: add suppress_bind_attrs to true Date: Fri, 19 Jun 2020 16:33:37 +0200 Message-Id: <20200619141642.371011429@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619141633.446429600@linuxfoundation.org> References: <20200619141633.446429600@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, }, };