Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1674642pxb; Wed, 9 Feb 2022 01:52:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+P2exi1rB5K9imdXxlgz7MCcl/Za/fqFS8Brl0FgSPwhgXd1qaunUtK2sbmqujRuMWdvJ X-Received: by 2002:a17:90b:4f87:: with SMTP id qe7mr1662772pjb.114.1644400366409; Wed, 09 Feb 2022 01:52:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644400366; cv=none; d=google.com; s=arc-20160816; b=B5fg/HFEdq1xEx8oBTKsyuqKSLe5M2kLolJvS0/kQ8YkYaHNdAGF8+P9JhFDpICgvf F+8p1UOHGXY1UdPRUskAXsJ1YfIH96Ven9iqflwJz8vW6tDmabItGHD4ifqICTcDzyHt xBvoVlsFQwFv9CF3Pwu1MJ6iBNdA6XPCwvMekcapy3lidJV3q8dp80UmSbN5zR9M5bp8 XggvQ14/L43etP9F3RpuPAzVUyhvpr6dKu+OLZK1oFuKnOL80lunKbYmm9WAqtZpJl1n esYkIwEMfuTvb2hWUbm/q/V2cPhymORlMobUzuxcdFhwybxopoP7mnUDtNPhBBvBf/44 uc5g== 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=7f+aZoOYCZYE63jmaQUMDChjTyZUhxEKsNTNPsFuPs0=; b=XMa75F50V4ynqimqnGcBn/lUvOmrGRe1EaWdX4iqBWe4rdGi3N0wB0E3jXOnwoZden mTJ4ensGhz95f7fZRTp0q7JPcOuBUjc360/YUSRZVRtTnDF4JIUDBs6ICcJfE8/Clcac MrmhZ5eJQS213WeyfCvV+N8HTBIzxV5GuETw7WLwJCsRdJoyuMgOScpG6oIk/lf1stjD Q1LV7Kvo0wNB9iW38YVx3xJ983dIm99Z31OoqMDoFepa2atPdnD88W2gQtnf5k9wQVJu 6eOpyRHK5ewMB1V344Ppml04L/DX9qnKjdMGQUbtR034wgLCxYDN3tQBjG5vGp1tDEfD OdFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RnPMi7he; 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 k190si961350pgd.202.2022.02.09.01.52.33; Wed, 09 Feb 2022 01:52:46 -0800 (PST) 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=RnPMi7he; 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 S1383296AbiBGLWD (ORCPT + 99 others); Mon, 7 Feb 2022 06:22:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381689AbiBGLRY (ORCPT ); Mon, 7 Feb 2022 06:17:24 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24493C03FEE5; Mon, 7 Feb 2022 03:17:06 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AAA5A61314; Mon, 7 Feb 2022 11:17:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88C02C004E1; Mon, 7 Feb 2022 11:17:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644232625; bh=gQpnfX6fe1GkM5d89JbxBa90jXALueqpBd1PBNtd13I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RnPMi7heTiFoaOXHcTrA7JLB7x6tLIY0vNDJVrmCsdCCvNdonuZx1oHLoapTXbaMG UfPkMzE2Gm7wTe09Oyncmyt9hkWSFdXhJXiV1d1FFha5I3yi5L9aSepwQjvouO2ULv K6U7BjwyrMldjyKje78Z5gy9bT1zUzDoOXpbGz2c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miquel Raynal , Alexander Aring , Stefan Schmidt Subject: [PATCH 4.19 71/86] net: ieee802154: mcr20a: Fix lifs/sifs periods Date: Mon, 7 Feb 2022 12:06:34 +0100 Message-Id: <20220207103759.999169538@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220207103757.550973048@linuxfoundation.org> References: <20220207103757.550973048@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Miquel Raynal commit d753c4004820a888ec007dd88b271fa9c3172c5c upstream. These periods are expressed in time units (microseconds) while 40 and 12 are the number of symbol durations these periods will last. We need to multiply them both with phy->symbol_duration in order to get these values in microseconds. Fixes: 8c6ad9cc5157 ("ieee802154: Add NXP MCR20A IEEE 802.15.4 transceiver driver") Signed-off-by: Miquel Raynal Acked-by: Alexander Aring Link: https://lore.kernel.org/r/20220125121426.848337-3-miquel.raynal@bootlin.com Signed-off-by: Stefan Schmidt Signed-off-by: Greg Kroah-Hartman --- drivers/net/ieee802154/mcr20a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/net/ieee802154/mcr20a.c +++ b/drivers/net/ieee802154/mcr20a.c @@ -1005,8 +1005,8 @@ static void mcr20a_hw_setup(struct mcr20 dev_dbg(printdev(lp), "%s\n", __func__); phy->symbol_duration = 16; - phy->lifs_period = 40; - phy->sifs_period = 12; + phy->lifs_period = 40 * phy->symbol_duration; + phy->sifs_period = 12 * phy->symbol_duration; hw->flags = IEEE802154_HW_TX_OMIT_CKSUM | IEEE802154_HW_AFILT |