Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp279877ioo; Fri, 20 May 2022 22:06:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxk41Hf7p+vFJq/oQeAFzxOtohifPjqvgbrikceHbwMf0YVEH2sWGv8CksI0WuI0WebSXWg X-Received: by 2002:a17:907:3e2a:b0:6f4:d700:2e65 with SMTP id hp42-20020a1709073e2a00b006f4d7002e65mr11644125ejc.624.1653109570902; Fri, 20 May 2022 22:06:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653109570; cv=none; d=google.com; s=arc-20160816; b=dvxJ4b+LoBHjgGXI1QsAzZnU6hHOSL8rwwSjYWnJVp/jIvWlBQezyeUWbHSwluZ5/y ME6hci+9KVQMJKyMMFet536vE66mx6TjfFRQuYXOiGTyzIpdz32e1KVoivBpqnMvuJPW JgPp+YLcMfI9he6a/AXZdKaGKRaPX0lEH/KC3XQPQQlt/jo3kxpBplCRH6MrM7ZhjwHK jFMjeJKKmLUC+0S6pY+vp274GVgFddcRnzUmkYWQqVnpOK/a2tMI9vRAOLwMG6tb0x4Z CET/O1mOoKdE7CW6hPKd1icoTEMOn2nG96rs20JrdlMfSQsirKBnmXYkSf37wbguW9Tq Hcsg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vSHRCF1zLoP2q/+UJGoTXeLZBLEijQ7Yq4ob+ptO93g=; b=zXxPd965bMe93h6QPS0rUXXeKSTV5sDCk/VNxWsRlvWOYS7L8Hi82gY6tQ2o1jiBuu TqjBI2MPKGye+XcGUeQISHVVe8ShUUfuR4qnVIZ/GB0ar2/ClXx/V1Ab0UsYq9lPfxTJ DU8G+xGUmH4OQQLigRiP0Z0pLx8+ioQDhWHPMQltl3szU84/nDYwDWuqFsMXrTRA1+Y/ Y2SYLZnDxLiO3HT/3Dv95d6EYKMiZL21+ZTii0hvuvSh+b4GllCMS32vAuxoGfLOh7lC FfJE10fU4SgsInPCzOoC5C8hWXCD3umAYNWcGtf3XolQZ7WML/wEEYOhBO/XK+MHZSrT ugXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=use2A+KK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z10-20020a056402274a00b00427db30b309si3505657edd.319.2022.05.20.22.05.43; Fri, 20 May 2022 22:06:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=use2A+KK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S238385AbiETS6E (ORCPT + 99 others); Fri, 20 May 2022 14:58:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353108AbiETSzz (ORCPT ); Fri, 20 May 2022 14:55:55 -0400 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86C451F3 for ; Fri, 20 May 2022 11:55:44 -0700 (PDT) Received: by mail-io1-xd36.google.com with SMTP id z18so9618493iob.5 for ; Fri, 20 May 2022 11:55:44 -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=vSHRCF1zLoP2q/+UJGoTXeLZBLEijQ7Yq4ob+ptO93g=; b=use2A+KKg9Sv5uQTeKKXHg+JPg9IR+ucBAucOwKMSclHUiyx9Y12Qu4htGnlv5tHEa a9jlfDtihpR34uljS689Gc1MI+tqS9sF3Hz9qWVDExxcK/QpFn6YId7K7rD3Z7iTKwaj TeRUOunB00uXXogG+KG4fhd0P2eCKoJ3O/wZc4QJSbJAshSav3IfZhZGP/OILKSfZapw tq6t5lyMvDXjr6vLf2vByxjsCQTGqq1cOgFaEzGHUT/vf0nU8W9EqfrAWr7T4j0q1idQ UlpqD9TjWfKmE7dXSND98LoX1FIyOsPZomglOEmvXGA/1czV6308ek5qQHwsivkyOHHQ KPBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vSHRCF1zLoP2q/+UJGoTXeLZBLEijQ7Yq4ob+ptO93g=; b=OC4EsibZBj/+ZTlr7zumgjaGid1/Ilps1XBTmRmn9SAt0gd7PNuGhQZObbt38Q3PKm nVjY4YF8qkeA8OHvBkX6xFU/fYxj4pk/Xab1OV6of0fMgJk+CJSYDQiQHrH3jfAQvDIA 5nKdwgA2xjKRWHaUWueEpEPQ6aQ7Yv3Jn7gZ5wpBTc3Ec3wQ3oAAs6/LSWbMMMj6v17N SUxsPQxzEXqaWsorteq6h9TiDbM40cq3z/UHjbHGIA1b3l6Sb+UPTbLmfTDGo5eJAQiB ko9bIRAZAboDkTaIUV5EwpfstB2J09oEeAnM9B7mCtQoBEnJf23oasVAKlT+7Dy+gAJB OCsQ== X-Gm-Message-State: AOAM533U2i8PiaZ291aX+MnayQAd97j042aIBapTzRYXneSIMoNSXZiy Hx8Q2IR5lUA0D3PomGGiDeNfMA== X-Received: by 2002:a05:6638:1509:b0:32e:5c10:29ab with SMTP id b9-20020a056638150900b0032e5c1029abmr6157084jat.223.1653072943749; Fri, 20 May 2022 11:55:43 -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 a6-20020a056638058600b0032b3a7817acsm871958jar.112.2022.05.20.11.55.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 11:55:43 -0700 (PDT) From: Alex Elder To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: mka@chromium.org, evgreen@chromium.org, bjorn.andersson@linaro.org, quic_cpratapa@quicinc.com, quic_avuyyuru@quicinc.com, quic_jponduru@quicinc.com, quic_subashab@quicinc.com, elder@kernel.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 5/8] net: ipa: get rid of ipa_cmd_info->direction Date: Fri, 20 May 2022 13:55:30 -0500 Message-Id: <20220520185533.877920-6-elder@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220520185533.877920-1-elder@linaro.org> References: <20220520185533.877920-1-elder@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 The direction field of the ipa_cmd_info structure is set, but never used. It seems it might have been used for the DMA_SHARED_MEM immediate command, but the DIRECTION flag is set based on the value of the passed-in direction flag there. Anyway, remove this unused field from the ipa_cmd_info structure. This is done as a separate patch to make it very obvious that it's not required. Signed-off-by: Alex Elder --- drivers/net/ipa/gsi_trans.c | 5 +---- drivers/net/ipa/ipa_cmd.h | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/ipa/gsi_trans.c b/drivers/net/ipa/gsi_trans.c index bf31ef3d56adc..cf8ee42373547 100644 --- a/drivers/net/ipa/gsi_trans.c +++ b/drivers/net/ipa/gsi_trans.c @@ -413,7 +413,6 @@ void gsi_trans_cmd_add(struct gsi_trans *trans, void *buf, u32 size, dma_addr_t addr, enum dma_data_direction direction, enum ipa_cmd_opcode opcode) { - struct ipa_cmd_info *info; u32 which = trans->used++; struct scatterlist *sg; @@ -438,9 +437,7 @@ void gsi_trans_cmd_add(struct gsi_trans *trans, void *buf, u32 size, sg_dma_address(sg) = addr; sg_dma_len(sg) = size; - info = &trans->info[which]; - info->opcode = opcode; - info->direction = direction; + trans->info[which].opcode = opcode; } /* Add a page transfer to a transaction. It will fill the only TRE. */ diff --git a/drivers/net/ipa/ipa_cmd.h b/drivers/net/ipa/ipa_cmd.h index 05ed7e42e1842..d4dbe2ce96dcd 100644 --- a/drivers/net/ipa/ipa_cmd.h +++ b/drivers/net/ipa/ipa_cmd.h @@ -50,11 +50,9 @@ enum ipa_cmd_opcode { * struct ipa_cmd_info - information needed for an IPA immediate command * * @opcode: The command opcode. - * @direction: Direction of data transfer for DMA commands */ struct ipa_cmd_info { enum ipa_cmd_opcode opcode; - enum dma_data_direction direction; }; /** -- 2.32.0