[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <46AE12B6.6090408@garzik.org>
Date: Mon, 30 Jul 2007 12:32:54 -0400
From: Jeff Garzik <jeff@...zik.org>
To: Kristen Carlson Accardi <kristen.c.accardi@...el.com>,
James.Bottomley@...eleye.com, linux-scsi@...r.kernel.org
CC: akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
linux-ide@...r.kernel.org, edwintorok@...il.com, axboe@...nel.dk
Subject: Re: [patch 2/4] Expose Power Management Policy option to users
Kristen Carlson Accardi wrote:
> @@ -42,6 +42,16 @@ enum scsi_eh_timer_return {
> EH_RESET_TIMER,
> };
>
> +/*
> + * shost pm policy: If you alter this, you also need to alter scsi_sysfs.c
> + * (for the ascii descriptions)
> + */
> +enum scsi_host_link_pm {
> + SHOST_NOT_AVAILABLE,
> + SHOST_MIN_POWER,
> + SHOST_MAX_PERFORMANCE,
> + SHOST_MEDIUM_POWER,
> +};
>
> struct scsi_host_template {
> struct module *module;
> @@ -345,6 +355,12 @@ struct scsi_host_template {
> int (*suspend)(struct scsi_device *, pm_message_t state);
>
> /*
> + * link power management support
> + */
> + int (*set_link_pm_policy)(struct Scsi_Host *, enum scsi_host_link_pm);
> + enum scsi_host_link_pm default_link_pm_policy;
> +
> + /*
> * Name of proc directory
> */
> char *proc_name;
> @@ -642,6 +658,7 @@ struct Scsi_Host {
>
>
> enum scsi_host_state shost_state;
> + enum scsi_host_link_pm shost_link_pm_policy;
>
> /* ldm bits */
> struct device shost_gendev;
Any chance the SCSI peeps could ACK this, and then let me include it in
the ALPM patchset in the libata tree?
Jeff
-
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