Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp260679ybl; Thu, 12 Dec 2019 17:49:03 -0800 (PST) X-Google-Smtp-Source: APXvYqzeyYxJjmASOkvXVH8QHTeWz2OU6CsDUuvcPq1mJ6pUTDcMq2SzMt+aB9NOX4oJEMHcLBUJ X-Received: by 2002:a9d:39a5:: with SMTP id y34mr10959185otb.146.1576201742927; Thu, 12 Dec 2019 17:49:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576201742; cv=none; d=google.com; s=arc-20160816; b=pdVfEfOxJ41vNnx4iXAep4mlQDkOtqISTpeVqzqzTP7sPFO+1Syf/LQW+6rmjZW6/I QWJie2R1EBnKsYH2bqK34UF+zQ6qHHYyL9v6ENxOaTIDsu4isNGGX1iHU7mfZXS3jkJz nITm0WPyWCxKyXznW/SY+Du1ECxqkOjzp9HNBiuZnmzyovWCGQ7qAwJCTyW3lbob0V6M H9vEpEwKz4SZrRFbLLb24mbA1rayOniuDylk7DUysKUpM8fqzkEPESHLRqjYDuOcGP6l ZeNVqWfbXHbWFSLfMWwVQ+qTQIvKRW978NTe1lOK/r6kRxWSuRuu7k63KWbojpnIRUZb SP/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:user-agent:dkim-signature :dkim-signature; bh=kIQjHdVLE1/fU9KLKVqg1kUSU55z6qaRkOCmaNZ7BcM=; b=Rpwa484OI5jeCWMsk6zfeWj5vaJEXJTA88ZjugYw/TxoYouXYMpMzdvPj5d7GsF0ld XjjV27mHEGkSL6Lo/HfBtMgmRIzsP+wzcExKrNCs8ZhpYd/N3CRqjyWs7wbzpZmWluX9 3Z9++7/lOF8in1LPtmMCv4Y0cvZ/am7yXlTVWTG2biNshqfJMPDeTdlLdyaMle/LtDit oHgykxA42bgmUo+IP0Rc6k+8FMIy76PNbkQSe4USm6791B/9A54OlnP7WUgrLEiQXBlR RoSlW08Io7iDGIo8cI2WQIzlbVNx6Uj9t54Ww7y9imVN1zWK+LQMU27Zf94sCWq+nI+f 3CEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm1 header.b=SoJQ5xHv; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=oc+XOCz9; 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 x7si4360198oto.264.2019.12.12.17.48.50; Thu, 12 Dec 2019 17:49:02 -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=@aj.id.au header.s=fm1 header.b=SoJQ5xHv; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=oc+XOCz9; 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 S1731781AbfLMBab (ORCPT + 99 others); Thu, 12 Dec 2019 20:30:31 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:60979 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731684AbfLMBaa (ORCPT ); Thu, 12 Dec 2019 20:30:30 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id F2E50816; Thu, 12 Dec 2019 20:30:28 -0500 (EST) Received: from imap2 ([10.202.2.52]) by compute4.internal (MEProxy); Thu, 12 Dec 2019 20:30:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm1; bh=kIQjHdVLE1/fU9KLKVqg1kUSU55z6qa RkOCmaNZ7BcM=; b=SoJQ5xHvi3TecnC2YnRQVyS8fHZ9HwNhk6t6bDtxOvFj1fa 4xH0M+JjI6BGsABRedlcfWLu2SPCvrLL9bYFLYlSfxVDrsW1RJRUu5kgGtx94b2E q8OCbmI3eCk+HtRHALdZOuzKWmN0wq6cHb31AFq0OGxCwuAUCrwH3EKEFEGpm8Ax jgpQdNCj1s2wXnx/hl5JyjwihPnxmNDbsBPcqOgYdo8RvleY4PB6jdLbREFFmfN9 wmzCrFFygtUhv+6CW6PChNfIoHYMCNAwe8QF5blsXjZuvHDBrqDnT4c/A19XTolg dT4JR1PxTvDMXZWNVTv+qWsnOtC7IknaaLhp6ig== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=kIQjHd VLE1/fU9KLKVqg1kUSU55z6qaRkOCmaNZ7BcM=; b=oc+XOCz9hlr/DOd2zlvukv U0Licj/xRjpzT8oaccVAWiWCQ23NZ4jGRvhiXRZUvdwWVEXxd0QDYUjVenh6vj/7 nup1Tmp/yTzFenX7zuuMPOnqpcetaGGPwcVmMaDGScTtscKOmCYqInqTNZqP2zfh rF7TgQH7JVNr3tlGprHOVfSzYiRQSizIF9Cm9GHXU4pHvN+KjDn9cKrLgddLxGUR 8aRgJngKLJhwtLH663kKAJr7cQokmq/kqazL7u9fVv2o9w/RCq8wMP/fZ7E0w6wr 9CA4ocXRyJA3LYQa6mFprFUbgQR85GZBKI+T+EZ5ejajuTUeAbMUMC/ZiHFFS/Bg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudelkedgfeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdetnhgu rhgvficulfgvfhhfvghrhidfuceorghnughrvgifsegrjhdrihgurdgruheqnecurfgrrh grmhepmhgrihhlfhhrohhmpegrnhgurhgvfiesrghjrdhiugdrrghunecuvehluhhsthgv rhfuihiivgeptd X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 34C75E00A2; Thu, 12 Dec 2019 20:30:26 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-680-g58d4e90-fmstable-20191213v1 Mime-Version: 1.0 Message-Id: <274285bd-1304-4e35-945a-90c9aecd119b@www.fastmail.com> In-Reply-To: <20191213000657.931618-5-dima@arista.com> References: <20191213000657.931618-1-dima@arista.com> <20191213000657.931618-5-dima@arista.com> Date: Fri, 13 Dec 2019 12:02:05 +1030 From: "Andrew Jeffery" To: "Dmitry Safonov" , linux-kernel@vger.kernel.org Cc: "Dmitry Safonov" <0x7f454c46@gmail.com>, "Greg Kroah-Hartman" , "Jiri Slaby" , "Vasiliy Khoruzhick" , linux-serial@vger.kernel.org, "Joel Stanley" , linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org Subject: Re: [PATCH 04/58] tty/serial: Migrate aspeed_vuart to use has_sysrq Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 13 Dec 2019, at 10:36, Dmitry Safonov wrote: > The SUPPORT_SYSRQ ifdeffery is not nice as: > - May create misunderstanding about sizeof(struct uart_port) between > different objects > - Prevents moving functions from serial_core.h > - Reduces readability (well, it's ifdeffery - it's hard to follow) > > In order to remove SUPPORT_SYSRQ, has_sysrq variable has been added. > Initialise it in driver's probe and remove ifdeffery. > > Cc: Andrew Jeffery > Cc: Joel Stanley > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-aspeed@lists.ozlabs.org > Signed-off-by: Dmitry Safonov Acked-by: Andrew Jeffery