Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2446720ybl; Thu, 9 Jan 2020 12:57:22 -0800 (PST) X-Google-Smtp-Source: APXvYqxmVtJ1goxGWBi7VLiMPInk7KUchfVwQ0VPRcpIt+81ydG9XrQfGfB0l0CAYJ521/eqOprP X-Received: by 2002:aca:554d:: with SMTP id j74mr4954007oib.92.1578603442067; Thu, 09 Jan 2020 12:57:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578603442; cv=none; d=google.com; s=arc-20160816; b=HpLSZR9otfzLxV3bYDm5SV+PlIn8OBnufDeKfrxoV8oEcL1WORyqga10NzZtKgO27g 1RFolqk9bN59W1wDDru0sLF1QnnCFmHiT2GGAJHNm+cy0j9tQ9qtGiqMygyJ8EHybj3P 4GWhIoIoa/CrY207Vo0HMFOFwJQWZs/R9YitdMt0s422G/d83m58G1BoQ9XjeXuFGrjG k/QQToQ8fhxQyusv2Sp00nMfkVcpK4vSd+5SJ42j3dzypwgQHniuzj4r9QFF/WhOqVS4 10uu5SCzyUmFJqGGHNJ6Hg48INJ4iGP/awBWPSNXFkgLAZKeqIS2zmO7T8DO17HtVnHe k2xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=ef9/tFIDN6mikvhUQb4XMvHbbgBUrjC1EBqGZF+FLsk=; b=fh1J1+5hT6kTXCJ8aXVWfRTCe/cflFQQhcsWMUKppnxPDJzvfP86QtTlaIlHu3Mec/ Sik7IJ/xE7mM4AlPweJRdwpA785qQeAalW5DZV461pT2VI89XaiJkjLTxAmTccJAiBkP PpnglYQbnaa6oHsEGer/a4QJBVv4ej+EkyeeldGfxh+5O9P8v27ZbLTPjbaqytdeM287 H4vGw7V8cEClJxbwI6id7tQfMUaQCOUFJNpV5uTXOpgsmv1NDQ6gUCjNrqDv5sAN/Cjj qpayNdYXHeSfzcLeruckX/7oRGvQ0DaSdyIIdWKeKLqbwQaeUicHXXMIqn3sTBtj5VgT FHCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sXFXkHka; 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 v1si5176403otf.161.2020.01.09.12.57.10; Thu, 09 Jan 2020 12:57:22 -0800 (PST) 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=sXFXkHka; 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 S1731425AbgAIUnT (ORCPT + 99 others); Thu, 9 Jan 2020 15:43:19 -0500 Received: from mail-qv1-f68.google.com ([209.85.219.68]:38909 "EHLO mail-qv1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731407AbgAIUnT (ORCPT ); Thu, 9 Jan 2020 15:43:19 -0500 Received: by mail-qv1-f68.google.com with SMTP id t6so3581785qvs.5; Thu, 09 Jan 2020 12:43:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=ef9/tFIDN6mikvhUQb4XMvHbbgBUrjC1EBqGZF+FLsk=; b=sXFXkHka6oKVtQKVKZiBjE9C/sNZvR9m0AACc3oWtVDWSoMaHGL02DqGyopAKIUsxv NCXnuHkaPglMJsl6oWOfQL3ICcECz229wJdXw5bxIfUtxQZNfY8G4AOEVWt9tFHfzcNI 2WzPUiExo5v+4FOtJPA1ARVI9eA9kK8j6PlRuSJVxajHDSZddB3J+oIRHtXmnMFJvSuO wH3Jp9vqCGHD06jOJdG/TS/oKvzGsMXGWD0YcxH8BejChxm5UC7Hrd8Q+/WQ1MBuZXGO JMXao3zFB6DIjqCTXt5F1PV2yd0n7pldDn4hMgzzQou4FggV+q7AZw0dRpJpuUTxVAfK M2fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=ef9/tFIDN6mikvhUQb4XMvHbbgBUrjC1EBqGZF+FLsk=; b=EdvYvNyS52Hg+kifedt2EUDM2UG8oa01i3nCingWhfM2CHU0gTyD/v54dlQ1B0y/sS Wgw4Pi3yygIRSop0Wb1r1dFZJXUOqvZtL7hku0oSMF+bsPgFBj1caDRehVmoKP9d4RQ8 l8SW+y3UxCPVfubzcbNh+4vyUFT3SBnuYbE7PmQTcM7oIKEi66WEFKjxkrMr6xj095OJ PfVLrXmqKYpQIVuF8Bt7opuPLNR0PcUGcPwznGo1a5lh66K0E2wj9HM/utj+nFsLo1rd AS9XxEnxpY5K7O2YiBRWT3RTKUTG2D2TvNTXwS3hsQNBnnRx2gQpM9XHyBDOOxNh0lIp UixQ== X-Gm-Message-State: APjAAAXTD7j7pnGmsD4B+RbVmnfAIJHnbFivLT4V9xyIcWHnTj8ezqoY x9Xem50yIqMl2EVKXQMBLEE= X-Received: by 2002:a05:6214:38c:: with SMTP id l12mr10604400qvy.224.1578602597906; Thu, 09 Jan 2020 12:43:17 -0800 (PST) Received: from ?IPv6:2804:14d:72b1:8920:a2ce:f815:f14d:bfac? ([2804:14d:72b1:8920:a2ce:f815:f14d:bfac]) by smtp.gmail.com with ESMTPSA id u52sm4018315qta.23.2020.01.09.12.43.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jan 2020 12:43:17 -0800 (PST) Subject: Re: [PATCH 1/1] media: dvb_dummy_tuner: implement driver skeleton To: Greg KH Cc: mchehab@kernel.org, sean@mess.org, tglx@linutronix.de, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org References: <20200109152408.919325-1-dwlsalmeida@gmail.com> <20200109152408.919325-2-dwlsalmeida@gmail.com> <20200109155437.GA568342@kroah.com> From: "Daniel W. S. Almeida" Message-ID: Date: Thu, 9 Jan 2020 17:43:13 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <20200109155437.GA568342@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg! Thanks for chiming in. > As you are a driver, you should never need to call any pr_* calls, > instead use dev_*(). For this, you can use dev_dbg(), but really, why > is that even needed except for your debugging bringup. And for that, > you can use ftrace, right? So no need for any printing of anything > here. > Again, dev_err() would be proper, but there's no need for any error > message here. Let's take these out in v2 then. > Don't you need to register the tuner ops with something in this > function? > Don't you need to unregister the tuner ops in here? It is my understanding that bridge drivers are the ones responsible for this. For instance, I don't see this with either xc4000.c, xc5000.c or mt2060.c. I could be wrong, though. Maybe Mauro could clarify this? What I did miss in this patch was an attach function. Let's also add this in v2. Thanks again, - Daniel.