Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp216262iob; Mon, 2 May 2022 17:29:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDUehBODMX21JVfBj6FvvGXGl9qGbg+urSXRl1rbZ4Oe9AEfTnbnbKzHKSBQKez5qg/eFi X-Received: by 2002:a17:90b:3910:b0:1dc:515e:1b12 with SMTP id ob16-20020a17090b391000b001dc515e1b12mr1924560pjb.107.1651537768345; Mon, 02 May 2022 17:29:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651537768; cv=none; d=google.com; s=arc-20160816; b=Hwx78rrMWiP9vkl+zovD3e73czx6B5sSItLUDialS/e7dQIzXVazYCiOY/HaAP5Gf1 s2eLSkTonXeFe3vhl/cMJI4KOjyM5bmZXmI79KebxgOHdgmL9aXKUvB8gcQQ2bBrL2WT 3EFDU7nCPZ8g4qRliatSahGzxg0D+yaIkkkG0W5NC5hlXZJQDQmeXSbJkyu7ou5+7Mzv lyGrnYaVsNyYzIx8NoTVn0YHXOWAEUT63cw13Cd7AQFV0/IT+PaTGQ6q6ArMXvDk6G2M /mwYstBqfWKBFMa3Yn8KuN7TmVat+4N+O9YBBqbVInzq8Bx5grCWvHi6HbAnyadVQBon dKjg== 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=QtTba0V0jUt7OY0UwQcm43Aufx96tRQ1smSh9SgdoII=; b=gJaFBcLx1WC73DFWkCUpIWOat2oldewOvMnqGbodKn8cBDdh01hR+WFsM3hdpOWLGD T7EH9lKtbtp+GMuNTM2vz4Cxu6XbfFXbt95RgfKDyPXZ7r9vpD4Y+qjLF3d0OFgdv9oy hyxdI+jkkXpwkP3NLOlzIJb1WYsrziqREuW3neuCR1Wo3SQPpE5egyzeUMwUYOD+1SX3 nhhmvmi2R7dP8lkgZzwSuSga7RhnACGXeuQVRS6DKal+liBGAIbFDxZ8QcsCMlGUEU1J QMBXq/6g2GB9QrtJPBIYNovGlYy0wpg7IaQkukNM1illkVJ5kvCIk26r6vtD9Ha/Z3R3 h+dQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id o24-20020a170902779800b0015425d91e51si14411812pll.618.2022.05.02.17.29.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:29:28 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C513C3F31E; Mon, 2 May 2022 17:23:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384048AbiEBJGb (ORCPT + 99 others); Mon, 2 May 2022 05:06:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384055AbiEBJGQ (ORCPT ); Mon, 2 May 2022 05:06:16 -0400 Received: from mail.marcansoft.com (marcansoft.com [IPv6:2a01:298:fe:f::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ABDA583AD; Mon, 2 May 2022 02:02:48 -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 90BE54206F; Mon, 2 May 2022 09:02:42 +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 3/7] mailbox: ti-msgmgr Remove unused ti_msgmgr_queue_peek_data Date: Mon, 2 May 2022 18:02:21 +0900 Message-Id: <20220502090225.26478-4-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, 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 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/ti-msgmgr.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/drivers/mailbox/ti-msgmgr.c b/drivers/mailbox/ti-msgmgr.c index ddac423ac1a9..10881b812df2 100644 --- a/drivers/mailbox/ti-msgmgr.c +++ b/drivers/mailbox/ti-msgmgr.c @@ -309,33 +309,6 @@ static irqreturn_t ti_msgmgr_queue_rx_interrupt(int irq, void *p) return IRQ_HANDLED; } -/** - * ti_msgmgr_queue_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 ti_msgmgr_queue_peek_data(struct mbox_chan *chan) -{ - struct ti_queue_inst *qinst = chan->con_priv; - struct device *dev = chan->mbox->dev; - struct ti_msgmgr_inst *inst = dev_get_drvdata(dev); - const struct ti_msgmgr_desc *desc = inst->desc; - int msg_count; - - if (qinst->is_tx) - return false; - - if (ti_msgmgr_queue_is_error(desc, qinst)) { - dev_err(dev, "Error on channel %s\n", qinst->name); - return false; - } - - msg_count = ti_msgmgr_queue_get_num_messages(desc, qinst); - - return msg_count ? true : false; -} - /** * ti_msgmgr_last_tx_done() - See if all the tx messages are sent * @chan: Channel pointer @@ -744,7 +717,6 @@ static DEFINE_SIMPLE_DEV_PM_OPS(ti_msgmgr_pm_ops, ti_msgmgr_suspend, ti_msgmgr_r static const struct mbox_chan_ops ti_msgmgr_chan_ops = { .startup = ti_msgmgr_queue_startup, .shutdown = ti_msgmgr_queue_shutdown, - .peek_data = ti_msgmgr_queue_peek_data, .last_tx_done = ti_msgmgr_last_tx_done, .send_data = ti_msgmgr_send_data, }; -- 2.35.1