Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp25542pxb; Mon, 2 Nov 2020 13:00:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9ynpzsovE+b1Izew1T7Jq9AYQI12WguK4dp9cNfwMyvaXuFSGXM0rWEqxiOKP8KIp3bqq X-Received: by 2002:a17:906:d92c:: with SMTP id rn12mr14477575ejb.472.1604350805493; Mon, 02 Nov 2020 13:00:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604350805; cv=none; d=google.com; s=arc-20160816; b=SovaS08wBTQQ8yOH8lgQBQwyb8xZeqj1ckwnXlqKcNHbMiU2esRakuN01rs5H8aeJM xUvHKkCiknwayb79kdX5FzlJ/HBo6PGBAK0VRR8ttCscD/mCGYmQ8Sb8MbEcIlFOhkuw MCKbBo5C/P/RE8Lgm/z/SAlk5sQRruR7IXpywKmtT5CCab+hraOIsjZIYmwyLvP37jDb COhpsCkUxzalJJR5GMQBW/+DhVqD9vS6RGvzjtWx3SfCg+2SFFh/WjvgemxNIsVxuqT6 ysfbiOJ/ch0Va0FhPNTGS+IQwbuEb7hM7LGNvi8u4qYkAAyzRjccoGZTFogzQuqik6vr Uwqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=N5pMn8uY9KjhkQw9GAL9dYuLKsypXjK6hMGajbqAfFk=; b=Tuixe1BrhHMWfZpuF94fJsoodI0hNTi1zD8dclxOps/ipUTEfWlGUoMAkXsdo6dqqP iWA4z5ymkAmoD2wBF3R4v9b6zHEY/VYUuaM1p7k/bMXhjTdj4x8H06KQanlfBjzLiVGB 8wN2MQ/7SVVN4QjOMImxHzkyMYX9XhAE4YB7T5dDXbBgNTd6igTXzE3ICfFN8JJnW6bj OGIwkD3ePezZDqX9smtOrQN0x0dtKi5InYQl49YWI8vZ9CzOqTBfW+i6JyiOZ43VNoPM XcteT8nyqwSqR8rwtGQZbNK5kH2o+45NENQbTlXpmb1FxBMh9bvytw+XcyCffBsPpMRE rY+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=V2rP72p0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si4146065eje.314.2020.11.02.12.59.39; Mon, 02 Nov 2020 13:00:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=V2rP72p0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726070AbgKBU6D (ORCPT + 99 others); Mon, 2 Nov 2020 15:58:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726109AbgKBU5T (ORCPT ); Mon, 2 Nov 2020 15:57:19 -0500 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12C67C0617A6 for ; Mon, 2 Nov 2020 12:57:19 -0800 (PST) Received: by mail-pg1-x543.google.com with SMTP id f38so11840795pgm.2 for ; Mon, 02 Nov 2020 12:57:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:mime-version; bh=N5pMn8uY9KjhkQw9GAL9dYuLKsypXjK6hMGajbqAfFk=; b=V2rP72p0areoWEBA+BVUgHwnwzMu30qtnBjXGJBo5T06iZUVtZZ3Ol1VriTMdBbwKe A3cE78GaEllijmqJvZpxFs0s3EkemzGAyMc+gf3XbKiVqHeB+D8r/Lrrfpkjr3nLTnm0 39axcYLuwKR8ajm+OnifglWPr15SEjdxxV1wk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=N5pMn8uY9KjhkQw9GAL9dYuLKsypXjK6hMGajbqAfFk=; b=TxqIuJIfmH0e/1wFgv8NnpCQSOaegJTRFynpl257p/QprV5ORYcijZvAOF0HAwHYsd LwzX1S2LSGe7U0fwLGt9CVW3zFHZ7dD9c/b5Fx32Hd4M5tr/q+ZngPKkjhH5jIzJdHYF 8spOTSIeQxcdXKQkROpMEOrTIm9rhwiAi9GTmdcwYV11WlfG28pZ2Qp0REeUSoCJui4c D2vlOy2b6hcJLF5GmFidZAt8j2zC/kvA/tjhScdUXr7XSz4wnMFcKtHEaAXNbaZUczYE +3fAaWBpu5hslA+oZpYVeNP0ZGDOuaQVHeG1dXcEw6bAhQyYYwdPAh05x0iFEHeO+X8r FaHg== X-Gm-Message-State: AOAM531dtG31h8xw08S5DkQQtOR2eDkEppRmqK3ljM5ejSs3brM/VHSr pUeD0vBq+N/Y3CUBfue6dx6VxQ== X-Received: by 2002:a63:9d8d:: with SMTP id i135mr759867pgd.213.1604350638383; Mon, 02 Nov 2020 12:57:18 -0800 (PST) Received: from stbsrv-and-01.and.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id 136sm14917277pfa.132.2020.11.02.12.57.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 12:57:17 -0800 (PST) From: Jim Quinlan To: linux-pci@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, james.quinlan@broadcom.com, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Cc: Nicolas Saenz Julienne , Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Florian Fainelli , Andrew Murray , Jeremy Linton , linux-rpi-kernel@lists.infradead.org (moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v1] PCI: brcmstb: variable is missing proper initialization Date: Mon, 2 Nov 2020 15:57:12 -0500 Message-Id: <20201102205712.23332-1-james.quinlan@broadcom.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000eb2f9205b325fd2d" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000eb2f9205b325fd2d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The variable 'tmp' is used multiple times in the brcm_pcie_setup() function. One such usage did not initialize 'tmp' to the current value of the target register. By luck the mistake does not currently affect behavior; regardless 'tmp' is now initialized properly. Fixes: c0452137034b ("PCI: brcmstb: Add Broadcom STB PCIe host controller driver") Suggested-by: Rafał Miłecki Signed-off-by: Jim Quinlan --- drivers/pci/controller/pcie-brcmstb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/controller/pcie-brcmstb.c b/drivers/pci/controller/pcie-brcmstb.c index bea86899bd5d..9c3d2982248d 100644 --- a/drivers/pci/controller/pcie-brcmstb.c +++ b/drivers/pci/controller/pcie-brcmstb.c @@ -893,6 +893,7 @@ static int brcm_pcie_setup(struct brcm_pcie *pcie) burst = 0x2; /* 512 bytes */ /* Set SCB_MAX_BURST_SIZE, CFG_READ_UR_MODE, SCB_ACCESS_EN */ + tmp = readl(base + PCIE_MISC_MISC_CTRL); u32p_replace_bits(&tmp, 1, PCIE_MISC_MISC_CTRL_SCB_ACCESS_EN_MASK); u32p_replace_bits(&tmp, 1, PCIE_MISC_MISC_CTRL_CFG_READ_UR_MODE_MASK); u32p_replace_bits(&tmp, burst, PCIE_MISC_MISC_CTRL_MAX_BURST_SIZE_MASK); -- 2.17.1 --000000000000eb2f9205b325fd2d Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQQwYJKoZIhvcNAQcCoIIQNDCCEDACAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg2YMIIE6DCCA9CgAwIBAgIOSBtqCRO9gCTKXSLwFPMwDQYJKoZIhvcNAQELBQAwTDEgMB4GA1UE CxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMT Ckdsb2JhbFNpZ24wHhcNMTYwNjE1MDAwMDAwWhcNMjQwNjE1MDAwMDAwWjBdMQswCQYDVQQGEwJC RTEZMBcGA1UEChMQR2xvYmFsU2lnbiBudi1zYTEzMDEGA1UEAxMqR2xvYmFsU2lnbiBQZXJzb25h bFNpZ24gMiBDQSAtIFNIQTI1NiAtIEczMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA tpZok2X9LAHsYqMNVL+Ly6RDkaKar7GD8rVtb9nw6tzPFnvXGeOEA4X5xh9wjx9sScVpGR5wkTg1 fgJIXTlrGESmaqXIdPRd9YQ+Yx9xRIIIPu3Jp/bpbiZBKYDJSbr/2Xago7sb9nnfSyjTSnucUcIP ZVChn6hKneVGBI2DT9yyyD3PmCEJmEzA8Y96qT83JmVH2GaPSSbCw0C+Zj1s/zqtKUbwE5zh8uuZ p4vC019QbaIOb8cGlzgvTqGORwK0gwDYpOO6QQdg5d03WvIHwTunnJdoLrfvqUg2vOlpqJmqR+nH 9lHS+bEstsVJtZieU1Pa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