Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1728844pxb; Wed, 9 Feb 2022 03:17:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLDEkuGYHe3y/K64haVExpn3jj+mKgxIbFT1sOso4PdRVeJDdjaaZi27XdjfVz1IPSf1MC X-Received: by 2002:a17:902:8504:: with SMTP id bj4mr1642730plb.108.1644405423910; Wed, 09 Feb 2022 03:17:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644405423; cv=none; d=google.com; s=arc-20160816; b=q8J69Q5uiMVxsS5JvIqlCmD/JzI96/kwdnQthGt/RS4rSbfNaV6OGy+S7ZQR+Tsqxs 6yUmxafQQq0rjXDwNBj2uzoR9bpsk+4tqSlqSEmEa40oJIIk8/dGV0DTAFpMcYa/VFev 5ng5vGEWNNBjKY3+Ui+OT74Ti0n0Vli8EqNsD+NzS6cFvfrlzRymWNgQcIF9YLZ+FhOV 14DuP1fkFBexUsUeLKPVO+KJt2FV3seSYymVwUn2j2zgD8w8cym83TABmFQMhSnM+541 JsAEo1m86h0GRwaLq+66q+MHTxsJyhhWgYr1iZZVcRmUsNVHU8zP9yAnQosDNNMJdiMI oWDw== 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=AbXyYX7BtdLDxubAfAvLoHfUA1+WcuamJCKTOkwM2KE=; b=cT6p1Mt7wUoXkAy0ezsGNVi/hYd7MscEXG3xEINlfCIkFJjPGtDAxbMG7Ar61Yfkut CY2YvnEi4LoGmySZjoJIIWzE1O5nwGn7z5lpBY2Kxd9Iz+JaCz/gIGUNxtzPi6z8RNWt QVu+RUy4zL07wgkYu6pBlztxCvhoKeJZQCEktLa1G1eAC9k7su7QHclJLUzHxFzGQpxU OPxnIU+gUtdI1W+He/ZhSSSG9xxOfk6/k83gEgUGIA12b6FyyCrLNFnqGT8Og/QlqP0W EvPTPrrLJCQliochZg1BNgiR85BTOGUK2OGFTNbn4G1FySlWY6hGFqJumjlLtYpGyIS/ VhOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cvwME7pb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k5si16576896plk.64.2022.02.09.03.17.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 03:17:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cvwME7pb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 909F8E069992; Wed, 9 Feb 2022 01:45:07 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388851AbiBGLpn (ORCPT + 99 others); Mon, 7 Feb 2022 06:45:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386086AbiBGLdc (ORCPT ); Mon, 7 Feb 2022 06:33:32 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7595C043181; Mon, 7 Feb 2022 03:33:31 -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 ams.source.kernel.org (Postfix) with ESMTPS id 62BB8B811BC; Mon, 7 Feb 2022 11:33:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B024C004E1; Mon, 7 Feb 2022 11:33:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644233609; bh=b13qAo4YSP2y+ta2ne27FSUAmi4yqSLi1KWG0FFTyEU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cvwME7pb6qxAxVNpAV2WipxvQ7OdIDoBSHdfJ2tH9ooPafsofed+3UH/1LrOeck3J aBXYCsywaORVRa4SmfXwTVu63l+sMiTKVaHVAYRqM28rnRxxoSTocI3X4z7AY58jZQ rDaCm6DSGLAPF6rXWNJADelqzYzzkaKIljWq/pKQ= 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 5.16 066/126] net: ieee802154: mcr20a: Fix lifs/sifs periods Date: Mon, 7 Feb 2022 12:06:37 +0100 Message-Id: <20220207103806.385321823@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220207103804.053675072@linuxfoundation.org> References: <20220207103804.053675072@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 @@ -976,8 +976,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 |