Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp81790lqj; Thu, 11 Apr 2024 10:21:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXEqc4VY+EZQ9FtedxnAK6Pf5BKvCtIYMxlhAOIv8a8LtxGZ6VPnBnIAGzvrZFriYxudNYCdF2+zFghIqtGR/g261w2YONgbMquVzTSpA== X-Google-Smtp-Source: AGHT+IG1OMtU1kkyk+C1N5R1/sQKavXkwipkt6lGDX4aQEOXFVJdsnu/w61SMdPss3D8iObiXc5D X-Received: by 2002:a05:6214:12d8:b0:69b:346a:ef7b with SMTP id s24-20020a05621412d800b0069b346aef7bmr295928qvv.59.1712856081604; Thu, 11 Apr 2024 10:21:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712856081; cv=pass; d=google.com; s=arc-20160816; b=KENnLh1hWIp7XvC7WSwxwFByUBtndbMHngALrhIVH6yf/g7YYSKN1htTn8eerrSsnX C4GgJU8O+B2ZlBs+tanhYy6GTWXYqC8Hl4Dy0ykEmQi05vG87eQJ3tv0yI8iaoJyVpD4 +9pRW5veL2yiqmqXeQkuokFcg5sMzPOKiVWadJI1HeQuFRvygqzrmwU5eNoMRekCQxEV 9dj9WLi+RJF+dW90ZySY0ZtMCSjoLBihmBFTc/RjMcnaBqOvltLu4RJI5A7tTxb6a9at GWrJh8herxl5y43tMUbUlXkRvbaHCod/6EGI5zJWyAcFVtpDA/3lVRw4HqDhtzVcKuc5 IvOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=haD8srUSA/7piIQcBMU+jz1u8jwrb7rUW232cvqEx3s=; fh=KRhIW6s9KRMLSm+Ox5rE4N42YUjqNVLxXcWIWOYktF0=; b=wQ9sJYNQ7YwtKeiji+H6I1pqs7iYWPrnl/zWwZLhpj2xcUfmnn8zN++5AcNRtKGH8Y VTY+632+/bGDxkwc5A/VkzHxjJz4FviGZpYl2YILUSF72QUCCODOtoi/uqw17ljeciT2 VuSmxJQNHGr2IVQEEEkLc+iP/I6qWj8BP8X/fOGK3PclhrpIDUl17QGYbfMWfsifMng/ I0LMEKb0u9bjqj7Qz9IZcM8MwnWSGuwGn44+SEQWmydUTsMOnT+r64e8nmUYKveOqVOd CiPy9shQrttWSpI+BYQEdFyCFTQDMfgFsP+PBJ6nPwK9KcYV6duCnfEkDJYLPuiq60za xCVQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="Hh1T/l8A"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-141225-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141225-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c9-20020a05621401e900b0069b1f36ee95si1805870qvu.438.2024.04.11.10.21.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 10:21:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141225-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="Hh1T/l8A"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-141225-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141225-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 523DA1C20CA5 for ; Thu, 11 Apr 2024 17:21:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D02B8205E3A; Thu, 11 Apr 2024 15:45:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Hh1T/l8A" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5C01205E26; Thu, 11 Apr 2024 15:45:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712850308; cv=none; b=tzkzQDvhtHNLBAEScaV1MQsRmx93BK5EiTU73vy0dlg8l+XSjE0X4Q3DfyNFHQKv3Ol88M8whbLFKg/CvcZXjvhpOM5w7a8aWwHlqk2SChtjfT3UeJJPXAAqqLlnTYJ3vVQIGYF0ti4P0wTRPkfozsxy7nAgwswWcEZ12RtnRUQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712850308; c=relaxed/simple; bh=/IRr60aMZOeOyFiScIJ7Hqy89Fa77PW2HAAbz3xI4jQ=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=efAXcmlEhSHdBfi0o1uUgguWkg82vehvhJt/QOQKRdFm2MrQy8Quy+SRmSpg3mIMYLAH2CYYeEvSW3w2H4slf9kCWHgkLtq+6+52R0Ot6ledVM9j/HXVsm/90rrAs5ZHifA5S4bGAbBke5M8h7VjRgawHxjHpDFD4bC0BXypfME= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=Hh1T/l8A; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43BDG7bV024388; Thu, 11 Apr 2024 15:44:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=qcppdkim1; bh=haD8srUSA/7piIQcBMU+j z1u8jwrb7rUW232cvqEx3s=; b=Hh1T/l8AZXIPiuPJqEb+2xEhcwSozimpdVr7/ ABvip+E1Wk/J/Zj8agqdbWyJOXCUiT7kxIstytMkXA+Kr/EioGE0k1drFabachGG e/twcqTZYzv9/ZuLmnPN3qe1clHinSdawWe/XA3nIErgRDeW4uRtXUcQGNH/g5LB rnwWMlOrXRIsrFHYwNEFgG5AxakO2YYA/gPwVGw0SJvV8jq4U85e4u4sjAhUfnBv psRlDjeOV5LSTGoaaOr+7fn2w0mbIocdr5edRg/SDi57nOvFQPmti6rJF1yvUb50 dcbDTpIE+iyP7jKi+xqrz3TUbZFyfzUAR9PjsEMo8l8BCqSDQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xebqx9mg6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Apr 2024 15:44:46 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43BFijB4032349 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Apr 2024 15:44:45 GMT Received: from hu-bjorande-lv.qualcomm.com (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 11 Apr 2024 08:44:45 -0700 Date: Thu, 11 Apr 2024 08:44:44 -0700 From: Bjorn Andersson To: Krzysztof Kozlowski CC: Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Linus Walleij , Sascha Hauer , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , zhanghongchen , Yinbo Zhu , Bjorn Andersson , Konrad Dybcio , , , , , , Subject: Re: [PATCH v2 4/5] pinctrl: qcom: sm7150: fix module autoloading Message-ID: References: <20240411064614.7409-1-krzk@kernel.org> <20240411064614.7409-4-krzk@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20240411064614.7409-4-krzk@kernel.org> X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: KU4mU--SOy6t8CFhdoXd3JVsuCKtrbVx X-Proofpoint-ORIG-GUID: KU4mU--SOy6t8CFhdoXd3JVsuCKtrbVx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-11_08,2024-04-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 mlxlogscore=999 malwarescore=0 phishscore=0 suspectscore=0 adultscore=0 spamscore=0 lowpriorityscore=0 clxscore=1015 mlxscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404110115 On Thu, Apr 11, 2024 at 08:46:13AM +0200, Krzysztof Kozlowski wrote: > Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded > based on the alias from of_device_id table. Pin controllers are > considered core components, so usually they are built-in, however these > can be built and used as modules on some generic kernel. > > Reviewed-by: Konrad Dybcio > Signed-off-by: Krzysztof Kozlowski > Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > > Changes in v2: > 1. Add ack > --- > drivers/pinctrl/qcom/pinctrl-sm7150.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/pinctrl/qcom/pinctrl-sm7150.c b/drivers/pinctrl/qcom/pinctrl-sm7150.c > index c25357ca1963..c542f9bc6bcd 100644 > --- a/drivers/pinctrl/qcom/pinctrl-sm7150.c > +++ b/drivers/pinctrl/qcom/pinctrl-sm7150.c > @@ -1246,6 +1246,7 @@ static const struct of_device_id sm7150_tlmm_of_match[] = { > { .compatible = "qcom,sm7150-tlmm", }, > { }, > }; > +MODULE_DEVICE_TABLE(of, sm7150_tlmm_of_match); > > static struct platform_driver sm7150_tlmm_driver = { > .driver = { > -- > 2.34.1 >