Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1767483ybl; Sun, 18 Aug 2019 10:01:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0R0aD3PA3Wk15jipgcM1uDNoFfxEAozER1Ba79z5lUJdJbhyxt2TKcABW8+fYHaUUQLHG X-Received: by 2002:a62:3644:: with SMTP id d65mr5687316pfa.128.1566147675861; Sun, 18 Aug 2019 10:01:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566147675; cv=none; d=google.com; s=arc-20160816; b=JboUoBkc4j0ZrOXnyjMe5HiPrSBeZo6Ka3kzI7c5kRmSWtmla7CnQLOBMICjhResUU oYZX2E4VTxfJJJy4aNrySSg+cRwK+C+2w5DGXsYaTOG6KwR0NxChfGpjXg4rGQcfzp3N zmQhwJFafh5qoSlSH2ztTWvHcYCFAKmi8o8wTH/xMamepa3L/u6byWuUbci1bKxwbj8D N0uJV6zrHnRxJcjif6hMiXpgw2BEgyFo3IYQxJKgl0i+0D1oaIirUKEJbyNr76uYqlG9 rO8ZxU0dn72u1rmVu6PcGOmKGJrKroZKDJxh0gdxfFHWCr0kLUA21vSHc0p35l0NgYYT +1Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=V1XLrmrHnxtun5E7MsD/TIJ4RWoKU+eFXlhCg4SB19I=; b=t5aARn2WgkXCo7b6ITMwYmVD8/uxR9sRbWd1C9OGi46cs5Tik/iiravfGwoR//8LKJ nO53AhMpLa9kay/GQm48NISKw6OqyNLczDGY2EJ4iEL9Wx1G8CjNVc08pg7pm5gNupra FOhfHs17KvwlX8/xLWN2FE4iuq+Lw5KASr+FbZHduqj7Gn8ildV38TBy0lC2C22lABfh I+mmtB3GiGfslz35e/HO+mK98jbWruYhBkzoLoXkijuH2OwuxPGJrqNX4GIJGfqc+GNA LOYHv20vpGXCn+9cUmolyRKYEPZqMK6LHVrZe1UDBlzrWZhfS6vDl+aik0yzbekqUuWi K8YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rhnqbmSu; 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 19si8156141pgh.262.2019.08.18.10.01.01; Sun, 18 Aug 2019 10:01: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=rhnqbmSu; 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 S1727148AbfHRQ7y (ORCPT + 99 others); Sun, 18 Aug 2019 12:59:54 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:47025 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727119AbfHRQ7x (ORCPT ); Sun, 18 Aug 2019 12:59:53 -0400 Received: by mail-lf1-f67.google.com with SMTP id n19so7235519lfe.13; Sun, 18 Aug 2019 09:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=V1XLrmrHnxtun5E7MsD/TIJ4RWoKU+eFXlhCg4SB19I=; b=rhnqbmSuOY+3ZUyzlxvqIAPQ1XFULeoa/WbnYJFklorm8v700suEGO7RolfnDsPu0j 0sVcYqTlNxP6GIcJigTatwt/g2ces8dcLQZJoZyO4grYu9m4TdhvYOIpZ4kd7KMtW0OR JRrgrKRO61SLRaACmkHAfRujvGQOpqeio/GD+vRfSdVsqqr0FZDEWmhXrP6WUzeBWj17 wi/JKS2nekHQTnjdpktZ//KtAKa2QVmU0gvkwAle+NZSOoq/7+4/B6llPitWvk24UmTx YIGjzdzYj3s5xu5+2FB/tLFTfBlRNXS7qifdvOV2G7jNt602TzRGwvIETkne1JYutvwF yoJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=V1XLrmrHnxtun5E7MsD/TIJ4RWoKU+eFXlhCg4SB19I=; b=U72Zqg4/J+yhb+XdDtVuX6EG3LfhI3YX5dVPU9KDmk72v2Il/C1A2Gu4zGPONKSK4x GGkrNBq6H4Eh2LnpVpHZGbNzyyb/qyIEitzPmLzs/ay/8aKSxAvNhP5mcjyGQbDGQLfb U8Tr0hNHVc8+yfWE4A42uNTmA8NOw7okWPjH/9TxcVB0Z71QfW51qDrH505R5I39Aak4 FTnapV6cnsvbB6c+Fyt1+ESVZI5XhOGDIifsakmqzaCxItHkxlpPJPAR43MpYBgYFGMl MvhBxLb8ECTqh2XeSXLFoNXNbvOA3oHoyV/eIEc50hcV7HVBql0cRhzOEPTCIwfFpDsi 7QBA== X-Gm-Message-State: APjAAAXNPqAG2ToeDJvale1gdyWVh+UQHnouSWI8q0cDni9ZaSWPLMNw nLyshX1K+uapxjC3Sw8YpconykHFAyUeU7AfUHk= X-Received: by 2002:ac2:484e:: with SMTP id 14mr9995204lfy.50.1566147590405; Sun, 18 Aug 2019 09:59:50 -0700 (PDT) MIME-Version: 1.0 References: <1564515200-5020-1-git-send-email-jrdr.linux@gmail.com> In-Reply-To: From: Souptick Joarder Date: Sun, 18 Aug 2019 22:29:38 +0530 Message-ID: Subject: Re: [PATCH] video: fbdev:via: Remove dead code To: FlorianSchandinat@gmx.de, b.zolnierkie@samsung.com Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 12, 2019 at 5:37 PM Souptick Joarder wrote: > > On Wed, Aug 7, 2019 at 2:11 PM Souptick Joarder wrote: > > > > On Wed, Jul 31, 2019 at 12:59 AM Souptick Joarder wrote: > > > > > > This is dead code since 3.15. If there is no plan to use > > > it further, this can be removed forever. > > > > > > > Any comment on this patch ? > > Any comment on this patch ? If no comment can we get this in queue for 5.4 ? > > > > > > Signed-off-by: Souptick Joarder > > > --- > > > drivers/video/fbdev/via/via-core.c | 43 -------------------------------------- > > > 1 file changed, 43 deletions(-) > > > > > > diff --git a/drivers/video/fbdev/via/via-core.c b/drivers/video/fbdev/via/via-core.c > > > index e2b2062..ffa2ca2 100644 > > > --- a/drivers/video/fbdev/via/via-core.c > > > +++ b/drivers/video/fbdev/via/via-core.c > > > @@ -221,49 +221,6 @@ void viafb_release_dma(void) > > > } > > > EXPORT_SYMBOL_GPL(viafb_release_dma); > > > > > > - > > > -#if 0 > > > -/* > > > - * Copy a single buffer from FB memory, synchronously. This code works > > > - * but is not currently used. > > > - */ > > > -void viafb_dma_copy_out(unsigned int offset, dma_addr_t paddr, int len) > > > -{ > > > - unsigned long flags; > > > - int csr; > > > - > > > - mutex_lock(&viafb_dma_lock); > > > - init_completion(&viafb_dma_completion); > > > - /* > > > - * Program the controller. > > > - */ > > > - spin_lock_irqsave(&global_dev.reg_lock, flags); > > > - viafb_mmio_write(VDMA_CSR0, VDMA_C_ENABLE|VDMA_C_DONE); > > > - /* Enable ints; must happen after CSR0 write! */ > > > - viafb_mmio_write(VDMA_MR0, VDMA_MR_TDIE); > > > - viafb_mmio_write(VDMA_MARL0, (int) (paddr & 0xfffffff0)); > > > - viafb_mmio_write(VDMA_MARH0, (int) ((paddr >> 28) & 0xfff)); > > > - /* Data sheet suggests DAR0 should be <<4, but it lies */ > > > - viafb_mmio_write(VDMA_DAR0, offset); > > > - viafb_mmio_write(VDMA_DQWCR0, len >> 4); > > > - viafb_mmio_write(VDMA_TMR0, 0); > > > - viafb_mmio_write(VDMA_DPRL0, 0); > > > - viafb_mmio_write(VDMA_DPRH0, 0); > > > - viafb_mmio_write(VDMA_PMR0, 0); > > > - csr = viafb_mmio_read(VDMA_CSR0); > > > - viafb_mmio_write(VDMA_CSR0, VDMA_C_ENABLE|VDMA_C_START); > > > - spin_unlock_irqrestore(&global_dev.reg_lock, flags); > > > - /* > > > - * Now we just wait until the interrupt handler says > > > - * we're done. > > > - */ > > > - wait_for_completion_interruptible(&viafb_dma_completion); > > > - viafb_mmio_write(VDMA_MR0, 0); /* Reset int enable */ > > > - mutex_unlock(&viafb_dma_lock); > > > -} > > > -EXPORT_SYMBOL_GPL(viafb_dma_copy_out); > > > -#endif > > > - > > > /* > > > * Do a scatter/gather DMA copy from FB memory. You must have done > > > * a successful call to viafb_request_dma() first. > > > -- > > > 1.9.1 > > >