Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2679607imm; Sun, 3 Jun 2018 09:03:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI/eKyVfgLVJC1UnJbwr4mjHYrZf6Hj9z2nDBciFdjCRwK64DdQWVZYs9tsXHZsrEmRGoyk X-Received: by 2002:a65:6354:: with SMTP id p20-v6mr14840651pgv.437.1528041798130; Sun, 03 Jun 2018 09:03:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528041798; cv=none; d=google.com; s=arc-20160816; b=CrkHalfPf7sR6BJI85US/ey1K8Qj8ZevTw/Lo94Bn2fprtmUn2Fr10q4sAMipHjrsV 3rPMMr/egT2NFO2jepqEDeLIqRU9zpd9bnlBoHAnwXSCeBC0Xnd6M5+oQIt43rTGW9Rx +fT2IJQ9ctDejcw/Pdcc9Y2TA+ihXCxAhfNYKCr2vMYldJB+R9ZVxkFVuUKzUGd9pmdW isvzQRfX9t+AlMTn/t8xg0rMXxhjPO3yec8AnLNtg8A1rDR0Lqys7r7m7/NeMGAuHy/B jf8MzzLqawzCUpEdNmJfnzH9LfnYEmrHcuTibns3lDspP0vSnKRDILp7Tun/yZnEssln p9jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=d+eYh7xsJRpqsrHOqiC3Bw6mmsuHxD5+nney6Wl6q1g=; b=WReI7jXpn6vd2IHxo55ARPM0ff2H7HKFDO9cuCmaxKq9G/R2jpg5pudQod/Unharn0 Wm1vpg8nXGk3qlCkEUKm+fF3VyxA/K8rIVqonVowJYPZNbb5ENBAiUok5HLbhE+lKzTX oRCQA9wXy4196Nyq/reENTQ73Df0Y8KSGHOy3ttyGW+ZLVN0kMostwpx52HJ/PvIiCxS ssfzOF4s8aM6VVdRO5EWNIzUd10YCyJRkezLehy/wmcCrf0pX1um3HLfL0KI9rdcHQOF i8uAesIZTE1oxHCyYsa8ZTfjBm6fU6xuGvzUnnE1oBHgBxvN3wgUY7c4ADH7uijjBncM trpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WnCnujLI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6-v6si45455495pfc.186.2018.06.03.09.03.04; Sun, 03 Jun 2018 09:03:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WnCnujLI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751393AbeFCQBS (ORCPT + 99 others); Sun, 3 Jun 2018 12:01:18 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:38346 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751211AbeFCQBO (ORCPT ); Sun, 3 Jun 2018 12:01:14 -0400 Received: by mail-pf0-f193.google.com with SMTP id b74-v6so11268288pfl.5 for ; Sun, 03 Jun 2018 09:01:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=d+eYh7xsJRpqsrHOqiC3Bw6mmsuHxD5+nney6Wl6q1g=; b=WnCnujLI8Uh/XQTOHG6U5bmEwIeLfRNhNJqzxsSIwa+rAS9BcuAaqTZKputgFg7IGi SEE0dyYNz5Z2nSsQMo42p56NWKK6UAog5oOTAIvpbeiOuw9Or5i4wgBYIhsh6IlORDIW Zx7vIlPiId0Ba0atdHA9mnt3O7TKCReIEjYIDcZf8skk8AiJiioiakkoM52mw4/RFyZl Mr71mJ0H+0zVADXEluiagHZ0STIJs6zhFN4QSv9P0osXEpMPEW3lg2m7OAHFM6s0+AOb py+gBPL5YIq4p2kNst0joZqgMUi3yzlkiJRMFTUEXRzV9hD+/Y0f30Pcvsq1hJf3+4/C W1+Q== 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:in-reply-to :references:in-reply-to:references; bh=d+eYh7xsJRpqsrHOqiC3Bw6mmsuHxD5+nney6Wl6q1g=; b=t+pocAiFTLfiojKWJfD3C+gxyEqIiX4xUAE9Lv3WK3rttfKAJtQ3tVIuG9O8FiCJMT OrcQTkSYkvbO3ueIBZGX1JGPZ1XI5gohXhCNcQUNNfAv1oQgeBDruZ0HiER2/bUZYaAq 2r1kz/YPNKab9mOo3gEOKXEXUGtnYWTpce1L93zTJgkP/9+rFW+Vk7nwTowr4GptOpvF AivupIQ40lXCpOPvcl8SLIFidLiVliUEH1rvUkII9BMFjGaZoD37yAeUlEnF9PpeEeV1 y2ipLuPukwe4V4aOtGUJarRDG8mjmqATIFGEBGZuAatoAtRW4SaXx7Q55MJ5RNgW5lVF LuMQ== X-Gm-Message-State: ALKqPweg1v2wuk6VzX0gRBfcae+n34hB2Ax5WwlCDUpho2T42t8tlzMY ocQ8Wu3OXIGqKkJ3FmK2dpE= X-Received: by 2002:a62:4708:: with SMTP id u8-v6mr18126132pfa.89.1528041673467; Sun, 03 Jun 2018 09:01:13 -0700 (PDT) Received: from nihaal-Latitude-E6410 ([157.50.194.246]) by smtp.gmail.com with ESMTPSA id m14-v6sm70046644pgs.72.2018.06.03.09.01.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Jun 2018 09:01:13 -0700 (PDT) From: Abdun Nihaal To: gregkh@linuxfoundation.org Cc: matthias.bgg@gmail.com, neil@brown.name, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Abdun Nihaal Subject: [PATCH 3/7] staging: mt7621-pci: add space before open parenthesis Date: Sun, 3 Jun 2018 21:30:00 +0530 Message-Id: X-Mailer: git-send-email 2.17.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fixes the following checkpatch error: ERROR: space required before the open parenthesis '(' Signed-off-by: Abdun Nihaal --- drivers/staging/mt7621-pci/pci-mt7621.c | 28 ++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c index fbcee58445b3..28b9a11e9ecb 100644 --- a/drivers/staging/mt7621-pci/pci-mt7621.c +++ b/drivers/staging/mt7621-pci/pci-mt7621.c @@ -155,13 +155,13 @@ extern void chk_phy_pll(void); RALINK_RSTCTRL |= val; \ else \ RALINK_RSTCTRL &= ~val; \ - } while(0) + } while (0) #define DEASSERT_SYSRST_PCIE(val) do { \ if (*(unsigned int *)(0xbe00000c) == 0x00030101) \ RALINK_RSTCTRL &= ~val; \ else \ RALINK_RSTCTRL |= val; \ - } while(0) + } while (0) #define RALINK_SYSCFG1 *(unsigned int *)(RALINK_SYSTEM_CONTROL_BASE + 0x14) #define RALINK_CLKCFG1 *(unsigned int *)(RALINK_SYSTEM_CONTROL_BASE + 0x30) #define RALINK_RSTCTRL *(unsigned int *)(RALINK_SYSTEM_CONTROL_BASE + 0x34) @@ -210,7 +210,7 @@ static int config_access(unsigned char access_type, struct pci_bus *bus, address = (((where&0xF00)>>8)<<24) |(bus->number << 16) | (slot << 11) | (func << 8) | (where & 0xfc) | 0x80000000; MV_WRITE(address_reg, address); - switch(access_type) { + switch (access_type) { case PCI_ACCESS_WRITE_1: MV_WRITE_8(data_reg+(where&0x3), *data); break; @@ -374,12 +374,12 @@ pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) read_config(0, 0, 0, PCI_BASE_ADDRESS_0, (unsigned long *)&val); printk("BAR0 at slot 0 = %x\n", val); printk("bus=0x%x, slot = 0x%x\n",dev->bus->number, slot); - } else if((dev->bus->number == 0) && (slot == 0x1)) { + } else if ((dev->bus->number == 0) && (slot == 0x1)) { write_config(0, 1, 0, PCI_BASE_ADDRESS_0, MEMORY_BASE); read_config(0, 1, 0, PCI_BASE_ADDRESS_0, (unsigned long *)&val); printk("BAR0 at slot 1 = %x\n", val); printk("bus=0x%x, slot = 0x%x\n",dev->bus->number, slot); - } else if((dev->bus->number == 0) && (slot == 0x2)) { + } else if ((dev->bus->number == 0) && (slot == 0x2)) { write_config(0, 2, 0, PCI_BASE_ADDRESS_0, MEMORY_BASE); read_config(0, 2, 0, PCI_BASE_ADDRESS_0, (unsigned long *)&val); printk("BAR0 at slot 2 = %x\n", val); @@ -493,7 +493,7 @@ set_phy_for_ssc(void) set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x100), 4, 1, 0x01); // rg_pe1_frc_phy_en //Force Port 1 enable control set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x000), 5, 1, 0x00); // rg_pe1_phy_en //Port 0 disable set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x100), 5, 1, 0x00); // rg_pe1_phy_en //Port 1 disable - if(reg <= 5 && reg >= 3) { // 40MHz Xtal + if (reg <= 5 && reg >= 3) { // 40MHz Xtal set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x490), 6, 2, 0x01); // RG_PE1_H_PLL_PREDIV //Pre-divider ratio (for host mode) printk("***** Xtal 40MHz *****\n"); } else { // 25MHz | 20MHz Xtal @@ -516,7 +516,7 @@ set_phy_for_ssc(void) set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x490), 8, 4, 0x01); // RG_PE1_H_PLL_IC set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x4ac), 16, 3, 0x00); // RG_PE1_H_PLL_BR set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x490), 1, 3, 0x02); // RG_PE1_PLL_DIVEN - if(reg <= 5 && reg >= 3) { // 40MHz Xtal + if (reg <= 5 && reg >= 3) { // 40MHz Xtal set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x414), 6, 2, 0x01); // rg_pe1_mstckdiv //value of da_pe1_mstckdiv when force mode enable set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x414), 5, 1, 0x01); // rg_pe1_frc_mstckdiv //force mode enable of da_pe1_mstckdiv } @@ -533,7 +533,7 @@ set_phy_for_ssc(void) set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x400), 9, 2, 0x00); // rg_pe1_h_xtal_type set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x000), 4, 1, 0x01); // rg_pe1_frc_phy_en //Force Port 0 enable control set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x000), 5, 1, 0x00); // rg_pe1_phy_en //Port 0 disable - if(reg <= 5 && reg >= 3) { // 40MHz Xtal + if (reg <= 5 && reg >= 3) { // 40MHz Xtal set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x490), 6, 2, 0x01); // RG_PE1_H_PLL_PREDIV //Pre-divider ratio (for host mode) } else { // 25MHz | 20MHz Xtal set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x490), 6, 2, 0x00); // RG_PE1_H_PLL_PREDIV //Pre-divider ratio (for host mode) @@ -552,7 +552,7 @@ set_phy_for_ssc(void) set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x490), 8, 4, 0x01); // RG_PE1_H_PLL_IC set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x4ac), 16, 3, 0x00); // RG_PE1_H_PLL_BR set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x490), 1, 3, 0x02); // RG_PE1_PLL_DIVEN - if(reg <= 5 && reg >= 3) { // 40MHz Xtal + if (reg <= 5 && reg >= 3) { // 40MHz Xtal set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x414), 6, 2, 0x01); // rg_pe1_mstckdiv //value of da_pe1_mstckdiv when force mode enable set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x414), 5, 1, 0x01); // rg_pe1_frc_mstckdiv //force mode enable of da_pe1_mstckdiv } @@ -663,7 +663,7 @@ static int mt7621_pci_probe(struct platform_device *pdev) mdelay(500); #if defined (CONFIG_PCIE_PORT0) - if((RALINK_PCI0_STATUS & 0x1) == 0) + if ((RALINK_PCI0_STATUS & 0x1) == 0) { printk("PCIE0 no card, disable it(RST&CLK)\n"); ASSERT_SYSRST_PCIE(RALINK_PCIE0_RST); @@ -675,7 +675,7 @@ static int mt7621_pci_probe(struct platform_device *pdev) } #endif #if defined (CONFIG_PCIE_PORT1) - if((RALINK_PCI1_STATUS & 0x1) == 0) + if ((RALINK_PCI1_STATUS & 0x1) == 0) { printk("PCIE1 no card, disable it(RST&CLK)\n"); ASSERT_SYSRST_PCIE(RALINK_PCIE1_RST); @@ -711,7 +711,7 @@ pcie(2/1/0) link status pcie2_num pcie1_num pcie0_num 3'b110 1 0 x 3'b111 2 1 0 */ - switch(pcie_link_status) { + switch (pcie_link_status) { case 2: RALINK_PCI_PCICFG_ADDR &= ~0x00ff0000; RALINK_PCI_PCICFG_ADDR |= 0x1 << 16; //port0 @@ -749,7 +749,7 @@ pcie(2/1/0) link status pcie2_num pcie1_num pcie0_num #if defined (CONFIG_PCIE_PORT0) //PCIe0 - if((pcie_link_status & 0x1) != 0) { + if ((pcie_link_status & 0x1) != 0) { RALINK_PCI0_BAR0SETUP_ADDR = 0x7FFF0001; //open 7FFF:2G; ENABLE RALINK_PCI0_IMBASEBAR0_ADDR = MEMORY_BASE; RALINK_PCI0_CLASS = 0x06040001; @@ -776,7 +776,7 @@ pcie(2/1/0) link status pcie2_num pcie1_num pcie0_num #endif - switch(pcie_link_status) { + switch (pcie_link_status) { case 7: read_config(0, 2, 0, 0x4, &val); write_config(0, 2, 0, 0x4, val|0x4); -- 2.17.0