From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Lord Subject: Re: [PATCH 4/5] sata_mv new mv_sata_hardreset handler Date: Wed, 02 Apr 2008 15:33:51 -0400 Message-ID: <47F3DF9F.8070609@rtr.ca> References: <47F1736F.8020104@rtr.ca> <47F1755F.9000303@rtr.ca> <47F2F002.9070401@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from rtr.ca ([76.10.145.34]:3148 "EHLO mail.rtr.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754273AbYDBTdw (ORCPT ); Wed, 2 Apr 2008 15:33:52 -0400 In-Reply-To: <47F2F002.9070401@gmail.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Tejun Heo Cc: IDE/ATA development list , Jeff Garzik Tejun Heo wrote: > Hello, > > Mark Lord wrote: >> static int mv_prereset(struct ata_link *link, unsigned long deadline) >> { >> - mv_stop_edma(link->ap); >> + if (mv_stop_edma(link->ap)) >> + link->eh_context.i.action |= ATA_EH_HARDRESET; >> + return ata_std_prereset(link, deadline); >> +} > > libata#upstream now defaults to hardreset. softreset is used only as > followup-SRST in case hardreset can't classify or PMP is supported, so > there's no reason to add reset promotion logic anymore. .. Super. That completely eliminates mv_prereset, then. >> + /* FIXME: >> + * Except for the outer do-while construct below, this function >> + * is an exact clone of sata_std_hardreset() from libata-core.c. >> + * >> + * Once this driver is stable, we should re-org libata so we can >> share >> + * more of that code, rather than duplicating so much of it here >> + * and in other drivers. >> + */ > > After modularize patchsets, sata_link_hardreset() does all the chores > needed around hardreset and sata_mv should be able to just build a loop > around it. .. Oh, that stuff is in now? Good. I'll rework to use it. Thanks again!