Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1672120ybl; Thu, 19 Dec 2019 00:41:02 -0800 (PST) X-Google-Smtp-Source: APXvYqxOGahoLegUchdY88933WTyh+odH+aO+AvDyBedd0S/DhjLxHSUDNBuJcQDkhoNkXNXZCsS X-Received: by 2002:a9d:5c84:: with SMTP id a4mr7105542oti.305.1576744862686; Thu, 19 Dec 2019 00:41:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576744862; cv=none; d=google.com; s=arc-20160816; b=i43MmKAFKSgrO1khMs3B8rTha0tZEygeATHelz2YcKj+F395okgjYhW1vX1YgVylvp i5i6y1g6ObsaRFV/OyOngFTMoeKYCcu+dmHKYUigPCRUfdntm4BsWZn4t0DURZ1Dz8oa kTBGi9O/vgWe/2zkkDCSnBUVjGEstpx8UCMFedRNH7O+s1SUXfDJmOUtpub8Ss/yI+ZX zO6NlVhiFNEJvlZOnLURseEJzJsRwTkfSM1fNx2EYTx+PppCXNMkpDZwDDQtK4kR37uN FuzjBAP04ECFBkx+V9bxjfC9JHGWxrPbStaAB9VGoDFaW32iyH2KvIEObTsWtG+b6M47 GefA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=zIXZalq04LBeurRmUsXDwQBqFcS1M0HasBcmmTmIlxQ=; b=yjg2nbRaS5Z3OuS4AFjQzs4jaKOnZZ7OkTtDLucFILOROHhA8OEAOiDCgQfhKRHzLg cmtNHrZiOmWqWWizK9xpiBrXhYJeZJufVM6JAXwzBDSyYIG7/VkmZMvaH10xZzNAaM49 OTNVybLLoLfGHaGcDkJUhJTU8XMiaUNxnLOIo/kJ4iiFI7OUaZNcYhFqkMf8JV8pW050 0yjuNMDxLalnxbWWAiSPRLsg3R7wUplWGnLWL5BFupvwR5QwJL9/EYBDiJEWs74YkMN6 q/GN87d+VpKgP8spYvs7wXDOZJhZm35kR3WkeDMulREG+xD7NV4ADeqIgZX2jqm6OrGz ixfw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a136si2770140oib.252.2019.12.19.00.40.49; Thu, 19 Dec 2019 00:41: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726623AbfLSIkK (ORCPT + 99 others); Thu, 19 Dec 2019 03:40:10 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:34500 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726463AbfLSIkK (ORCPT ); Thu, 19 Dec 2019 03:40:10 -0500 Received: by mail-ot1-f66.google.com with SMTP id a15so6291165otf.1; Thu, 19 Dec 2019 00:40:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zIXZalq04LBeurRmUsXDwQBqFcS1M0HasBcmmTmIlxQ=; b=MMoXC+a6rAJRb0xeQlxM3FIUAxOEQY5J1w3H1qEDQcqZZH87keFEQR3PAnkGRDfc+2 JWRqLKKWoG4mhuFkzS+ns8pFBHzVGSr3wQjwU5+odK2HMAwO26GIk+aiScXxDzbMYaUN EJM+xIDYu7dTsognQY6gu8+NVRA2Q+2KCYBlzk/XDwBgJ05wZEOlfn5lu5kY1Tp1giiT ysvn65LYMn85Nb0NP2IG5klGipiquu5jnjim1cYnscL/uueEMkAzCpIHK2Btax1SPu/9 qQOBZrmkyqDJ83wrS7oY8p/Y3Q5yeoSsoLR41LYfnjAT7ufqZBQVl+atStVZ/4bXmylZ Tu8A== X-Gm-Message-State: APjAAAXPnULjKio5TZ9bVH77G6DwOw9h2oHBFKsLD3FH6GL4+lyZyW4Z ZUnQ0snXwjTrEAifB8bH/XDVAAy8BVcGsjrvTd4= X-Received: by 2002:a9d:62c7:: with SMTP id z7mr2393332otk.189.1576744808992; Thu, 19 Dec 2019 00:40:08 -0800 (PST) MIME-Version: 1.0 References: <20191218065646.817493-1-punit1.agrawal@toshiba.co.jp> <20191218085648.GI22665@localhost> In-Reply-To: <20191218085648.GI22665@localhost> From: "Rafael J. Wysocki" Date: Thu, 19 Dec 2019 09:39:57 +0100 Message-ID: Subject: Re: [PATCH] serdev: Don't claim unsupported serial devices To: Johan Hovold Cc: Punit Agrawal , "Rafael J. Wysocki" , linux-serial@vger.kernel.org, ACPI Devel Maling List , Linux Kernel Mailing List , nobuhiro1.iwamatsu@toshiba.co.jp, shrirang.bagul@canonical.com, Stable , Rob Herring , Greg Kroah-Hartman , Hans de Goede Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 18, 2019 at 9:56 AM Johan Hovold wrote: > > On Wed, Dec 18, 2019 at 03:56:46PM +0900, Punit Agrawal wrote: > > Serdev sub-system claims all serial devices that are not already > > enumerated. As a result, no device node is created for serial port on > > certain boards such as the Apollo Lake based UP2. This has the > > unintended consequence of not being able to raise the login prompt via > > serial connection. > > > > Introduce a blacklist to reject devices that should not be treated as > > a serdev device. Add the Intel HS UART peripheral ids to the blacklist > > to bring back serial port on SoCs carrying them. > > > > Cc: stable@vger.kernel.org > > Signed-off-by: Punit Agrawal > > Cc: Rob Herring > > Cc: Greg Kroah-Hartman > > Cc: Johan Hovold > > Cc: Hans de Goede > > --- > > > > Hi, > > > > The patch has been updated based on feedback recieved on the RFC[0]. > > > > Please consider merging if there are no objections. > > Rafael, I vaguely remember you arguing for a white list when we > discussed this at some conference. Do you have any objections to the > blacklist approach taken here? As a rule, I prefer whitelisting, because it only enables the feature for systems where it has been tested and confirmed to work. However, if you are convinced that in this particular case the feature should work on the vast majority of systems with a few possible exceptions, blacklisting is fine too. It all depends on what the majority is, at least in principle.