Received: by 2002:a05:7208:b08c:b0:82:bbfa:f723 with SMTP id c12csp407561rbb; Fri, 26 Apr 2024 07:40:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1OJHyUS/rn2G54iKJZjWzId7NnOJFVgJ1uOalErqChnLycxuPNcpIaK2uvfs3x8xOFSGinmlYT2wRE6frF/YdQQST70fVsbfc23WZug== X-Google-Smtp-Source: AGHT+IHjvXJwwH236c1CiDh56nHf/fX7h+kvxOkjExvIk8i0fLYpobsUh8fOj2dqT6x6P1Tyx402 X-Received: by 2002:a05:6a00:3a23:b0:6ed:4288:5135 with SMTP id fj35-20020a056a003a2300b006ed42885135mr3843101pfb.15.1714142451728; Fri, 26 Apr 2024 07:40:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714142451; cv=pass; d=google.com; s=arc-20160816; b=iUSjeeVyWFNzn7TPBhhlPDXgKB+d1sGIgx1RvkjTp51BThAdsBooveb9SsPx06+d56 cG1z+MmdkQSf6cVVOC1uFog0JCAvqh8g74UBDjHa9NTv72Ia8SlVvhMgkC+Xtx6MsO3L ad49u3pnfoyIaXTXchsY+/u0I5965G3neHoXnuV1+EqhARWV1vc/lohlYe5Q4hq2GTY8 DGhEH2+aLYFoxvorqzkxZLGQ7GqCrQ2kIPSgDGs9VZtoKHlNzu4fmlE4kwnWhYFGhX31 o2WwSRfNeEc96gS4zRlsmtuF2uJ4Mm4L+B2RK+4mmhn5IcHyXTJClvIsfyJBlRHgUMG6 +sJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=MFNCJizVGKphl4MpRJd5vmCIwmsF1C8G+iRQbmPezsw=; fh=FASaqPqG5O1n4W4KjzkX5Zs+vGZLdLhJIQy7a6C3Vec=; b=KBO6neDqKG/LaZL5GStei2VJHkOnJ7QHSc2pvn4wWnANHy0ejbQzH4Bf967vdmZ7+i Q1ocV9X7lO6yzbdMBbGzboBD8B24JD3jz6S0iLBTWB9Xdfgo6OCWjQMquFUx0jtOOs5W fRAZExyOJIY/Tk9phplD6Lf9aDP0+rqVcMU+aXUpByUTPqUyrDyaWAzJCiiNKuj1iKPm WcfWa0prJEVQpHPPJH/MfGUGrECs8H86jsfQH1R7spB5RrnOyTeZJ4+XQ67OCzQMc3zY AEve2xOy5+zR9mtWfq+iAWHz0w4sEKDOi+EY8ApCCpTBNw5qUOJnBTuH7UORfzdwRTSZ /P6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-160165-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160165-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i64-20020a638743000000b00603e4d84c0bsi6567966pge.525.2024.04.26.07.40.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 07:40:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160165-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-160165-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160165-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id BBFC4B214B6 for ; Fri, 26 Apr 2024 14:33:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E3FB6EB5C; Fri, 26 Apr 2024 14:32:57 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 CD93B1FC4; Fri, 26 Apr 2024 14:32:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714141977; cv=none; b=cZX8NlbCiE0tribtFeqvWeeDcOcuF2OF96laU/CgslLLJuAlJNGys/ZapxUph82MbvCRVHE0w2DTKgUqeb5bGSaCdTUIv0vzcqjsmXaBFmIZAOAVeRmH23/4jeosaSafL58aYVuDAkJiA/ZvuzdN3jf3nJcUggmI6F//GHsh3QA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714141977; c=relaxed/simple; bh=kuY2xevYet7iwELgIpHpbnhaszdDogTO2VH3y4LUsLo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UXBdB3pJFIHAqCyzwNWNl4n25OeF44ue9Pxh0uhwQbvRrn5GcVMW4mZm9DYeRUS1oDji+h1q2b1IT0PA0EBpq+fDkGEQSTmJtcRlanyMCx7HAj6oSwgJyoJ+UhGluWGxZtI+EWKqwAxJ59caxtGiUn5wNEG1+T+FoUCfVJblGN8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=fail smtp.mailfrom=kernel.org; arc=none smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=kernel.org X-CSE-ConnectionGUID: yGUG0yxnSCumv48uPnsVLQ== X-CSE-MsgGUID: TBbuBWBtTBq/zyWsfjiyKA== X-IronPort-AV: E=McAfee;i="6600,9927,11056"; a="10092384" X-IronPort-AV: E=Sophos;i="6.07,232,1708416000"; d="scan'208";a="10092384" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2024 07:32:55 -0700 X-CSE-ConnectionGUID: 6nTkIPWhS2SY5XOJhJlJhg== X-CSE-MsgGUID: qZLUUijfTKOI8QBpnXYuXw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,232,1708416000"; d="scan'208";a="25508048" Received: from smile.fi.intel.com ([10.237.72.54]) by fmviesa010.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2024 07:32:51 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1s0Md4-00000001LW3-3zOv; Fri, 26 Apr 2024 17:32:46 +0300 Date: Fri, 26 Apr 2024 17:32:46 +0300 From: Andy Shevchenko To: Konstantin Pugin Cc: krzk@kernel.org, conor@kernel.org, lkp@intel.com, vz@mleia.com, robh@kernel.org, jcmvbkbc@gmail.com, nicolas.ferre@microchip.com, manikanta.guntupalli@amd.com, corbet@lwn.net, ychuang3@nuvoton.com, u.kleine-koenig@pengutronix.de, Maarten.Brock@sttls.nl, Konstantin Pugin , Hugo Villeneuve , Greg Kroah-Hartman , Jiri Slaby , Lech Perczak , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH v9 1/3] serial: sc16is7xx: announce support of SER_RS485_RTS_ON_SEND Message-ID: References: <20240425183251.174412-1-rilian.la.te@ya.ru> <20240425183251.174412-2-rilian.la.te@ya.ru> 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: <20240425183251.174412-2-rilian.la.te@ya.ru> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, Apr 25, 2024 at 09:32:33PM +0300, Konstantin Pugin wrote: > From: Konstantin Pugin > > When specifying flag SER_RS485_RTS_ON_SEND in RS485 configuration, > we get the following warning after commit 4afeced55baa ("serial: core: > fix sanitizing check for RTS settings"): > > invalid RTS setting, using RTS_AFTER_SEND instead > > This results in SER_RS485_RTS_AFTER_SEND being set and the > driver always write to the register field SC16IS7XX_EFCR_RTS_INVERT_BIT, > which breaks some hardware using these chips. > > The hardware supports both RTS_ON_SEND and RTS_AFTER_SEND modes, so fix > this by announcing support for RTS_ON_SEND. Greg KH, who is maintainer of TTY/serial subsystem, usually asks to separate fixes from new features. So, sending this patch separately may not only help him, but let's move forward with your stuff. -- With Best Regards, Andy Shevchenko