Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2026932ybd; Sun, 23 Jun 2019 22:46:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxE3vOxEeLOrrv1n+YUM/fOIbmtsTkhv3HGqntF89W0BuwaWnJsHO7DALEVFJTQgWeGLcGl X-Received: by 2002:a63:a46:: with SMTP id z6mr31247905pgk.76.1561355164309; Sun, 23 Jun 2019 22:46:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561355164; cv=none; d=google.com; s=arc-20160816; b=n1UQ+Fdi4VY2ejcdvlbu3S7tDrFBZqpjGpVAQVZO4WaXJtDwmTFS7+SV2hpPw+2bqo Wv6il0gMW4tqz6y7t8xp+T1LHAVD5A1S7Js9mtXvf+lpgDL13cjeVmYt/CEzxC7mT1iu FKYuzaZ477A6Gaqp8tvc98SXv79gu0LpkM/kkjvJLbjf0a85d7PUL23uKMCoddg2Fkwq mjtDh3lzpQ+Ve4YG6/wDAMabhrjSpHP8qVvf5v9jUxmNCwpvSNTGKL6wfD5BOJFU6EFW W58dbn31BrtbK/qLJ2nq6fXSC2Zvjc/gMOIwBR3BlD3gspxkH1s5l2g5agldCJsVEYqK EUow== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UZgDc4NqB64labXbUkmbFOqDnFwUTKKO+bOXvo7uUrA=; b=HhnPOBYZIvCsFSdxyRiNjYj8qP/YNdZD3w9NhMu6BC4QjHpXIN1n/IM0j9lGarM5yd FAhfdWbsf9FaYX1CcvnI3XhHBtmGDOLSljUylcLjPnJAhwPoi2iiWkhGZJfpZy8Ge+ig Ew+E9Ehrmm355rZJlF4yKyWbwDkEDAL4qmMA47Da+YdA9t7j8V/R0082qYampgrCIq37 VNQqxIbPwzqM8HdecEJzE91YNLCbRdZs5vjdSWiMYYG6wpd9qXYlrNmbUBQnXu7i42WM owZYi9Npk6r1oUi/dX7QT+4EkeT6V3o/8+7GSma77qpRV+FLk+pGlJ5Q0OPCVX5NDE4f h+Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WQf5kvD0; 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 l36si9638838plb.58.2019.06.23.22.45.48; Sun, 23 Jun 2019 22:46:04 -0700 (PDT) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WQf5kvD0; 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 S1727584AbfFXFoN (ORCPT + 99 others); Mon, 24 Jun 2019 01:44:13 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38216 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727229AbfFXFoE (ORCPT ); Mon, 24 Jun 2019 01:44:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=UZgDc4NqB64labXbUkmbFOqDnFwUTKKO+bOXvo7uUrA=; b=WQf5kvD0iLeHL+gjoj9J2oADBP LqKMXZw+Mj+AhxwqQumEt4dck7OeMldp9+qZsUi7B2njdhoQu5EYx9HMGkX0f6BZ50q5dRuZ4z1fT xjcJ3Fxh0FopxWvWOfSUIS1qMVI2flIkOXrIJjRCUtiJX4VPtxJ6BqxCmUsRQFXIKQBfkdmEbJqU2 d5oaTF/5MSXuHffMrBZ4jDAip4f6sbJx9s0dN/zB1w1MPlJBup2k3r5CKECJxiVwJZGWMOqr1ikMr hiKgwcLxeGK0RQ1cUvdJ7t06nuZ2LkDd2cyrhv+BNWPPFaOpNgO6utQQ/35pKQ6GLaWc7jrmveRbx yy5XiOIg==; Received: from 213-225-6-159.nat.highway.a1.net ([213.225.6.159] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hfHlq-0006o6-Ir; Mon, 24 Jun 2019 05:44:03 +0000 From: Christoph Hellwig To: Palmer Dabbelt , Paul Walmsley Cc: Damien Le Moal , linux-riscv@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 14/17] riscv: don't allow selecting SBI-based drivers for M-mode Date: Mon, 24 Jun 2019 07:43:08 +0200 Message-Id: <20190624054311.30256-15-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190624054311.30256-1-hch@lst.de> References: <20190624054311.30256-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Damien Le Moal Do not allow selecting SBI related options with MMU option not set. Signed-off-by: Damien Le Moal Signed-off-by: Christoph Hellwig --- drivers/tty/hvc/Kconfig | 2 +- drivers/tty/serial/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/hvc/Kconfig b/drivers/tty/hvc/Kconfig index 4d22b911111f..5a1ab6b536ff 100644 --- a/drivers/tty/hvc/Kconfig +++ b/drivers/tty/hvc/Kconfig @@ -89,7 +89,7 @@ config HVC_DCC config HVC_RISCV_SBI bool "RISC-V SBI console support" - depends on RISCV + depends on RISCV && !M_MODE select HVC_DRIVER help This enables support for console output via RISC-V SBI calls, which diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index 0d31251e04cc..59dba9f9e466 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig @@ -88,7 +88,7 @@ config SERIAL_EARLYCON_ARM_SEMIHOST config SERIAL_EARLYCON_RISCV_SBI bool "Early console using RISC-V SBI" - depends on RISCV + depends on RISCV && !M_MODE select SERIAL_CORE select SERIAL_CORE_CONSOLE select SERIAL_EARLYCON -- 2.20.1