Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp1245808pxb; Fri, 13 Aug 2021 18:15:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8BCd41ylDMCzRulK4Xq3MuB7G5JPK3zdDop+qma9LRFTQuSGV/zAIZV8SAjqqErRCjqLn X-Received: by 2002:a05:6e02:194c:: with SMTP id x12mr3777228ilu.155.1628903721909; Fri, 13 Aug 2021 18:15:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628903721; cv=none; d=google.com; s=arc-20160816; b=FTfzmQ3J9Lyzpgf3BH7Jz2pobCNjCHb311TLBDMQx/9VkQakTcepQhF8QePY8nafgX J8w6FOd8GQQXju/4aNhp48SPJ9M1R5CbXqVsdw9oEP5j5Ikjlhhn30m6L3gE70FXCp0Z ryWBUBp/payuHeNsPPudN1vDHbSC96qergbBNayO7xT1518aO5uPDeipYPiVlIEq3N2I FU+e1Xnc2XpvRRqrAoARJTaf4Z0hvGwPkPFCvFvQuCDzVcvf+ZcNpKlGnacU0YdhIq3+ d5U1p101iO3hIAdsFiOE5aCgz9E8vnuCzAkON4ragxtG7mDFsww6MK5T/VjLLHJH+UVm awaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wkp5EdF8JGGUL9Fj5dPILwNGE1Ih8YlWbFZXceS3klc=; b=NqcCofdqEs0CHjg5G14JSKS4JtijmZCp5o066ZBT30drqDTUrCTaWqP2VA3+6hmyPi /BMSINsdFgUqmPHx4+Ei2B7mBAL4DBxwBOx9fv/TKb45KfhvSBCF+hgQIuCXHZn/vq1/ LJr+8uT5UQ2+LzZ4qGKHYEn4BvOedHSiZOBuiAtBAhRKFg5jqrEoolkBwJkUkvIJpd5Y HFYNlCwblQ+MAtBOv5cV/z84rmRNcP7OGE0hzqdX21cx+DgAme1W7Szgzc4au7ZmA+s+ TTYupzuV7Gyj82Jg8d1H9bgrO23zj1QFjPUlZowDLbXbgZh6txwqhxE5PchT+bQNzsZv 5arw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uIIR8e+e; 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 20si3301486ioz.25.2021.08.13.18.14.47; Fri, 13 Aug 2021 18:15:21 -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=uIIR8e+e; 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 S236214AbhHNBOF (ORCPT + 99 others); Fri, 13 Aug 2021 21:14:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236200AbhHNBOB (ORCPT ); Fri, 13 Aug 2021 21:14:01 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83409C061756 for ; Fri, 13 Aug 2021 18:13:33 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id 28-20020a17090a031cb0290178dcd8a4d1so12484181pje.0 for ; Fri, 13 Aug 2021 18:13:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wkp5EdF8JGGUL9Fj5dPILwNGE1Ih8YlWbFZXceS3klc=; b=uIIR8e+eVgkgXKMT5Z8N2ocY/YPRP2SmO8qGm2VygwKIk8v/s0gk7sHFBfOajHHQHV x5gvKqP0J5P+VbwbG2axqXd88v+AAu8WVNFCkwY+6to6iosxs9rLktSRPDxF/8GAQ650 2o1wvUCL6jlIto7O3B2JyDoNSuLQUCDzDxzJj2KEo+I3AJpPqn0QxnpnlFAVrCCJT6wo S8BMI+CpPFjVRCTFYdTOToBn7rrDBgWaptYQ5bvw8MZ2QK9OZnANJh6r/OHhoFVPT/cs zGsRzDMidaZmaiYu4ka2yLb3M7jhZtDAPviPV7QIWeqecXK1Wv0gP3ri8HjJEBK6d/vl 8BRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wkp5EdF8JGGUL9Fj5dPILwNGE1Ih8YlWbFZXceS3klc=; b=ZQquW83i+Spl72WrU6Hu5Pl5GtRdIe6J39xm27RJ9oD4kz0P81cFLW/eLAWURoUJTb TEkfh5JVACHPPGfkTUm8tFYLVDuCudcAskFh/UQnSnCSB8GBD8KRPkSdv52hkTBqaUGS UfzxRzqjz0G02jFWYSRsa0HzpLiosb3dr1rZLAsoMiQymSHHMtPSXaXro9o+BWnwjEAd dEpkw3CKmuzOaPHBmI+W/GFrkp7bSzG/IWNnZAAo7emlYQkz0Hus5SgmRYGGX+A3TDAm vJRS3P6HjDyWOSN/5fQyB/Sj3QBPp6IfQETZFDO2wyOs2a1MNhOekERv4p9jMfD+eGTo 71OA== X-Gm-Message-State: AOAM530horjZcMg2UeVuMzP3sjHH9npXR06Z4uQBflFCV3w5K+/bVwj2 6A79/x/xAqcs/iSX2yvPrGs= X-Received: by 2002:a17:902:850a:b029:12c:8da9:8bd2 with SMTP id bj10-20020a170902850ab029012c8da98bd2mr4085938plb.58.1628903613158; Fri, 13 Aug 2021 18:13:33 -0700 (PDT) Received: from WRT-WX9.. ([141.164.41.4]) by smtp.gmail.com with ESMTPSA id t1sm4292407pgr.65.2021.08.13.18.13.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Aug 2021 18:13:32 -0700 (PDT) From: Changbin Du To: Stuart Yoder , Laurentiu Tudor Cc: linux-kernel@vger.kernel.org, Changbin Du Subject: [PATCH] bus: fsl-mc: replace in_irq() with in_hardirq() Date: Sat, 14 Aug 2021 09:13:19 +0800 Message-Id: <20210814011319.5147-1-changbin.du@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace the obsolete and ambiguos macro in_irq() with new macro in_hardirq(). Signed-off-by: Changbin Du --- drivers/bus/fsl-mc/mc-sys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/fsl-mc/mc-sys.c b/drivers/bus/fsl-mc/mc-sys.c index f2052cd0a051..42662beb09b2 100644 --- a/drivers/bus/fsl-mc/mc-sys.c +++ b/drivers/bus/fsl-mc/mc-sys.c @@ -248,7 +248,7 @@ int mc_send_command(struct fsl_mc_io *mc_io, struct fsl_mc_command *cmd) enum mc_cmd_status status; unsigned long irq_flags = 0; - if (in_irq() && !(mc_io->flags & FSL_MC_IO_ATOMIC_CONTEXT_PORTAL)) + if (in_hardirq() && !(mc_io->flags & FSL_MC_IO_ATOMIC_CONTEXT_PORTAL)) return -EINVAL; if (mc_io->flags & FSL_MC_IO_ATOMIC_CONTEXT_PORTAL) -- 2.30.2