From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796392954; b=b3JQ18Z73VU3/5j8WPAXn+KM619tdS84z6R2zZmfdhGUF2snekLMne2grqE07gxirjEA phkYqfzxIcgwvzeXSveCzc6fzdkZwtOe762qcHCj5jNFSfkWgjfxqRRMAOQSZxc8YPt9O z84CRRjehGfb8jZDDEAGGZxV71c3K+3gHX6JShQPg4/A8W2XMKv3yB/D9rRk2ECrATHsP gnwVZYLcaVDyWmsyW094/S3fQFKQK4TWItnYO3K90AlU0rSDPVGokbcNPoagtxJp6IM3q Qgqzeq4NyXuRqYfZOSx4qAiP5Jpb4eeWtQx5zvcBXqi/PfUMB8VqUdAJlWqD2o5enJg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796392954; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To: Organization; bh=eiFTC7WVjIQiHYRwFlIRVvbX5zvrw41Jz5/hS1xlhJ8=; b=tcx0BsY4KF0f4JmYNkpeMn3rWcrBv39Cm0Vy8ridOAJEsapNKXXh9MLUMiU+4988c2d0 vNl5f6g9GU9o9DThwrlsQ8BSP6CUb0babN1Ceb9VvxRz41FSovcjHTEJsdSMMFfPEWriO PZ1UDzPOQtTmACHQbkRit3VlRd/1nhJ/moC3VSuWdefVFbr4/zBNatuPgpsqcuil+MCw0 S10/aD0Ocrr3t2bGqyajGaWI2U4TI56PmpoBG/rehbFcjz+kEMoKiw7MJ86Nq8+23TDuZ ZwPnVmYFu8FkumhdIP7d8Fl7tml6bDbNWUqKY7/XDSjd9UxtXPGj1Tr/A4nFgoNpG8Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=CCwzyTU2; arc=none smtp.remote-ip=192.198.163.18 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CEF1606A322; Fri, 4 Dec 2026 14:02:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6CEF1606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=CCwzyTU2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796392954; x=1827928954; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=eiFTC7WVjIQiHYRwFlIRVvbX5zvrw41Jz5/hS1xlhJ8=; b=CCwzyTU2d3AWU63DohZ8kwC+3V6GCUr0sWdzrT3iAVvcdsjXPAcdy6DV 8oR2Vne3jnnAhtSlVK6Wd38HHsT1qDFMwvjUy6ihba1EHPl7nL+SswWu4 Ox4c4End7BLAE2Gu/lvyfNmsAsQYf+OgmYc61gwS1U9XX+Y2pKhAklWj8 lcEF9xmRyKZK/QI0KKWmfEG2xClf6nlKh59TGRWq1DhCHscXjvUGek5bc QhUnpItbiPFyZloajFUH9MkU92QyfCzh7Q8KIZ//H1nt+wUndnY82mR3H RKfF6cOmFBvOjASfnDHFCHq0hWIiecOte0ZRsBdtJLXRx9kAz7ZYmeGhJ g==; X-CSE-ConnectionGUID: spJgKq2xRDmFZLP7MW5r2g== X-CSE-MsgGUID: s+wwA/TnTSCe8u8YSn2OrA== X-IronPort-AV: E=McAfee;i="6800,10657,11986"; a="5384032" X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="5384032" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 06:02:34 -0800 X-CSE-ConnectionGUID: yERvqB6GQc2a+fEr1waRUg== X-CSE-MsgGUID: 42sxmDc6QCqAeCpneyvtqw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="14667752" Received: from alekseim-mobl.ger.corp.intel.com (HELO localhost) ([10.245.245.10]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 06:02:32 -0800 Date: Fri, 4 Dec 2026 16:02:30 +0200 From: Andy Shevchenko To: Ilpo =?iso-8859-1?Q?J=E4rvinen?= Cc: Fuyao Kashizuku , linux-serial , Greg Kroah-Hartman , Jiri Slaby , LKML Subject: Re: [PATCH] serial: 8250_dwlib: Restore NOTEMT for em485 Message-ID: References: <7ca747fc-f0d7-8379-5d32-a66e510a7ffa@linux.intel.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7ca747fc-f0d7-8379-5d32-a66e510a7ffa@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Fri, Dec 04, 2026 at 02:56:33PM +0200, Ilpo Järvinen wrote: > On Fri, 4 Dec 2026, Andy Shevchenko wrote: > > On Sat, Nov 21, 2026 at 02:35:15PM +0800, Fuyao Kashizuku wrote: ... > > > +static int dw8250_em485_config(struct uart_port *p, struct ktermios *termios, > > > + struct serial_rs485 *rs485) > > > +{ > > > + > > > + struct uart_8250_port *up = up_to_u8250p(p); > > > + > > > + /* > > > + * Without CPR, 8250 autoconfiguration can overwrite capabilities. > > > + * Restore NOTEMT before enabling emulation: DW has no TEMT interrupt. > > > > Hmm... The end of the phrase raises a Q: Is it true for *all* versions of > > the DW 8250 IP (there are differences between 4.x and older once which might > > be related)? > > My impression there's no TEMT interrupt in DW UART. > > But if I understand the comment correctly, this problem seem to relate > CPRless HW falling back to autoconfig which overwrites what capabilities > dwlib set (autoconfig is really annoying as it respects nothing?). Yes, but shouldn't we do it differently then? Something like having a default settings somewhere? I would expect perhaps a default "CPR" value that has to be respected if CPR is absent. Or maybe you have a better ideas? > > > + */ > > > + up->capabilities |= UART_CAP_NOTEMT; > > > + > > > + return serial8250_em485_config(p, termios, rs485); > > > +} -- With Best Regards, Andy Shevchenko