Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1061640rwb; Thu, 10 Nov 2022 10:39:14 -0800 (PST) X-Google-Smtp-Source: AMsMyM76dw1/84lwcmg/vqISSkxbmMd5gERVdKZD3xQFo2DVrHZ0V+3XzPGkl7aZbrHGK1nOj0H1 X-Received: by 2002:a17:90b:4f45:b0:213:ccc6:87df with SMTP id pj5-20020a17090b4f4500b00213ccc687dfmr61871267pjb.227.1668105554280; Thu, 10 Nov 2022 10:39:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668105554; cv=none; d=google.com; s=arc-20160816; b=gXAi/bRr8Lnps9BIvm35tS/3FvcdnNoYPqRRNycRoB3xwE489kDc1YNERmmsmO9tU8 CeH4CkUAs7h0e0v15LMGDjFo7AuGCk2IwwA9r2lVIFL7ZCjwLk0AhQtYM5M8E5z2aOFA GUo9W7DGMl02bTPjQl1kXm4wyXSs/KtvumOHQW9uRMx2fAP7o0ND7LrsSfV4J5zLzFwH csEKqWgozC09489OyVL+fZWmmph5yGuiXiBkZcCNs8pTY+vmbb/S8CD77CvbyCQY24+E ekAeaM3GifYcToUDU2Uxomd/dxj6sn3s5QvVBSEq6Pv3tuYbOw3ByqPczF1jZ6unuO48 NdZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:to:from :references:content-language:subject:user-agent:mime-version:date :message-id; bh=mOOW/vnAAHoOTzTp/gZW5Z+qWc6xeWX9iG101F0fwIg=; b=reqEJMjmiK+egz3o5pbmum48VTmd6lEOWqmlkuLEL1XL0uTJhUmoBfT0M8Fv15+xu4 0cnqQKwTBa+UeWtmOMkQtud11Huw1MkdNJDOoUkbp+VQLuPSt6l4fibMkMircUSa7+Ax rXkvK3BRxsWTenIT/SiwPhFB3GopqRyuWfHNOLV7FzwRDSXg9Nx/IbCalmoJNz6LHP1d RaDJsmT6iiwotQWw+A2H4vGYy6nDk1NAgxKTsRILMBBd+l+hdynh+Gy50nJPxvcauivX Zs6qBIy0ezgbg6+OtDroBrlB/Ap1fkhBwz8NNnwMxqkAoydeB6SGKKYNaAz4YKcanppg Ax5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pl9-20020a17090b268900b00212ce534ef7si259037pjb.22.2022.11.10.10.39.02; Thu, 10 Nov 2022 10:39:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231345AbiKJR7L (ORCPT + 92 others); Thu, 10 Nov 2022 12:59:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229952AbiKJR7I (ORCPT ); Thu, 10 Nov 2022 12:59:08 -0500 X-Greylist: delayed 536 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 10 Nov 2022 09:59:05 PST Received: from welho-filter3.welho.com (welho-filter3b.welho.com [83.102.41.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99A1145A22 for ; Thu, 10 Nov 2022 09:59:05 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by welho-filter3.welho.com (Postfix) with ESMTP id 7499113599; Thu, 10 Nov 2022 19:50:07 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at pp.htv.fi Received: from welho-smtp1.welho.com ([IPv6:::ffff:83.102.41.84]) by localhost (welho-filter3.welho.com [::ffff:83.102.41.25]) (amavisd-new, port 10024) with ESMTP id taeA9fSntBK7; Thu, 10 Nov 2022 19:50:07 +0200 (EET) Received: from [192.168.0.20] (82-181-37-202.bb.dnainternet.fi [82.181.37.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by welho-smtp1.welho.com (Postfix) with ESMTPSA id 142A27A; Thu, 10 Nov 2022 19:50:05 +0200 (EET) Message-ID: Date: Thu, 10 Nov 2022 19:50:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH printk v3 24/40] tty: nfcon: use console_is_registered() Content-Language: en-US References: <20221107141638.3790965-1-john.ogness@linutronix.de> <20221107141638.3790965-25-john.ogness@linutronix.de> <87cz9u6gfd.fsf@jogness.linutronix.de> From: Eero Tamminen To: linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org In-Reply-To: <87cz9u6gfd.fsf@jogness.linutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 10.11.2022 16.19, John Ogness wrote: > On 2022-11-10, Petr Mladek wrote: ... >>> @@ -106,10 +106,8 @@ static int __init nf_debug_setup(char *arg) >>> return 0; >>> >>> stderr_id = nf_get_id("NF_STDERR"); >>> - if (stderr_id) { >>> - nf_console.flags |= CON_ENABLED; >>> + if (stderr_id) >>> register_console(&nf_console); >> >> My understanding is that this should enable the console >> when debug=nfcon kernel parameter is used. >> >> It is a non-standard way. This is why CON_ENABLED flag >> has to be explicitly set. > > Understood. I will add a comment explaining why CON_ENABLED is set here. NatFeats is emulator feature. If you want to test the resulting kernel, you can use either Aranym or Hatari emulator. Aranym NF docs are here: https://github.com/aranym/aranym/wiki/natfeats-proposal Hatari m68k linux docs are here: https://hatari.tuxfamily.org/doc/m68k-linux.txt - Eero