Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1646549pxy; Mon, 2 Aug 2021 07:01:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMSryK6oBrVs7rsFrDasXVWQGQDK2L4+rEI/lS5zhiHQaRDRDSFlNtLwrNlFJzqbOdvYKI X-Received: by 2002:a17:907:7e89:: with SMTP id qb9mr15723534ejc.333.1627912897776; Mon, 02 Aug 2021 07:01:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627912897; cv=none; d=google.com; s=arc-20160816; b=HKTdIM67EBDJhNXTIZTtoTBfzxPcDrRNGTv9dtiWPPC4b/3RAml1urtBfjHbGiVUqP x8UjlFLXVluRkOWkasbQwObwdxbd60ZYntymmPgSJWX9DJ5GmZMvJZVDyhHcGDMpyZpa pbYO6oOaD6/HjiJZph2BfEHuW0ONpPtnU1c9MkhfZnnmKDMiuai3PdlLg6JWnKRLbH2W 3JjxkvPDnaHKoHdppR1UvCnS6TzOnRkkKJUm+bfBGYn7qQtQn4pdaNkueZyTL1R7yTIE DnnbI3zw1jmax1HGNzrDOhA+JM1jmsOpvcF3rj8KXEtNTHpu2bmCEixICTAMy2m16VqR lFSQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HjHqrqaAGMQDIVmKatUQCyyaU0WzKoW/KZYQQ878a8w=; b=ff2HvkahVi680LOB2DQkUouoigWQ82/D0rtp5d4/xuv3F/U8npJ8RTFkhLZCHbRe2D +Kkkatn1bTOQJO6VOOZyhI7y647VZc0HEKXI6gjKz39+xTbdp0k2Udd4mwnsZv4QXe27 Jso8Zi2yk6KsbEPdbioLsYnjnYhsZriVdo3rbaMBxIeTFztVXmqqXOHkCBjUruY+KxI8 /g6FyRNUA2RgOpV4XlIZ2ldX7Wjhn7X/ry8fU+uR2BFLUtwoIDVuJIM5zwnEgT9QczrB tqb3Pv5rYe5rfsOC82MmIrRGhbAKXaFEYJU6FLsLScx1hJN599Lr1dWqdKK3DrINwi56 /wMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=o+HXEv5R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si8948477edj.154.2021.08.02.07.01.14; Mon, 02 Aug 2021 07:01:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=o+HXEv5R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235517AbhHBN7D (ORCPT + 99 others); Mon, 2 Aug 2021 09:59:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:34364 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234133AbhHBNwz (ORCPT ); Mon, 2 Aug 2021 09:52:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 772D660FC1; Mon, 2 Aug 2021 13:51:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627912310; bh=19MS8kvwxsF3b3xQuAZ1NvLXusGWe0aGzbA3foiWk9Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o+HXEv5RJXWxguhEQLAKCDFbnjh51LZ/6SHvxzSDpwDVoTDZNpbGtbC6uCog+PgHu NvbZZ4LbTe3n2UKdzHcY4acY74N10kOwkTZ5EkItR4QRRoFDCKmGcMnrtMWSe49tbT 8zDTNuG+nTixgrWha4m/X17I5ZLGVNRTqdWUTs5o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zhang Changzhong , Oleksij Rempel , Marc Kleine-Budde Subject: [PATCH 5.4 10/40] can: j1939: j1939_xtp_rx_dat_one(): fix rxtimer value between consecutive TP.DT to 750ms Date: Mon, 2 Aug 2021 15:44:50 +0200 Message-Id: <20210802134335.725290432@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210802134335.408294521@linuxfoundation.org> References: <20210802134335.408294521@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhang Changzhong commit c6eea1c8bda56737752465a298dc6ce07d6b8ce3 upstream. For receive side, the max time interval between two consecutive TP.DT should be 750ms. Fixes: 9d71dd0c7009 ("can: add support of SAE J1939 protocol") Link: https://lore.kernel.org/r/1625569210-47506-1-git-send-email-zhangchangzhong@huawei.com Cc: linux-stable Signed-off-by: Zhang Changzhong Acked-by: Oleksij Rempel Signed-off-by: Marc Kleine-Budde Signed-off-by: Greg Kroah-Hartman --- net/can/j1939/transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/can/j1939/transport.c +++ b/net/can/j1939/transport.c @@ -1869,7 +1869,7 @@ static void j1939_xtp_rx_dat_one(struct if (!session->transmission) j1939_tp_schedule_txtimer(session, 0); } else { - j1939_tp_set_rxtimeout(session, 250); + j1939_tp_set_rxtimeout(session, 750); } session->last_cmd = 0xff; consume_skb(se_skb);