Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2240347lqt; Mon, 22 Apr 2024 05:49:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVydfKfWKSXOQQlSCxOb+KRlLi1M0v6QD9DGPtOSQXRnNxosJKRVqAPy7J3KCcGL4QLdSn3WChpEK9453HP+V9qV6L/l5fxW1Mnn6lNNw== X-Google-Smtp-Source: AGHT+IGnn7j+GtAXtejDrYdC3XYweOoQFc9F0EpyTg3UMwtsx8mf8s+b39byUti7w0CjVIpWXvh5 X-Received: by 2002:a50:9b4b:0:b0:56d:fb36:c388 with SMTP id a11-20020a509b4b000000b0056dfb36c388mr10007537edj.9.1713790172134; Mon, 22 Apr 2024 05:49:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713790172; cv=pass; d=google.com; s=arc-20160816; b=CcPhciWuGHJknjAzcM8SW7snDQdAycb76m4PXYTHTzZf8QesPh6TYK/xpd2iCtWcIT nKw/Q2sZezkDFXneEskyADg1olPPgjLLXRObKnKrBrfnihkMEBHcOI9vgm0z16LjvMmz avluHaWOLIleDz2fGogra2bYMrI4vfwmMa6OpkHsVCSIj1GlLfGZwRbCgT4/KVZeVUno tS+vBRwq1pM5D4/hVbuWBSPoelrFgbYhxTfgFsJHGnV1O/f5jjmQW4FWEYV3cK9PUH++ We/DMWRtC+Xk/fug0Y+W+Mh1YdBXcS3Cik1/gGz9JdpIlb7NQCtZ2+lNA5dkTSuGleh+ 8VGQ== 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=GrXs5k3+rd7tIW4Z/tEfq8UyZAgOUKzNNdb9QmrceK8=; fh=+MOdFoI9ewos9pD5iB5SfQZh6Jg/lixGdPBGghtCOFI=; b=RkX0/FDLVb9jb0mbmGYUQ0ldnje45l9TmqdfediGlAy6Oo9oxK6nCxJaNHu/Q6MPf0 gPtjQRcAuDbnXz9hJT7M54T5BzoWrn1Td2K16M2/8777kLkpXtXOXghqAlh9+5WqzK9b 9EUnbwIl1y8v2j960nD7pIxwblK76exPG0tlSEyzob8lUyX1SyiHwFpjeVzXbF8LFe2u +1/EMoFHjNkUkecZa2N6GS7AFs4oRY2b45zETcMnrnNAHZDHJC2B3IQ9xgkWpymxAn1L A1j52p4Hq4sRJxfeMPePN2qhdPyX8SEWIWi0kptU2r6S/xLuRaXb27J8O4fxjcfqaNup bhUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-153372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153372-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i9-20020a05640242c900b00571e41706e2si3785786edc.280.2024.04.22.05.49.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 05:49:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-153372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153372-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 am.mirrors.kernel.org (Postfix) with ESMTPS id BAC9D1F2101F for ; Mon, 22 Apr 2024 12:49:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C36A14A0A0; Mon, 22 Apr 2024 12:49:26 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 426EC146011; Mon, 22 Apr 2024 12:49:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713790165; cv=none; b=EKXT7GYMN1NcRCiPLWSLxAl+FtMq4LcvpekbH0mjmQ9ndDWAXVCxXSiONJKjH4q8jlqocK/UHI23ryl+683rOuQnNxqQSt42f8lGkwwI7X1LT4RH85TBTwT7Tz7Osu/EZqDxo2M3OHfX9rDdrCExHA3PCIxQdDhq5YNX5/NtV5U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713790165; c=relaxed/simple; bh=t4UHjuj+d/K/lNATspsn1mjTNAh1Hn+pGTWUW38Q4K0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sMGrkTmbVqhsEGM7WqXF6wOFK5Pwi/KBE3p1vFmEF6cbK0OywfI9AtRB30UoyBrip3lX4ybfUZBGgmB9G/rALxVXF0U4DQGxUSUwG87dIK7aGFkAsyy5R0trWiSiVGzJtKaMwtwEw40knBDBCGfB5kTshg4yvRlUX3btXKRSf8o= 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.10 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: NBLrMRuGSTiUr9k/z4gArg== X-CSE-MsgGUID: muiuPbSwQBG8fhDhI2ochQ== X-IronPort-AV: E=McAfee;i="6600,9927,11052"; a="20725179" X-IronPort-AV: E=Sophos;i="6.07,220,1708416000"; d="scan'208";a="20725179" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2024 05:49:23 -0700 X-CSE-ConnectionGUID: 8L/NvYCbSjaclNgkXsf7dw== X-CSE-MsgGUID: DPEoVRMYQq6hdm17l03wSw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,220,1708416000"; d="scan'208";a="23878063" Received: from smile.fi.intel.com ([10.237.72.54]) by orviesa010.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2024 05:49:18 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1ryt6g-000000003dr-14U3; Mon, 22 Apr 2024 15:49:14 +0300 Date: Mon, 22 Apr 2024 15:49:14 +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 , Greg Kroah-Hartman , Jiri Slaby , Hugo Villeneuve , Lech Perczak , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH v6 1/3] serial: sc16is7xx: announce support of SER_RS485_RTS_ON_SEND Message-ID: References: <20240422123801.2695129-1-rilian.la.te@ya.ru> <20240422123801.2695129-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: <20240422123801.2695129-2-rilian.la.te@ya.ru> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Mon, Apr 22, 2024 at 03:37:55PM +0300, Konstantin Pugin wrote: > From: Konstantin Pugin > > The hardware supports both RTS_ON_SEND and RTS_AFTER_SEND modes, but > after the commit 4afeced55baa ("serial: core: fix sanitizing check for > RTS settings") we always end up with SER_RS485_RTS_AFTER_SEND set and > always write to the register field SC16IS7XX_EFCR_RTS_INVERT_BIT, which > breaks some hardware using these chips. LGTM, but I leave it to Hugo for testing and other comments, if any, as I don't have a HW. Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko