From patchwork Tue May 1 20:12:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Shawn J. Goff" X-Patchwork-Id: 156208 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 9DC9FB6FA5 for ; Wed, 2 May 2012 06:15:18 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SPJSE-0008L2-Ns; Tue, 01 May 2012 20:13:46 +0000 Received: from mail-yw0-f49.google.com ([209.85.213.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SPJSC-0008Ko-BY for linux-mtd@lists.infradead.org; Tue, 01 May 2012 20:13:45 +0000 Received: by yhjj52 with SMTP id j52so2534703yhj.36 for ; Tue, 01 May 2012 13:13:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=vuVInpF/9uiyCLGfIr//OM9jEFGs4BEOy0to5JlR6Vs=; b=Elr66Dk/OtX0p2dKJMYkZGuP8IpUlZ9gAt4GlQbBXuxpKQApk192CxbktNglEQYN+c orU8COyErRpFu6AMhd7lnY7/td2wrQhIoYbT841dAvPhof51H3fDv/rc0QdabMkLUsLj vN92zEhFov2Web1Z4+A1VXRvFBrmIX6/s1cZp2WECvc6ZBB/9pq9qXyKHzFoL2sjsZH+ q8cJZkDg2nutVodWivCN6WuBRkQOCavnFEyBWVJqDZWI0ieLT55M2kUKUgIxSy41Z5M7 kKa4rR0P3EmNpTxQVqS2OmNITtyw9g+zDneYUjJWhZBhme+D3v9FA9SOVQ97pouQu4Ay FRMw== Received: by 10.236.75.232 with SMTP id z68mr28896982yhd.6.1335903222127; Tue, 01 May 2012 13:13:42 -0700 (PDT) Received: from shawnihilator.ac4s.local (65-113-179-194.dia.static.qwest.net. [65.113.179.194]) by mx.google.com with ESMTPS id k35sm22853751ani.3.2012.05.01.13.13.41 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 01 May 2012 13:13:41 -0700 (PDT) From: "Shawn J. Goff" To: linux-mtd@lists.infradead.org Subject: [PATCH] Change linking order of SPI and MTD. Date: Tue, 1 May 2012 16:12:28 -0400 Message-Id: <1335903148-29539-1-git-send-email-shawn7400@gmail.com> X-Mailer: git-send-email 1.7.10 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (shawn7400[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (shawn7400[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: "Shawn J. Goff" X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: "Shawn J. Goff" Currently, UBI initializes before SPI. This is a problem if you intend to boot to a UBI volume on an SPI device. UBI will fail to initialize with the following message: UBI error: ubi_init: UBI error: cannot initialize UBI, error -19 The initialization order is determined by the order the modules are linked into the kernel, so the fix was to change this order. UBI is under the MTD tree, so SPI is now linked in before MTD. Signed-off-by: Shawn J. Goff --- drivers/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/Makefile b/drivers/Makefile index c07be02..0ccc4b1 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -51,8 +51,8 @@ obj-$(CONFIG_IDE) += ide/ obj-$(CONFIG_SCSI) += scsi/ obj-$(CONFIG_ATA) += ata/ obj-$(CONFIG_TARGET_CORE) += target/ -obj-$(CONFIG_MTD) += mtd/ obj-$(CONFIG_SPI) += spi/ +obj-$(CONFIG_MTD) += mtd/ obj-y += net/ obj-$(CONFIG_ATM) += atm/ obj-$(CONFIG_FUSION) += message/