Adjust some code/comment of sb700 sata init
authorWang Qing Pei <wangqingpei@gmail.com>
Tue, 9 Nov 2010 08:17:07 +0000 (09:17 +0100)
committerPatrick Georgi <patrick@georgi-clan.de>
Sun, 4 Sep 2011 10:22:09 +0000 (12:22 +0200)
The inline comment of sata_init function seems not placed correctly.
Rearrange it.

Change-Id: I63480da60e51cdc68e64c302ad2d8a6197e288f6
Signed-off-by: Wang Qing Pei <wangqingpei@gmail.com>
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/186
Tested-by: build bot (Jenkins)
src/southbridge/amd/sb700/sata.c

index 411baf571fb832310f573172067bb87b4b55b7da..58b72ad5382a0562fa782df9ad356ee8755310d7 100755 (executable)
@@ -91,14 +91,13 @@ static void sata_init(struct device *dev)
 
        device_t sm_dev;
        /* SATA SMBus Disable */
-       /* sm_dev = pci_locate_device(PCI_ID(0x1002, 0x4385), 0); */
        sm_dev = dev_find_slot(0, PCI_DEVFN(0x14, 0));
-       /* Disable SATA SMBUS */
-       byte = pci_read_config8(sm_dev, 0xad);
-       byte |= (1 << 1);
-       /* Enable SATA and power saving */
+
        byte = pci_read_config8(sm_dev, 0xad);
+       /* Disable SATA SMBUS */
        byte |= (1 << 0);
+       /* Enable SATA and power saving */
+       byte |= (1 << 1);
        byte |= (1 << 5);
        pci_write_config8(sm_dev, 0xad, byte);