Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5194836ybh; Wed, 7 Aug 2019 02:16:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZfbJy/62VC/TN0VuGRAlJhCzca5ayWP+s8TRNkH2LHRWRljtsE0r8ziBlNrMG6eK6j6Uq X-Received: by 2002:a17:90b:d8a:: with SMTP id bg10mr7458919pjb.92.1565169395833; Wed, 07 Aug 2019 02:16:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565169395; cv=none; d=google.com; s=arc-20160816; b=wO+N03/JNAcLVqgem5xJ89nQzBJfQuYtGGmeKNZltjGPT557oK5ieZVJlq9puP1LgU C5XJJ34wvZXzqx44pldwFFByJ+RoJb0r1+4RhCWMb2BoNM1o2912rcy0vwjnzQRWTrGF d1ETs9wR/1bAdz1gZI+aftT98/x+aqedbOQ4JBgQdbYqU4GJI5abQu3BlWC4m5GtpyzP 6Ygdzjp26iShOrIuGYmN1nV5BLoUEjvG2bD5YPnJXAFcOWmxx+Untd+a7SPOspnFac4O Dr3nmT9wmzUTF87mFcVrS+ZM5gugE71n4j/aYek1gHUyHJk605FBXIn9gQLMxFbShmpo 4g7g== 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=eYs/hQ3Y9LNfDGfBwcEVi7jKWGv89xUHBEJ8ouLAv+k=; b=cUwLXNqxhKoRLYKsOnRn8RvdkT8CU531kC8QTklbQn5db0OvlBrEMRx1TUcz59Vzyf 3xRM4qMYwmkb0WZj7uyApLjv+tl5Q2V3p+OaiTZ1IHMg3PggC3G8wdG0FYlk2JWJXmoB Y+KWXvn5zaJdVIV00K4w0ds0dro+31DJyS2xZcm7RBCF1acdl5qs/e67+dUBfyHChhcw noD6rKbMb4faWqkXlNN/PepBKbkWPpF+/MYJ6TgZvpqrCe9+vLWSJrSBDf9FSyn90Hox vOiDVfQuKgRkzke+nBC7Z6nwIq+tkpXwmjJLkQWrZrMmXEZmqFyUtEWgY0oP5DRoZjwc aZbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kQ0RgEnp; 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 f1si16495896plf.410.2019.08.07.02.16.20; Wed, 07 Aug 2019 02:16:35 -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=kQ0RgEnp; 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 S1728795AbfHGIlm (ORCPT + 99 others); Wed, 7 Aug 2019 04:41:42 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:41649 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728202AbfHGIll (ORCPT ); Wed, 7 Aug 2019 04:41:41 -0400 Received: by mail-lj1-f195.google.com with SMTP id d24so84670887ljg.8; Wed, 07 Aug 2019 01:41:40 -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=eYs/hQ3Y9LNfDGfBwcEVi7jKWGv89xUHBEJ8ouLAv+k=; b=kQ0RgEnpAFC5CMzVJfhYi9nPHrh0w5+cXUjSBBYDhgTZ8497vE2tCTzV/bQ4HlC8LS vHu8ar8KSPjGI3fz819BSYQjXu9sLeuNcK1JCyLfeNOEEl5gUo3uq4l9Spc3SZ0qNLWX RRKcRRPsHVI8ZrWf6KgQ49/PH6BslLzpM8MEUWsM7IyrAMHmXOcwIJ+k4Vp8x1A6q4db wjnA9URJbuaAhiO93dKv6xhmv2gI73DPxoJG2a11fDNkS8YzmV+6ihxCHs1s6F/RUKy6 pPtVh3AyTgL5MzM9xqRJv6KlPtsQdJQmPOEmoJjPro5Zf1h9wziybDyGzc/1y49nqCZG Ay6Q== 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=eYs/hQ3Y9LNfDGfBwcEVi7jKWGv89xUHBEJ8ouLAv+k=; b=JUWb+01G7sWTqwAW33YTLEr89KTa7UFKaJz1RAxdqRP20t1YdiG1zoN2/n+F2V5GuF zvJOGFg7SeKQgT6pS6eJG0QcqFiHQrLvG065oecAVaERoqEiMCUUX/3yOw2wusdZebe8 X1BUgnHV4dRvdf0hEch7I1ClgjkcqqGrYUzQ7YPUS0xiYGNd/ZNALVW/btwa1JkQhqtN g6hBdukKwYHVbt+nYsnOrMESlfd77c9imr+C3AqufDNkIXxFMUVSkyyUq46muaKQpz4V fuaFtR7xgKVVxIwNLtl6jVISpz9hhxmw8PxVxEfmA76gJ5tgk4SvzYpzYEUc95Wi7ANV 1/vA== X-Gm-Message-State: APjAAAVXnKP/WN/8kVdJb07JozyTSrHHfoLhZogt9aNr6zkY8CWljFx1 Mj0q23khzyhMBcErQ78T7PICKVL8KbTBK+gqBSQ= X-Received: by 2002:a2e:93cc:: with SMTP id p12mr4278994ljh.11.1565167299490; Wed, 07 Aug 2019 01:41:39 -0700 (PDT) MIME-Version: 1.0 References: <1564515200-5020-1-git-send-email-jrdr.linux@gmail.com> In-Reply-To: <1564515200-5020-1-git-send-email-jrdr.linux@gmail.com> From: Souptick Joarder Date: Wed, 7 Aug 2019 14:11:27 +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 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 ? > 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 >