Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754138AbdDKK1h (ORCPT ); Tue, 11 Apr 2017 06:27:37 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:46079 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751790AbdDKK0D (ORCPT ); Tue, 11 Apr 2017 06:26:03 -0400 From: Jisheng Zhang To: , CC: , , , Jisheng Zhang Subject: [PATCH 0/2] provide isr for card-detect interrupts Date: Tue, 11 Apr 2017 18:20:54 +0800 Message-ID: <20170411102056.2869-1-jszhang@marvell.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-04-11_08:,, signatures=0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=6 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=6 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1704110085 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 892 Lines: 24 We found one issue on BG4CT platforms with GPIO for the card detect interrupt: remove sdcard when there's read write access to the sdcard, sometimes the card remove event can't be handled for a long time, so the system still think the sdcard is still plugged in. It turns out that the sdhci_card_event() is missing in common slot gpio's card detect isr. This should be common for all sdhci platforms. We fix this issue by providing sdhci's own isr for card-detect interrupts. In this own isr, we call sdhci_card_event() then process the change of state. patch1 is to prepare the fix in slot-gpio patch2 is the real fix Jisheng Zhang (2): mmc: slot-gpio: check cd_gpio before setting up cd_gpio_isr mmc: sdhci: provide isr for card-detect interrupts drivers/mmc/core/slot-gpio.c | 3 +++ drivers/mmc/host/sdhci.c | 12 ++++++++++++ 2 files changed, 15 insertions(+) -- 2.11.0