Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp288943ybg; Sun, 26 Jul 2020 04:42:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVQ4/8+x0sp3/NZnc7mAQ5RvZMrbBpEkWxQBZ41Ll3z2Kflz3FFKtSY5mzkhc/JD6WRRFM X-Received: by 2002:aa7:c9c8:: with SMTP id i8mr5272596edt.265.1595763750145; Sun, 26 Jul 2020 04:42:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595763750; cv=none; d=google.com; s=arc-20160816; b=KZn7k6E9HylUb6kyjTanaqTpXyEt3ZTMb9/1aMYReNFfxlWoh3nFYxdH0dNBK5Ypgq +lyEu071jVsvHmT38lVlLgXFw1vk2OJsax6qrMwssa1H2u26IWDUxGk5dskJeBFzsi1l D8984BeE6/qa6ZPgBw/sAYhyfDYa6vJKN6ycRs4Ltwa+4OMpH0y3Cm8EYgD56L1cdapw xAOdI7arDkd/DbTZC3UbqcykqhJ6/Ob5SS10UYpHh0U8Vt36zXMv4dTHzPjItz9+oE5C Ov0kjpHEDFjn9e+5QPNEP3hbwMqFpD7J4U7rScbvIhOyfSLN2sIN5XlQ9VbVUiyxFvZr GYPA== 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=lseWHrFGrBMnahk5IsFpxWMdJQwHw9KSOQ+YjXuxbFA=; b=gv4R6pApMUlcEi+7HnGfAB2fWkIzFfADa1pPX7MmzO2qBOdVGBBa/016IR5KIDdbWn Zx+oWamOcA34iy7tawTT457bcXn3gLL/FXCYF2pi8QdqFFHhpsTIPFW0uP2jOV4U3qvT +BUfV6ra6kvF/mpzok75HjqRLBHkjglU+rEifVtb13W4NyvCEBw31OrRg+NPYVYfv6Bn QyND9ZRQ/DIiYl3lSExtDju4fbQh/Ls2wJgsFqaQHJ8yHShY48+N8rYsCOsnw0wInLBN 3sI5naUIQxe8PVwAZ7SwQqZW+9jJ1LtMDN2Mr6irznGCKG+hkh9apaHyk0aA5wQUGfjq GcuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aQBpC9fz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id k27si3683186ejs.676.2020.07.26.04.42.08; Sun, 26 Jul 2020 04:42:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aQBpC9fz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728081AbgGZLl1 (ORCPT + 99 others); Sun, 26 Jul 2020 07:41:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725794AbgGZLl0 (ORCPT ); Sun, 26 Jul 2020 07:41:26 -0400 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5516CC0619D2; Sun, 26 Jul 2020 04:41:26 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id a1so10066212edt.10; Sun, 26 Jul 2020 04:41:26 -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=lseWHrFGrBMnahk5IsFpxWMdJQwHw9KSOQ+YjXuxbFA=; b=aQBpC9fzSLDnNvo+7B291mUv7CYE5RDCBIF21+v6M1aGzer6EfkLoJTc2o7eM2K6MG AEwWL5yYBW7duIplNuwImdTx2S1RNduHQeqEz7mgWGH8phlB4lVmG8WraFLhUQJQ98Z2 zUqMA7AMx1KI9m0wjq5Pggp54FnyaY97h8fptUzqQQSzxWh98jXHZHPHVbaEyQRKgrzd i2cvvdyI3MRlbqk0xdTUVTqT7iJB3HtXVtuiJeb5ouEVGh1+FGE608Ek0ww5PSUYS0h2 CeGhysTrPHi4pC+EoRw7apKj2jD5TkDMRVMNrR+Ty5Y6JJ8bb8ZBiE0hUl/tm2l1AE7l L86A== 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=lseWHrFGrBMnahk5IsFpxWMdJQwHw9KSOQ+YjXuxbFA=; b=oC/cjnLFM/fGqrB02GyoWkFBBWg0aExw8LZDsKSi3ULbkqPKPXxjHJqvnaMqPvBISU 1B/lHkaVfEndtxZ4mjrecYbKxXJZfglh2owRZw8uJ8qQ2KNvMdbNlddtufm+3eh07/hz N4rCChVPVJtDjlCoBPgJiYX7EXfU05aIuN6bNNtcvtV+rGNfsJnbJ0ngsCb9JK3JiMzm qktmu1cn+zl7lqBSiWg40e9yC4F5Nrn2jqlynFmtHHt0CqNp+dErz0YDQOOk1qJ5aSRx LRhgucRfr6CN0BRI7uV+lJx0mqtCZzHclpfI73hZQGRVtY5b5ibLABg5B73jPTST5XxS RAOg== X-Gm-Message-State: AOAM532qvym97B82eTSYLGdjP69wRaYRip9rDQJKU92sN/LtYzKJsnVx 8G3L5US3qwCwehNl+OG1DInssHzJLaMtUQArJSpdMYDaoMg= X-Received: by 2002:a05:6402:1ade:: with SMTP id ba30mr16127632edb.231.1595763685099; Sun, 26 Jul 2020 04:41:25 -0700 (PDT) MIME-Version: 1.0 References: <20200726111215.22361-1-konradybcio@gmail.com> <20200726111215.22361-10-konradybcio@gmail.com> <20200726112920.GA1286220@kroah.com> In-Reply-To: <20200726112920.GA1286220@kroah.com> From: Konrad Dybcio Date: Sun, 26 Jul 2020 13:40:46 +0200 Message-ID: Subject: Re: [PATCH 9/9] soc/qcom: Add REVID driver To: Greg Kroah-Hartman Cc: Martin Botka , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Andy Gross , Bjorn Andersson , Kishon Vijay Abraham I , Vinod Koul , Michael Turquette , Stephen Boyd , Felipe Balbi , Jordan Crouse , zhengbin , Jeffrey Hugo , AngeloGioacchino Del Regno , Ben Dooks , Krzysztof Wilczynski , Harigovindan P , Brian Masney , Sam Ravnborg , Xiaozhe Shi , Manu Gautam , linux-arm-msm , "open list:DRM PANEL DRIVERS" , freedreno , DTML , Linux Kernel Mailing List , linux-usb@vger.kernel.org, linux-clk@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 Hi Greg, thanks for your review! >Why do we need this noise in the kernel log? I guess it could be left there as a debug print? Knowing your hardware revision seems like a good, but yeah, not a necessary thing. >You can drop the GPL boilerplate text and add a proper SPDX line at the >top. Seems I only did that in my other local tree.. whoops! >Drivers should always use dev_err() and friends, as you have access to a >struct device * always. Please fix up the driver here to use that api >instead, no pr_* should be needed at all. Will do. >Horrible global symbol name. Who calls this? Welcome to development on qcom platforms :D >This is the last patch in >the series, so if there is no user for this, please don't export it. Other downstream drivers make use of it.. need to get this up first, sorry :V >Why do you need a .h file in the include directory if only a single .c >file needs it? Just put that info in the .c file itself. Again, other downstream drivers which some people and I intend to bring to upstream standards use that to access the PMIC model/hw revision. >But again, who uses this module? If it's only good for a single line in >the kernel log, that feels like a huge waste to me. downstream-kernel-dir$ rg -l qpnp-revid.h | wc -l 25 So yeah, quite a bunch of other qcom-specific drivers. I'll try to fix these and send a v2. Regards Konrad