Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp470529ybv; Wed, 19 Feb 2020 03:16:50 -0800 (PST) X-Google-Smtp-Source: APXvYqxUBkIu1m0XqNzzNdWbk6NSQMNEHZ0RBzlDUREGcB9tw9jIL6t6yT7LCpyjlcrQRH24y9PB X-Received: by 2002:a9d:7cd9:: with SMTP id r25mr18037439otn.326.1582111010658; Wed, 19 Feb 2020 03:16:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582111010; cv=none; d=google.com; s=arc-20160816; b=dq6Ih19fKkK5xutcS18wjcNTb6E/aHW60qWk+rg0stb4I9uC5Bg4cEOOk+p7cKurhe HQIrSGMUwZbdR1vXvWBqwdCMONB1KQx94LvIw6A0YTh5qanC62UIykwB2HT1SW7BzrWv 2Ld4MkILTzG3dpXMYfqGwj4ZgnI4YvzCJaMLLrYdVPalgiXQOo8/CoDEjE82z2mbGN+L T7k/n7oZbhy5aH2m8lTqLfbLacT3ry2ifg5ejtd608HA/V7Y67h2jWD5yN4qCXOTWTNu FXsyCOYqTQycHjWdCX2L0a3sBY/AQTIXTsuWFDf0GXHDMWBLxzGIIQdui/FQHCs/E9DW kngA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Lnoc0u82KAIzeeW4SchUwaWjuODf2905DRdNdvb89s8=; b=tTiiPOvQIF5JhSUq1ldbd7FsGfwOMRqyebAD8KumoJOcegimhlQWAmNs0ZimubUmP9 DkHH70qdImEAfdzYnS6M36FU0KdUkiLsvCnpf6zbqW754ETq8h5Txjkf6+6IYG3349Ks UGyRpHEXUHHK7TI7ABKtJaU+l1hQnuR4ups1YZ3U+iBDf4PNO3CSetZvwgLDCGehvFqO gQuYYeRGUdze5M/qUCPfYySbkm89+32tAX0oh7ao3PijPk5bdmY/z6FhR/fw/dqQChr3 AMTso1dsuhhSKDrxGvBGV0njeB6AZtP2qgLlTWx7ICRZIeeldXuXhnJ3efKIA+Gnnjjd KHMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zYg3iJ4N; 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 y23si944127oti.65.2020.02.19.03.16.38; Wed, 19 Feb 2020 03:16:50 -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=@kernel.org header.s=default header.b=zYg3iJ4N; 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 S1726821AbgBSLPY (ORCPT + 99 others); Wed, 19 Feb 2020 06:15:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:60436 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726636AbgBSLPY (ORCPT ); Wed, 19 Feb 2020 06:15:24 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E426F2067D; Wed, 19 Feb 2020 11:15:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582110922; bh=AvRb/PmmipD49Co7Ex6q8IW7ShT2DIm81mwAMV5K3Vk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zYg3iJ4Nsu4lS0v5lCBYbeVo3c3VnvtlQBXZrkqILUQz08qlbItCwafIkdGN77Uwt 541+KEAyYkxvX3GadCpLYKBG9UFMjmv8/4BlvDHmQsEa17cQaJgYViDmhgEp0mHNWg CTXu4V4Izi3NZDTk+01HlRSLq26BmYrDCA2fnyok= Date: Wed, 19 Feb 2020 12:15:19 +0100 From: Greg Kroah-Hartman To: Ronald =?iso-8859-1?Q?Tschal=E4r?= Cc: Rob Herring , Jiri Slaby , Maximilian Luz , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] serdev: Fix detection of UART devices on Apple machines. Message-ID: <20200219111519.GB2814125@kroah.com> References: <20200211194723.486217-1-ronald@innovation.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200211194723.486217-1-ronald@innovation.ch> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 11, 2020 at 11:47:23AM -0800, Ronald Tschal?r wrote: > On Apple devices the _CRS method returns an empty resource template, and > the resource settings are instead provided by the _DSM method. But > commit 33364d63c75d6182fa369cea80315cf1bb0ee38e (serdev: Add ACPI > devices by ResourceSource field) changed the search for serdev devices > to require valid, non-empty resource template, thereby breaking Apple > devices and causing bluetooth devices to not be found. > > This expands the check so that if we don't find a valid template, and > we're on an Apple machine, then just check for the device being an > immediate child of the controller and having a "baud" property. > > Cc: # 5.5 > Signed-off-by: Ronald Tschal?r > --- > drivers/tty/serdev/core.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/tty/serdev/core.c b/drivers/tty/serdev/core.c > index ce5309d00280..0f64a10ba51f 100644 > --- a/drivers/tty/serdev/core.c > +++ b/drivers/tty/serdev/core.c > @@ -18,6 +18,7 @@ > #include > #include > #include > +#include Why is this needed? Just for the x86_apple_machine variable? Why do we still have platform_data for new systems anymore? Can't this go into a much more generic location? Like as an inline function? thanks, greg k-h