Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions drivers/storage/ide/pciidex/ahci.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ typedef enum _AHCI_PORT_REGISTER
#define AHCI_PXCMD_ICC_SLUMBER 0x60000000
#define AHCI_PXCMD_ICC_DEVSLEEP 0x80000000

#define AHCI_PXCMD_ICC_DEVSLEEP 0x80000000

#define AHCI_PXCMD_CCS_SHIFT 8

#define AHCI_PXCMD_CCS(Value) (((Value) & AHCI_PXCMD_CCS_MASK) >> AHCI_PXCMD_CCS_SHIFT)
Expand Down
2 changes: 1 addition & 1 deletion drivers/storage/ide/pciidex/chipset/ahci_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ AhciGetControllerProperties(
Controller->MaxChannels = CountSetBits(Controller->ChannelBitmap);
if (Controller->MaxChannels == 0)
{
ASSERT(Controller->MaxChannels == 0);
ASSERT(FALSE);
return STATUS_DEVICE_HARDWARE_ERROR;
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/storage/ide/pciidex/chipset/ahci_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ AtaAhciFbsControl(
ChanData->ChanInfo &= ~CHANNEL_FLAG_FBS_ENABLED;
}

if ((FbsControl & NewFbsControl) ^ AHCI_FBS_ENABLE)
if ((FbsControl ^ NewFbsControl) & AHCI_FBS_ENABLE)
{
AHCI_PORT_WRITE(ChanData->IoBase, PxFisSwitchingControl, NewFbsControl);
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/storage/ide/pciidex/pdo.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ PciIdeXPdoStartDevice(
Status = PciIdeConnectInterrupt(ChanData);
if (!NT_SUCCESS(Status))
{
ERR("CH %lu: Could not connect to interrupt\n", ChanData->Channel, Status);
ERR("CH %lu: Could not connect to interrupt %lx\n", ChanData->Channel, Status);
return Status;
}

Expand Down