Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp416909pxb; Wed, 27 Oct 2021 05:31:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyn6rGP4WeXb8lex6VqoSVxowraC7vGrSg5cqBLE/rmiRR8wr4dIBrj3/gdP9Kg5Q3zo6aL X-Received: by 2002:a17:906:6a21:: with SMTP id qw33mr3971657ejc.560.1635337879291; Wed, 27 Oct 2021 05:31:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635337879; cv=none; d=google.com; s=arc-20160816; b=fAGyc2e3szzEJhxPRAS9cFfbpOcQw2vYV3ubVnqZ11Rn3MFIG1KLucqgy2ROpIMSYc vsVIBZMwOeC0DPACAf0b3ZFByvm2DbOGkaBfD0dZaVYRs+oNpybxvAYdVgI9748ULUdJ 0x/hGuCDKS9b/0om1zBAtzKAayV1lrYcYPVWHdi35LO7/0mhTtN7BE0o8mDqHJtUshru RlaG0Jt2OVTdrY8sc+98qKcyXWgQ3KJER+LeSbyXtoQFEX0E63U5rjObtlOb3Qgk8vV1 bMdg8ic6U8nNfO8eH3hcncxsSXCc+rn2Td9ZVo0zD6kkmraaPwQEfizdF2VCv+mlzmGl lo9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=tb1oKz9Px3Z8E4Iz60s+rqfOOVhr3fZIOhAyGcYP66g=; b=M2yZIZ6jktmFjIDmyaJDQNggyLTOB2/MnZPUuiq3ckgc1l67B+huITdzDRzvNDg0uy MjBYKp3WXJGzezgUCY8euVNTmEHFPl48BSYSKovZSs5/j6EWf76XGw+D9aJuft0QcVrx ZLJu0EGx+r6ZOK6TSYpXJHpnh/ZLaaxTjBKLTKVF2o1L4iw5rsw5OkuFthEJUOzwPSc+ Gn8DU8CYdyD2BlDAyDD0RiREVkT1k6Gm08qdyhVyel8m8H9PUc/ExBUI3RNmyUCLZWXY Lf1zhxN1zhvITKzqWqP1ToiwSbUAxZgutCEYFfoZK8izS9rmkwoVrHZwQA+zPeHYrqpT ZFmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PcI2FaCR; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 5si32076917ejj.698.2021.10.27.05.30.32; Wed, 27 Oct 2021 05:31:19 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=PcI2FaCR; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232718AbhJZWYO (ORCPT + 99 others); Tue, 26 Oct 2021 18:24:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:43722 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235758AbhJZWYN (ORCPT ); Tue, 26 Oct 2021 18:24:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E2BAD60F02; Tue, 26 Oct 2021 22:21:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635286909; bh=Ti9ROmEWB++H0DVAD/4QLbK3bMpQv6DTgwhjoKZgM3Q=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=PcI2FaCRlJY+KWzLUhYhOcAar43cbCPaiPFaGHtK9GQiTU5oUu5Cg99gBUjLkKFDY tsN2yWVZsuWG3Ldj/Eqxztu7tqHfh7OuGgEb9ljzY1EB3AiFARjrB2lR/PhwkmxHaY istohXv3cDHFL4Oz43TW05RJHlKH4+npN5TIF+kxSxOwART2KIjH3FajjF63TN3Iq5 7pIc3qIGTRh/KW7iiKIHsUTid1qRNbfxJJbd5S8tasOWHQ5fLcLUvwQp0l/7lM9KTV uxMaXqC+YxKabTJKA8IM7Q9sguYdy/4/br4qcOeCjOKvp2Tu/6EIjzwfrUpOtrvaV7 ghfJpn4scpUdg== Date: Tue, 26 Oct 2021 17:21:47 -0500 From: Bjorn Helgaas To: Richard Zhu Cc: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , "l.stach@pengutronix.de" , "bhelgaas@google.com" , "lorenzo.pieralisi@arm.com" , "linux-pci@vger.kernel.org" , dl-linux-imx , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "kernel@pengutronix.de" Subject: Re: [RESEND v2 4/5] PCI: imx6: Fix the clock reference handling unbalance when link never came up Message-ID: <20211026222147.GA173173@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 25, 2021 at 02:35:36AM +0000, Richard Zhu wrote: > > -----Original Message----- > > From: Krzysztof Wilczyński > > Sent: Saturday, October 23, 2021 5:54 PM > > To: Richard Zhu > > Cc: Bjorn Helgaas ; l.stach@pengutronix.de; > > bhelgaas@google.com; lorenzo.pieralisi@arm.com; linux-pci@vger.kernel.org; > > dl-linux-imx ; linux-arm-kernel@lists.infradead.org; > > linux-kernel@vger.kernel.org; kernel@pengutronix.de > > Subject: Re: [RESEND v2 4/5] PCI: imx6: Fix the clock reference handling > > unbalance when link never came up > > I hope you don't mind me asking, but how is an empty default case in the > > switch statement helping IMX6Q and IMX6QP? What does it achieve for > > these two controllers specifically? > > > [Richard Zhu] Never mind. ????. > There might be following building warning if the "default:break" is removed. > " CC drivers/pci/controller/dwc/pci-imx6.o > drivers/pci/controller/dwc/pci-imx6.c: In function ‘imx6_pcie_clk_disable’: > drivers/pci/controller/dwc/pci-imx6.c:527:2: warning: enumeration value ‘IMX6Q’ not handled in switch [-Wswitch] > 527 | switch (imx6_pcie->drvdata->variant) { > | ^~~~~~ > drivers/pci/controller/dwc/pci-imx6.c:527:2: warning: enumeration value ‘IMX6QP’ not handled in switch [-Wswitch]" Sorry, I didn't see this until after asking the same question as Krzysztof. Sigh. That's a really annoying gcc warning, but I guess I won't fight it ;) Bjorn