Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp300081ybg; Sun, 26 Jul 2020 05:05:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+3vVLEAWPK0kEqetgcWuvkkRoRTSQ20FKVFCk0hDXknrbUewtXXcw0/krCuH9+h07ONFm X-Received: by 2002:a17:906:60d0:: with SMTP id f16mr16454138ejk.17.1595765123928; Sun, 26 Jul 2020 05:05:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595765123; cv=none; d=google.com; s=arc-20160816; b=hAIOvTCwiAMXSND3LzS/SeYUqkxRcAe2+dK15fXzxD3/mDwEyufsrdPr5bKpUyhks6 tfohUW1V/KArOJNjfuNoJRCJkWNNgEfmVLRn5J4jGICOhFOTbBNO51nIkPXiBuUSq7c8 dEAvYKAUO4LDTpy90+J/hJIAjyKle1Uqnk0/1RjtVX6HuEywU+fJhKfIcKCbIQwVlDU+ +EFS7Lu0sAiqWzUddtsK7kgCwN5xU3B9Q0xFDehChF763thcgL4Q701FIQU1C8vmexyS iFWwskYnWu8Wuv3GhLt7uLJcDEX98xXTsJzgdAHuR4kleqZODtb6ZdWJw325DZoXwmky lgvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=CFHMSsWeLyN2kAcFOmJtvKfrZl6qP7YGO+vjXv5/hKU=; b=PPfx4dCTdDNo/YITioFA41qf6RrxhDckvZbYCKHd8swj8zXo8DZRVlh3bpwKiwDOUA VwScj+T65UGt2Cn15mNQJze3MBpY0d4H2sRoOWOb/a8l2XtNTmaEBd92esuZg0lGNPKC qCtopNSErxrhZ6P2YTQD1Tud5wt6385iLqj+TsU6h1BJkr09l1UvNS9GB7ENBOFrEreg QTIcM7wYeVH1I0eVO4GRF6Vr+e6Z4bh/5oD5cw587pCULcbhb6LJY6ZWvssIWF9BMEP0 aZJ5UNbCtnd1UeshyXpOF7F1X4qEdl2LaBt1gyKc2+KphP6ZQFKXysx3GTRhfFxhEKOZ xLTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Xy0Ktmyr; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q11si4107548edh.154.2020.07.26.05.05.01; Sun, 26 Jul 2020 05:05:23 -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=@kernel.org header.s=default header.b=Xy0Ktmyr; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726711AbgGZMEe (ORCPT + 99 others); Sun, 26 Jul 2020 08:04:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:43366 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbgGZME1 (ORCPT ); Sun, 26 Jul 2020 08:04:27 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 40BAB2065E; Sun, 26 Jul 2020 12:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595765065; bh=LJxegL2P5hNKR910G8c/QDoI1uB2BfRFQ4PeiQJwStQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Xy0KtmyrKY0jX8tITQlUegCxmDYNtTsgBZMQUvwmUrdMbIF0cVKjshR0MQeIGNHRj u3dZWeWJc5V9C/OxmUSuefkUN6fX7aAq8RXQINPs/V1QurcwpCNTAP9KonYrK9ZOLC qACyVZsJwgPmYtOqUITCkz9UKqybv0a91ujrcAaY= Date: Sun, 26 Jul 2020 14:04:22 +0200 From: Greg Kroah-Hartman To: Konrad Dybcio 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 Subject: Re: [PATCH 9/9] soc/qcom: Add REVID driver Message-ID: <20200726120422.GA1292190@kroah.com> References: <20200726111215.22361-1-konradybcio@gmail.com> <20200726111215.22361-10-konradybcio@gmail.com> <20200726112920.GA1286220@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 26, 2020 at 01:40:46PM +0200, Konrad Dybcio wrote: > >Horrible global symbol name. Who calls this? > > Welcome to development on qcom platforms :D Yeah, I have seen :( > >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 Then use a proper name for it, with a correct prefix, and export it with EXPORT_SYMBOL_GPL() please. > >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 all of those defines are not needed, just the function name, right? > >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. Hold off on this and wait until there is a real user for it, as we can not take api additions without a user, otherwise we will just come along and delete the code. Submit it as part of a series that actually uses the function, so we can at least see if the function makes sense to be used in that way as well, right now we have no clue. thanks, greg k-h