Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp287786iof; Mon, 6 Jun 2022 03:35:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYNkebvFs3zffPZqiVBwJfsQr3VqPY8jDd4zjnJNzVSfcBFONQl3V6UXi9zYrEkSjpRDYe X-Received: by 2002:a17:902:ea57:b0:15a:6173:87dd with SMTP id r23-20020a170902ea5700b0015a617387ddmr24315529plg.147.1654511706233; Mon, 06 Jun 2022 03:35:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654511706; cv=none; d=google.com; s=arc-20160816; b=fLpFvClZHhc44o176j5o1YxWQC5E5jhtJEx8TwhW+i4fdAVfauZK6im4p0i3yIX04o rMao+8YVk32Tbp2KfvlfgNzjJREp4hTrE710t5g1xwPbNb/FWkc/zXzbcweoqvPPraeH 23RQkw2C0kSI2G5yctAihc0Ir/3wXQ5du60MQfehie0lipxQPpZQeB/5MFeSwzVkTw9f 3VFvMhzOyeBGzl5At6JQPdaanVP1NiGbqZHRAthCRHwY9XU9vNT8jopBRdb4DfHKiJH/ lWTCkHPpBTsnYOWHHPhmqXQc3SGp/QAJ8RERAtdqofimVZNLTVD4Mpnm8pPSCXg/SabB gxrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=X3o3BG0OziVWvkteXuNEyKWTNtcvYRb02PFLWbXpGoI=; b=EeNcJtwWwxsEmXArxPJYdGhZ/EqCMXUAv8gIIoXgKEScGeKCnNqkU3XaGf0MHBYagq sAcCm3XSufUx89BhxfMwJ46YwKrFQq8030LkkdXyeZqyGK45uxWk9V4sgxBDR4CRx90G Th1UOfrYiVWASz/lNb6AGh4utsSOrm3MQPFrSpBbzyTxI/YHYCaPYtCu7s6QQ6dKWLq+ +mt1UvIyL5GMqg/2qhie8DtNseoyiXRx65l4uelA3OcF7sHVRblo5RM0PP8fAqJFnBAV 9PVV5D1oZ8zjdAcLvl2YEumnjlTvoDYE8/JoCKrMijUCTyLulJKn2zyJqDh+u7+Xln3m sCLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TwskeiJ8; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 16-20020a056a00073000b005193d5d2054si17546336pfm.188.2022.06.06.03.35.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 03:35:06 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TwskeiJ8; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D674B16ABFF; Mon, 6 Jun 2022 03:14:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233707AbiFFKJS (ORCPT + 99 others); Mon, 6 Jun 2022 06:09:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233435AbiFFKGS (ORCPT ); Mon, 6 Jun 2022 06:06:18 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0144B13C4F3; Mon, 6 Jun 2022 03:06:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654509976; x=1686045976; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fM4JuWr/FScBki1o0CtzEbeVzUK3YqLgHDTrpxUHcIk=; b=TwskeiJ8ECJdSDGTI2U67xfScwdKz8UuSUwyneSusD7uimr2iiZF7B02 6ynv6ooX8aEt/0xipn2lpDtqif02ZL/rpjgI+ehFfEpM9k5mqMUOY075Q cNSZmh6huJgCELDDnuyzLUpJO2Sjk4ko5/lVsUhe3VgLcRN5XUHBQe7AE 680wzAMA1s/dckA+Cu3L9jwzAQnRaDJgmXtwR1ovJY9UGiKb610Ou5b5J OPdFOjHJAg1DWFKU2en7NgLp1JmvSXKyH8driEM8L8pnP+mKUbSMM3plD /QCj5+EpMWEE2Usp2U22C0NIjThBB+/sHQehgHnO2NvKPrRDf3HSG9ht7 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="362987084" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="362987084" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 03:06:16 -0700 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="635523865" Received: from amkossek-mobl1.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.252.57.11]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 03:06:14 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: linux-serial@vger.kernel.org, Greg KH , Jiri Slaby , Russell King , linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 29/36] serial: pl011: Remove serial_rs485 sanitization Date: Mon, 6 Jun 2022 13:04:26 +0300 Message-Id: <20220606100433.13793-30-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220606100433.13793-1-ilpo.jarvinen@linux.intel.com> References: <20220606100433.13793-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Serial core handles serial_rs485 sanitization. Signed-off-by: Ilpo Järvinen --- drivers/tty/serial/amba-pl011.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index cdc466e89aa8..eccd66625d25 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -2681,17 +2681,12 @@ static int pl011_find_free_port(void) static int pl011_get_rs485_mode(struct uart_amba_port *uap) { struct uart_port *port = &uap->port; - struct serial_rs485 *rs485 = &port->rs485; int ret; ret = uart_get_rs485_mode(port); if (ret) return ret; - /* clamp the delays to [0, 100ms] */ - rs485->delay_rts_before_send = min(rs485->delay_rts_before_send, 100U); - rs485->delay_rts_after_send = min(rs485->delay_rts_after_send, 100U); - return 0; } -- 2.30.2