Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1228758lqm; Thu, 2 May 2024 08:36:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXn/GW/azUJXmdsmO8XurnC3nTBXik4+0AHEwrGsSDqIqhti5AmzGR7g3jlbnxBnvUhqXKpOc7qK6V6HXYilYakeXx0DcAcBunnORK8zQ== X-Google-Smtp-Source: AGHT+IGYhSRPVMh6RsCMlHBrHHDGBT96NpkLjKPf1GHLMDlqQ8PZBxkPHfHBvAkXqBOTr/eUYbr1 X-Received: by 2002:ad4:5dcf:0:b0:6a0:b705:2800 with SMTP id m15-20020ad45dcf000000b006a0b7052800mr6979591qvh.23.1714664172406; Thu, 02 May 2024 08:36:12 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e6-20020a0562141d0600b006a0b35977acsi1307991qvd.566.2024.05.02.08.36.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 08:36:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166652-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=WSyuE7uS; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-166652-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166652-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 250751C230D1 for ; Thu, 2 May 2024 15:36:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2016B15B96D; Thu, 2 May 2024 15:36:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=intel.com header.i=@intel.com header.b="WSyuE7uS" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2AA4642078; Thu, 2 May 2024 15:36:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714664165; cv=none; b=B9r7PdIo5zajKEwNUkW4NJ9o1wYrfVXo2/8TTp9bRYaQu87kcMFHFlIenNPeVD1+SnzrTwF3+QdApUB/G8u5U6vIUwYfLvtrR05onmUvm+pQ2+c0j6mQsL3yJVWXvt8JpTnCXmxlSOSF1LRppca3YnbESqw0pll6jBic4/oyMw4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714664165; c=relaxed/simple; bh=E8C2qPCeaHtiAjUVZaWnodtIyl8a3pqbTM+93AmJ71Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eHsS09wZNnrml+C/kCBpxg8Ocm6dMUBcwzfT0jcGM++KG2e5VI6F3hsU9CcXuszjtbIW+tLfUcyGvwZy4Wc3NeJ7ixMflfXZN/iDTeUUuWDHEh8rhKLqjVr1LYrbOsFKhaEi2TwQJEbbe+E1FyWFZO4u/ZGbnitlYI38auzMtPY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=WSyuE7uS; arc=none smtp.client-ip=198.175.65.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714664163; x=1746200163; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=E8C2qPCeaHtiAjUVZaWnodtIyl8a3pqbTM+93AmJ71Y=; b=WSyuE7uSwU5f/7bYnjCXajYcotet4DvVdtYvisV+WbZlIN+mgLRTKmu0 U5LrDEAujnZx5TmPTii1ZqJDqVGhqC7uESRMInvsmmtWWOL/hwn7CTauF ku9hPAdmlg/j56hOeoJwBElDg9091xB+/Ex0nn+ZTIayzwdFyIc6xIAlc YXi6A4qrY7833yA1gvDD5OD9LoHvFJJM2797elqGBMR4++R+jiOWg58bG 8D6Vmf2khptkDZyK3ck6aaZN133B80CARECS/8GsQ/eCLxY55fVZYKXG3 S1M+9Dv5kwE3JrfAzQyuZIH8V4VdWnQz16Fh6n8B1/Ne0z/0Mst/jbgxK A==; X-CSE-ConnectionGUID: j/T38Oz4RBaWKUjvoQIXqA== X-CSE-MsgGUID: XdkusnyqSei3J51cvACd4Q== X-IronPort-AV: E=McAfee;i="6600,9927,11062"; a="10570068" X-IronPort-AV: E=Sophos;i="6.07,247,1708416000"; d="scan'208";a="10570068" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2024 08:36:03 -0700 X-CSE-ConnectionGUID: b+Q2+7rHQo2NCSK+Z3AvIg== X-CSE-MsgGUID: qhp105huQHCdu0Ee90JJ7Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,247,1708416000"; d="scan'208";a="27208567" Received: from smile.fi.intel.com ([10.237.72.54]) by orviesa009.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2024 08:35:56 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1s2YTQ-00000003Mdz-43wp; Thu, 02 May 2024 18:35:52 +0300 Date: Thu, 2 May 2024 18:35:52 +0300 From: Andy Shevchenko To: Sunil V L Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, linux-serial@vger.kernel.org, acpica-devel@lists.linux.dev, Catalin Marinas , Will Deacon , Paul Walmsley , Albert Ou , "Rafael J . Wysocki" , Len Brown , Bjorn Helgaas , Anup Patel , Thomas Gleixner , Samuel Holland , Greg Kroah-Hartman , Jiri Slaby , Robert Moore , Conor Dooley , Andrew Jones , Marc Zyngier , Atish Kumar Patra , Andrei Warkentin , Haibo1 Xu , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= Subject: Re: [PATCH v5 17/17] serial: 8250: Add 8250_acpi driver Message-ID: References: <20240501121742.1215792-1-sunilvl@ventanamicro.com> <20240501121742.1215792-18-sunilvl@ventanamicro.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 On Thu, May 02, 2024 at 04:50:57PM +0530, Sunil V L wrote: > On Thu, May 02, 2024 at 01:09:57PM +0300, Andy Shevchenko wrote: > > On Thu, May 02, 2024 at 03:20:08PM +0530, Sunil V L wrote: > > > On Thu, May 02, 2024 at 12:17:59PM +0300, Andy Shevchenko wrote: .. > > > This driver is not a duplicate of 8250_pnp. It just relies on UART > > > enumerated as platform device instead of using PNP interfaces. > > > Isn't it better and simple to have an option to enumerate as platform > > > device instead of PNP? > > > > Ah, then extract platform driver first from 8250_core.c. > > > Let me know if I understand your suggestion correctly. Do you mean call > something like serial8250_acpi_init() from serial8250_init() and > register the driver directly in serial8250_acpi_init()? Extract the code to be 8250_platform.c and update that file. I have locally the extraction of RSA code, I will see if I can help you with the rest. -- With Best Regards, Andy Shevchenko