Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13474172ybl; Sun, 29 Dec 2019 12:46:46 -0800 (PST) X-Google-Smtp-Source: APXvYqxGK0pTdGPkG4mimvtABF8f5B2PXhDQH++lk7NHD/LBc0pPdj7Ml4l+bbOTWtJtS5xgoprU X-Received: by 2002:a9d:6f07:: with SMTP id n7mr68165665otq.112.1577652405996; Sun, 29 Dec 2019 12:46:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577652405; cv=none; d=google.com; s=arc-20160816; b=e3Z1zykNDzIkpZc/6RioFEk1L5Au5+6lJ4/LQ8l1xNPwaH+m/VTtQZ5ot62QWByhEF v8grsr8LoTNmGOHPY0ejYMCUsZxttG3AUDCuWsBydBqQ0OaFXiJP185++5/w8s+W+wu/ 4EzZv5FFWO690vBeBbkolAR5VDfL8rb8pqdGi512rSKhrd6BmHiLpeukJvltLOcEIzj9 OqqCx+As8NOxOZsjwg6qHJzzm0BSRv1SWwMgxw6VZgD5ynSHj/qQ/jOodUwcXOeIOQfT qecz6mrM4hlzi9riJpN/HoEDlc1OPVipa1YnGmJSFLmyXbYwEb8hHuzWbJFObRrit98L bCxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=UiGP24CBtvxSlJIsJqFdVUg0Ey6VOwjF7p6WzQfajig=; b=JqgxCADJofRLFRYbBfjAfGHSyNklNSKC5hfhNtYOrdkewxIVghGnM+kUP92NAIonLf SNZbOPqMFsbs7e3voL1JSBjkxWzUsLQz0ODTXSgvornFVijqAOiiSuwMUYO5vp5+TXCW GP0Dr69/MtIGBsWcDwk3HePesMp1BtlXc6Dw2MP4PV8Jnh5kXlrfrnOdtsXsHlyi77WD 8LG5kNB9PpR1pPkSJ/k0mt86ZyCXiaTQRVkGS5hEe5E5jKMlzOP/RXCQPAN5KrMsz2Kr /qSxHlS0zM2Sx3TabTMz2/XK9NX+I272VVV1wakdG3GeV23ngkSWqrcZ62kbRL5GqxG+ iR+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WzgGrJu1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u25si19579365otg.170.2019.12.29.12.46.35; Sun, 29 Dec 2019 12:46:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WzgGrJu1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731658AbfL2Rtc (ORCPT + 99 others); Sun, 29 Dec 2019 12:49:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:33326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727287AbfL2Rtb (ORCPT ); Sun, 29 Dec 2019 12:49:31 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 60FE120718; Sun, 29 Dec 2019 17:49:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577641770; bh=iaRKoO/NwOSQZ2zS1eIaHYnh0kIVL7zYHYUjEcLWo2A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WzgGrJu1jp7gLwYsV5PfAfzPPb3+gJwGLo1WqzbF6KAQDx4Tb3KyK9rR2M1hd2VFD Mbo9QRCZ2QEOw0LEcUKJ0ZbmMG1aluQS1fX1SrXAaxDfQOUkhI/tFCp6EUD715U+fP OMNtawfbdWtHLX7GW1SHLtBSgceqoOrczCU4d5Kk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mao Wenan , "David S. Miller" , Sasha Levin Subject: [PATCH 5.4 205/434] net: dsa: LAN9303: select REGMAP when LAN9303 enable Date: Sun, 29 Dec 2019 18:24:18 +0100 Message-Id: <20191229172715.444896792@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229172702.393141737@linuxfoundation.org> References: <20191229172702.393141737@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mao Wenan [ Upstream commit b6989d248a2d13f02895bae1a9321b3bbccc0283 ] When NET_DSA_SMSC_LAN9303=y and NET_DSA_SMSC_LAN9303_MDIO=y, below errors can be seen: drivers/net/dsa/lan9303_mdio.c:87:23: error: REGMAP_ENDIAN_LITTLE undeclared here (not in a function) .reg_format_endian = REGMAP_ENDIAN_LITTLE, drivers/net/dsa/lan9303_mdio.c:93:3: error: const struct regmap_config has no member named reg_read .reg_read = lan9303_mdio_read, It should select REGMAP in config NET_DSA_SMSC_LAN9303. Fixes: dc7005831523 ("net: dsa: LAN9303: add MDIO managed mode support") Signed-off-by: Mao Wenan Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/dsa/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dsa/Kconfig b/drivers/net/dsa/Kconfig index f6232ce8481f..685e12b05a7c 100644 --- a/drivers/net/dsa/Kconfig +++ b/drivers/net/dsa/Kconfig @@ -77,6 +77,7 @@ config NET_DSA_REALTEK_SMI config NET_DSA_SMSC_LAN9303 tristate select NET_DSA_TAG_LAN9303 + select REGMAP ---help--- This enables support for the SMSC/Microchip LAN9303 3 port ethernet switch chips. -- 2.20.1