Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1471168rwb; Sun, 18 Sep 2022 08:00:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6gh0x9AbNVA5q+CCOXKwz9GHWfUdtStuB+oSvULXRpmUHA5VKPGXCjMI4P2t8kIzViwhqw X-Received: by 2002:aa7:cb4f:0:b0:453:88d0:bed0 with SMTP id w15-20020aa7cb4f000000b0045388d0bed0mr7923408edt.127.1663513243954; Sun, 18 Sep 2022 08:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663513243; cv=none; d=google.com; s=arc-20160816; b=Bj3+M8lL+vz+wL+9DpsxRL4cPlUffirU3O2aTDEUTgGPlNs9YJp+SCpjML+5yYzNzZ /rhEhpbIB5WAHDk3GKig1+KJSnMtG/GdA8r4fb7HcwgzHW3Gvai7cMyAzRT4x3Chuxd4 4qgF0ZiNAxWT61hnLBHqFCXZSf7iLnLQSW7Oohe0fRCVMbRaopFkhegs6sp3wuitjT+b cE+z5/Ruo3/qvcuX0BPjKImylE4O0J4WAXGVkW1CgpiLl1BHtIJ1slAQSrabrfLdNrTF XbhMAGxtiAMXIJcV6kY6N2v7nBQ1XqSE3UIYK/2uklSf0zj5CiLtQvrG2jh93bSHgPZd Rv0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Rlg0/ZYnRtBFDzMZxXf5GS6F9a3najBH1vMHMWoExj0=; b=Fve1cHoPrYUZYIhmjiRcP5eyqCZs7dTw1kCAAfRYVj2dpZbWLmdnPh60Esn1/THPqP uRupNkgG59eNdL/lQkCwNZArQfbo3wyR2+VZtXlA8mpgVyC1LA3EN6lVHC8XmS0QiNmA tP3tQmY19Uhw0yq+T25VDLsKHz8CNCwvfOjqM9nG0zMa7Q8Rbvh8uswx7DPWjlpO4B+c ST9kh9MUDBjScX3S6RQndYT390t1FuzwozbMYdztoY+4f+uvkq0s5N4VCg+DBYui45P8 uiX0dQHLwSdgc6IS9XEnbLh3yG7RARI1GQtKfBVHqa9qO7g6bt6GaKbItQbUywpZF0hy khyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k9RNeF+a; 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 hd42-20020a17090796aa00b0072f1c8d0e62si27070797ejc.95.2022.09.18.08.00.19; Sun, 18 Sep 2022 08:00:43 -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=k9RNeF+a; 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 S229999AbiIROiD (ORCPT + 99 others); Sun, 18 Sep 2022 10:38:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230020AbiIROhp (ORCPT ); Sun, 18 Sep 2022 10:37:45 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2549B2559C for ; Sun, 18 Sep 2022 07:37:25 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id z97so37775535ede.8 for ; Sun, 18 Sep 2022 07:37:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=Rlg0/ZYnRtBFDzMZxXf5GS6F9a3najBH1vMHMWoExj0=; b=k9RNeF+avOEI2E4SLM1Bqmu/o8xiuXG0PsspBP3jZ9ZtKqaoZX4hD5f+viONmzsq8f /rJuVgo9WDsioBHPQqImmPEbgBjXG1hiyfILZsrnkdWlud84P898eyiWCk0GEy9TRwTi hfBFnJWZJsqjnxceuGLK+FJrpQwHr399zi33ei/iQsD1h9nCxOAD/W9O6iwSYmFz0Whp EBri77hU9anSTlALAolse6UsiFQTxH92dsprae5Na/Ay37xmi8F+caxE+pHvEJ7qyl3k wBn4DD5NNB0cnnRvum9+bRPRoe6RQZeVzexSLjptOQpxiH0mRjGBeuq2YmHUfGKHUe+R fy4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=Rlg0/ZYnRtBFDzMZxXf5GS6F9a3najBH1vMHMWoExj0=; b=sykIvBAlznSaR6MuAS8NqVaDyCvLhtm2HoKToXizOD+Zkns8h3YkeT8YEN9zH3SMlZ JtrXOju4xseghek9Odwm47kM+10t8uBHZpLuUT113YsLiWjmQRIIvbzRS/QC++3O0hXS zOBv1uJ8uFt5piYXIdchtbpJk8Cbc6/WNWA0/QqvRABMLm/PgBerS74ct5PNXzyR1swl 4iGnTv7/mVm8KAUsG3JaR7GMnIzneFHEwty2IswaDzaxN/Lt5fEphrljbOv1HOVLA7qo Q88EY/jiTycfUKGBtv08JzM7gP0ucyQQTH4MPq5kw7mYl1YvQYE8YL0ZLF4M8rACdrW1 petw== X-Gm-Message-State: ACrzQf12+VqjqfhvYPls/hI9HHApr5Oldb+ltnqQqL9u4bJyFqAk8Dwh 182+Vm5M6meM9Had2dUpBiXcibUy4siJkvqNZupIbA== X-Received: by 2002:a05:6402:2690:b0:452:3a85:8b28 with SMTP id w16-20020a056402269000b004523a858b28mr11451311edd.158.1663511843470; Sun, 18 Sep 2022 07:37:23 -0700 (PDT) MIME-Version: 1.0 References: <20220906211628.6u4hbpn4shjcvqel@pali> <20220906214114.vj3v32dzwxz6uqik@pali> <20220906220901.p2c44we7i4c35uvx@pali> In-Reply-To: From: Linus Walleij Date: Sun, 18 Sep 2022 16:37:11 +0200 Message-ID: Subject: Re: [PATCH 2/2] PCI: mvebu: switch to using gpiod API To: Bartosz Golaszewski Cc: Kent Gibson , Dmitry Torokhov , =?UTF-8?Q?Pali_Roh=C3=A1r?= , Shawn Guo , Lorenzo Pieralisi , Thomas Petazzoni , Bjorn Helgaas , Rob Herring , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Fri, Sep 16, 2022 at 9:23 AM Bartosz Golaszewski wrote: > > Enums work for me - especially if the goal is to differentiate > > logical from physical - there should be a distinct enum for each. > > > > We won't even have to change the function signatures if we go with > enums - they already take an int and I'm in general against putting > enum types into function signatures in C as they give you a false > sense of a strong type. We are adding Rust to the kernel soon ;) then it's good for documentation of what it is actually expected to be. But I get your point. Yours, Linus Walleij