Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp227599imm; Tue, 5 Jun 2018 18:36:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKDvjVUVUmPwsuTsJUl5XUB+R8XGuyYpriZn+gFgI9vJGY+ryBP1z8JSliAJ6Jd4phomwTw X-Received: by 2002:a65:64d3:: with SMTP id t19-v6mr866970pgv.148.1528248995401; Tue, 05 Jun 2018 18:36:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528248995; cv=none; d=google.com; s=arc-20160816; b=Gla3NbzmC5ftkhgSxUaICxz5XhU1HbFsQ/utRnYKpG3zf0tPHnZm4Ce0NN2n+KLNOi ZjPV8iqkj0IZS1CJlbxOhi9SLh7n7SqDIBhtRJD0tO/cC5dUoWjyhS2csm2rPt6PyGEz ArtNu8lVlK3PIxdQF1OrmFkXAUwNJBapjcq7+AKagaZ1aUZNWx6rAwkP+nvuVXhSqb+n wwSKNsAzMrEPraXEGA2W2Z1bD7SDXX+NJTRMeQv56+h+X/efWb10EpUy1AXxYB2KlnrS RNzzNzrXNS2Q1HMfL33w+m3MwlZOQYzIL/9V+e1QPG9X1Qjv30HDBnmJpJ0407XyB8gk 5B2g== 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 :arc-authentication-results; bh=rzEAg6lZf7LvWRtCmDlWRimqGpTG/g31DQGhXhsBg8M=; b=FFA96bemWpMll0SRdlRpouLwO/mMNn+1No146XuiiiGydFAtyIr7FMdROP2nz1BvdJ H9hMrnbR/ylyNZoR9IOJ/Mwb1fMUw16mkCOG1pPEJjHtC5h5BnU66BPO+/s54svOuBTi Ec899x6J9jIITcG6yZaJjGy4TmvlPmFu3fut6XD3XYoCv3GOHkBfiy6emPaZC3GA4OVC kLl7mZwlWMJs4kIKgAM/doBQB0tyxCbpiwSuipLAtPM1agYXQDYO4edm0D1TNS5KqjsO R5OudeXNvaZP7w0G/3PSujlAHSRm+TC1Odv7MuksFtuUuBs4wGk1Cszuuu/hXMjFRTR1 bSLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bPndoAn3; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si51517885plh.34.2018.06.05.18.36.21; Tue, 05 Jun 2018 18:36: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=@chromium.org header.s=google header.b=bPndoAn3; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752718AbeFFBfB (ORCPT + 99 others); Tue, 5 Jun 2018 21:35:01 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:51717 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752063AbeFFBe7 (ORCPT ); Tue, 5 Jun 2018 21:34:59 -0400 Received: by mail-it0-f68.google.com with SMTP id n7-v6so6026382itn.1 for ; Tue, 05 Jun 2018 18:34:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rzEAg6lZf7LvWRtCmDlWRimqGpTG/g31DQGhXhsBg8M=; b=bPndoAn36+lYsUeiEDaOULAG/b++sxHzyWTB1NWU6mN2lU6dxA/XRcTByIBE8r/bm4 oFmQjd8B7JAsgrUv1vl+niDxB/IYZAXJknaGabudcDULsXTDB/ZiJZQd2Mzyv3+6btX2 ibeDSv645dOSW5Fl2ad9r40Z2DNTjb2nQQD/A= 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=rzEAg6lZf7LvWRtCmDlWRimqGpTG/g31DQGhXhsBg8M=; b=GKRFbwy6/H49Kj6k8ESwWekZ+8YI6fnLB24s7QLRpWyBf7sdXS1/9fRbYt2T4nqitv V6zzuhnIvLgiZUk4/VUZlaczf5z5h60VvvrOpD3m/r5Sh9mnil7BZonBEfABSakKypPW A3ivQxkXl1pk1li0xQ1hAkBmA3Wvic1urLJeWGxjlu3XiQG1Mh9jp6pkkjCKUedF+aWr J1O2di2mWy5SZm5g2jvioIzWMD7Wc2uAvcAYHnhUMKpq6S9QLo60B43HatvS53pPhRoy zkWBIoG+1d6++teGTdJWvA4dYR4FXK7EZDZ0uhJYK9Vk5DAj+NdLKS54NKSb1YgvEkAB zH3A== X-Gm-Message-State: APt69E1UCewMOZuRQEavL7SWISflDl1psdl2KFdRS8cGwaJ2i280JfvS 6Zr1DfSRc71iuXlcGTBQSa0XhWTB0Hw= X-Received: by 2002:a24:19c2:: with SMTP id b185-v6mr575497itb.147.1528248898974; Tue, 05 Jun 2018 18:34:58 -0700 (PDT) Received: from mail-it0-f44.google.com (mail-it0-f44.google.com. [209.85.214.44]) by smtp.gmail.com with ESMTPSA id y33-v6sm1366448ita.24.2018.06.05.18.34.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jun 2018 18:34:57 -0700 (PDT) Received: by mail-it0-f44.google.com with SMTP id l6-v6so5950277iti.2 for ; Tue, 05 Jun 2018 18:34:57 -0700 (PDT) X-Received: by 2002:a24:5e82:: with SMTP id h124-v6mr347914itb.80.1528248896943; Tue, 05 Jun 2018 18:34:56 -0700 (PDT) MIME-Version: 1.0 References: <1527884768-22392-1-git-send-email-vgarodia@codeaurora.org> <1527884768-22392-2-git-send-email-vgarodia@codeaurora.org> <894ab678-bc1d-da04-b552-d53301bd3980@linaro.org> <20180605105716.GT16230@vkoul-mobl> In-Reply-To: <20180605105716.GT16230@vkoul-mobl> From: Alexandre Courbot Date: Wed, 6 Jun 2018 10:34:45 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/5] media: venus: add a routine to reset ARM9 To: vkoul@kernel.org Cc: Stanimir Varbanov , vgarodia@codeaurora.org, Hans Verkuil , Mauro Carvalho Chehab , robh@kernel.org, mark.rutland@arm.com, andy.gross@linaro.org, bjorn.andersson@linaro.org, Linux Media Mailing List , LKML , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@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 Tue, Jun 5, 2018 at 7:57 PM Vinod wrote: > > On 02-06-18, 01:15, Stanimir Varbanov wrote: > > Hi Vikash, > > > > On 1.06.2018 23:26, Vikash Garodia wrote: > > > Add a new routine to reset the ARM9 and brings it > > > out of reset. This is in preparation to add PIL > > > functionality in venus driver. > > > > please squash this patch with 4/5. I don't see a reason to add a function > > which is not used. Shouldn't this produce gcc warnings? > > Yes this would but in a multi patch series that is okay as subsequent > patches would use that and end result in no warning. Except during bisect. > > Splitting logically is good and typical practice in kernel to add the > routine followed by usages.. Is it in this case though? If this code was shared across multiple users I could understand but this function is only used locally (and only in one place IIUC). Also the patch is not so big that the code would become confusing if this was squashed into 4/5. I don't see any reason to keep this separate.