From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=220.128.198.184 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796192189; b=eo3g83wKrTRv9fmq3O3kLEcj4VBjG1rSJVkXO2Qn5JLbQixQI/vbdxLw0gpSGTaXYrmY j4NODdfX7n3S+7yEZ1wFhe+sWWwOb4JSPlsGiloR07p1Eaaj3JQezCzDknCuopDcUhysC frJUjZSNJzhJaAgzW8iZSDe5zMtZU3Q9TbJd7Tg977S9Mwdg1tnvS/cwCLsRhYPIMiIKu Ei7Zm7YaYS/HAd1Af0ZwSHIQ8PurVED261ALlkd6W9Nbv01JwtCDXAYYBhxUYzwovTZ0p 1ewbgf0MOsQahyh4r6rhq5r9D2fIzdqQ87d8l2RqfLQDe5CVOHGhZbnIa1KTqpqAYmw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796192189; h=DMARC-Filter:Received:Received:Received:Date:From:To:CC:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To:User-Agent:X-Originating-IP:X-ClientProxiedBy: X-DKIM-Results:X-DNSRBL:X-SPAM-SOURCE-CHECK:X-MAIL; bh=v80q1uOaLk8U8cnMC7I79Dhb7YNIEZpF4yl+X0OBsB4=; b=VBlPLCJPykIWuVcssxnpL5ntaSUj9o+ZJTCW65mstMpYCspaOsWopr5FImpH7wE8QJzn 1UDrWTlDrw+WRSdsAlgfpmhSWzUAlW2GuTA5hm+KM0k1zA3WIifXbuHX78nL6aL1Cr8xQ hjTYxt1ZZjJmSe6leT/0hYIB4x9ityw4su/NZh8ZHnJvDL+MaBluWwhHxiUS8kGwZVWW5 Bn3THOrKcqJ0g8fbbgVgwj9S5DEWtxukSn5VX42yevkQVrsTAgmmi2ic9Id+M93HtQoHi TNIkKqeWdS0Ph7anYegfsXj5p+1ONZf8T0OrmI5LiweYcTEdI5zjjCZa43eZh7Zr3QA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=andestech.com; spf=pass smtp.mailfrom=andestech.com; arc=none smtp.remote-ip=220.128.198.184 Received: from Atcsqr.andestech.com (atcsqr.andestech.com [220.128.198.184]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3DCC2606A31A; Wed, 2 Dec 2026 06:16:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3DCC2606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=andestech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=andestech.com Received: from mail.andestech.com (atcpcs55.andestech.com [10.0.1.155]) by Atcsqr.andestech.com with ESMTPS id 6B26GJjS079281 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 2 Dec 2026 14:16:19 +0800 (+08) (envelope-from cl634@andestech.com) Received: from ATCPCS34.andestech.com (10.0.1.134) by atcpcs55.andestech.com (10.0.1.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.56; Wed, 2 Dec 2026 14:16:19 +0800 Received: from swlinux02 (10.0.15.183) by ATCPCS34.andestech.com (10.0.1.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 2 Dec 2026 14:16:19 +0800 Date: Wed, 2 Dec 2026 14:16:18 +0800 From: CL Wang To: Bartosz Golaszewski CC: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , , , Subject: Re: [PATCH 2/3] gpio: atcgpio100: Add ATCGPIO100 GPIO driver Message-ID: References: <20261116040914.368298-1-cl634@andestech.com> <20261116040914.368298-3-cl634@andestech.com> <22ifazqg6afr6rcybqg6foah3v554xu4px2c4et35y5xzpg74h@kesthgcvnlgk> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <22ifazqg6afr6rcybqg6foah3v554xu4px2c4et35y5xzpg74h@kesthgcvnlgk> User-Agent: Mutt/2.2.12 (2023-09-09) X-ClientProxiedBy: ATCPCS33.andestech.com (10.0.1.100) To ATCPCS34.andestech.com (10.0.1.134) X-DKIM-Results: atcpcs55.andestech.com; dkim=none; X-DNSRBL: X-SPAM-SOURCE-CHECK: pass X-MAIL:Atcsqr.andestech.com 6B26GJjS079281 Hi Bart, Thanks for the review. > Uwe would probably say you should only pull in the individual headers that you require from include/linux/device-id/. Dropped in v2. >> + .flags = GPIO_GENERIC_READ_OUTPUT_REG_SET, >> + }; > I think you could save even more code by using the gpio-regmap helper here instead. Could you see if that's possible here? As discussed earlier, keeping gpio-mmio in v2. >> + priv->chan_num = CONFIG_CHAN_NUM_GET(cfg); >> + if (priv->chan_num > ATCGPIO_CHAN_NUM_MAX || !priv->chan_num) { >> + dev_warn(&priv->pdev->dev, > Use a local variable to store the adress of dev for better readability. Okay, used a local variable to hold "&priv->pdev->dev" for better readability. >> + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); > Use devm_kzalloc_obj(). Same elsewhere. Applied in v2. Best regards, CL