|
@@ -74,7 +74,6 @@ static const unsigned long ata_eh_reset_timeouts[] = {
|
|
};
|
|
};
|
|
|
|
|
|
static void __ata_port_freeze(struct ata_port *ap);
|
|
static void __ata_port_freeze(struct ata_port *ap);
|
|
-static void ata_eh_finish(struct ata_port *ap);
|
|
|
|
#ifdef CONFIG_PM
|
|
#ifdef CONFIG_PM
|
|
static void ata_eh_handle_port_suspend(struct ata_port *ap);
|
|
static void ata_eh_handle_port_suspend(struct ata_port *ap);
|
|
static void ata_eh_handle_port_resume(struct ata_port *ap);
|
|
static void ata_eh_handle_port_resume(struct ata_port *ap);
|
|
@@ -1015,7 +1014,7 @@ void ata_eh_qc_retry(struct ata_queued_cmd *qc)
|
|
* LOCKING:
|
|
* LOCKING:
|
|
* None.
|
|
* None.
|
|
*/
|
|
*/
|
|
-static void ata_eh_detach_dev(struct ata_device *dev)
|
|
|
|
|
|
+void ata_eh_detach_dev(struct ata_device *dev)
|
|
{
|
|
{
|
|
struct ata_link *link = dev->link;
|
|
struct ata_link *link = dev->link;
|
|
struct ata_port *ap = link->ap;
|
|
struct ata_port *ap = link->ap;
|
|
@@ -1052,8 +1051,8 @@ static void ata_eh_detach_dev(struct ata_device *dev)
|
|
* LOCKING:
|
|
* LOCKING:
|
|
* None.
|
|
* None.
|
|
*/
|
|
*/
|
|
-static void ata_eh_about_to_do(struct ata_link *link, struct ata_device *dev,
|
|
|
|
- unsigned int action)
|
|
|
|
|
|
+void ata_eh_about_to_do(struct ata_link *link, struct ata_device *dev,
|
|
|
|
+ unsigned int action)
|
|
{
|
|
{
|
|
struct ata_port *ap = link->ap;
|
|
struct ata_port *ap = link->ap;
|
|
struct ata_eh_info *ehi = &link->eh_info;
|
|
struct ata_eh_info *ehi = &link->eh_info;
|
|
@@ -1095,8 +1094,8 @@ static void ata_eh_about_to_do(struct ata_link *link, struct ata_device *dev,
|
|
* LOCKING:
|
|
* LOCKING:
|
|
* None.
|
|
* None.
|
|
*/
|
|
*/
|
|
-static void ata_eh_done(struct ata_link *link, struct ata_device *dev,
|
|
|
|
- unsigned int action)
|
|
|
|
|
|
+void ata_eh_done(struct ata_link *link, struct ata_device *dev,
|
|
|
|
+ unsigned int action)
|
|
{
|
|
{
|
|
struct ata_eh_context *ehc = &link->eh_context;
|
|
struct ata_eh_context *ehc = &link->eh_context;
|
|
|
|
|
|
@@ -1756,7 +1755,7 @@ static void ata_eh_link_autopsy(struct ata_link *link)
|
|
* LOCKING:
|
|
* LOCKING:
|
|
* Kernel thread context (may sleep).
|
|
* Kernel thread context (may sleep).
|
|
*/
|
|
*/
|
|
-static void ata_eh_autopsy(struct ata_port *ap)
|
|
|
|
|
|
+void ata_eh_autopsy(struct ata_port *ap)
|
|
{
|
|
{
|
|
struct ata_link *link;
|
|
struct ata_link *link;
|
|
|
|
|
|
@@ -1867,7 +1866,7 @@ static void ata_eh_link_report(struct ata_link *link)
|
|
* LOCKING:
|
|
* LOCKING:
|
|
* None.
|
|
* None.
|
|
*/
|
|
*/
|
|
-static void ata_eh_report(struct ata_port *ap)
|
|
|
|
|
|
+void ata_eh_report(struct ata_port *ap)
|
|
{
|
|
{
|
|
struct ata_link *link;
|
|
struct ata_link *link;
|
|
|
|
|
|
@@ -1918,9 +1917,9 @@ static int ata_eh_followup_srst_needed(int rc, int classify,
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-static int ata_eh_reset(struct ata_link *link, int classify,
|
|
|
|
- ata_prereset_fn_t prereset, ata_reset_fn_t softreset,
|
|
|
|
- ata_reset_fn_t hardreset, ata_postreset_fn_t postreset)
|
|
|
|
|
|
+int ata_eh_reset(struct ata_link *link, int classify,
|
|
|
|
+ ata_prereset_fn_t prereset, ata_reset_fn_t softreset,
|
|
|
|
+ ata_reset_fn_t hardreset, ata_postreset_fn_t postreset)
|
|
{
|
|
{
|
|
struct ata_eh_context *ehc = &link->eh_context;
|
|
struct ata_eh_context *ehc = &link->eh_context;
|
|
unsigned int *classes = ehc->classes;
|
|
unsigned int *classes = ehc->classes;
|
|
@@ -2296,10 +2295,10 @@ static int ata_eh_handle_dev_fail(struct ata_device *dev, int err)
|
|
* RETURNS:
|
|
* RETURNS:
|
|
* 0 on success, -errno on failure.
|
|
* 0 on success, -errno on failure.
|
|
*/
|
|
*/
|
|
-static int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset,
|
|
|
|
- ata_reset_fn_t softreset, ata_reset_fn_t hardreset,
|
|
|
|
- ata_postreset_fn_t postreset,
|
|
|
|
- struct ata_link **r_failed_link)
|
|
|
|
|
|
+int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset,
|
|
|
|
+ ata_reset_fn_t softreset, ata_reset_fn_t hardreset,
|
|
|
|
+ ata_postreset_fn_t postreset,
|
|
|
|
+ struct ata_link **r_failed_link)
|
|
{
|
|
{
|
|
struct ata_link *link;
|
|
struct ata_link *link;
|
|
struct ata_device *dev;
|
|
struct ata_device *dev;
|
|
@@ -2445,7 +2444,7 @@ static int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset,
|
|
* LOCKING:
|
|
* LOCKING:
|
|
* None.
|
|
* None.
|
|
*/
|
|
*/
|
|
-static void ata_eh_finish(struct ata_port *ap)
|
|
|
|
|
|
+void ata_eh_finish(struct ata_port *ap)
|
|
{
|
|
{
|
|
int tag;
|
|
int tag;
|
|
|
|
|