From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.6 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796393197; b=bYCgnh/9rERSloiOTUnlzWuvzGOjXaHQz2UGnd63gN+b5wJshxhJo0olhYov6IMiRLVN IOipQPWSmHC3wTco+TCR7F1bzTKb5lh+HjCweiGJQmOvlvgksV/dILYvgbX+l/tNukdpN zX84g2cz4NoRKh/PjiuPG4AAFM81bucKX7FDqyPRBd4rl+h8ZiPLU5YxvN+ZiX6LhiomD MSIrz0pUG+A9RR4KydEjfI+EfkiUoNvUxBovtAIKttdNFXOe3svUbUiXbd6ZpAYmjIZE2 qoa8GWrwXGjEdSfcqWxmFHAGk/fresDrft6gzpQcvH0Jxf23UjJjYCugj0ivPaLpSBA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796393197; 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:From:Date:To:cc: Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type; bh=vSezMpwoW1E9IytJ2m3pSH4KIUOVvjSP1F+Iza5xkQE=; b=puN/Funp+jIviP+Fmu2a+LGft6iNhdUzvYs6rR+2RlChOQKa9TOI8A8NN8elwj4YP3WV VCc7z/79VBI1YE5EVDnkNwo9nZHnV7hl06j2cOEmwsyjleyyLqM++Yowr2IShC6lfMcKX JhH2QSquKU68JJ+0f0h2cfzy+uXfonIYnJ5sBKb/uxi9zi4Er9tbux36nBdn74/HkwaxN s8gS4TstQQo0kAuD4aWS14r697E3Npd6QVLMN+3r/FZf5LpHD3FFrRpSXzYWrtfEQ3Su7 BjaGrm+CsolqQdiF6moURlOhYZRDuiluUrCo9SiHgNYT825GtfO/5SxK9dMC74nnqOA== 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=Y6iZ8wAZ; arc=none smtp.remote-ip=192.198.163.6 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.6]) (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 639AB606A32D; Fri, 4 Dec 2026 14:06:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 639AB606A32D 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=Y6iZ8wAZ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796393197; x=1827929197; h=from:date:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=GLEtB6sx/n5CqgDkqgQDAVuhNYW1Wlp3eQwn65o66eA=; b=Y6iZ8wAZ+yYwF3lP3QaYhIi9jZSQ8G/nZ8DUQP3wYl5olm5GXxGTov4x 9DYLy8dk4dIOo6BWI5evlcaCc5OX+eEah5xoBjV0C0AIyj1huKtMWat59 Rtjn0Gpf+ag4/H1kSBdF1aGHbCsosEVQWSmYkGGJQBbvjGIO5sLIkox/5 Ste2tE56pM0hY4Ubj8xBOdqhQ0ryKXm9hGZ0029ceXGnWAum5vsTKVcLE fmQ1MpkoxzhkaOHIEXTVn/B+e0AvxcjVbKVYLLsb2ooy3AWqpeekaBnAC HfDDFg8FsWXLqq0zS87nidhKXFsbMDoCsnCXROt9F3HsJbPAqJrw1PR6e g==; X-CSE-ConnectionGUID: Tp7KScxMTq230kmFr9o7ug== X-CSE-MsgGUID: uVjHqC2KTp2E1bhSPMjlqA== X-IronPort-AV: E=McAfee;i="6800,10657,11986"; a="14476" X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="14476" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa116.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 06:06:36 -0800 X-CSE-ConnectionGUID: 8FS5DwBETaKax0aYvWfZ4g== X-CSE-MsgGUID: zsn7RvbVQi+SJw+N47ZSfQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="13903694" Received: from ijarvine-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.245.47]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 06:06:33 -0800 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Fri, 4 Dec 2026 16:06:31 +0200 (EET) To: Andy Shevchenko cc: Fuyao Kashizuku , linux-serial , Greg Kroah-Hartman , Jiri Slaby , LKML Subject: Re: [PATCH] serial: 8250_dwlib: Restore NOTEMT for em485 In-Reply-To: Message-ID: <640b6882-1a98-074a-c3d3-ec1fb417970a@linux.intel.com> References: <7ca747fc-f0d7-8379-5d32-a66e510a7ffa@linux.intel.com> X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323328-1667891256-1796393191=:1171" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1667891256-1796393191=:1171 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE On Fri, 4 Dec 2026, Andy Shevchenko wrote: > On Fri, Dec 04, 2026 at 02:56:33PM +0200, Ilpo J=E4rvinen wrote: > > On Fri, 4 Dec 2026, Andy Shevchenko wrote: > > > On Sat, Nov 21, 2026 at 02:35:15PM +0800, Fuyao Kashizuku wrote: >=20 > ... >=20 > > > > +static int dw8250_em485_config(struct uart_port *p, struct ktermio= s *termios, > > > > +=09=09=09 struct serial_rs485 *rs485) > > > > +{ > > > > + > > > > +=09struct uart_8250_port *up =3D up_to_u8250p(p); > > > > + > > > > +=09/* > > > > +=09 * Without CPR, 8250 autoconfiguration can overwrite capabiliti= es. > > > > +=09 * Restore NOTEMT before enabling emulation: DW has no TEMT int= errupt. > > >=20 > > > Hmm... The end of the phrase raises a Q: Is it true for *all* version= s of > > > the DW 8250 IP (there are differences between 4.x and older once whic= h might > > > be related)? > >=20 > > My impression there's no TEMT interrupt in DW UART. > >=20 > > But if I understand the comment correctly, this problem seem to relate= =20 > > CPRless HW falling back to autoconfig which overwrites what capabilitie= s=20 > > dwlib set (autoconfig is really annoying as it respects nothing?). >=20 > Yes, but shouldn't we do it differently then? Something like having a def= ault > 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? Like limiting collateral damage autoconfig is allowed to do? Doesn't the=20 autoconfig run too late so we'd need some kind of mask to prevent it from= =20 touching what the driver marks with keep-hands-off? Perhaps this is just some capabilities =3D x somewhere where it should only= =20 do capabilities &=3D ~(BITX|BITY|...BITZ) for the bits it actually=20 autoconfigures rather than overwriting any capability flags. --=20 i. --8323328-1667891256-1796393191=:1171--