/* At exit, the @ha's flags.enable_64bit_addressing set to indicated supported addressing method.  */
static void qla4xxx_config_dma_addressing(struct scsi_qla_host *ha)
/* At exit, the @ha's flags.enable_64bit_addressing set to indicated supported addressing method.  */
static void qla4xxx_config_dma_addressing(struct scsi_qla_host *ha)
{
	int retval;
	if (pci_set_dma_mask(ha->pdev, DMA_BIT_MASK(64)) == 0) {
		if (pci_set_consistent_dma_mask(ha->pdev, DMA_BIT_MASK(64))) {
			dev_dbg(&ha->pdev->dev,
				  "Failed to set 64 bit PCI consistent mask; "
				   "using 32 bit.\n");
			retval = pci_set_consistent_dma_mask(ha->pdev,
							     DMA_BIT_MASK(32));
		}
	} else
		retval = pci_set_dma_mask(ha->pdev, DMA_BIT_MASK(32));
}