From patchwork Tue Sep 21 14:33:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 514420 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp3144702jao; Tue, 21 Sep 2021 07:36:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrbjPbD+dh/srmPBx4gC3vaF6EPBiKbMznCknUMO2XctbvBo8qdyhk027Z/dRygfmS8bYx X-Received: by 2002:a17:906:6a21:: with SMTP id qw33mr35993318ejc.326.1632234991438; Tue, 21 Sep 2021 07:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632234991; cv=none; d=google.com; s=arc-20160816; b=bdbZfUz8eE3Jv77xsHDZ82IG0CctHW5s2nZdESeADjHeZ0DBcimA/eqxv7FvH1tt2F QqXqLPfuPWszT3ajJfuVjWvXNrOUIKCMMhf3noesKGngyBxMIFMSJyY+UEKlADKUXus5 yGX6ppqPSxf3vPgoPM4jV9FZte7GM/xhMiDfWPwxbNKeZlYekBWPlL970/dNe881lILU JZ9AaTi3LNk7+wt1rO4x+rwMpiSyrrhA2yPDGNkbO+3Jjc9exG7swHomID1F5V+WIfEm cNRs8w8PlE7ZjR1XjROsyCcDgKTfda8hFR+QjcBE5eiybU30eVONzj201Rf9dmjGVbMw wr4g== 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=cPwwPvcnLEwajSFyPXN/bXk6hb2CCeZPFVGYiGI9csQ=; b=PO8gUOGJrtrGmHYAAIGkCUGqaFMiA4V5uLN/mkf0OWAnfIqZW2RCQaIKSqfGGmJwfx EE/VE0nrg+sFnrKMkHt6katgjO5kPV0R7BjoX0TRNven5v+QAha5KoXzltbGBQayDCYA +SxXxdZbunQtIlmDuKoU8enNaHkIxqbC0+qnkyh7dXg1m9jJsvbfeQ0NR2Fsah9qKFTr F317gpNTLUmbD1sN5WuehFCWxtKYpQr0ZWm5HYmvuApQlS50Euo7UYa6UEaLq/uwCreY 4OXw+fC86ulL9bhHDEmhyoGWvnZNhCke6IDFMk23D58HQKLu95iXn2QdyErI2LMnMnwt qGvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r3mzGeOo; spf=pass (google.com: domain of linux-mmc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n29si1891207edb.548.2021.09.21.07.36.31; Tue, 21 Sep 2021 07:36:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-mmc-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=@linaro.org header.s=google header.b=r3mzGeOo; spf=pass (google.com: domain of linux-mmc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233153AbhIUOh6 (ORCPT + 3 others); Tue, 21 Sep 2021 10:37:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233613AbhIUOh6 (ORCPT ); Tue, 21 Sep 2021 10:37:58 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC916C061574 for ; Tue, 21 Sep 2021 07:36:29 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id t10so75894829lfd.8 for ; Tue, 21 Sep 2021 07:36:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cPwwPvcnLEwajSFyPXN/bXk6hb2CCeZPFVGYiGI9csQ=; b=r3mzGeOoboNUIvZg85542z/eQxg77uDAJbcwlqc+p3yR8QHj+ngM3PNvHQvFmENTHn WvbdGx+0I8SoCRCdCGs0teo6kJ0nsQEGd5f1OjsjwX37epjIouhYmtQQIrnO9OuzfSeB vYZ+BZR+wnyHVM5gpV4nyFE9XduSEzgfEINGjPxKqqfWNc6X+VRWSjuP8z1MfNjD4Nml uzNNEKfnwDz1cJI35dheNN6+Y/t4+NYJ39rWHipejhIR0XDNXoGDUFKvgC1qgW8XO7+L 8i78gHA1w9qeag6YxbCsl303eHtDxcq52F4S97wq2uF2AEXXYhb7NfpmpxPTLlayRYKp enqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cPwwPvcnLEwajSFyPXN/bXk6hb2CCeZPFVGYiGI9csQ=; b=nLq5ODapEbX9tBNAWIIuX6hsmFYq88pwTGwXGrFQSls/rzuKnwq6+61O8/rYmZgy3t 5cjFGlGfG8vqb34RW5i9qnYQfI/bKrEixtClJjjUwiSP5SOKYYBBqSOivL5geUc2G3Tf OQrV8xsnxnBtp1RRFZ4ICDx+KppTrRAzRZKxO/hcYQzvghCODWzGOo/OMZzbH6M3v1EB +sTx4nWa8/1lj3S4AdifuUCQA0scFG4H40NJIcYzv/Kchcui0TM+12eVcjxAGGE0+NXC utZi946YeHfn79eNh5i2J7noNnXL6qmdkGRvE690DN4HXw2/GL2fu8NN83orfLhznYN0 KMrg== X-Gm-Message-State: AOAM530plnQmrCVCgbvJfhlq9XbIWYiA5wOeNA57qE8jpehwzlvBXdXD 40dqZvUDoyUu6WQY5S6Uq+N4GVK/p0nHqQ== X-Received: by 2002:ac2:4c47:: with SMTP id o7mr8110674lfk.202.1632234963043; Tue, 21 Sep 2021 07:36:03 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id p14sm1529683lfa.299.2021.09.21.07.36.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Sep 2021 07:36:02 -0700 (PDT) From: Linus Walleij To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Linus Walleij , Russell King , Yann Gautier , Ludovic Barre Subject: [PATCH] mmc: mmci: Add small comment about reset thread Date: Tue, 21 Sep 2021 16:33:59 +0200 Message-Id: <20210921143359.1738149-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Put a small comment before assigning IRQ_WAKE_THREAD telling us what is going on. Cc: Russell King Cc: Yann Gautier Cc: Ludovic Barre Signed-off-by: Linus Walleij --- drivers/mmc/host/mmci.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.31.1 diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index 3765e2f4ad98..c9cacd4d5b22 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -1394,6 +1394,10 @@ mmci_cmd_irq(struct mmci_host *host, struct mmc_command *cmd, } else if (host->variant->busy_timeout && busy_resp && status & MCI_DATATIMEOUT) { cmd->error = -ETIMEDOUT; + /* + * This will wake up mmci_irq_thread() which will issue + * a hardware reset of the MMCI block. + */ host->irq_action = IRQ_WAKE_THREAD; } else { cmd->resp[0] = readl(base + MMCIRESPONSE0);