From patchwork Fri Apr 19 15:17:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 790288 Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF44A12F580 for ; Fri, 19 Apr 2024 15:18:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713539886; cv=none; b=p/kF4cDrhWWlrpaN29Nw1UDqS9KydxqBocKWP2ibeqgUk+FncAi7azBjhhBcmc+knkH6tystARJM1PIMsmnymhRu78VPAofF4CNO6jQKAqPgKu/BXa9DZxf29S7UV+ASA9kMW/GWrK4hORrZnqzY/mqt5ykTDI4Tr0KX1qJQGGU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713539886; c=relaxed/simple; bh=5/0w+7xhHbrR8SQruCxiXh9BC6LOxv6DX3Bpmvy8B5E=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ArHCUmLXmi0jnoQ8j2D5yRQCx6KyG1coiF22NieJQIsnjviwZ/8KSPto577ov+l+5gtHtx82xPspZnnst35NuRmJ/uI13mwlTniQl26pVpsg1jnO1dcFL/S/pfS4uHR3vatQ/ECqCjPsfoF88cpG9Hl7MBAeJdBzgQ43rdonu3w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ZpZWezQ+; arc=none smtp.client-ip=209.85.166.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZpZWezQ+" Received: by mail-io1-f50.google.com with SMTP id ca18e2360f4ac-7da1d81d042so79705639f.0 for ; Fri, 19 Apr 2024 08:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713539884; x=1714144684; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5TUCxK+gq1hZMcbtI1POUSVOx0x7lQqoinD0IAWm1/s=; b=ZpZWezQ+YoMilENS6zSpKH33IZ3swCwQ72BJtPEnTZUcZUI48aefaI2KkFB/uRlSrs JCMtgdTMQFWiJsstqVXM2sahwkkTQcYg3Cg7RzYzbjupcWEPGzISFFrDALi5qjP8l4/m bzzbVnwrdp6SWMc2nTWnEtcujdm2Xe0NYNM2mFJ5BR++movnQiDnCU/GNWU/76yhBNSk rOcEvxyvumaJnm8uhkNkB/lhHRB3pmhrKCK9/uQ/Lb+QshCiH+HWVVo2/lfmFTIWGCrX otCuuMxU9pVZgDrwbQkR5sSmvrkvsiPBhxan4yUVI+O8DuFeLEKUKcFfvW0Q9CkqWqhS fJfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713539884; x=1714144684; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5TUCxK+gq1hZMcbtI1POUSVOx0x7lQqoinD0IAWm1/s=; b=r0zUqYIH8nITqGS4ANmQJ+2e2upPDi3p5UfmVU+S3R0LMcJgKdhYp2/1F3vxNr8kqG ZbeluENNl/jI4QsuZ98BD65CJzyEkaOUVZeBbYdoCucLCyaczydC7DKXBmHeKLbyHE6z HN4gINESHoqnqSHVNXpZWH+HX/hPXNl/IT4BEPxT3ftXlrScdcYxxNGFHwUrIcwKk7nL LN7wCZUk7Qh9abkTWF4/scNZILiPI9uTmt1h7HZozaD57ktx+UQerzM4gcK4i2g8nTG6 VlCw4ecL62z/I/aKMZwBKmnkm37sTvCbUzOxc5NsysSWKUEYK0nipbLK+xQFQL+9n/rf tX+A== X-Forwarded-Encrypted: i=1; AJvYcCWD1BpNdvurR2I+MndY6OtUqIEs2qJS4Aa3u4bRb3l9vcVKc3/BJXn5hXBq2Fzav3wV73s/0454e0gWcFbU2SlIjPGWWRV7dog9tH1ixg== X-Gm-Message-State: AOJu0Yw9gTVT8gH0So+KRttRODfbJGv57nJiuBZxQlOBbJRP/j+NnHxF 3Qtt+E9Y8PIoRMEynOni/xgZ6lyUi5hEqUK8TDr1zcXHrcU8tAu8HgTFa0Uf8ts= X-Google-Smtp-Source: AGHT+IH0dmVlefrLZhr+LOHeIGHQZt0nGe6r8h49wxCpPAKq1DFAzY8daiE6lXPhT1uQ/Q4GDTMasQ== X-Received: by 2002:a6b:f303:0:b0:7d9:9445:1992 with SMTP id m3-20020a6bf303000000b007d994451992mr2940801ioh.2.1713539884019; Fri, 19 Apr 2024 08:18:04 -0700 (PDT) Received: from localhost.localdomain (c-73-228-159-35.hsd1.mn.comcast.net. [73.228.159.35]) by smtp.gmail.com with ESMTPSA id lc8-20020a056638958800b00484e9c7014bsm116126jab.153.2024.04.19.08.18.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 08:18:03 -0700 (PDT) From: Alex Elder To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: mka@chromium.org, andersson@kernel.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 0/8] net: ipa: eight simple cleanups Date: Fri, 19 Apr 2024 10:17:52 -0500 Message-Id: <20240419151800.2168903-1-elder@linaro.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This series contains a mix of cleanups, some dating back to December, 2022. Version 1 was based on an older version of net-next/main; this version has simply been rebased. The first two make it so the IPA SUSPEND interrupt only gets enabled when necessary. That make it possible in the third patch to call device_init_wakeup() during an earlier phase of initialization, and remove two functions. The next patch removes IPA register definitions that are never used. The fifth patch makes ipa_table_hash_support() a real function, so the IPA structure only needs to be declared rather than defined when that file is parsed. The sixth patch fixes improper argument names in two function declarations. The seventh removes the declaration for a function that does not exist, and makes ipa_cmd_init() actually get called. And the last one eliminates ipa_version_supported(), in favor of just deciding that if a device is probed because its compatible matches, that device is assumed to be supported. -Alex Alex Elder (8): net: ipa: maintain bitmap of suspend-enabled endpoints net: ipa: only enable the SUSPEND IPA interrupt when needed net: ipa: call device_init_wakeup() earlier net: ipa: remove unneeded FILT_ROUT_HASH_EN definitions net: ipa: make ipa_table_hash_support() a real function net: ipa: fix two bogus argument names net: ipa: fix two minor ipa_cmd problems net: ipa: kill ipa_version_supported() drivers/net/ipa/ipa_cmd.h | 8 ------ drivers/net/ipa/ipa_endpoint.h | 6 ++--- drivers/net/ipa/ipa_interrupt.c | 38 +++++++++++++++++++++++++--- drivers/net/ipa/ipa_main.c | 16 +++--------- drivers/net/ipa/ipa_power.c | 19 -------------- drivers/net/ipa/ipa_power.h | 14 ---------- drivers/net/ipa/ipa_table.c | 8 +++++- drivers/net/ipa/ipa_table.h | 7 ++--- drivers/net/ipa/ipa_version.h | 18 ------------- drivers/net/ipa/reg/ipa_reg-v3.1.c | 14 ---------- drivers/net/ipa/reg/ipa_reg-v3.5.1.c | 14 ---------- drivers/net/ipa/reg/ipa_reg-v4.11.c | 14 ---------- drivers/net/ipa/reg/ipa_reg-v4.5.c | 14 ---------- drivers/net/ipa/reg/ipa_reg-v4.7.c | 14 ---------- drivers/net/ipa/reg/ipa_reg-v4.9.c | 14 ---------- 15 files changed, 51 insertions(+), 167 deletions(-)