Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2930508rwi; Fri, 28 Oct 2022 13:17:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4QCkoh+NsGAKIjlKVD57MypgChaCP5mYwa44992KApvLkIbzsmvzgGWg92nG6xfv9P0Kkd X-Received: by 2002:a17:90a:748c:b0:213:854f:f78a with SMTP id p12-20020a17090a748c00b00213854ff78amr1017079pjk.41.1666988253205; Fri, 28 Oct 2022 13:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666988253; cv=none; d=google.com; s=arc-20160816; b=Mew1hVnR1OMES/D/PV0KE+TvBNaD+OFc9ytzb8BTpcHHDqdf34JsN4tUtihWpwmYBv Zmr1C1mET1jDyqfh469K8ZjghPkGuuzE+Rhx7FO1S++2rcFRUhVgnoZBylSyARCPZu9u CtbXZJ0EAyY4/3G2Gdqw8Vjev6rr4LM79exDHZi+SBAsdiuV4C7eWvKZSf4kVtJGMwlY rIMZSHtDn6O/kq2W2nHstI+D1tZu8v3RoNZs78w7o/8jccnjZw/EXfcp9JgTSLkcKW/X f6468etPRciOUaZ7yYhbaKCuJ7Ddmw8OPBGjRNuFBdtmq8EcLa/C3L6TS2UJGhDJWacp gsVw== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CrrbK6WiWXkWTKLU/KfAO4hvX9jlvOUQaHzqnu/h4mc=; b=itmbAhqUAyVdSTaGZN25tVCOqtMY+O72s+ZBUsrhJL/WOvGRVR59zCEXlx6aWltRUt FD0RQYn28QoTlGQgB/v/gcS53eHLR9dlPgbxlhLncjqsp1ebQ9DX68tx9+QqhbAwLtwZ fCm5QPLDM2oZCxwvg6es5Nfz7WIINLMsi7m66ozUeLk5KnZWayo0zGieQ52FzyT1328b H10zZ4/Fb5JQsBOUckwJ2I9dCyfq33z9Qklc35GsY2tCxF9l6APoAqECkofNrC+irTW9 6WzoUWC0r3ne9uyjInHPeS/Y+pT+46b8KwiHR8n17QIf9njGmzKp3Uc5YMmx+kthilaJ LW1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="OjL/nt1D"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z17-20020a631911000000b00434ac3b9915si6371936pgl.790.2022.10.28.13.17.20; Fri, 28 Oct 2022 13:17:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="OjL/nt1D"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229851AbiJ1TuC (ORCPT + 99 others); Fri, 28 Oct 2022 15:50:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbiJ1Ttx (ORCPT ); Fri, 28 Oct 2022 15:49:53 -0400 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 025EE43E53 for ; Fri, 28 Oct 2022 12:49:47 -0700 (PDT) Received: by mail-qt1-x82f.google.com with SMTP id a27so839680qtw.10 for ; Fri, 28 Oct 2022 12:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=CrrbK6WiWXkWTKLU/KfAO4hvX9jlvOUQaHzqnu/h4mc=; b=OjL/nt1Dp1/VP/e3v0ZKs5p2qQeXHV5NgNI3Rd1KnjbGfaOka7Px+PjzCXyw6sMhOb Znl96YHjoXR8U+pjzIeYs6DN8AKLlo6cvi0dTe2+LgJHGHv3LCpVIH1MQeDhtmEPsvm6 /krya6K6d/PsZkEPdGrIWhzgi7h8uQjIE6pbs1Koqkmn/39Qmz7YD9WgOEQVSYw8VMyX AAaGUef+kLxg1y8D0YWjgvGdW6wu/CiwHy1MTxa9tpyD3+nHHZIr3lZYYWp95WCFY9bX AAHAMVwPs173OC4AjQzRzIF2lNkV/5P0OtNQ7mSTACrf1vEa7jpFW32+MzcYWQFWn4nu MxRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to: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=CrrbK6WiWXkWTKLU/KfAO4hvX9jlvOUQaHzqnu/h4mc=; b=vobnQDnQF7SF1ccSpS3KdfBqn7/bhX+7X37/FImuE2mUXySKI7pDG5aD3HRU3bpPyt /OJIZK+Z/+m93ywMO4js8gtAf2bIJlnwQp/hpU7YnCWzHalH2LLzHNlABjOkLkMg7MYl NGiRJqV1BEYq2IMXUk/dh98WsOdoIKLQjGbeWOHmsSbDGHeVHV3GoiMkqyZ7OIN8276+ /iUkjGG+oHDpD/NjZsZzLSzsnu7Vcj460EZbdwGafsR4wS6Z7ZGZ0jnfv4R1OXQla4Fm nxDO2VprjK3p+rqJaAH1aJJqrvagArSd6XQs7R89gMyVC72g5L2lUJIhQdv7kmA6f8RS sgtw== X-Gm-Message-State: ACrzQf3Nqo99trh+0HMK9WmCjap/PxksUxlswuHj7LxULN0+WcEf06K8 2gRGymhCeORAedH/yxRVkPBhxw== X-Received: by 2002:ac8:5ac5:0:b0:39c:f8f5:c432 with SMTP id d5-20020ac85ac5000000b0039cf8f5c432mr1022780qtd.33.1666986585310; Fri, 28 Oct 2022 12:49:45 -0700 (PDT) Received: from [192.168.1.11] ([64.57.193.93]) by smtp.gmail.com with ESMTPSA id t1-20020a05620a450100b006ee7e223bb8sm3622607qkp.39.2022.10.28.12.49.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Oct 2022 12:49:44 -0700 (PDT) Message-ID: <3b8441da-31af-2414-1362-0efb05cbf8c0@linaro.org> Date: Fri, 28 Oct 2022 15:49:40 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH 2/4] pwm: Add Apple PWM controller Content-Language: en-US To: Sasha Finkelstein Cc: thierry.reding@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, marcan@marcan.st, sven@svenpeter.dev, alyssa@rosenzweig.io, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221028165215.43662-1-fnkl.kernel@gmail.com> <20221028165215.43662-3-fnkl.kernel@gmail.com> <02523fe5-bf99-9891-d00c-347893d5dabe@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/10/2022 14:51, Sasha Finkelstein wrote: > On Fri, 28 Oct 2022 at 20:54, Krzysztof Kozlowski > wrote: >> >> On 28/10/2022 12:52, Sasha Finkelstein wrote: >>> +config PWM_APPLE >>> + tristate "Apple SoC PWM support" >>> + depends on ARCH_APPLE || (COMPILE_TEST && 64BIT) >> >> Why this code cannot be build on 32-bit? > It uses 64-bit divisions, which causes it to fail to build on 32-bit > mips. It should not be a > problem, since this hardware is only present on 64-bit SoCs. Does not matter, code should be portable and buildable on 32-bit. If it does not build then your code is not correct. You need to investigate the failure. Maybe using do_div would solve (or other macros from div64.h) Best regards, Krzysztof