From: Lucas Stach <l.stach@pengutronix.de>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-pci@vger.kernel.org, Richard Zhu <r65037@freescale.com>,
Shawn Guo <shawn.guo@freescale.com>,
kernel@pengutronix.de
Subject: [PATCH 2/3] PCI: imx6: prevent driver unbind
Date: Wed, 23 Jul 2014 19:40:16 +0200 [thread overview]
Message-ID: <1406137217-11294-3-git-send-email-l.stach@pengutronix.de> (raw)
In-Reply-To: <1406137217-11294-1-git-send-email-l.stach@pengutronix.de>
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 <l.stach@pengutronix.de>
---
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,
},
};
--
2.0.1
next prev parent reply other threads:[~2014-07-23 17:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-23 17:40 [PATCH 0/3] i.MX6 PCIe fixes for 3.17 Lucas Stach
2014-07-23 17:40 ` [PATCH 1/3] MAINTAINERS: add myself as co-maintainer for i.MX6 PCI driver Lucas Stach
2014-07-24 3:45 ` Jingoo Han
2014-07-24 6:24 ` Hong-Xing.Zhu
2014-07-24 8:40 ` Shawn Guo
2014-07-24 8:52 ` Jingoo Han
2014-07-24 8:54 ` Shawn Guo
2014-07-23 17:40 ` Lucas Stach [this message]
2014-07-24 3:52 ` [PATCH 2/3] PCI: imx6: prevent driver unbind Jingoo Han
2014-07-23 17:40 ` [PATCH 3/3] PCI: imx6: fix boot hang when link already enabled Lucas Stach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1406137217-11294-3-git-send-email-l.stach@pengutronix.de \
--to=l.stach@pengutronix.de \
--cc=bhelgaas@google.com \
--cc=kernel@pengutronix.de \
--cc=linux-pci@vger.kernel.org \
--cc=r65037@freescale.com \
--cc=shawn.guo@freescale.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).