From patchwork Mon Jun 29 21:49:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 192025 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp3253216ilg; Mon, 29 Jun 2020 14:49:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPAvrsVeuF2YO2j+ReXKwMwSQEMtEldUOdbWSv5mocxGPF8DRKXh3jZOnc9l/yjWb7pHbk X-Received: by 2002:a17:906:ecb3:: with SMTP id qh19mr3957797ejb.273.1593467382205; Mon, 29 Jun 2020 14:49:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593467382; cv=none; d=google.com; s=arc-20160816; b=tV8xFtzb5TycB2xmDdG2WE2nfrtrdFG4YsKZmuQ6bJQCPKzp/C4Ct6PGfn2bacF6nJ tKwJzcIIr4E05mmZRaqYH+ultKRV9771WI/TsKIcn9OblajhspqM3gGlPyS+GNF2St4W DF+GCXVK8w9TcKmOu/UzExX8wRIRn874T4CORt1m4ZX2vLaEkHQsUhQUsv3wpe0VIlGz gsPBFFBxsnUnXno1VW81XOllmPIgx/NxJc9UBmtpgp7t0nhp14vYD7YPwD3aO3ZViVTI 1BdYrVzyNAUbu5VZ/DWs/qWhVORUQoXERhMDAtQ7wpQggpk/7K+tLhfmfdGJxL3ZcF0c x1uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=x3WsjEvMX2jVlQmLpoImtSBZfw4ruLu125L1QjdLE6c=; b=hO22JQ9HqIIrIGyKlHcRHoq2/r2kqaYcWui4xGRmIjsnJ+JjPMwWKme/98IodqE4bw 09Q7LzF/zXCr5XlY5HBUU6mywXYCPbVeASptc316BTD0Xcls9lEJyHJ3Dr7XZKlG+Tj8 hEq4fOYfXHCMAD5TLef4sndpvht/ZvklmqtcJ0IjeEUeJmN/YGZk7f5VsBw23S76IB8+ x1vCKX0enUD0HZeeC5p6stTf7oHwwGkmvGemeuQJWBZmC16pRbZDmHJ63K8fGE+d1cXW 9d61BpCfKg9mWzBOzhDGLCBEZjAl8MbffR0v7ugG/KVpSDOn++Zxa9SGUifDxI8c6sRy yrhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IPdS1l8b; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id re20si566764ejb.31.2020.06.29.14.49.42; Mon, 29 Jun 2020 14:49:42 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-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=@linaro.org header.s=google header.b=IPdS1l8b; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404405AbgF2Vtj (ORCPT + 9 others); Mon, 29 Jun 2020 17:49:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404386AbgF2Vt2 (ORCPT ); Mon, 29 Jun 2020 17:49:28 -0400 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5B86C061755 for ; Mon, 29 Jun 2020 14:49:28 -0700 (PDT) Received: by mail-io1-xd41.google.com with SMTP id f6so3234011ioj.5 for ; Mon, 29 Jun 2020 14:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=x3WsjEvMX2jVlQmLpoImtSBZfw4ruLu125L1QjdLE6c=; b=IPdS1l8btarTTx8Pg20WcJKVz5lv3iSeocJNQG5d9q3bXMuLLd80FQTDLn63bBoLEP klo0qXxUSVg47JUWi0J2CeJR334hWulsGF71rXX1n8zc+ffWwd7aigAElQ58vXLK/Mru 4BYlHXde0ZEBJiWEKcxdhR/tLsFYVU4AR3XLOeK6sfe3MO/5l32SUA5w++fyy4HtFLhe F8o5vqDYNl7KvkVOXY7f4dtLmeiw+erStlxo2D3xhX1YH3A7ZAHBfAKBIdoDdmbP0dU0 SrnhiFsnTbfC5vAe3t3UDcOMiPHvr4PJKcQ3axIaFI13/Mciu3bvJGK/ZadCt7oaGPLq Wd0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=x3WsjEvMX2jVlQmLpoImtSBZfw4ruLu125L1QjdLE6c=; b=M1B6QC4l3m/yOSSenbbODmBG+XXwwzMNmJJkQjGt12Mg/N04Ifb4uGCkoCL3UuKwkM BiYHSXa9SoWew6Z2ajWI5ysGDobSMeQZ7UDyWXSlxDS7SsFUWsZdi5MB/LjyelAbWrdJ H59fRgWi+95Eyx4gHVwUJSC3eAuD/YUUDIEeCUEqJboZCOrtiXLjzBdD8+9mx/8juwhw k0K8o1arR890V4Te3Rtwu7bwBFi0Bd8P7M/t/Gk7whPELYmNvle6E9LOIH/9HIBtDDup VXjiXH5Jf3VuqdBYgHmANt28JPpZIxB9IXFmS0kwW0c3NtyvixvgAOeW82R0H1lZi1VO 7oIg== X-Gm-Message-State: AOAM532S/KnOz9VRUe6XUxkc737NEgNYC+qqLobSts1gf/nIkPXSHvGW JBjOGNp/5lZIuQ7qmdOXc3jRArsHFh8= X-Received: by 2002:a05:6638:d05:: with SMTP id q5mr19477503jaj.2.1593467368176; Mon, 29 Jun 2020 14:49:28 -0700 (PDT) Received: from presto.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id u10sm555500iow.38.2020.06.29.14.49.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 14:49:27 -0700 (PDT) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: evgreen@chromium.org, subashab@codeaurora.org, cpratapa@codeaurora.org, bjorn.andersson@linaro.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 5/5] net: ipa: HOL_BLOCK_EN_FMASK is a 1-bit mask Date: Mon, 29 Jun 2020 16:49:19 -0500 Message-Id: <20200629214919.1196017-6-elder@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200629214919.1196017-1-elder@linaro.org> References: <20200629214919.1196017-1-elder@linaro.org> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The convention throughout the IPA driver is to directly use single-bit field mask values, rather than using (for example) u32_encode_bits() to set or clear them. Fix the one place that doesn't follow that convention, which sets HOL_BLOCK_EN_FMASK in ipa_endpoint_init_hol_block_enable(). Signed-off-by: Alex Elder --- drivers/net/ipa/ipa_endpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/net/ipa/ipa_endpoint.c b/drivers/net/ipa/ipa_endpoint.c index ee8fc22c3abc..447dafab8f18 100644 --- a/drivers/net/ipa/ipa_endpoint.c +++ b/drivers/net/ipa/ipa_endpoint.c @@ -679,7 +679,7 @@ ipa_endpoint_init_hol_block_enable(struct ipa_endpoint *endpoint, bool enable) /* assert(!endpoint->toward_ipa); */ - val = u32_encode_bits(enable ? 1 : 0, HOL_BLOCK_EN_FMASK); + val = enable ? HOL_BLOCK_EN_FMASK : 0; offset = IPA_REG_ENDP_INIT_HOL_BLOCK_EN_N_OFFSET(endpoint_id); iowrite32(val, endpoint->ipa->reg_virt + offset); }