From patchwork Tue Jul 19 07:08:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 9236053 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A4B946075D for ; Tue, 19 Jul 2016 07:09:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9222D2074F for ; Tue, 19 Jul 2016 07:09:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82F5E26253; Tue, 19 Jul 2016 07:09:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E9EF20499 for ; Tue, 19 Jul 2016 07:09:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752873AbcGSHJS (ORCPT ); Tue, 19 Jul 2016 03:09:18 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:33753 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752905AbcGSHJM (ORCPT ); Tue, 19 Jul 2016 03:09:12 -0400 Received: by mail-lf0-f68.google.com with SMTP id f93so525669lfi.0; Tue, 19 Jul 2016 00:09:10 -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:mime-version :content-transfer-encoding; bh=WYbQAMPFdEv1N1PaUmLkDwqfAcoXyohruZjVN4cF5+4=; b=O9Ca5OqJbXnXxd8weLdFcRG2gqhMCgWrXz6+Wr/cUMk709ts+YadwnEAmqqQJMr/r8 OWdpr6wixSaQwAPzu/AtsvRAv3LhL8yHNqZL2w/L5D/A+cNECU9R8dqfL40gDK2FzdiY 6nPMEHL44w8UOPFATIZfCSDZGXhh2HyQjUnAZ5dTbzxTpa0gwliHmmbYpweGNPOwoTpH RvbV+8GqA9RYPjwbmmTmecJXRBunslOw4rRi5NwOO0v6AoiX8y11Y3nxI+v7FUt2X/M8 GyLYxnAzeKkbST8YkttyhqE5h/cOfITItflcAZF2xgzt7J6koNE/FBDN7gmQ0aCJGQE4 OnNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WYbQAMPFdEv1N1PaUmLkDwqfAcoXyohruZjVN4cF5+4=; b=HSOIkyxLE4gFlPqaOThGJ+zEgtaoI3UFhqLrBLD5pPm73MkXQnnfd5yoOH9Cjx9Lfn JttnVV8sPipz876tLJdjxJwdf3h5GTZJyGFPpX4kyYUD8NbMa9mno/j50MbtjTGag0Ro w9p8FYd9NofUDFtgoVsGininXbnvSxgbEtPzKQ3I5JbNzfhZtgQO68S3JWrtSu/OAtt7 rpZ+XQYO/Jh1UwwO18TqHNM7zYiGGN6Ty2eQhUwFB9Ba/A8hXQfhQx6wnjGEdJMU/SNS VqTOROLokFp2SwCoxxW0us3qibNV2tjQtVv6Zt3j8M6tvEb/zkRp7OnLYnRvTPW7bU+H r/wA== X-Gm-Message-State: ALyK8tLJl5IF5kCusEHcwx0N1kfU9wFiCTn1xKkVqhlas6tDNIRUUMpG9L7+9eB7pwu7cA== X-Received: by 10.25.169.213 with SMTP id s204mr5397083lfe.57.1468912149933; Tue, 19 Jul 2016 00:09:09 -0700 (PDT) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id h65sm3852553lji.29.2016.07.19.00.09.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jul 2016 00:09:09 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Kalle Valo , linux-wireless@vger.kernel.org Cc: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Brian Norris , David Woodhouse , linux-mtd@lists.infradead.org (open list:MEMORY TECHNOLOGY DEVICES (MTD)), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] mtd: add arch dependency for MTD_BCM47XXSFLASH symbol Date: Tue, 19 Jul 2016 09:08:32 +0200 Message-Id: <1468912123-14899-1-git-send-email-zajec5@gmail.com> X-Mailer: git-send-email 1.8.4.5 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We dropped strict MIPS dependency for bcm47xxsflash driver in: commit 5651d6aaf489 ("mtd: bcm47xxsflash: use ioremap_cache() instead of KSEG0ADDR()") but using ioremap_cache still limits building it to few selected architectures only. A recent commit 57d8f7dd2132 ("bcma: allow enabling serial flash support on non-MIPS SoCs") automatically dropped MIPS dependency for MTD_BCM47XXSFLASH which broke building e.g. on powerpc and cris. The bcma change is alright as it doesn't break building bcma code in any way. MTD_BCM47XXSFLASH on the other hand should be limited to archs which need it and can build it (by providing ioremap_cache). Fixes: 57d8f7dd2132 ("bcma: allow enabling serial flash support on non-MIPS SoCs") Signed-off-by: Rafał Miłecki Cc: Brian Norris Acked-by: Brian Norris --- That bcma commit breaking building landed in the wireless-drivers-next. Is that possible to get this patch through the same tree? --- drivers/mtd/devices/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/devices/Kconfig b/drivers/mtd/devices/Kconfig index f73c416..64a2485 100644 --- a/drivers/mtd/devices/Kconfig +++ b/drivers/mtd/devices/Kconfig @@ -114,7 +114,7 @@ config MTD_SST25L config MTD_BCM47XXSFLASH tristate "R/O support for serial flash on BCMA bus" - depends on BCMA_SFLASH + depends on BCMA_SFLASH && (MIPS || ARM) help BCMA bus can have various flash memories attached, they are registered by bcma as platform devices. This enables driver for