Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp394514rdf; Tue, 21 Nov 2023 05:51:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IG+Fnv0wGbtP/HpZEx5w42j+2+M6cHDPOlE93Hr/oToS7xb5476T/MMnyN+Fj3x9GxvWYlK X-Received: by 2002:a9d:4d90:0:b0:6d3:1dc1:6ecc with SMTP id u16-20020a9d4d90000000b006d31dc16eccmr11569612otk.19.1700574701978; Tue, 21 Nov 2023 05:51:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700574701; cv=none; d=google.com; s=arc-20160816; b=fvAC+bMymyBkPGCHilcfyHOofEkQQZ8y5PqSBMRywIIMAbVAE8XvNcqEIsaRrLlxpy BrkLIo9Amph1Xi/evTq768Dr5oXLrJH4krZPa+Ny+btu9/AukkBq3ZhiIPzxtV70D3By rDy1Y3mTb/4b7qGhPHMf3Wku8YmIvQgJWmRoHLzq1quIaHpx9jRJqGUl9EjVQu0bBRbQ +Ud1P08do/JWPybPHSeRTyDr9YkgqSY3OtxDV2SVFvScLH3ohTyzaJ4Po5eC4rzfOkka rg2LkSOHfNoyhiUKl4aLnWtmKn0IaQtlKeVgtxaHEriISGWLaSbZYfcIo0YI8uJ9VQF6 CCUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=wDIPScNOhQgHt38LsO0B0cG2vktuRay/6L9Ve7qh5S4=; fh=Wxwmrf3fZO02awwyGjo2YRb0AkeJPpkc7Bccl97THA4=; b=w/8WV4m0Mrr+sG2OWs3MdpeNp/eiB09WmdiLJSUV8XnOvkYjvgVWKC7aYn+zTkqmSF V+R3ZsOQV1qUL+g//knaeyu3Vsu9g3CJfnKmWyQg6j9BOXDkjd4GH3se7sr9j8hXOKRM 1PgUb2lzP/TzonMIG9Z2B439zv9i7X+/dgnZs1PHwe5JEouAj+XtDivjFMIvTSEXF+ic eip80rdrYfJ9yLgCPNNS2XUYMOh4rB6K2P3Nht+k4+t7FVE8jNOtkgtLDSAUj3tB4QGX /4x9h0NzCs2ahZcODaUlXE7TKIlXLnbkpwjGD2sWbFB949EoepvluK8j/Cs/WHtxd5/I z1lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hk4lcqx0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id 25-20020a630c59000000b00563f72935e3si10034009pgm.608.2023.11.21.05.51.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 05:51:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hk4lcqx0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id EEDB6802EE4F; Tue, 21 Nov 2023 05:51:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234270AbjKUNvc (ORCPT + 99 others); Tue, 21 Nov 2023 08:51:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbjKUNvb (ORCPT ); Tue, 21 Nov 2023 08:51:31 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EBCCD6A for ; Tue, 21 Nov 2023 05:51:25 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-99bdeae1d0aso766283966b.1 for ; Tue, 21 Nov 2023 05:51:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700574684; x=1701179484; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wDIPScNOhQgHt38LsO0B0cG2vktuRay/6L9Ve7qh5S4=; b=hk4lcqx01jkdK5ayzhye5MwWL0zxuH8tCRqNgjm/gPysRvJg/g48OEdzu2rQzMlMzD 7bsVfeCQVm08RbgJYUJwyFlqMTB0qowY1XcoLkxpMf3BLMvx0dNPkkgP9yET+/pCnhGL vEosO+tgubI6oYEX6lxYcpDy9s1teCH0D2L5fQekgpW+AhWfpVLTCud9ahfS3H8UMHI0 fgxo4dvJlyX/LPXpR7XqKCtQFGzTgc1IdMurRv4dCTbX9rBC1X/RjCPa89UG/1953fGy nzxoC09+lxaYbN5zYrapRN2Km0E0adAhD45Sexunfv0N4qv2zvPi9XkLB8CT/Wmb/Avk YM5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700574684; x=1701179484; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wDIPScNOhQgHt38LsO0B0cG2vktuRay/6L9Ve7qh5S4=; b=KStqfYnd2OM96HngJMFfF0gUyN8ioXGFeS8w7yTv9zkTAP3jEi5mGJHyAYVXfGFm+g 1Pk4ld/l80HkvLOd9/zc+rKoaxl/VkCDDWp/DeOVLfg0Q3mWfD7SD9IMyw7VAbHGHw2N miXOV/Vqx7mhNBD12A87aBRwgwUewzztKYUI3eTixlk2/gEJ5lSXk1S0P1joIvp6wSk5 eJHmCOy3dkpBhODRKj0osl0BGU6Rz/DCn+SGJO3koiOiLpKYQE5UwY7jc6GK6fyOCCI8 I1B8BC89tfm3h8wLbfmsuZSMvU81WO0z8byxOymRa0+c04mmuZG8/QiyE9tboF0OZjo0 y2SA== X-Gm-Message-State: AOJu0YwVmGcWQk+Yv0I9tIUSdDtfK0UtzWao+alWctqOWF5C5eyt4i6o gG+Zz6ExrkpUHOGMv4Deym/R/g== X-Received: by 2002:a17:906:2254:b0:9bd:f155:eb54 with SMTP id 20-20020a170906225400b009bdf155eb54mr7451774ejr.6.1700574683829; Tue, 21 Nov 2023 05:51:23 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.11]) by smtp.gmail.com with ESMTPSA id y4-20020a170906470400b009fc54390966sm3314766ejq.145.2023.11.21.05.51.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Nov 2023 05:51:23 -0800 (PST) Message-ID: <8d4e3fcb-2e4a-4580-9aa2-5acbed961c3f@linaro.org> Date: Tue, 21 Nov 2023 14:51:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 10/12] pinctrl: samsung: add exynosautov920 pinctrl Content-Language: en-US To: Jaewon Kim , Alim Akhtar , Rob Herring , Conor Dooley , Tomasz Figa , Sylwester Nawrocki , Linus Walleij , Thierry Reding , Uwe Kleine-K?nig , Greg Kroah-Hartman , Jiri Slaby Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-pwm@vger.kernel.org, linux-serial@vger.kernel.org References: <20231115095609.39883-1-jaewon02.kim@samsung.com> <20231115095609.39883-11-jaewon02.kim@samsung.com> <62b7176d-f99c-49f6-a287-17a6b3604c1c@linaro.org> <6a5610e0-e60d-4ab7-8708-6f77a38527b7@linaro.org> <926ea5c5-20ac-5e63-16ea-6f0c20e2db0a@samsung.com> <0fdb7bec-9ea4-454f-a0fb-d450f27ebc6b@linaro.org> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7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T7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 21 Nov 2023 05:51:39 -0800 (PST) On 18/11/2023 08:43, Jaewon Kim wrote: > > On 23. 11. 17. 19:48, Krzysztof Kozlowski wrote: >> On 17/11/2023 08:36, Jaewon Kim wrote: >>>>> The reason why I chose variable name 'combine' is that EINT registers was >>>>> separated from gpio control address. However, in exynosautov920 EINT >>>>> registers combined with GPx group. So I chose "combine" word. >>>> What does it mean "the GPx group"? Combined means the same place, the >>>> same register. I could imagine offset is 0x4, what I wrote last time. >>>> >>>> Is the offset 0x4? > > If you are asking about the offset of GPIO control register and EINT > control register, 0x4 is correct. > > There is no empty space between the two register. > > > 0x0 CON > > 0x4 DAT > > 0x8 PUD > > 0xc DRV > > 0x10 CONPDN > > 0x14 PUDPDN > > 0x18 EINT_CON > > 0x1c EINT_FLTCON > > 0x20 or 0x24 EINT_MASK (The size of FLTCON register depending on the > number of gpio) > > 0x24 or 0x28 EINT_PEND > > >>>> >>>> >>>>> Is another reasonable word, I will change it. >>>> Why you cannot store the offset? >>>> >>>>> EINT registers related to the entire group(e.g SVC) were at the end of >>>>> the GPIO block and are now moved to 0xf000. >>>> So not in the same register, not combined? >>>> >>> Okay, >>> >>> Instead of the word combine, I will think of a better word in next version. >> I want to know answer to: >> >> "Why you cannot store the offset?" >> > I did not understand exactly what you said, but if i guess,, > > you want to get rid of the offs because the value of the offs is always > the same? > > #define EXYNOSV920_PIN_BANK_EINTG(pins, reg, id, offs, mask_offs, pend_offs) I meant that it looks possible to store the offset and use it directly, instead of storing bool telling that offset is different. Best regards, Krzysztof