From patchwork Sat Mar 5 15:03:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ohad Ben Cohen X-Patchwork-Id: 612291 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p25F41Ro010057 for ; Sat, 5 Mar 2011 15:04:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751466Ab1CEPEA (ORCPT ); Sat, 5 Mar 2011 10:04:00 -0500 Received: from mail-iy0-f174.google.com ([209.85.210.174]:40022 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751224Ab1CEPD7 (ORCPT ); Sat, 5 Mar 2011 10:03:59 -0500 Received: by iyb26 with SMTP id 26so2711905iyb.19 for ; Sat, 05 Mar 2011 07:03:59 -0800 (PST) Received: by 10.42.142.195 with SMTP id t3mr2009910icu.481.1299337439098; Sat, 05 Mar 2011 07:03:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.192.77 with HTTP; Sat, 5 Mar 2011 07:03:39 -0800 (PST) X-Originating-IP: [93.172.240.154] In-Reply-To: <1299205366.4999.3.camel@maxim-laptop> References: <1290921690-6133-1-git-send-email-ohad@wizery.com> <1290921690-6133-2-git-send-email-ohad@wizery.com> <20101217005123.GD17239@void.printf.net> <1299205366.4999.3.camel@maxim-laptop> From: Ohad Ben-Cohen Date: Sat, 5 Mar 2011 17:03:39 +0200 Message-ID: Subject: Re: [PATCH 1/3] mmc: skip detection of nonremovable cards on rescan - card removal detection regression To: Maxim Levitsky Cc: Chris Ball , linux-mmc@vger.kernel.org, Dmitry Shmidt Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 05 Mar 2011 15:04:01 +0000 (UTC) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 6625c05..150b5f3 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1529,7 +1529,7 @@ void mmc_rescan(struct work_struct *work) * still present */ if (host->bus_ops && host->bus_ops->detect && !host->bus_dead - && mmc_card_is_removable(host)) + && !(host->caps & MMC_CAP_NONREMOVABLE)) host->bus_ops->detect(host); /*