All of lore.kernel.org
 help / color / mirror / Atom feed
* About the naming of ata_drive_probe_reset()
@ 2006-05-18  3:00 Albert Lee
  2006-05-18  3:24 ` Tejun Heo
  0 siblings, 1 reply; 3+ messages in thread
From: Albert Lee @ 2006-05-18  3:00 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Jeff Garzik, Linux IDE

Hi Tejun,

The ata_drive_probe_reset() is not drive-specific. 
Actually what got reset is the port. (I guess the "drive" doesn't mean device here.)
Maybe something like ata_port_probe_reset() or ata_do_probe_reset() is less ambiguous?

-- albert


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: About the naming of ata_drive_probe_reset()
  2006-05-18  3:00 About the naming of ata_drive_probe_reset() Albert Lee
@ 2006-05-18  3:24 ` Tejun Heo
  2006-05-18 17:15   ` Doug Maxey
  0 siblings, 1 reply; 3+ messages in thread
From: Tejun Heo @ 2006-05-18  3:24 UTC (permalink / raw)
  To: albertl; +Cc: Jeff Garzik, Linux IDE

Albert Lee wrote:
> Hi Tejun,
> 
> The ata_drive_probe_reset() is not drive-specific. 
> Actually what got reset is the port. (I guess the "drive" doesn't mean device here.)
> Maybe something like ata_port_probe_reset() or ata_do_probe_reset() is less ambiguous?

The 'drive' is actually a verb.  The function drives (verb) probe_reset 
  (object) using the given methods.  Maybe a bad naming.  Anyways, the 
whole probe_reset stuff is gonna be removed with the hotplug patchset, 
so I think it can be left as it is until then.

However, I also used the ata_drive_*() naming convention else where, 
like ata_bmdma_drive_eh().  We may need to rename them.  I still want to 
signify that the function isn't actually a callback but something that 
can be used to drive a callback.  I like 'drive' but as you have pointed 
out it can be confused with hard 'drive'.  Maybe ata_steer_*()?  Any 
other ideas?

-- 
tejun

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: About the naming of ata_drive_probe_reset()
  2006-05-18  3:24 ` Tejun Heo
@ 2006-05-18 17:15   ` Doug Maxey
  0 siblings, 0 replies; 3+ messages in thread
From: Doug Maxey @ 2006-05-18 17:15 UTC (permalink / raw)
  To: Tejun Heo; +Cc: albertl, Jeff Garzik, Linux IDE


On Thu, 18 May 2006 12:24:05 +0900, Tejun Heo wrote:
>  I still want to 
> signify that the function isn't actually a callback but something that 
> can be used to drive a callback.  I like 'drive' but as you have pointed 
> out it can be confused with hard 'drive'.  Maybe ata_steer_*()?  Any 
> other ideas?

a comment from the peanut gallery - how about something along the lines 
of:
ata_exec
ata_run
ata_init
ata_start
ata_kick

?

++doug


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-05-18 17:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-18  3:00 About the naming of ata_drive_probe_reset() Albert Lee
2006-05-18  3:24 ` Tejun Heo
2006-05-18 17:15   ` Doug Maxey

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.