Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp129810iob; Mon, 2 May 2022 15:02:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0FJXb8d0fKB1pKS9lY+Mmm8Jo73JH5/XlVhpq8uU99Aic73Wttcxy/CD7mtAsaO3jQXjW X-Received: by 2002:a19:dc16:0:b0:46b:afa0:510b with SMTP id t22-20020a19dc16000000b0046bafa0510bmr9370746lfg.393.1651528973422; Mon, 02 May 2022 15:02:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651528973; cv=none; d=google.com; s=arc-20160816; b=bn7lj44kZVG6iiClF7QH4G0TDgqNPPy6VkgKloRot5ziCSypaCp0b2E+bNbxF/FvVd LFVf6VASHhYgZotyS5nuHzT/B2MOOrUWANLBNilh2eyVhi4/OBnzEXuHY/zLI2Fv2aCf TvCeH0XSGIZlxGlWZ8BEG3EOhv5itVIpvoVB8+2ji9wvWCHdTlOU7w6fn8Drq1tWcGjd fzlGphImT8KPRLQUyzsykVcQaB39bmfrUZzfAFMrM/IztvBQd3nzLsGdMn7nA3T3ftdB /dqT61HRdmggUNIT1vaQ5ouA5phTssTxisHBehMT+/J0QwskaG3Rdxwzvp/BGYMl+T+H 5wgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from; bh=HK0ok/I2MIQ/68ESgG8HcxeBiKxuCfRe+ysDxYEeC6o=; b=ASBZM7IpyeUNnoqe6bqeN9MlD0M/BlVf45NFUQ3iZ3TY8pIElAXxg6hDid+ujML/eX 8Oi+c7PzVl+fjk1EyT+aQU01l1d8dMG+ocKzFY96zXXxgTZxvYg61E0MDCRphop45tTJ hBOyUDQOqCIMr/k9RplP17SumhArCIQe7070wrn2l85scqB5LloS0ugCFdlM9a6qqkUu VBXU0kUf/oWku9M+hS+KWWr8A14LhNPAvozR9hj+qsDCrQYTuMXGgO+08O6RioygXN0q 6cELQsPo7X0t8PTrAcXkjzhZ8NFL0nR91DcFWIHYXUMOyjY2FWby0d74uGNnsXQ4Wuk0 WpNg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z13-20020a2e964d000000b0024b57b34857si14567310ljh.495.2022.05.02.15.02.25; Mon, 02 May 2022 15:02:53 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350873AbiEBJGI (ORCPT + 99 others); Mon, 2 May 2022 05:06:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378198AbiEBJGH (ORCPT ); Mon, 2 May 2022 05:06:07 -0400 Received: from mail.marcansoft.com (marcansoft.com [212.63.210.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAC3C1B79F for ; Mon, 2 May 2022 02:02:38 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hector@marcansoft.com) by mail.marcansoft.com (Postfix) with ESMTPSA id 218CE419C2; Mon, 2 May 2022 09:02:32 +0000 (UTC) From: Hector Martin Cc: Hector Martin , Anup Patel , Vinod Koul , Sven Peter , Alyssa Rosenzweig , Mun Yew Tham , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek , Arnd Bergmann , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 1/7] mailbox: zynq: Remove unused zynqmp_ipi_peek_data Date: Mon, 2 May 2022 18:02:19 +0900 Message-Id: <20220502090225.26478-2-marcan@marcan.st> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220502090225.26478-1-marcan@marcan.st> References: <20220502090225.26478-1-marcan@marcan.st> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This op was ambiguously specified, and the way it was interpreted for this implementation is not useful. It has no users, so remove it. Signed-off-by: Hector Martin --- drivers/mailbox/zynqmp-ipi-mailbox.c | 41 ---------------------------- 1 file changed, 41 deletions(-) diff --git a/drivers/mailbox/zynqmp-ipi-mailbox.c b/drivers/mailbox/zynqmp-ipi-mailbox.c index 31a0fa914274..7c3ef7c8078e 100644 --- a/drivers/mailbox/zynqmp-ipi-mailbox.c +++ b/drivers/mailbox/zynqmp-ipi-mailbox.c @@ -177,46 +177,6 @@ static irqreturn_t zynqmp_ipi_interrupt(int irq, void *data) return IRQ_NONE; } -/** - * zynqmp_ipi_peek_data - Peek to see if there are any rx messages. - * - * @chan: Channel Pointer - * - * Return: 'true' if there is pending rx data, 'false' if there is none. - */ -static bool zynqmp_ipi_peek_data(struct mbox_chan *chan) -{ - struct device *dev = chan->mbox->dev; - struct zynqmp_ipi_mbox *ipi_mbox = dev_get_drvdata(dev); - struct zynqmp_ipi_mchan *mchan = chan->con_priv; - int ret; - u64 arg0; - struct arm_smccc_res res; - - if (WARN_ON(!ipi_mbox)) { - dev_err(dev, "no platform drv data??\n"); - return false; - } - - arg0 = SMC_IPI_MAILBOX_STATUS_ENQUIRY; - zynqmp_ipi_fw_call(ipi_mbox, arg0, 0, &res); - ret = (int)(res.a0 & 0xFFFFFFFF); - - if (mchan->chan_type == IPI_MB_CHNL_TX) { - /* TX channel, check if the message has been acked - * by the remote, if yes, response is available. - */ - if (ret < 0 || ret & IPI_MB_STATUS_SEND_PENDING) - return false; - else - return true; - } else if (ret > 0 && ret & IPI_MB_STATUS_RECV_PENDING) { - /* RX channel, check if there is message arrived. */ - return true; - } - return false; -} - /** * zynqmp_ipi_last_tx_done - See if the last tx message is sent * @@ -387,7 +347,6 @@ static void zynqmp_ipi_shutdown(struct mbox_chan *chan) static const struct mbox_chan_ops zynqmp_ipi_chan_ops = { .startup = zynqmp_ipi_startup, .shutdown = zynqmp_ipi_shutdown, - .peek_data = zynqmp_ipi_peek_data, .last_tx_done = zynqmp_ipi_last_tx_done, .send_data = zynqmp_ipi_send_data, }; -- 2.35.1