Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3706059ybl; Mon, 12 Aug 2019 05:08:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzde0uoATwiyecDCgAuw7zkh68UXqDCqFNnfvQLzWYZW+usaKWwL/O3D2EeYv/J+5WtTEM X-Received: by 2002:a62:5883:: with SMTP id m125mr35134579pfb.248.1565611727572; Mon, 12 Aug 2019 05:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565611727; cv=none; d=google.com; s=arc-20160816; b=aMMSOq2uWmtB4E/d5x5fDWcmIrenMDsIlhYEZDqZWNpSD53U7vTbtgAO+8+Iz2+oae FnyuvqtjC+c2GskRZQurrmTqjtkt3ijZkGbM23wjmAo29GsIvCx/TydWmhySfBp2bDzg 6qo1dT/5qn7YquSuaXV3VCN2I3+Gyj5tIfkknAMMquMEozqUVcHzfCKXaYy3s2SxhfaR RICs2g4EnIi0q/+zXZpKuAWEcQ9biWAe+qirhPc8f7Ww7Oy9oOP9bq5mdecrq4Pt2l8V b0sm18OzbQUWOa/TZE8yA04hUrNeMxdp4d2O54bxDUYhukd2JGg0PS8EtJs5epsnaNBg NssA== 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=4qOdEFC2M11gWaSPmcjDghbM0bbwUm04RK0v5uO2apg=; b=iGDUTuAaBRmDyjHFsFKk8xwmELs4KlaUPxE/IpgDcgWJFaNGB9phVvTm+tbK4SLLwe n905jz5Kw2fp0XEiQYCFkmpNpgC1Ooa0RRxiJ0glGVRk2I6/CYWQaOulH+ZazBlDipQJ IcGoJdHSBrT87HOSsSlnEPmi+8Tm+2fyaOsvGinHyqLkiB8foyJ35FWMNVTWvzhFnfiB kbDt59JK6OzNPEQzZ6PSXZkOk5/90v2w//RMxxUe4t8Cdy0/swqO7P1J6PK9ZwVIJfEx XIYgKUXG/Cjq8hYwSs9QibfM4L/YnpsIKpGnx+qfxIwZVIok2B5U+o+JzPQA6sNao6u0 gx/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bm6JFeaJ; 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 z27si52588024pfj.225.2019.08.12.05.08.32; Mon, 12 Aug 2019 05:08:47 -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=bm6JFeaJ; 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 S1728550AbfHLMHs (ORCPT + 99 others); Mon, 12 Aug 2019 08:07:48 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:38578 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728517AbfHLMHm (ORCPT ); Mon, 12 Aug 2019 08:07:42 -0400 Received: by mail-lf1-f66.google.com with SMTP id h28so73976444lfj.5; Mon, 12 Aug 2019 05:07: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=4qOdEFC2M11gWaSPmcjDghbM0bbwUm04RK0v5uO2apg=; b=bm6JFeaJrLhrdxvwrgL87KoQHBHCewBcUoT2U/byVHVE3ObbAAy6bppBP1Nqiz4YWx PVT3ypwO0OkqNOcD5zyOeig2OqXTGd5gPHpwB+zawhlvxf5Or9WyAvnfeyPUOUtk7bGM 3FtpbcGVEaSca+wwR7PRR0ZR7n1a82+rJl2EAVaPQaJRxJs9AffhXzO9UQGoWge/o9jh DhnJH2brcwMuBHEZObqjDOtHMb4ilsbmt6DkRoJYS25kZd9Fbc3JGSveoVNZ0750p8mm T0lShpIinpgE8k0zgEE9/+Bn7xgnnFf5qoKooFWRigATHI93FlUhCn9fp8Zkik4Q/+n6 GgrA== 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=4qOdEFC2M11gWaSPmcjDghbM0bbwUm04RK0v5uO2apg=; b=CQiWhA+thKLQ+L9c29gGP5Hcf3388jlTIZ8hWruFG6WFrDmbEU+tosF/wnBxdyCdke NffvkzMlL/ZK/KyrJi+0/eB/prF7DU7xEELrJEcrUy2nEB37nMJdcOJIcIdH55zHDG3a qRiBtLApGhm31dK3fuuPEXBFhyU3mf/8mYVfkkmzqlKJxuvHut9IO1eid/Rr/fIL+M06 3qgBuxP1OV53ik4A3a4ONsFW3Rs3lLdnSyjupYecnBQLxRh0I+FypBW/zudINpf7ASdL eydaWOwftuVTOhJ8pN7YdnewEe3o0ClouNR/KnDDXrgzWtM3AGACQfqLOuegeAjgO4Ww pmwQ== X-Gm-Message-State: APjAAAXvdUi755WIY4k/MZHoeLHpwaRDxUwuvYJYON5hWi/9A+VumS6n 0QKn7F+GBvfX4YIlaAQ8CPxE6NyEkYF8uf/mFOnTWA== X-Received: by 2002:ac2:484e:: with SMTP id 14mr19367643lfy.50.1565611659997; Mon, 12 Aug 2019 05:07:39 -0700 (PDT) MIME-Version: 1.0 References: <1564515200-5020-1-git-send-email-jrdr.linux@gmail.com> In-Reply-To: From: Souptick Joarder Date: Mon, 12 Aug 2019 17:37:28 +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, 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 ? > > > 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 > >