Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2678443imm; Sun, 3 Jun 2018 09:02:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKDKWIn9rzpBIbc1azvaSypfX7XZPcksGGZamSfhZyVfVXXgsLSM/rOULSEBLlT9c6ghCDk X-Received: by 2002:aa7:850f:: with SMTP id v15-v6mr17999293pfn.144.1528041735235; Sun, 03 Jun 2018 09:02:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528041735; cv=none; d=google.com; s=arc-20160816; b=GVVhHEawAmY9vKvBuuWozDlnYtqtLgv7KlxjWvxHb6UKIqRTRjXeBsXzI5lcxrY1/t lLka4a354958X9zCsSnJQEY9CL4u0edsF74hdYrHU1SaXZENgBG+R7Z8ii8E8kmqwar5 8a2pNYcQyllS2nuikeNNHNdDMPIeuxdIjB5s/iwsn3bb9i+pd1f+9gqWuDTPGoHJaw/Q My+didsusrvIREgk2uoTD2XLNeVGDnTrUgRzesdBCCTWbUrrhdK2qtbBVyCnPjZuW5W3 4zdrbBonvuL6PPtnyMjb5AMqBUehjCXOuPeeCPXtRQwGq+GYAIW3ww8ocTWmiB3dE7ju xUkg== 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=TvK3sH+rAOE5nVBtiwebojqsTOFFcpPqfE8KOj32gdQ=; b=OLhfJV7auiRX3OJ6xOOWt7byPWy0sfaO15G0na+nI9pPmuUyBc8SwMScCrPBNtUzaH NsfTRxadrHHzlLcTAXRYBldYpKInfKQWlQ6Hd9w4C6aZLfb2FPBbhbMWUQZygeAika7r 703TV6ioJNyiZ0/BEzfPWkcesfVjHZbONBNSWBQe3d3+/3sFAxtXmsGvLKMxRSyjO33G aMtauS9VYhT3QHRu0fN/y6Y+YtX6WBX6ziEM+yoIT96njktdYOW75MTng2xc4L8zZSzf zfvR84cqhQofTokIgCm+OHpbw+tsn22wAYfpAEQu+KN68+AIq7nsPO4Y2kPhDAEe3+ls wL4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dseP0sCL; 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 b97-v6si45882532plb.135.2018.06.03.09.02.01; Sun, 03 Jun 2018 09:02:15 -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=dseP0sCL; 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 S1751342AbeFCQBL (ORCPT + 99 others); Sun, 3 Jun 2018 12:01:11 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:43132 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751211AbeFCQBI (ORCPT ); Sun, 3 Jun 2018 12:01:08 -0400 Received: by mail-pg0-f67.google.com with SMTP id p8-v6so13327872pgq.10 for ; Sun, 03 Jun 2018 09:01:08 -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=TvK3sH+rAOE5nVBtiwebojqsTOFFcpPqfE8KOj32gdQ=; b=dseP0sCLGg+Z5tl/SyYcLlEqYCdSDAdx2pUZX6NEW5/k6y/w+fpwAyfWtMpfLGJB3K JE1KIbPoDC4PSQiKrUEixQRRjAdzxTKvCDbS8TBQVxomszM8odnYWJRBexyDCue+3VUa TFxXT4ATFaTJSQc+JNmDyW+fSwjPca7sDhG+ECInFOaB1wzrFpdHA5JHuIygWXAGQZRU 5BAdQf/RdhhI86Uk0nv3Ux9VCJnKsUE9ej0KaDys0X7724lq++N9JduFMS4Me5rXq3rd C1xJtZzYRn2Jof8IoH+w/wZJCmU+QwrFK7Cn3KlWyjPidQhSmn6hm0Gh8FDJS36zeKy6 Mp/A== 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=TvK3sH+rAOE5nVBtiwebojqsTOFFcpPqfE8KOj32gdQ=; b=tDMn6sGbZe4u+irhIKOZ1Q8I0PmWKMvsKCM7AFcwKStO5CkQsYxXQloZb6xt73cA4w u8irRqztqhxfw7zLUdWj/wYalMyOlNvxf9JgB2YOvahJsPGCMPX7Erh0Ijb3YQ/+KwRh h1cReZE1GsZfdyeEt3iUVoVcTbOuC4fQm5H8jkrpXpTWKkUM0D0u5+rtEmjWufFhcovc z+VumxL73WXPUz+EE60dw2puZM6N5rsga+//wNPjt67zlZvJ0pSGgTg5DeLm3SyP1BSw Jo2gwsV6plC3YDSVSB0i9u+oQ2IuTmB1iBCHjKaRheZeJ07yxop3YDJpRiNAMsd/jB8F 3l7g== X-Gm-Message-State: ALKqPwe65riRXelG0DI23D917rwM/fGjF7IajUgMbbfrmHao/k8Wwg3d 8EsSsJTQTTKcC7RqOdv0Nvs= X-Received: by 2002:a65:5288:: with SMTP id y8-v6mr14739204pgp.69.1528041668110; Sun, 03 Jun 2018 09:01:08 -0700 (PDT) Received: from nihaal-Latitude-E6410 ([157.50.194.246]) by smtp.gmail.com with ESMTPSA id m11-v6sm26589006pfj.25.2018.06.03.09.01.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Jun 2018 09:01:07 -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 2/7] staging: mt7621-pci: remove trailing whitespace Date: Sun, 3 Jun 2018 21:29:59 +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: trailing whitespace Signed-off-by: Abdun Nihaal --- drivers/staging/mt7621-pci/pci-mt7621.c | 32 ++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c index 44f1a592a7a5..fbcee58445b3 100644 --- a/drivers/staging/mt7621-pci/pci-mt7621.c +++ b/drivers/staging/mt7621-pci/pci-mt7621.c @@ -498,7 +498,7 @@ set_phy_for_ssc(void) printk("***** Xtal 40MHz *****\n"); } else { // 25MHz | 20MHz Xtal set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x490), 6, 2, 0x00); // RG_PE1_H_PLL_PREDIV //Pre-divider ratio (for host mode) - if (reg >= 6) { + if (reg >= 6) { printk("***** Xtal 25MHz *****\n"); set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x4bc), 4, 2, 0x01); // RG_PE1_H_PLL_FBKSEL //Feedback clock select set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x49c), 0,31, 0x18000000); // RG_PE1_H_LCDDS_PCW_NCPO //DDS NCPO PCW (for host mode) @@ -510,15 +510,15 @@ set_phy_for_ssc(void) } } set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x4a0), 5, 1, 0x01); // RG_PE1_LCDDS_CLK_PH_INV //DDS clock inversion - set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x490), 22, 2, 0x02); // RG_PE1_H_PLL_BC - set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x490), 18, 4, 0x06); // RG_PE1_H_PLL_BP - set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x490), 12, 4, 0x02); // RG_PE1_H_PLL_IR - 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 + set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x490), 22, 2, 0x02); // RG_PE1_H_PLL_BC + set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x490), 18, 4, 0x06); // RG_PE1_H_PLL_BP + set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x490), 12, 4, 0x02); // RG_PE1_H_PLL_IR + 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 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 + set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x414), 5, 1, 0x01); // rg_pe1_frc_mstckdiv //force mode enable of da_pe1_mstckdiv } /* Enable PHY and disable force mode */ set_pcie_phy((u32 *)(RALINK_PCIEPHY_P0P1_CTL_OFFSET + 0x000), 5, 1, 0x01); // rg_pe1_phy_en //Port 0 enable @@ -546,15 +546,15 @@ set_phy_for_ssc(void) } } set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x4a0), 5, 1, 0x01); // RG_PE1_LCDDS_CLK_PH_INV //DDS clock inversion - set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x490), 22, 2, 0x02); // RG_PE1_H_PLL_BC - set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x490), 18, 4, 0x06); // RG_PE1_H_PLL_BP - set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x490), 12, 4, 0x02); // RG_PE1_H_PLL_IR - 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 + set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x490), 22, 2, 0x02); // RG_PE1_H_PLL_BC + set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x490), 18, 4, 0x06); // RG_PE1_H_PLL_BP + set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x490), 12, 4, 0x02); // RG_PE1_H_PLL_IR + 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 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 + set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x414), 5, 1, 0x01); // rg_pe1_frc_mstckdiv //force mode enable of da_pe1_mstckdiv } /* Enable PHY and disable force mode */ set_pcie_phy((u32 *)(RALINK_PCIEPHY_P2_CTL_OFFSET + 0x000), 5, 1, 0x01); // rg_pe1_phy_en //Port 0 enable @@ -650,7 +650,7 @@ static int mt7621_pci_probe(struct platform_device *pdev) RALINK_PCIE_CLK_GEN |= 0x80000000; mdelay(50); RALINK_RSTCTRL = (RALINK_RSTCTRL & ~RALINK_PCIE_RST); - + #if defined GPIO_PERST /* add GPIO control instead of PERST_N */ /*chhung*/ *(unsigned int *)(0xbe000620) |= 0x1<<19 | 0x1<<8 | 0x1<<7; // set DATA -- 2.17.0