From patchwork Wed Jul 23 17:40:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Stach X-Patchwork-Id: 4612321 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3BBEBC0514 for ; Wed, 23 Jul 2014 17:40:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E7F2B201BF for ; Wed, 23 Jul 2014 17:40:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 299F92017D for ; Wed, 23 Jul 2014 17:40:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932583AbaGWRkp (ORCPT ); Wed, 23 Jul 2014 13:40:45 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:44240 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932289AbaGWRkp (ORCPT ); Wed, 23 Jul 2014 13:40:45 -0400 Received: from dude.hi.pengutronix.de ([10.1.0.7] helo=dude.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XA0WX-0008CC-PE; Wed, 23 Jul 2014 19:40:17 +0200 From: Lucas Stach To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Richard Zhu , Shawn Guo , kernel@pengutronix.de Subject: [PATCH 2/3] PCI: imx6: prevent driver unbind Date: Wed, 23 Jul 2014 19:40:16 +0200 Message-Id: <1406137217-11294-3-git-send-email-l.stach@pengutronix.de> X-Mailer: git-send-email 2.0.1 In-Reply-To: <1406137217-11294-1-git-send-email-l.stach@pengutronix.de> References: <1406137217-11294-1-git-send-email-l.stach@pengutronix.de> X-SA-Exim-Connect-IP: 10.1.0.7 X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-pci@vger.kernel.org Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The current code is not prepared for the driver to be bound/unbound arbitrarily. Prevent possible user visible issues by disabling the bind sysfs attributes. Signed-off-by: Lucas Stach --- drivers/pci/host/pci-imx6.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c index a568efaa331c..ceb1677884b2 100644 --- a/drivers/pci/host/pci-imx6.c +++ b/drivers/pci/host/pci-imx6.c @@ -600,6 +600,7 @@ static struct platform_driver imx6_pcie_driver = { .name = "imx6q-pcie", .owner = THIS_MODULE, .of_match_table = imx6_pcie_of_match, + .suppress_bind_attrs = true, }, };