[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4018340.TCLCYqQ7qt@xps13>
Date: Sat, 25 Apr 2015 19:57:18 +0200
From: Gabriele Mazzotta <gabriele.mzt@...il.com>
To: Tejun Heo <tj@...nel.org>
Cc: stripathi@....com, linux-kernel@...r.kernel.org,
linux-ide@...r.kernel.org
Subject: Re: [PATCH] libata: Ignore spurious PHY events on LPM policy change
On Saturday 25 April 2015 11:37:51 Tejun Heo wrote:
> I thought more about it and it's weird to have ATA_LFLAG_CHANGED and
> last_lpm_change timestamp in libata core side and then open-code the
> actual logic in ahci. How about implementing a generic helper, say,
> bool sata_lpm_ignore_phy_events(link) in libata core and use it in
> specific drivers? It can test both the current lpm_policy and the
> timeout (preferably a separate patch to introduce the function and
> factor out lpm policy testing).
I agree. I'm now going to send the revised patches, thanks for all
the suggestions.
Gabriele
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists