Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp182535imp; Tue, 19 Feb 2019 21:19:10 -0800 (PST) X-Google-Smtp-Source: AHgI3IZYUPAa/Ks3oVfLiQGan3jd2tvR/jOhO8O5D1s9B5UXcH9QhGacU1+/db6Z4dCxk/OPXs/y X-Received: by 2002:a17:902:9a4a:: with SMTP id x10mr33600992plv.93.1550639950274; Tue, 19 Feb 2019 21:19:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550639950; cv=none; d=google.com; s=arc-20160816; b=KGtS5p3kqpfeHHQ+oTlmjDC5bpgDM8hJgOtw6wtZ3F7lHOzxlOJFbHV3+jVesJpg39 p2f5ABLfLjn3lQUg1Ekj/+W2Q0rl0pS6TgnvyeFVcWT9zCrrClO2eyVFXkbx1QM/Jxg2 94+d8vFtEpRg2aHOPUefvgukLk7DAon9V5UxfOllAkWu5Jwc1qRYSKCK+GMpa1EVTQKE dewphEMk5S3MYAxU+fjKMf5qZ+2mDc3itlvVfZv4zguTdnfXgIXDmhUB5d4I7aIHPaT6 QkxamkVfXB9bj1VIbJPIOt7Yvh7KYvgGryWMBw33ab19Pzzi6HXozQdhA16ch9NbPluY 4rgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=y5MGMTJN26WOckax2yCwvZuIyv8nIc7OLqZndI8AqWw=; b=TPNq5GWAvaUJX/yZnsY/VZqSDK9OK8vEmpnftwQ7z4GzG4/ODTI0T+aWmhmMCKjq+i G4qHE84KERUCIw5+QFpSFPC/9Dl/4CEkv+cS/RoyD1aM5mojuRArr/Aa6+h29Q6AwbMj +elyDkN2LqxMyzLlh6j4lJ9Hl8GaqtoIYwYaAPtIJLvjMdsAYeG8+K954nid32DIVIkw ls5rHia4xPMyOyNNv3/eIO0rMztzltM/FPRX+d091UwyC5pyS+KufETvXq/NNUSZe6sy M1kxRALwnvxu3kyD+6dxBEpixJNDDFf99kh9sF6dDpbfB6K5OMvcXeUpYL/uVJ9w61jI d9VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QkB8vv3R; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 62si18346681plc.87.2019.02.19.21.18.55; Tue, 19 Feb 2019 21:19:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QkB8vv3R; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727001AbfBTFSV (ORCPT + 99 others); Wed, 20 Feb 2019 00:18:21 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:55605 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726842AbfBTFSS (ORCPT ); Wed, 20 Feb 2019 00:18:18 -0500 Received: by mail-it1-f193.google.com with SMTP id z131so12413194itf.5 for ; Tue, 19 Feb 2019 21:18:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=y5MGMTJN26WOckax2yCwvZuIyv8nIc7OLqZndI8AqWw=; b=QkB8vv3RRB59LJzg3CVBrU4NwlIraLoRq2cuXUtTXSbc+K9jJke0Sxm2sgkmfDjh+9 /T1pc5hjLafClsdO9uw0D6u4DLV4TXnP9ZS9su3cIWpnn2megQOLal5d90/EeYpaKv9H H+hrzPQpnw3Uhfn4bD6AQGjwGctPnq6Y3bepc88NdTRB51Oz3wcFArri3e/0nHVhJwIt Vt8ZB/fOOCFRGYdQB2AC/U2yH9X5dcANhYgw1Bhy5JVpDnSi8uS/JqABWa0FObqRUvqc G1PdrYSUYdygoRKTuZfL+SF/GVAuK20cp0gdQJK4FeUQ6rMOPdI1IgY8+bqfOldO1kQz 162w== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=y5MGMTJN26WOckax2yCwvZuIyv8nIc7OLqZndI8AqWw=; b=dYMXElUI26GJENd1ThalmsHWVFZtvOld/VX9DcnqgAcq2HUmg5Reyl8u7gDSnCL6+e 7CPz6LAssf8PxBrKcLq/fSwof+AK+KzUsffGwzAw3V8AZuX5cz7SMl4OENacACJz+kMV qYmvpLYhIDIZ2AP58KYda1WI9jqmQrhgZu7I+QW3uhCetz1luBwxjSiNgrhnqlNBIi/N 8G6ph8j8IVDyASzeP7FGEir3OauDrsiJ28Ho9MTeeaPNvQL6OWuKpmioraS1ook7wvvO AXF9xzDKH/LcH5tD8pUdwe1Z7tmk9VnIDNrbseisPJIOiwBNlJfil7bhJuDQGm2twjji 9pFQ== X-Gm-Message-State: AHQUAua0V0zYl4I1G69vGav0KXFuD1LuSHBFk/nIpYaRdbJXD3b2xYnK uozF8RIyStxyNdcWPnBcu995q0Xdrrk= X-Received: by 2002:a5d:824e:: with SMTP id n14mr18477619ioo.16.1550639897377; Tue, 19 Feb 2019 21:18:17 -0800 (PST) Received: from localhost.localdomain (c-73-242-244-99.hsd1.nm.comcast.net. [73.242.244.99]) by smtp.gmail.com with ESMTPSA id k64sm2297550itb.7.2019.02.19.21.18.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 21:18:16 -0800 (PST) From: George Hilliard To: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org, Neil Brown , George Hilliard Subject: [PATCH 10/10] staging: mt7621-mmc: Immediately notify mmc layer of card change detection Date: Tue, 19 Feb 2019 22:17:54 -0700 Message-Id: <20190220051754.12195-11-thirtythreeforty@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190220051754.12195-1-thirtythreeforty@gmail.com> References: <20190220051754.12195-1-thirtythreeforty@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to delay notifying the mmc layer. Schedule the delayed work to run immediately. Signed-off-by: George Hilliard --- drivers/staging/mt7621-mmc/sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/mt7621-mmc/sd.c b/drivers/staging/mt7621-mmc/sd.c index 472318a979cb..0a7f8384edf8 100644 --- a/drivers/staging/mt7621-mmc/sd.c +++ b/drivers/staging/mt7621-mmc/sd.c @@ -1355,7 +1355,7 @@ static irqreturn_t msdc_irq(int irq, void *dev_id) if (intsts & MSDC_INT_CDSC) { if (host->mmc->caps & MMC_CAP_NEEDS_POLL) return IRQ_HANDLED; - schedule_delayed_work(&host->card_delaywork, HZ); + schedule_delayed_work(&host->card_delaywork, 0); /* tuning when plug card ? */ } -- 2.20.1