Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1086589pxk; Fri, 25 Sep 2020 06:02:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYnnxSOnqQROCMj+Hsmb6dg+0DzODj9Th3XWVX3hUjD32gM0AUZMgfBE4v0AZ8XOojueeK X-Received: by 2002:adf:dd49:: with SMTP id u9mr4703082wrm.392.1601038923495; Fri, 25 Sep 2020 06:02:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601038923; cv=none; d=google.com; s=arc-20160816; b=mUBKBQ3DNXUWF4fp96Esnh4QE3oJC+KGPVMoW8j6oXnuv9jasl6xbIMdFzGIEmEzJL q3zasBBQmU4YMrKilo2GP9vkJvwRnvK6o6+dwmB5CJ50nwsP3jekfM/m0Ln5hywmu0oR A/TfQVO3duJwxOMmh2sKjzw84vGPs16t2UGfUpc2yVHbRyBqqY4R+6P9VaJlcAMNnOxM qO9zmbgCzWRkP+6HrArL60ggZ3c8i59scvwEYZjVRKJ3eeTGINTM9XZ/mYOpsqnsI1EC axrv6eZdKatyLeb3HXy/ASxBtfW4Un243tdxy77O5IYQQmKvgzOHq4Zu0b5vBUqrkzt/ mPaA== 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=3rATXD368lJCX9R5aGmR/5T/uOYlMjvZ+L/s5GvN5rM=; b=tcYj/tYzDpnNiqkSVNfEz/1QjYyTn8LC9hJ1RdCQmzIsW5C/GafP7r/ubWI0OH2gvI vDFtpyoqrtBqgikqzbI+KzOaMF31K7/0Joaa+S0FmIXeInod3+8jtvq02D/lfaj6bJeN ZUzHYoWtlsm2wDJT8DAQ9yPWCSAHDhzCTaxO+tEEuVMEeIEs7DYsNWZIxYRZBUVrSghl feJcGCApHkSpQGXvO5YGVDh74upIy1Eiz0aMe3d2E5/BUkUn6fDwyV/x9eCEc/B0bywo qedXWK6pMyQfQe85r6PyjqaFKO3jO/8yaQ4O0372gb5H3cKAcUbcH+bvWAUwr4v95dQ4 lhZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QhWYMgZg; 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=fail (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 s22si1690784edc.481.2020.09.25.06.01.39; Fri, 25 Sep 2020 06:02:03 -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=@kernel.org header.s=default header.b=QhWYMgZg; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729592AbgIYM5w (ORCPT + 99 others); Fri, 25 Sep 2020 08:57:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:54214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729043AbgIYMuS (ORCPT ); Fri, 25 Sep 2020 08:50:18 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B3CFC21D7A; Fri, 25 Sep 2020 12:50:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601038218; bh=MqW5lPO7iN+bXu26nDh8UKB/w74ZaqgSPG8YP/YJbtE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QhWYMgZgXABX6CRr4D8puuYCimo8OCVw2RBzCJgxOpPs1n6ZSdSY1caNvxe4/ACJ9 BcUqTQNCMR5bQAt1h5pbmcLUBkciFghVc9sFKkKRNvyJzKx+mthmLkT2/1tBBAB29k Shb3KLiX2MzfN/gnJZH4Xy/pW5UNDxiqXrcwLzVI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vadym Kochan , Alex Elder , "David S. Miller" Subject: [PATCH 5.8 46/56] net: ipa: fix u32_replace_bits by u32p_xxx version Date: Fri, 25 Sep 2020 14:48:36 +0200 Message-Id: <20200925124734.742303168@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200925124727.878494124@linuxfoundation.org> References: <20200925124727.878494124@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: Vadym Kochan [ Upstream commit c047dc1d260f2593035d63747d616c3512f9d6b6 ] Looks like u32p_replace_bits() should be used instead of u32_replace_bits() which does not modifies the value but returns the modified version. Fixes: 2b9feef2b6c2 ("soc: qcom: ipa: filter and routing tables") Signed-off-by: Vadym Kochan Reviewed-by: Alex Elder Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ipa/ipa_table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/net/ipa/ipa_table.c +++ b/drivers/net/ipa/ipa_table.c @@ -521,7 +521,7 @@ static void ipa_filter_tuple_zero(struct val = ioread32(endpoint->ipa->reg_virt + offset); /* Zero all filter-related fields, preserving the rest */ - u32_replace_bits(val, 0, IPA_REG_ENDP_FILTER_HASH_MSK_ALL); + u32p_replace_bits(&val, 0, IPA_REG_ENDP_FILTER_HASH_MSK_ALL); iowrite32(val, endpoint->ipa->reg_virt + offset); } @@ -572,7 +572,7 @@ static void ipa_route_tuple_zero(struct val = ioread32(ipa->reg_virt + offset); /* Zero all route-related fields, preserving the rest */ - u32_replace_bits(val, 0, IPA_REG_ENDP_ROUTER_HASH_MSK_ALL); + u32p_replace_bits(&val, 0, IPA_REG_ENDP_ROUTER_HASH_MSK_ALL); iowrite32(val, ipa->reg_virt + offset); }