From patchwork Tue Jun 30 13:32:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 192093 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp3823162ilg; Tue, 30 Jun 2020 06:34:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy09StkVubXlscwslNdQdy608xMa8p/UyaCa1nN836Wv/ZRjO1msa4DiXOZJcC4g4YEUKqt X-Received: by 2002:a05:6402:1ca6:: with SMTP id cz6mr5690396edb.171.1593524099632; Tue, 30 Jun 2020 06:34:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593524099; cv=none; d=google.com; s=arc-20160816; b=JY7t+vT0gGfVVockDRdhVS0psZsK9qXynvE9Y7FIqKwx994k1JELbCp+f0n8jk8zVR zjQoLkUXgtbdj1bR/j2/pF9bP675GEyc8CGzF2QZ938/CCx6Oz8sgFBddYIbNC6xbIPK h2FiuIeE57FH2fDcHnSJGN5oOP4Wm+IK/jRillY8/2ayXr47BnVOw1dB7rTP7v+2RXV9 Hr71V7D2SIwIjkNVUyqnRqYzkb8UhKfGcHk4ERmw/N1Wa+VLnCN4tOn5bQJaYoe2Myv2 8cWyIFObkogVG+sWeM1yOltFYcfDnoXweQXv4WSCwO0YPIFQwOsvaY8eMl/0yciMc0At 49zw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=50y5RQTNSL9sGJxIm/QKoG33zZOanVkfX/t52b35bno=; b=MmIRovQF1tWMMVjuRAnD/AedXqk1pO4frsER2SqArYUbwTHe5PAich04NAiVVKygpH JpsV/aC0YDWgFy3oUApDvghtPYSAuj/rNZzVYQzR8xEmasixh0VgFDCYQC0xDMwGIjGz pMT5hAnjQ0bsHRJ8XhNoBmDo/mfvTWzB1SapGYH9Lhe6+bufiJ4CYD5jv0eVT3XTphcf ceC4lm1NRSyEYhTMZyahnwWV7WxeQu5wsViXMueGpbf5UiYRNakBggFWYn20p5glB72C lsdo42b6UzVbfhdxEjsEYfIQrH3UsgEinM68WxZaGnreQfW6rnB/XUK4h8ayT4mK+ZVM ywDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qktvBjuh; 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 pk22si1719109ejb.235.2020.06.30.06.34.59; Tue, 30 Jun 2020 06:34:59 -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=qktvBjuh; 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 S1732470AbgF3NdJ (ORCPT + 9 others); Tue, 30 Jun 2020 09:33:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726955AbgF3NdI (ORCPT ); Tue, 30 Jun 2020 09:33:08 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59D28C061755 for ; Tue, 30 Jun 2020 06:33:08 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id v8so20889418iox.2 for ; Tue, 30 Jun 2020 06:33:08 -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:mime-version :content-transfer-encoding; bh=50y5RQTNSL9sGJxIm/QKoG33zZOanVkfX/t52b35bno=; b=qktvBjuhjsXrXaxT1UWyNtEj7NsfssmCv0H1cJJ64FiwxL0If+RW7MWCWKvqcvT3dY r6fuhkedTU+k1K4iP/Oxn1E+qSGfq8djM9I3uaqN7wJCVJjsim7tIVYs8CQ7liTRkU6r Fj9zxbZfvugIDi/pPaVkGvpEmmvQ9OyI4wJoiGAR+CZ3ATuLkq/EnQbIixSrHhfcvfyb kq2q5fb75w9+4bWw5K6eVcx8HRiYlqb6rp0B0umvxlbZOCqgXgmgODgle76CwKl2tpL3 Ttl/bV9hHa7ByC9rrNJHsf1YU3nUkUemkFIiohtxmjjjMRTptldiJEMVe2FWRIWon4nP /hhw== 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:mime-version :content-transfer-encoding; bh=50y5RQTNSL9sGJxIm/QKoG33zZOanVkfX/t52b35bno=; b=fMGQVPmJObpQ0iDrSrx7Mg8QRvI/7AowHF5mUOOAS94x7zYfSu2jRutaCkd5Hz/Ouk C4bk3LMsVZBpbkioQQzVdsLgqnrYWvFjoNYMJo/t6EYeeJG27W+ljWCO6QRRm8EpQIx8 cf0V25Ix792CsdUpXx2sS9wgTj3eH/iGgVgPhftE+6F5v1SHY1iyfGAUTcRqwO3mtCB4 AT3ffJ4z80TSCmZm99WiuT3eCoNOaZBfH6j2jclrXZYfrV58Iw0msqewBfGh+azAuxml Sj2hLYodm/RjhjaSwUNF9p2HqcgiKrXr7ClFp4lnXzudWZGmmz2ACHn4sz75QCu4DYfV 19Ig== X-Gm-Message-State: AOAM532/APl1Ha5TVzSirjUOvMHNsRPx/tuH7gqpZzwHK+VYjI1Tp1Lm fdf48Oia2Jj92b2Bmee4E3rHKA== X-Received: by 2002:a6b:bc41:: with SMTP id m62mr6829591iof.95.1593523987716; Tue, 30 Jun 2020 06:33:07 -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 u15sm1538776iog.18.2020.06.30.06.33.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 06:33:06 -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 v2 0/5] net: ipa: endpoint configuration updates Date: Tue, 30 Jun 2020 08:32:59 -0500 Message-Id: <20200630133304.1331058-1-elder@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This series updates code that configures IPA endpoints. The changes made mainly affect access to registers that are valid only for RX, or only for TX endpoints. The first three patches avoid writing endpoint registers if they are not defined to be valid. The fourth patch slightly modifies the parameters for the offset macros used for these endpoint registers, to make it explicit when only some endpoints are valid. The last patch just tweaks one line of code so it uses a convention used everywhere else in the driver. Version 2 of this series eliminates some of the "assert()" comments that Jakub inquired about. The ones removed will actually go away in an upcoming (not-yet-posted) patch series anyway. -Alex Alex Elder (5): net: ipa: head-of-line block registers are RX only net: ipa: metadata_mask register is RX only net: ipa: mode register is TX only net: ipa: clarify endpoint register macro constraints net: ipa: HOL_BLOCK_EN_FMASK is a 1-bit mask drivers/net/ipa/ipa_endpoint.c | 14 +++++------ drivers/net/ipa/ipa_reg.h | 43 ++++++++++++++++++++-------------- 2 files changed, 32 insertions(+), 25 deletions(-) -- 2.25.1