Merge branch 'master' [vanilla Linus master] into libata-dev.git/upstream
authorJeff Garzik <jeff@garzik.org>
Wed, 25 Jul 2012 19:58:48 +0000 (15:58 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 25 Jul 2012 19:58:48 +0000 (15:58 -0400)
Two bits were appended to the end of the bitfield
list in struct scsi_device.  Resolve that conflict
by including both bits.

Conflicts:
include/scsi/scsi_device.h

1  2 
drivers/acpi/power.c
drivers/acpi/sleep.c
drivers/ata/libata-core.c
drivers/ata/libata-eh.c
drivers/scsi/scsi_lib.c
include/linux/libata.h
include/scsi/scsi.h
include/scsi/scsi_device.h

Simple merge
@@@ -791,11 -796,19 +796,20 @@@ int acpi_pm_device_sleep_state(struct d
                }
        }
  
+       if (d_max_in < d_min)
+               return -EINVAL;
        if (d_min_p)
                *d_min_p = d_min;
+       /* constrain d_max with specified lowest limit (max number) */
+       if (d_max > d_max_in) {
+               for (d_max = d_max_in; d_max > d_min; d_max--) {
+                       if (adev->power.states[d_max].flags.valid)
+                               break;
+               }
+       }
        return d_max;
  }
 +EXPORT_SYMBOL(acpi_pm_device_sleep_state);
  #endif /* CONFIG_PM */
  
  #ifdef CONFIG_PM_SLEEP
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -153,7 -154,7 +154,8 @@@ struct scsi_device 
        unsigned no_read_capacity_16:1; /* Avoid READ_CAPACITY_16 cmds */
        unsigned try_rc_10_first:1;     /* Try READ_CAPACACITY_10 first */
        unsigned is_visible:1;  /* is the device visible in sysfs */
 +      unsigned can_power_off:1; /* Device supports runtime power off */
+       unsigned wce_default_on:1;      /* Cache is ON by default */
  
        DECLARE_BITMAP(supported_events, SDEV_EVT_MAXBITS); /* supported events */
        struct list_head event_list;    /* asserted events */