From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mundt Subject: Re: [PATCH] ata: pata_platform: Disable prereset logic. Date: Wed, 23 May 2007 18:48:58 +0900 Message-ID: <20070523094858.GA30352@linux-sh.org> References: <20070523064408.GA29593@linux-sh.org> <4653F62C.4070700@gmail.com> <20070523083026.GA29851@linux-sh.org> <46540981.9080603@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from smtp.ocgnet.org ([64.20.243.3]:51457 "EHLO smtp.ocgnet.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757475AbXEWJty (ORCPT ); Wed, 23 May 2007 05:49:54 -0400 Content-Disposition: inline In-Reply-To: <46540981.9080603@gmail.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Tejun Heo Cc: Jeff Garzik , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org On Wed, May 23, 2007 at 11:29:37AM +0200, Tejun Heo wrote: > Paul Mundt wrote: > > On Wed, May 23, 2007 at 10:07:08AM +0200, Tejun Heo wrote: > >> Paul Mundt wrote: > >>> On a number of boards the current prereset logic seems to misbehave: > >>> > >>> scsi0 : pata_platform > >>> ata1: PATA max PIO0 cmd 0xb06001f0 ctl 0xb06003f6 bmdma 0x00000000 irq 0 > >>> ata1: device not ready (errno=-19), forcing hardreset > >>> ata1: BUG: prereset() requested invalid reset type > >>> > >>> This triggers when there is no card inserted in the slot. > >>> > > ata_wait_ready() works fine, it reports 0xff immediately (and this is > > what I would expect when there is no card inserted). > > Does the attached patch fix your problem? > Yes, that works fine, thanks.