Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13929571pxu; Mon, 4 Jan 2021 08:13:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxY9S9yRYBcGnIkSXkInQ97f3GBKz3VWnNfArKstDRtTCGCu9SCqDlO3F9naQC34GgEV2Lj X-Received: by 2002:a17:906:55d0:: with SMTP id z16mr66365901ejp.466.1609776784980; Mon, 04 Jan 2021 08:13:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609776784; cv=none; d=google.com; s=arc-20160816; b=m4fErsY9lcpBx5Ur7rUIcu45gV8GHV8juUY4MPL4saLUz/kfnqqnbS7+MUdmKMdcAk x5fiIdpMc7qGd8eAVZMHMuSRfHIngvj8N3dUl3AjwolqPP1yLItIkZKdBVHLTFPNelSq 9sOh8GGc5HzFsV79sw+m3fsjeNcdy2NUb1054j6gthxhR4RMbY2y0czwliKJXyY0V9/O jwOCvtUULczbocf9rHKZZ01m695TzkwO1QeMUXUB7BvnKCNDKTV8bDQH/+8v8oZPtzcD biNpUX8TonoOPA8ILnt7ttKZ3dYW0A79YTabXb6TLeA7eHySNs9dK2ZOX3tLEfg22q+7 edXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9A7FOYGViKsCQ2A4D242TNNrdAmFQO5/FttFvffDJvo=; b=s5cP+MrMb4y4O8le9KbUPMeLBZV8MpgvySAJV2ypqmpSDIiKiIKG5+eEcWu8/7G0oy tHEkC/XHy721MaQirEUjPisf1WxIb9mt0PBQARvNhsFex0jglNCPOE6Ba4OuZ+7viWh0 xoYsRAe6vB3ugZ9X+GuNVAXyRmsGDnPT+seGHLLJVVtFEuhMrnUZpkdscR6TaI3SuwhX TQmMu7KV+a+nfLqPV/CUmkRsI6JnxRxZuPWG7z/jxgSqqJJNmH+BVL+BKw1zH7b6sXre yHQEB+XwxnOStDUTNtF5bG9vPs1Pd+aEzo+UsqNzcB8eb/51YzDYTkBX7ryayib6sMrO /kfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RU6jjkqm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u18si31533554eda.523.2021.01.04.08.12.41; Mon, 04 Jan 2021 08:13:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=RU6jjkqm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728570AbhADQJZ (ORCPT + 99 others); Mon, 4 Jan 2021 11:09:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:38400 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728586AbhADQB3 (ORCPT ); Mon, 4 Jan 2021 11:01:29 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 50E382245C; Mon, 4 Jan 2021 16:01:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609776073; bh=KnUIbIablvm3+WOQgt8EdeWIvVEZdEPzjBDG5VjNHQE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RU6jjkqm7bdBX/pcjUxCAol2T/yuVTToWwSXmqUBV3tquRLKIizCvuQ/Bn3HPggcF pbPhvQ0tn86T62kvajtPc8belF5tm++xDWxG3ueJwgpYX4GFw9iZxtD2JMQdliOAyR cJ+2xYQMUfzH4hzKwm9PT8bfPIIS9unBX+hCvhAg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Serge Semin , Randy Dunlap , Ramil Zaripov , Mark Brown Subject: [PATCH 5.10 10/63] spi: dw-bt1: Fix undefined devm_mux_control_get symbol Date: Mon, 4 Jan 2021 16:57:03 +0100 Message-Id: <20210104155709.309245084@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210104155708.800470590@linuxfoundation.org> References: <20210104155708.800470590@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Serge Semin commit 7218838109fef61cdec988ff728e902d434c9cc5 upstream. I mistakenly added the select attributes to the SPI_DW_BT1_DIRMAP config instead of having them defined in SPI_DW_BT1. If the kernel doesn't have the MULTIPLEXER and MUX_MMIO configs manually enabled and the SPI_DW_BT1_DIRMAP config hasn't been selected, Baikal-T1 SPI device will always fail to be probed by the driver. Fix that and the error reported by the test robot: >> ld.lld: error: undefined symbol: devm_mux_control_get >>> referenced by spi-dw-bt1.c >>> spi/spi-dw-bt1.o:(dw_spi_bt1_sys_init) in archive drivers/built-in.a by moving the MULTIPLEXER/MUX_MMIO configs selection to the SPI_DW_BT1 config. Link: https://lore.kernel.org/lkml/202011161745.uYRlekse-lkp@intel.com/ Link: https://lore.kernel.org/linux-spi/20201116040721.8001-1-rdunlap@infradead.org/ Fixes: abf00907538e ("spi: dw: Add Baikal-T1 SPI Controller glue driver") Reported-by: kernel test robot Signed-off-by: Serge Semin Cc: Randy Dunlap Cc: Ramil Zaripov Link: https://lore.kernel.org/r/20201127144612.4204-1-Sergey.Semin@baikalelectronics.ru Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- drivers/spi/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -256,6 +256,7 @@ config SPI_DW_BT1 tristate "Baikal-T1 SPI driver for DW SPI core" depends on MIPS_BAIKAL_T1 || COMPILE_TEST select MULTIPLEXER + select MUX_MMIO help Baikal-T1 SoC is equipped with three DW APB SSI-based MMIO SPI controllers. Two of them are pretty much normal: with IRQ, DMA, @@ -269,8 +270,6 @@ config SPI_DW_BT1 config SPI_DW_BT1_DIRMAP bool "Directly mapped Baikal-T1 Boot SPI flash support" depends on SPI_DW_BT1 - select MULTIPLEXER - select MUX_MMIO help Directly mapped SPI flash memory is an interface specific to the Baikal-T1 System Boot Controller. It is a 16MB MMIO region, which