From patchwork Mon Nov 2 17:53:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 320361 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp3925140ilc; Mon, 2 Nov 2020 09:54:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZwG98An10gNCgmRmLZfOogZacyU4vjV3ChPF3JaCPcNEjE6b/LmJSxCys+LXix2VNEcSk X-Received: by 2002:a17:906:383:: with SMTP id b3mr15921888eja.351.1604339645926; Mon, 02 Nov 2020 09:54:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604339645; cv=none; d=google.com; s=arc-20160816; b=Tb83jkPu/ofMyP8vZJ0enPL/NQhK3MOTNMrhAAhUZV2Aq5yUNC3QMUX+BGONkSY1Xi 8AnJJIMeTIWT/qSlhoct3TjxEKZzvz2g0i4GBWIeHrX/PK1WkNZ5LBXiDFzmPDXZEivF axneL2ZOvC5XQp7/rTCCurxNsKW9AdnfAkoiNVaBXLIbbu/baJBc45Np3qgcF/9lbs82 msTI8GHbL0xUXxERswHk2SDcD4z0slqfcuTzO/Ut24E/BdinxDMnXxYQI0UIjgaVNksQ F6j75NDL+Whoa95ZUkRCb9WsaOgHBrqm58pgl/DO7E+gkPSdxytciZwAj+rrFg/6qbLo 5oHA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Hac4EHHsb72pc36SpERCNR7FLjk8MqPI23RxtaSl/AY=; b=d1Cy1DfDj9V1Aq3O3zJUpm0t2gaCp+mjCMVX7Sk/PeBd0MUurZo9buflKf/aQeG07U yxM5Be1yUfgz3RjMD33BRDIg43Vb5oZ64/ZrrGfq4xugI59t1hBaX6ghEd35FEMaQoBc 0DLLiHZn24LRHV+/hVA4U2FJfV0xfzcFEF1zWATLMRuaHJez1sp51wxkts2JPbXM21hM AEmGmmWzIy6gzXYtDC04gfzl6fcJheohO10mlEDJ1y/bBfgBsXsM/kctV3DF6T2Rfv+U ez4baLf/W5vNC6g4QWrT5LC8vlzItvPJO4qSyWOjfT4C4+ZAdze5KPZjJvJbXvOWfYVd KhlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xTWQoNDB; 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 q3si10827124ejb.132.2020.11.02.09.54.05; Mon, 02 Nov 2020 09:54:05 -0800 (PST) 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=xTWQoNDB; 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 S1726157AbgKBRyF (ORCPT + 8 others); Mon, 2 Nov 2020 12:54:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725852AbgKBRyE (ORCPT ); Mon, 2 Nov 2020 12:54:04 -0500 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 972ACC061A04 for ; Mon, 2 Nov 2020 09:54:04 -0800 (PST) Received: by mail-il1-x143.google.com with SMTP id n5so13719587ile.7 for ; Mon, 02 Nov 2020 09:54:04 -0800 (PST) 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=Hac4EHHsb72pc36SpERCNR7FLjk8MqPI23RxtaSl/AY=; b=xTWQoNDBg6avi/hzHisLuqKYMQosqjL+1hFEUDM1L1gZTZyrTmWgy7IcVIQQ4urUvm ut6kzWOx3IvKHvoXp15ATl1VN7i16409YDiv+8pX56o2j42OCQM5HEIxNjGdNqT3Rs4P BQRkuPwAc6wR1e0rl4lt+hwEDRInLHFXhiUB50S1G1SCcZ4qBLuujj3kG9+xfa+1cbFC kvlnHBDTItChMBWSI5XO6V4NaqTtzgk2Wl1y7HH5DqsqAejtJWBfHcCqvXfVpwul70dL G2Q951w7y6y8xJ1FsFDruelJ0LgQtCM+qLoZ4h5J3Gy/G9xH5V8bXXStkSDz3phW/aMa Y6Gw== 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=Hac4EHHsb72pc36SpERCNR7FLjk8MqPI23RxtaSl/AY=; b=aCmJ6rjGduX4e3CXryPJ2VvnvINMdJMS0U8nZlP2zSEDrG1ThrhbxyDanNR9KorsBp mLApwCnTm+ugZKS0CiPQf++v4cqjmZ5oQr1I1CAjBKWOctEROqUAWBh57w/1JAU2nuAl 37lCVAqg14Ou84q1KIFzsmMzVEaUhwx8uyyeLChAgDP5Fu2jrEJoaTqyuXLnvJ2mnJTo fFyMyIEk3lEvhgjBAnwFx8tXvrD9vczTsQIeD+AB5sAScLRIXr4YO2FkmTUW44v4rsOJ r5leuEDz1BUphxTyUGXB/pk7di9Mz7GeqOMttMq6sK2JSL6U6ncIVm4zZEl6WVOpoxBY kSYQ== X-Gm-Message-State: AOAM531MODWjfXY9PigirV+D79VjhS31qPzLDthXikQbRC/kHt9jzKYo LIJMkG3Pk9SbZv2nTZzlui6P5A== X-Received: by 2002:a92:85d5:: with SMTP id f204mr12121706ilh.45.1604339643948; Mon, 02 Nov 2020 09:54:03 -0800 (PST) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id r4sm11089591ilj.43.2020.11.02.09.54.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 09:54:03 -0800 (PST) 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 0/6] net: ipa: tell GSI the IPA version Date: Mon, 2 Nov 2020 11:53:54 -0600 Message-Id: <20201102175400.6282-1-elder@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The GSI code that supports IPA avoids having knowledge about the IPA layer it serves. One result of this is that Boolean flags are used during GSI initialization to convey that certain hardware version-dependent special behaviors should be used. A given version of IPA hardware uses a fixed/well-defined version of GSI, so the IPA version really implies the GSI version. If given only the IPA version, the GSI code supporting IPA can use it to implement certain special behaviors required for IPA *or* GSI. This avoids the need to pass and maintain numerous Boolean flags. Note: the last patch in this series depends on this patch posted for review earlier today: https://lore.kernel.org/netdev/20201102173435.5987-1-elder@linaro.org -Alex Alex Elder (6): net: ipa: expose IPA version to the GSI layer net: ipa: record IPA version in GSI structure net: ipa: use version in gsi_channel_init() net: ipa: use version in gsi_channel_reset() net: ipa: use version in gsi_channel_program() net: ipa: eliminate legacy arguments drivers/net/ipa/gsi.c | 52 ++++++++++++++++++---------------- drivers/net/ipa/gsi.h | 24 +++++++++------- drivers/net/ipa/ipa_endpoint.c | 16 ++++------- drivers/net/ipa/ipa_main.c | 14 ++------- 4 files changed, 51 insertions(+), 55 deletions(-) -- 2.20.1