From patchwork Mon May 31 07:35:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12288813 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7017C4708F for ; Mon, 31 May 2021 07:35:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C5CB06127A for ; Mon, 31 May 2021 07:35:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230397AbhEaHh1 (ORCPT ); Mon, 31 May 2021 03:37:27 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:60550 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230406AbhEaHhW (ORCPT ); Mon, 31 May 2021 03:37:22 -0400 Received: from mail-lj1-f199.google.com ([209.85.208.199]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lncSc-0002kR-At for netdev@vger.kernel.org; Mon, 31 May 2021 07:35:42 +0000 Received: by mail-lj1-f199.google.com with SMTP id r15-20020a2eb60f0000b02900eddb317c52so3103757ljn.21 for ; Mon, 31 May 2021 00:35:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aZ/yEEfClIlXQJ5jqul7RvuQr6Fao3s7oVlySYMna4M=; b=TndFvjbUhNswaC4r9JvSe7wOfvHH+AsjUCLFIYcyFioWelzrtWEyqff+/NF/Pr8Wki QrhaIVpFxevkIQvq5ju9VvP+8dcq5zeQpanCAYP/9Hi9U9mQlGTav+eA3lHaROHIUZ/f W0QS6zLUHMoOI38rAqTAAd1I8zhj1qNcQ51fhTKiECDytXWVjHbfg0aXJLoUxF6JU7Wn X3Eq/JagOzpYvHMc1khBMW6+l3O1u67255YxNkNYC236Mt/pJSyssVj2tkJ2F8kwKWlf Rc/n5oMmZrUbao7lyTXkmHAWblmBdJuybo2SWhRDQREX6iVjj1a4vJXmwwSUCeMudrd3 ai0Q== X-Gm-Message-State: AOAM530rYjHTFSTuUt3qZnNBhmJiJQGiLWIIsPrZ4bM+XdTjpjrhdg0G jBoKEsbG+eb9yRxU+nt0FbFSbBoGxlPBh+gtdHtohuhoFPPE101Jd7MIuxh6y8RUWpD/HWeptHX 3cLSGoy0l+8gycr8Uk1WO2S5yTFogNGAq4Q== X-Received: by 2002:a2e:9601:: with SMTP id v1mr15886354ljh.45.1622446541516; Mon, 31 May 2021 00:35:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+Tjd38dgYDCjWZAbxLIql+xzbe6YJpMcx4uGiK1i65n63byVeYJmdFScIYhnsVbjRxpSXzw== X-Received: by 2002:adf:8bc9:: with SMTP id w9mr19323503wra.378.1622446530398; Mon, 31 May 2021 00:35:30 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-185-9.adslplus.ch. [188.155.185.9]) by smtp.gmail.com with ESMTPSA id g10sm17217780wrq.12.2021.05.31.00.35.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 May 2021 00:35:29 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , "David S. Miller" , Jakub Kicinski , linux-nfc@lists.01.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH 02/11] nfc: mei_phy: drop ftrace-like debugging messages Date: Mon, 31 May 2021 09:35:13 +0200 Message-Id: <20210531073522.6720-2-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210531073522.6720-1-krzysztof.kozlowski@canonical.com> References: <20210531073522.6720-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Now that the kernel has ftrace, any debugging calls that just do "made it to this function!" and "leaving this function!" can be removed. Better to use standard debugging tools. Signed-off-by: Krzysztof Kozlowski --- drivers/nfc/mei_phy.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/nfc/mei_phy.c b/drivers/nfc/mei_phy.c index 0f43bb389566..e56cea716cd2 100644 --- a/drivers/nfc/mei_phy.c +++ b/drivers/nfc/mei_phy.c @@ -98,8 +98,6 @@ static int mei_nfc_if_version(struct nfc_mei_phy *phy) size_t if_version_length; int bytes_recv, r; - pr_info("%s\n", __func__); - memset(&cmd, 0, sizeof(struct mei_nfc_cmd)); cmd.hdr.cmd = MEI_NFC_CMD_MAINTENANCE; cmd.hdr.data_size = 1; @@ -146,8 +144,6 @@ static int mei_nfc_connect(struct nfc_mei_phy *phy) size_t connect_length, connect_resp_length; int bytes_recv, r; - pr_info("%s\n", __func__); - connect_length = sizeof(struct mei_nfc_cmd) + sizeof(struct mei_nfc_connect); @@ -320,8 +316,6 @@ static int nfc_mei_phy_enable(void *phy_id) int r; struct nfc_mei_phy *phy = phy_id; - pr_info("%s\n", __func__); - if (phy->powered == 1) return 0; @@ -363,8 +357,6 @@ static void nfc_mei_phy_disable(void *phy_id) { struct nfc_mei_phy *phy = phy_id; - pr_info("%s\n", __func__); - mei_cldev_disable(phy->cldev); phy->powered = 0;