From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Subject: Re: [PATCH 3/3 v2] AT91: initialize Compact Flash on AT91SAM9263 cpu Date: Sun, 15 Feb 2009 19:00:35 +0300 Message-ID: <49983C23.3010701@ru.mvista.com> References: <200902061214.19789.stf_xl@wp.pl> <498C272A.5070101@ru.mvista.com> <200902061432.20291.stf_xl@wp.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from gateway-1237.mvista.com ([63.81.120.155]:33894 "EHLO imap.sh.mvista.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752590AbZBOQAR (ORCPT ); Sun, 15 Feb 2009 11:00:17 -0500 In-Reply-To: <200902061432.20291.stf_xl@wp.pl> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Stanislaw Gruszka , Bartlomiej Zolnierkiewicz Cc: linux-ide@vger.kernel.org, Andrew Victor , linux-arm-kernel@lists.arm.linux.org.uk Hello. Stanislaw Gruszka wrote: >>>+ if (data->det_pin) { >>>+ /* check if device is present */ >>>+ at91_set_gpio_input(data->det_pin, 1); >>>+ at91_set_deglitch(data->det_pin, 1); >>>+ if (at91_get_gpio_value(data->det_pin) != 0) { >>>+ printk(KERN_ERR "AT91: no CF card detected\n"); >>>+ return; >>>+ } >>>+ } >> Bart, I'm not sure: don't we support warm-plug now? Or it won't avail >>us with CF? > Uhh, this code is wrong at least for PCMCIA as we hotplug there. I don't think > hotplug is supported for ATA devices. I didn't say hot plug, I said *warm* plug. You can force port probing via sysfs, if I don't mistake... Bart? MBR, Sergei