Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4007744ybl; Mon, 12 Aug 2019 09:51:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkNyqENcUNx6r5M5cMsNRmtiZTRGejfdfi+TQZteiObNCcBQAudcShHoqXcYNy/0TCY7Kb X-Received: by 2002:a62:584:: with SMTP id 126mr36699557pff.73.1565628714163; Mon, 12 Aug 2019 09:51:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565628714; cv=none; d=google.com; s=arc-20160816; b=ogslDhAdcJRiPjanYFP0n5cV/uBwOl3K+beIZ37arrdYVTQJUA/3BAdV38NbulqMMw 0+R2H9iZcEQl2Kx/UfaJz/U/DiUsHw/xK93jP6Co3EFdQyZSbwZe3SJqL1A2ZAC2W00j lEZbq+nzuMV6N3IuTVO+cxxDNsnPbIG6Ynhx5uT3PtlTQVCL5zUDvkfEiJ7glEADwsbB 8b8OmM+FQYOVq1kiwbvN/hBjLo7m/jZL3rmx5hBZvTuLhmVbC2zseNyggfrNI5vE/gpe qLlcv9L/bnV0DvJh//o978mJP9w1TCn7kn4TbGopKP/wEUbK97gqgjtFUWEJljpaxd8V SbAw== 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=g9qJeMX8U2lRIDeMiCr86C9holTbMXh0NvzNqlARYoI=; b=Vbeur61gcYRGRvj/aeUvl4FVIxL2AKAEPBnhX2F4yk9MvYfhdMdnzlN/kV8Mv92nxR /nNET6WreCp0N5glXv5TGtWkxJ69w39XKrzgEOEVD+x4BZrNV1XL15N604J9ay7myjGF VduIqR18KDfeLbt/lRyb3DtGHts+OvJMAUA1t34KhDRvcYGHzT/j+XGGYNQ7xv680xPU 7mMkeS7zsTecrABty/B78FsPNEJtwbRRhzgT6rqvhQrOSjZ4kt8WoNNW//jpIr43MgnW q7hgSFP0LyhavbArmDNqSzTISI8TNyVp1mDEcK0PBS0T9pF3I9i5cz/jH4nFZ2vYto+S hR8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KJFn9a4u; 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 r8si4504344pfh.185.2019.08.12.09.51.38; Mon, 12 Aug 2019 09:51:54 -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=KJFn9a4u; 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 S1727068AbfHLQvA (ORCPT + 99 others); Mon, 12 Aug 2019 12:51:00 -0400 Received: from mail-pg1-f170.google.com ([209.85.215.170]:41716 "EHLO mail-pg1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726457AbfHLQu7 (ORCPT ); Mon, 12 Aug 2019 12:50:59 -0400 Received: by mail-pg1-f170.google.com with SMTP id x15so39429087pgg.8; Mon, 12 Aug 2019 09:50:59 -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=g9qJeMX8U2lRIDeMiCr86C9holTbMXh0NvzNqlARYoI=; b=KJFn9a4uDrLZeXdVcv23sADaBfj63sYK9Nys2bd9F1b9ij6qqeYBVewjJ1TFcFNGVp E6wP5V/v6RJdRH8GREXrnErUAHelzEPyww5bV/1PIn0gIU7Qbf0cgjFQDHTyMu+tT9DS PCf2lV4xHJQ+x2qJSxvuh8IXJlu1ylF8aTKRPzENByzCpaxQkrSR7IwA2sE4JrTgQqW3 zSE70qJFv2fg3XQ7Ox+Pf5Tn+O0es9/VNxLDBpQjEEVp14choZIIwD+EKQ3ov72NYhgM 7ArfXt2/0eiLvxnFPKxS4yj0JBsmO7BrTNMDLhA1zBsO58kjTwSPXniP12hRb3FpFsTe NSjw== 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=g9qJeMX8U2lRIDeMiCr86C9holTbMXh0NvzNqlARYoI=; b=sMd1YrfdtSlBWBF900jj7G1uBnHjzw8nOvjGHw52SOv3llksBZEZvM7AVrkpzdJ5i/ uLlGLm0yMmkZfj0CH4Ivyn/kLsIH4QOmLuq/OmSwZ54DzMbnuyAi7qsbaif7HdWUBATp alTGfhVyOn5Bh77+d2IZqOEqgF4vvX8gW6uqrCx0VjuilRTd2zQuy6AsQkaNpPjULvac mxqTKfpOfmXZNvJfhna73FmkQBdPUZmtldSfZPQx6L6Ltz9yIrHcD6NE8R/VSlP2nhti f7d66xu6wddnW2qkzUxDxgXFagVpXgd0IisTIKl4FjxtUPpRGRTPGaprIDE6AaT8q+Pm kZuQ== X-Gm-Message-State: APjAAAV+I4XvnhNBRKmR82ZyZPizHi3CiHjkbcDc/L+CCVg+F5Jpufoo gHjrUTlGOPfHKonBjA4ww5HdUt0DzvFxgLBvecA= X-Received: by 2002:a05:6a00:8e:: with SMTP id c14mr8324189pfj.241.1565628659105; Mon, 12 Aug 2019 09:50:59 -0700 (PDT) MIME-Version: 1.0 References: <1560280855-18085-1-git-send-email-luis.oliveira@synopsys.com> <1560280855-18085-3-git-send-email-luis.oliveira@synopsys.com> <20190809141000.GB864@valkosipuli.retiisi.org.uk> In-Reply-To: From: Andy Shevchenko Date: Mon, 12 Aug 2019 19:50:47 +0300 Message-ID: Subject: Re: [v4 2/6] media: platform: dwc: Add MIPI CSI-2 controller driver To: Luis de Oliveira Cc: Sakari Ailus , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Jonathan Cameron , Rob Herring , Nicolas Ferre , "paulmck@linux.ibm.com" , Mark Rutland , Kishon Vijay Abraham I , devicetree , Linux Media Mailing List , Linux Kernel Mailing List , Joao Pinto 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 12:45 PM Luis de Oliveira wrote: > From: Andy Shevchenko > Date: Sat, Aug 10, 2019 at 14:09:21 > > On Fri, Aug 9, 2019 at 5:38 PM Sakari Ailus wrote: > > > On Tue, Jun 11, 2019 at 09:20:51PM +0200, Luis Oliveira wrote: > > > > + of_id = of_match_node(dw_mipi_csi_of_match, dev->of_node); > > > > + if (!of_id) > > > > + return -EINVAL; > > > > Is it possible to have this asserted? > > > > I will remove it. But please double check that is really the case. > > > > + ret = devm_request_irq(dev, csi->ctrl_irq_number, > > > > + dw_mipi_csi_irq1, IRQF_SHARED, > > > > + dev_name(dev), csi); > > > > + if (ret) { > > > > + dev_err(dev, "irq csi %s failed\n", of_id->name); > > > > + > > > > + goto end; > > > > + } > > > > devm_*irq() might be a bad idea. Is it race free in your driver? > > > > I never thought about it like that. Should I use request_irq and > free_irq? It's you, author of the driver, who knows it better :-) > > I told once, can repeat again. Synopsys perhaps needs better reviews > > inside company. Each time I see the code, it repeats same mistakes > > over and over. Have you, guys, do something about it? > > We are working on it. It will get better, sorry. Thanks! Hope to see a progress! -- With Best Regards, Andy Shevchenko