Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1858361rda; Tue, 24 Oct 2023 05:44:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEEPSNDmPCc9gV0xHOgG8rBy1WipPUyEysdgEkASlx7+wyf6bI5ZMv0XyMJ7BN8xUEksaU6 X-Received: by 2002:a17:90a:744a:b0:273:f584:40ca with SMTP id o10-20020a17090a744a00b00273f58440camr9095472pjk.16.1698151463435; Tue, 24 Oct 2023 05:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698151463; cv=none; d=google.com; s=arc-20160816; b=ptSmWzBvuhGjN68Fqkdv66nqMj2+w/ajHSGEJdejiK7cFhnLVV7JpfnEt7WhvQpUbi AEbmloAuH+iDpqHTCLWYbOgGDu757yMsbzycrnmhaTvfzUeHe4jLtgH+KRucZz8wRttC aoA995emFlI8/ZDAxt5+Au1H7rnfG3LkjxXrNz5MKhAzvIhMfnwTzrZ5W1Aw/mvXvMc/ H9udN0XGQYYRJQxHYRVry3yRgYHOlQN7JWT+viZoqjonaOru5bNae07qIUYdZ96lKk3Q 6ezkqeSmCmFWuOmhs446Tj66SG5YUypZYi+iEAZit2iA8bTS8ehftrAx65tokxUZMQww ZSQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=+EZPUFRnpS68k79/Pa+gvMvyEdPebgzQf1p6tpiAzN8=; fh=ndEd6i0oyU+c530CMzOBedi1io0u4fBnpuuhjtMMcFM=; b=ZLuI7zSyvoO5IN/5ZnOumoqzNECwmZ/jODqJp7pwV/Rpeql+sfF0/4amj7GiKZvElP sGXYFQCDGvWuDjR3ksJdkX/YpkuDzroXq+sY8dltuxOwSCsJbV7q7Pj+t3DlUHtdof94 9znAYdJkLqKMTso66ZpCs88BpGrGQh3y5DFcsQS95+6xLBERps9iZAVhDuhO0aaea6pD oVeINaMPYQlCaBosvthjsXZNZDSUXKiv6ymSCnfoDA3BxYZcxeLw8IG6/yKmvdZf8ldn t6ZUDkNLJ2xk5h4ZQAkJrAouuXvRTmeXvBD9o+IL/4vS7a+c37AcL1HILFISs08d6GdL BTpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IaxaA+3F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id bu15-20020a63294f000000b005b8edb11b01si957926pgb.142.2023.10.24.05.44.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 05:44:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IaxaA+3F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id AE76680B1E7A; Tue, 24 Oct 2023 05:44:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234392AbjJXMn7 (ORCPT + 99 others); Tue, 24 Oct 2023 08:43:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234406AbjJXMn4 (ORCPT ); Tue, 24 Oct 2023 08:43:56 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40AA6D68; Tue, 24 Oct 2023 05:43:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698151434; x=1729687434; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sj2WgR+4pTRXlzYC4Ru4dFUASn0Or7+vSFXwpHG0S74=; b=IaxaA+3FDnmwBxJx9GJpslnV5YnhPVoFB5dGECVN0cvoj4ELetwFcQ41 PTwHU1hZJclF2ulHj45ndtIo8ypLiuimtMEZHMGFDLuGZPG4voIZRQcV/ TRsx347eI7OKW8dPeYTELN3rVggwY7pZHnM69kxZOs6sAnNwvEc79k76E cBjMXDe6H2mqQMP5y2Q2Ky0KUGw5Gm2O/dRfqgGfb84NYeCRQ6TEfiGnF JFBr/ta6ZuelPsgIaNHURBpQFMyLwVe/nynNfcB51gQ41pNDIwQ5o7MKV sSelaQftyZTPPWB7pjorEbqQcrjONtSRsuU8jqObkYDLPG+QS63tvQuEy A==; X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="385940888" X-IronPort-AV: E=Sophos;i="6.03,247,1694761200"; d="scan'208";a="385940888" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2023 05:43:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="828814821" X-IronPort-AV: E=Sophos;i="6.03,247,1694761200"; d="scan'208";a="828814821" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga004.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2023 05:43:37 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC3) (envelope-from ) id 1qvGkw-00000008Hg8-08I8; Tue, 24 Oct 2023 15:43:34 +0300 Date: Tue, 24 Oct 2023 15:43:33 +0300 From: Andy Shevchenko To: Tony Lindgren Cc: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Dhruva Gole , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , John Ogness , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Maximilian Luz Subject: Re: [RFC PATCH 1/2] serial: core: Move tty and serdev to be children of serial core port device Message-ID: References: <20231024113624.54364-1-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 24 Oct 2023 05:44:20 -0700 (PDT) On Tue, Oct 24, 2023 at 03:17:26PM +0300, Andy Shevchenko wrote: > On Tue, Oct 24, 2023 at 02:36:18PM +0300, Tony Lindgren wrote: ... > > - ctrl->dev.of_node = parent->of_node; > > + ctrl->dev.of_node = host->of_node; > > Even above should have been using device_set_node(&ctrl->dev, dev_fwnode(host)). ... > > /* Make sure controller and ResourceSource handle match */ > > - if (ACPI_HANDLE(ctrl->dev.parent) != lookup.controller_handle) > > + if (ACPI_HANDLE(ctrl->host) != lookup.controller_handle) > > This can be changed to use device_match_acpi_handle(). > > > return -ENODEV; ... > > - if (!has_acpi_companion(ctrl->dev.parent)) > > + if (!has_acpi_companion(ctrl->host)) > > I prefer is_acpi_device_node(dev_fwnode(...)) check, but here seems no other > use for fwnode (haven't checked the full context, though). > > > return -ENODEV; ... I have just sent a little series based on these comments. -- With Best Regards, Andy Shevchenko