Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1676773ioo; Mon, 23 May 2022 00:00:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0RS3RQ5kDvkxQw/sCmKsWJ6lQzJBB6v0tzyIggbr5tu1poUaVKHuMBqF24ez+ymz3nTae X-Received: by 2002:a05:6a00:16cb:b0:517:c8ff:6ff6 with SMTP id l11-20020a056a0016cb00b00517c8ff6ff6mr22308496pfc.46.1653289252894; Mon, 23 May 2022 00:00:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653289252; cv=none; d=google.com; s=arc-20160816; b=EMimOcnjQ4allQ76dNllDLCd+GZDGjEeusxdChcUKcWNsj0prEQRTAXspNvr9c3KBc rp/wZCySVrO3FrummAqxtm+QdaknNf8giEvhm+wnyeg52LtqnVipdH8uvUzCQ0jMYg2i Cg5r0WLHLHYH3JTEpghxFmqozmy6xm8fFc0TLHe/R3qLwduAs78Q4JA1NAFkcMZmgJAp WGHttqeua0h1TLg0mti9kqJPCqdZ+j/5b3iE/R99YKuVn9JJNwGQ3sG7Zl4k1TQSIocI RwRFpgAgIIMq8emLfgSClu1YfL61m9NOBKEgGVBs2PhBX5f/COYfmCLW9FO1gk7O+6Fg 9TeA== 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=lbj7w2Oqts+QIuLWN6UEPCO1502Z/5Lns5ITbhIO238sy/4RxkRpiIdl2oD4S8RXwy roprX1jXVol0Z7ZXOZk+ptctH3XOqd3nu5zZ5DEMvv8aTOkD+vlFxJzfLQ0uJEYIFrsr 2dRu4C8Ec6Xz3/JLYlTVudpZ3sZxPQxLOIaSEJI9rS9VCrswY4dxAF3rP0rCGpMmyLmZ rhIOuFR820pJPLrhYGH1+Ij9RoAplbVmRZNUqrsNpfGINB4mgmpmLqtKLbjx1xZgBAUK 4R6J8qWDDP7tG1Qrnf6GUGHTRPiuW9uq2eWY0yA4aTNA0Q2FgIYWDtYSEp3H7+sOPYft 94Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="iB7k+gP/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t2-20020a170902e84200b00161f03aeb5asi10256620plg.538.2022.05.23.00.00.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:00:52 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="iB7k+gP/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 78ECD63BF1; Sun, 22 May 2022 23:25:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348543AbiEVAdX (ORCPT + 99 others); Sat, 21 May 2022 20:33:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348030AbiEVAci (ORCPT ); Sat, 21 May 2022 20:32:38 -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 9EB7D41334 for ; Sat, 21 May 2022 17:32:33 -0700 (PDT) Received: by mail-io1-xd36.google.com with SMTP id y12so12136156ior.7 for ; Sat, 21 May 2022 17:32:33 -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=iB7k+gP/BYojiNiJGmsLTKWyLiYiZe4T/k9oRUOCYCdxlbsD4IneL0be9ghqu1hItr co8BwQFyZd3oNiZh647qlXR1Mo00IGm+V/oSu568oNy8yKWNUl0KMKM9tUMuxquEsgLx JNip0o8vWKTHYlZdtCwsf8+REuPAGObOG5E6twpZOdnsPTk2tNv24SbSu1d+kRHBbr+R IHSULEYDDd8Ouq9cPU7JkPxWCsz9GbrmiV02NYV0gqpIYd20Qk9UpP8rCJf+5CRei7UY SR+hRizcba8KB8U2EqhPkUizrNfqwZnBCEDHqc4LnfJVCu5IYAZLX9A2i3sojTchWutS 3p1g== 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=DwiYYvVWBn2ufm+HWmORZ67S8wEepFCbGwTFnwKECFrpv29d4suP955C/cSSR40UWc 7156GvJxwaa1JBn9vUwI1hTA/RPsyy5qDhxQFhjxTWFe2MB/dWqXXN7Xsik7Ma8hkNTY BjJm2l1NjNRaPHt+y1Q0mfbiXXMx+aNAhZgBrHotup9w8PJK2Q/AqXbLPfpFMXJ3Fcsk mIouNZidgRR0UDEzBriqQzYXCzIvF6l5GDj4PQZAQG6Stn/wVNsCv734pxwRwpFEXhQ8 YvC9b8zxPu2wxTgTUuedft7DU7wRSyxtaZptrp6PE1IsgtlJ9lfitiDz9jwyKrkOXmm8 W72Q== X-Gm-Message-State: AOAM530Yz74Lmuvj1sdAnLggYZgu7P2G8ocflBezFzuii2VVK3If5GYV qBr9Z0ewRjntHlbW5UvrTPXTww== X-Received: by 2002:a02:234a:0:b0:32a:f07c:e8 with SMTP id u71-20020a02234a000000b0032af07c00e8mr8363690jau.87.1653179552867; Sat, 21 May 2022 17:32:32 -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 g8-20020a02c548000000b0032b5e78bfcbsm1757115jaj.135.2022.05.21.17.32.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 May 2022 17:32:32 -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 v2 6/9] net: ipa: get rid of ipa_cmd_info->direction Date: Sat, 21 May 2022 19:32:20 -0500 Message-Id: <20220522003223.1123705-7-elder@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220522003223.1123705-1-elder@linaro.org> References: <20220522003223.1123705-1-elder@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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