Skip to content
Merged
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
4 changes: 2 additions & 2 deletions drivers/nvme/host/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2431,9 +2431,9 @@ static int nvme_alloc_host_mem_multi(struct nvme_dev *dev, u64 preferred,
i = dev->nr_host_mem_descs = mapped_nents;

while (--i >= 0) {
descs[i].addr = sg_dma_address(&slist[i]);
descs[i].addr = cpu_to_le64(sg_dma_address(&slist[i]));
WARN_ON_ONCE(sg_dma_len(&slist[i]) & (NVME_CTRL_PAGE_SIZE - 1));
descs[i].size = sg_dma_len(&slist[i]) / NVME_CTRL_PAGE_SIZE;
descs[i].size = cpu_to_le32(sg_dma_len(&slist[i]) / NVME_CTRL_PAGE_SIZE);
}

dev->host_mem_size = size;
Expand Down
6 changes: 5 additions & 1 deletion drivers/pci/controller/pcie-brcmstb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1575,7 +1575,7 @@ static void brcm_config_clkreq(struct brcm_pcie *pcie)
{
static const char err_msg[] = "invalid 'brcm,clkreq-mode' DT string\n";
const char *mode = "default";
u32 clkreq_cntl = 0;
u32 clkreq_cntl;
int ret, tmp;

ret = of_property_read_string(pcie->np, "brcm,clkreq-mode", &mode);
Expand All @@ -1584,6 +1584,10 @@ static void brcm_config_clkreq(struct brcm_pcie *pcie)
mode = "safe";
}

/* Start out assuming safe mode (both mode bits cleared) */
clkreq_cntl = readl(pcie->base + HARD_DEBUG(pcie));
clkreq_cntl &= ~PCIE_CLKREQ_MASK;

if (strcmp(mode, "no-l1ss") == 0) {
/*
* "no-l1ss" -- Provides Clock Power Management, L0s, and
Expand Down
Loading