mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Why do we need libata to access SATA host controller low level device drivers?
@ 2005-10-18  4:14 Deven Balani
  2005-10-18 13:48 ` Erik Mouw
  0 siblings, 1 reply; 3+ messages in thread
From: Deven Balani @ 2005-10-18  4:14 UTC (permalink / raw)
  To: linux-kernel

Hi Everybody

I'm sorry if my question sounds absurd to some. I've found out through
web sources, for the following reasons/features we need libata,

[1] libata is a library used inside the linux kernel to support ATA
host controllers and devices.
[2] libata provides an ATA driver API, class transport for ATA and
ATAPI devices and SCSI<->ATA translation for ATA devices according to
the T10 SAT spec.
[3] libata causes each SATA to appear as a SCSI bus.
[4] It controls how the low-level driver interfaces with the ATA and
SCSI layers.
[5] libata supports the necessary "lba48" ATA addressing extension
starting with kernel version 2.6.5-rc2.
[6] libata has hotplug & random task file submission(thus enabling
SMART support).
SOURCE KEY:[1][2][4]libata.pdf
[3][5][6]http://linuxmafia.com/faq/Hardware/sata.html

But still at the back of my curious mind I'm looking for the most
appropriate answer to this question that can come only come from the
experienced linux kernel  experts of this group.

Now some info about myself, i'm a software engineer in india and
developing GPL'ed (open source and Linux Kernel 2.4 based) SATA
low-level driver for a SATA/ATAPI-6 Host Controller on a ARM 920TDMI
based chipset.

Looking forward for your replies and guidance. Thanks.

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

* Re: Why do we need libata to access SATA host controller low level device drivers?
  2005-10-18  4:14 Why do we need libata to access SATA host controller low level device drivers? Deven Balani
@ 2005-10-18 13:48 ` Erik Mouw
  2005-10-18 14:14   ` Deven Balani
  0 siblings, 1 reply; 3+ messages in thread
From: Erik Mouw @ 2005-10-18 13:48 UTC (permalink / raw)
  To: Deven Balani; +Cc: linux-kernel

On Tue, Oct 18, 2005 at 09:44:02AM +0530, Deven Balani wrote:
> I'm sorry if my question sounds absurd to some. I've found out through
> web sources, for the following reasons/features we need libata,

[...]

> But still at the back of my curious mind I'm looking for the most
> appropriate answer to this question that can come only come from the
> experienced linux kernel  experts of this group.

The most appropriate answer is: "cause you don't want to reinvent the
wheel". In order to get full SATA support, you only need to write a
host driver, libata takes care of the gory details.

> Now some info about myself, i'm a software engineer in india and
> developing GPL'ed (open source and Linux Kernel 2.4 based) SATA
> low-level driver for a SATA/ATAPI-6 Host Controller on a ARM 920TDMI
> based chipset.

You don't want to use a 2.4 kernel on ARM, especially not when you're
using new hardware. 2.4 is development is dead, everybody has moved to
2.6.


Erik

-- 
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands

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

* Re: Why do we need libata to access SATA host controller low level device drivers?
  2005-10-18 13:48 ` Erik Mouw
@ 2005-10-18 14:14   ` Deven Balani
  0 siblings, 0 replies; 3+ messages in thread
From: Deven Balani @ 2005-10-18 14:14 UTC (permalink / raw)
  To: erik; +Cc: linux-kernel

> The most appropriate answer is: "cause you don't want to reinvent the
> wheel". In order to get full SATA support, you only need to write a
> host driver, libata takes care of the gory details.
Thanks Erik for that useful suggestion.

> You don't want to use a 2.4 kernel on ARM, especially not when you're
> using new hardware. 2.4 is development is dead, everybody has moved to
> 2.6.
Since we already have Linux Kernel 2.4 based drivers for all the other
devices present on our ARM 920TDMI based chipset which we cannot
change. The SATA driver which I'm going to write has to be based on
Kernel 2.4.25. Through backported patches I have to make Kernel 2.4.25
to support our new SATA driver and as well our existing device
drivers.

Please do let me now if you have any suggestions in this regard.

Thanks:-),
Deven

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

end of thread, other threads:[~2005-10-18 14:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-18  4:14 Why do we need libata to access SATA host controller low level device drivers? Deven Balani
2005-10-18 13:48 ` Erik Mouw
2005-10-18 14:14   ` Deven Balani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®