Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp18343ybz; Tue, 21 Apr 2020 03:54:10 -0700 (PDT) X-Google-Smtp-Source: APiQypKB6Q6AvsEgdwy436pnvGYj7iefO8YblbeWua4f6lSI3kK3XUeu/puPXTuSQDsLfxaEZ7bk X-Received: by 2002:a05:6402:3129:: with SMTP id dd9mr5096810edb.121.1587466450343; Tue, 21 Apr 2020 03:54:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587466450; cv=none; d=google.com; s=arc-20160816; b=P/uH4daXdV1CmQmvDrdnJMrBR0bJtSAeraLwC0iNAq3qKQ8lJQxP7skE4a3EnJWBVh PdzdN5ZzlnF4HzGt+0uw8Wt5Z5tN1RVwlTZ48vvbpkYz/bZgngbegrDGU4YLRSxSJN3v jEuDY+qtpeUwRlucDVSd22p6kpCczPwVd0EycM1r0fb87uXaeZSo6E5uC1WA83GnDkOu iBRzfM9RKthpJT5pOO9v4X5KbZhn+PFBE06dtVgaWfjBHDdHq8efJLEPxbzDFrabZEKV hGeVPnwQ6p3d7r4Xd55YO5YeC/j74oUbElsSyOl2949n7w2O/69pjto+OMTjjSlRdAxz +t/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ivbFUkwRL9S7N1wT7PKkBXOsZsaEcUNHKgJGMoPGLUE=; b=LKwAYB2nTj0OWpGdrtSKtx5zNjRBZXBu7fsKb1IAY2SfGlfEpvdS+uKgRbFp8u2wSE +KevMISbx9YXV0L4F4umnHBTm5slwVZvth8GyAqvICRVmsesA1SXXDS3NIKEGGfn/VFU NcbPLuHZh1mFs4C0JMtmIXyS5qHdO2pYWDMFuQDdRJJcQvIllsgl5Voly080yBL/j8Db ddmSB+B8wPueIZibQMI9iFv2A8EcZxYKHCHXTeAlVgdSL4dGk8QS2kPfXc6zzhG7jKWn J2i8wwQTNQ7ts1PDJYuYn7T+laTnI/7UUdH5PoUbNTAfJD5l2cp8O6gqSpIQ1ROWk/GM 0C8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OOzRVb4R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t9si1261800ejr.422.2020.04.21.03.53.47; Tue, 21 Apr 2020 03:54:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OOzRVb4R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728696AbgDUKvx (ORCPT + 99 others); Tue, 21 Apr 2020 06:51:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728413AbgDUKvw (ORCPT ); Tue, 21 Apr 2020 06:51:52 -0400 Received: from mail-qv1-xf41.google.com (mail-qv1-xf41.google.com [IPv6:2607:f8b0:4864:20::f41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F1AFC061A0F for ; Tue, 21 Apr 2020 03:51:51 -0700 (PDT) Received: by mail-qv1-xf41.google.com with SMTP id q2so3295698qvd.1 for ; Tue, 21 Apr 2020 03:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ivbFUkwRL9S7N1wT7PKkBXOsZsaEcUNHKgJGMoPGLUE=; b=OOzRVb4RfJPdYn4zpXtOEhyi979GugRYT98eayitSgigmRN7GGovTmLYdlPS6gENC7 eyJC1JWayXcESfs32HRksxLNTDphXS9fVFCMcfvS7Eyj/FDcpBXP+MMNhvt2Z9fbkmt4 5nW+MavhMgBAqGwwB5gEee5Rep+J1L5gCEmyPW+TwaZneNL4L8fmrF74tNgClC80QnyO UylThTlptOWK3nNpMymBJopquDsk1lfiqU1lSyaOWdY0BomJdlfgugcZbcznAACmecku rPrFPph1m2QjfJqcuk6gORLIB1dVJJWvVUq28TRJjOVHbO3Pnlf1J1zX12M575sZGbbB NtKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ivbFUkwRL9S7N1wT7PKkBXOsZsaEcUNHKgJGMoPGLUE=; b=q3gpJksX9++1P5evNnb7P4KNNIrdgFldR+x4TqfiZWO9MHQ9zmCHitn9EJkVHEEJlb rRUbYgazFy3zhzI8Wj3NH9sh6z14DOeoJ9XYbtifLQtb3Dfg9Kzd7164IXkR/xcoEEvV TdsreEE6Es7C+hGbZoFzOolMHEUmrDrsEsd+R4XskSpym43TWltpWSy3JdVOho9+3I/+ DL94X7z1N2yo7MlAz8uQ5qSYIAcWtPQtKX4lifPDb0cz5Nik5EdzaVzaOBrt/XDi9qqZ hzOWMT+lZrmEk2TuQ4AbGll/sJDoM7e5kOTeJUeg6PDn5hcJ3vt6Bmw+XOrBI2nHC3hk +wEg== X-Gm-Message-State: AGi0Pua6wMnLxjqkoYPPKj4gcrr/8ozQ2jP3uzbfWluM2U4nulc9TggM BhYcm+G3ucmSzGoImNqrQI9TWvgL4ysqw/eQg0k= X-Received: by 2002:ad4:4e65:: with SMTP id ec5mr10315478qvb.32.1587466310751; Tue, 21 Apr 2020 03:51:50 -0700 (PDT) MIME-Version: 1.0 References: <1587458483-2166-1-git-send-email-shengjiu.wang@nxp.com> <20200421095139.GA4540@sirena.org.uk> In-Reply-To: <20200421095139.GA4540@sirena.org.uk> From: Shengjiu Wang Date: Tue, 21 Apr 2020 18:51:39 +0800 Message-ID: Subject: Re: [PATCH] ASoC: fsl_esai: Remove expensive print in irq handler To: Mark Brown Cc: Shengjiu Wang , Linux-ALSA , Timur Tabi , Xiubo Li , linuxppc-dev@lists.ozlabs.org, Takashi Iwai , Nicolin Chen , Fabio Estevam , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On Tue, Apr 21, 2020 at 5:53 PM Mark Brown wrote: > > On Tue, Apr 21, 2020 at 04:41:23PM +0800, Shengjiu Wang wrote: > > Use dev_dbg instead of dev_err in irq handler, the dev_err > > is expensive, we don't need the message to be printed everytime, > > which is almost a debug option. > > > if (esr & ESAI_ESR_RFF_MASK) > > - dev_warn(&pdev->dev, "isr: Receiving overrun\n"); > > + dev_dbg(&pdev->dev, "isr: Receiving overrun\n"); > > > > if (esr & ESAI_ESR_TFE_MASK) > > - dev_warn(&pdev->dev, "isr: Transmission underrun\n"); > > + dev_dbg(&pdev->dev, "isr: Transmission underrun\n"); > > These are error messages which would suggest a problem that'd lead to > data corruption, it seems bad not to try to flag that to the user - > surely we've got bigger problems than performance if this happens? > Perhaps convert to a ratelimited print if the issue is that when errors > happen they happen a lot? Thanks for review, I will rethink about this. best regards wang shengjiu