Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1237083ybl; Fri, 31 Jan 2020 17:09:20 -0800 (PST) X-Google-Smtp-Source: APXvYqwUW0hjhc/qJQZYjHJtcMZLVZq9KJS7hc4Ce5iVZbxMAxPlmZrP5Rte8ygkGT0HS1CDZEGB X-Received: by 2002:a9d:6b84:: with SMTP id b4mr9866873otq.190.1580519360092; Fri, 31 Jan 2020 17:09:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580519360; cv=none; d=google.com; s=arc-20160816; b=bCIe4shEiwAT/gTvx9chvfGzq3Ek8B7dQaf+ZqypKqoFa90zijYbyHcZ+4ATbP+KBh YT5LwhtXDo2ZyCcQQCFVD2MCHVPIZ2Xwk8+ZRtlmnMQTufJgljg+tyk3er3cgJFOh7mT 96xyXJ1WXiBiJrtHyu09jqNxrguoo5vwmPdGdPpC/JQFXss99E7AaHL9jK4qdy0kJUW+ 8Zs8R3nU+2sQHon4uzqO/W975FtWgXBhuTOWJhrkUbn3HYj/EWyGO/uY3ij/hoy9vdMa ON6goVlOmorLyiIfe4lrkb0X4I5L7/TUerlwU/Za0Vrwric8HfQgS2JutuRISOym5o4A rMLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=tOdD7sEFO/Cm1Az2WTVTh+0ICXmcDk9hUOt8MhdrW3g=; b=F2/N+TCBYKoD3rJxnlJcd8foX/GkUopzA00nCkPafizASr6m5z7VW50/F0T3zFZ65G VVqY6soAF8b+8nzoMR9Y98jmX6wnKW2JmP3NfF+ZDSO/0ZIAXpHADHMLET5sFWsxQzL9 rK2a4t33UY7eRV1UFK61ClWoGyjzvmEC55JyrgALegm8AJ0ySRcFRrSlDEWnzp7TC+xd qqDXPnO8gJ9dtU2Nqwnk+7DID16m3Mjic5RIQNJA+kZ7iOPj7AKbhpabj2trFBCEPFcC l17NywzpHgILypnxfGBnWl9tVQOdcixC+2znRvUax/sgssJNUkjoxXMgptOVoNvO6a7A M65A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=flKXuCvO; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i5si5221995oif.211.2020.01.31.17.09.06; Fri, 31 Jan 2020 17:09:20 -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=@gmail.com header.s=20161025 header.b=flKXuCvO; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726567AbgBABIJ (ORCPT + 99 others); Fri, 31 Jan 2020 20:08:09 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:44702 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726264AbgBABII (ORCPT ); Fri, 31 Jan 2020 20:08:08 -0500 Received: by mail-pg1-f193.google.com with SMTP id x7so4474508pgl.11 for ; Fri, 31 Jan 2020 17:08:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=tOdD7sEFO/Cm1Az2WTVTh+0ICXmcDk9hUOt8MhdrW3g=; b=flKXuCvOe0TKMKlJgp5elm6wrxTqWzNK1ADjY2qsAvDIOUMYnGIBJM6CNcQYzweZ7S gqGvTDrLWNFZ1jUzO3Q7HfbO3cKdufyj02+JwDh0MNAi6kHN3edQk8MEcxOq/ehpGtJ3 lR6d77hdMaO3StZvriz/4vAdxze4OnS+MiGbWBUXqY3NJD/MN9OQxQ0MLkqD7VFHNAzz HTNz1+b9iAr0j7T24Wiv/nvFWTgl6RfdEZIbdntqL0XhO1d2FpfXkKP+yb74YOvbN7Q2 Xz7sjXgyG6FdVb/HawpqICouMPfZOc0+/dviJo1gU+WxKPKGmcDi5QKsczdWRzwcqXV4 NJUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tOdD7sEFO/Cm1Az2WTVTh+0ICXmcDk9hUOt8MhdrW3g=; b=S3Y2Vxg5t7BYaraLrGC6JUvr/aiBeHf4YV7wlX+2pKOsKzH/RpzBnSwySYYf1azNcf d4R4611rhd8MH9KAr0HtbSKGweLI1ffSfhoSaSF5SXiaFscWEtNwV4gzJvt5jB3dhzcH yAMv8Hvdrx4Ob4rgU6GSJpLSS9PstlsTelAIOOvQEYNGmMZyZ04tLNUOlrJuFUjxwrhe LPBlDqkV0d8CRlHtDbaqSes1cpO5G7Hr4Ek3E3lTA0kfCdgwgMVB+rGKhd4B1phLrGaP dpRthyneZXKVpdbpBM7DcxDOvLNgyatF54KyWrOgHX12KFxI0fwIMXIoRbqEzZqUQG9E BYUA== X-Gm-Message-State: APjAAAUIqcnxW1pwqmGgHNkx5EghA5mYKP5vc8rg+0kYtRzocMRu7tBD 1D0nVC7vQ1jTcvz162dMgOY= X-Received: by 2002:a63:ea4b:: with SMTP id l11mr12851871pgk.357.1580519288066; Fri, 31 Jan 2020 17:08:08 -0800 (PST) Received: from localhost (167.117.30.125.dy.iij4u.or.jp. [125.30.117.167]) by smtp.gmail.com with ESMTPSA id z18sm11950481pfk.19.2020.01.31.17.08.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 17:08:07 -0800 (PST) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky Date: Sat, 1 Feb 2020 10:08:04 +0900 To: Andy Shevchenko Cc: Sergey Senozhatsky , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 5/6] console: Introduce ->exit() callback Message-ID: <20200201010804.GB1352@jagdpanzerIV.localdomain> References: <20200130152558.51839-1-andriy.shevchenko@linux.intel.com> <20200130152558.51839-5-andriy.shevchenko@linux.intel.com> <20200131013154.GH115889@google.com> <20200131112724.GM32742@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200131112724.GM32742@smile.fi.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (20/01/31 13:27), Andy Shevchenko wrote: [..] > > > > I would probably push it a bit further (I posted this snippet in another > > thread). If console is not on the list then there is nothing for us to do > > and sysfs notify is pointless. > > I didn't see post in the other thread, but I suppose that this snipped is > for patch 4 in the series, correct? No worries! Yes, for v4. [..] > > - if (!res && console->exit) > > + if (console->exit) > > > console->exit(console); > > > > return res; > > ...then something like > > return console->exit(console); > > return 0; > > ...or... > > res = console->exit(console); > > Which one is preferable? I don't really have preferences here, so up to you guys. -ss