From patchwork Fri Jun 19 14:33:53 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: 191226 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp636676ilo; Fri, 19 Jun 2020 08:35:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRn5iQmpnJ2d+jIROlnPGzEEx35RzROFVCNdlpJrCkw5CWMitXb/jr9vJN3/lF8xXP2WQ/ X-Received: by 2002:a17:906:fc1a:: with SMTP id ov26mr4099314ejb.226.1592580950382; Fri, 19 Jun 2020 08:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592580950; cv=none; d=google.com; s=arc-20160816; b=vwDQawxC/haSqY3VCbal3exSEa65SjzWcbgsu0+5A8pUvVfJvIkyZinn6wdti6SQA4 52SuPCejex1LiC8xnD+d+rGgABo1pYrGpxw18BzBdSh2YPXC+nUVmyEwaNiZd3vnDQ8i UXSiYZZgknLrZzYTiOItjoQyswHci9xvGjR20sY6GMn7LqG5EuKAxv6pzXg7NEernR5Z wgf6jpzmqRN8EAdZwVzRev/kL0rqMlC4tVtxKchzjCTKQFrslwNLinesfrUA+6b9hTkv 4p3jApU/E9GnbRfpCpvIN8ltSd/NiFsNy9gkPqi8ZN0/fyZbblf3kc5HwdBdpd3GMvmr unDQ== 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=vyURPFQjI2M2sZz5Y8fZXgRyE+2qg7m2xIIoPGM2ypfqlVta1lpsOjk/yjUp8y8dIc mGJG+KGZuI71XK4Ujv1f/gYN+hKbC8mosM3j7qR0oDHz2LfqwmapEL/gbDTgxPpl0slF bM8JLp8wknV2B1tbEchkwfKOo0QEZBiNVWYExRcKx1g3PjqwgjUhdDslQKr3mg/2yKxJ lQUuscAgUSlm0cmaV8PERxhdKwdLOKKjmm+6zdo1RvrgCee9Pa1jRbdHSBDbHY6rfBwK XxwGnEV70Q/zj6VYxCp/CkixtA9kONIFPkQy27VUmcuOnBKM/cAV0R9LrZDyQO0jkiFr 7RLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FvorxeJ1; 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 bq23si211885ejb.280.2020.06.19.08.35.50; Fri, 19 Jun 2020 08:35:50 -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=FvorxeJ1; 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 S2405023AbgFSPfl (ORCPT + 15 others); Fri, 19 Jun 2020 11:35:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:35528 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404855AbgFSPba (ORCPT ); Fri, 19 Jun 2020 11:31:30 -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 795E420734; Fri, 19 Jun 2020 15:31:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592580690; bh=QasecetVS2wywm5+DfOgUE0zZX8LEXJJBx2rbD4hdMc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FvorxeJ1LZ3JFx/n3UCVZYVUkKxuXDpcgMFGjrh/zk2XYzpqj0Pg0V/efKlu0pKLN 7FIZbHSJhOg9WbazEBNyQnSj2kfue4V+hREznb6uSqkiDBmMgIPbsJSGY22wBsBoh+ dviPyhJGwLwSU0e/QHnso0KJiU0oQ07qC49ENuyE= 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.7 315/376] power: vexpress: add suppress_bind_attrs to true Date: Fri, 19 Jun 2020 16:33:53 +0200 Message-Id: <20200619141725.248342027@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619141710.350494719@linuxfoundation.org> References: <20200619141710.350494719@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, }, };