Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp281678ybz; Fri, 17 Apr 2020 00:47:26 -0700 (PDT) X-Google-Smtp-Source: APiQypITDbQV9T2+Vv4mI8YBLkZx8dNKyDFieLmd5Mlr7CCbSf0MgQkUyBA4MIEmVOHmTxY0zfCI X-Received: by 2002:a05:6402:1246:: with SMTP id l6mr1811698edw.186.1587109645973; Fri, 17 Apr 2020 00:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587109645; cv=none; d=google.com; s=arc-20160816; b=Racpepz42q2mWYXBXlLoYP7NcZ7solhEdvhrISBa1B1HTprfaM4sr7JKKa7RY9v3Q0 +IuLX5WJNmX78814GHfQkPmrfbToTObPC9Eb3DEnzQ/GaVMS6usjBQre+E1eiOcEznqJ BKC8g3A52zL/vwUv5UWfHT4MJ2TfuUWt2Jlv4Nqo5I3A8bAm/bJZ1CZor0tfUIGvrf5L TmL/bIZcMStJg0u/Kivt5WEOV4BwCYhi9X1YV0YVAIB610NB+II/z8hKvskNIqZDHC0o KHelzQOrixA/FvjtfJ7rDMHg6X1RAI3lVzCcJI6i8E1e+7/5YUSsyv92IMKxLEOzeWHN 453Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references:dkim-signature; bh=7VxUyCozUFRQ3HWyk/FR84Y855XH8vC8ACtL+uxdHOg=; b=v73qOV8N4R7nbreM+ud3rebElZ/+1DR3bdP0yj5KkOM61xKBJq+GFmohG9blGqQY3X LwABPo90TCerqqQCEXYFpGCo+a/Fimsy5e+v6FzxNWfno5sOKBv/8VGTiSNDLhUrxxEM xUy8zIfRFy+IQUmLQurKVMq7dvjDroS5n9tovmTlnkTjdUiBLx8rgZDF7zEk0GeiBuNP dJjeyr5UXKwWryRsgiqR0FztRcgZBaOTkiLlbv3HsnTgzpMpQlsibMUGymZAXQ6jnB2H XFq5mHzwoWXPmqNezU2tw1YmaMU1n8htHp4sJvslv5mWU91WO4z6eHgY/41hPSENwdRm jy2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=eepHxWx0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cm6si341872edb.71.2020.04.17.00.47.01; Fri, 17 Apr 2020 00:47:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=eepHxWx0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728925AbgDQHnr (ORCPT + 99 others); Fri, 17 Apr 2020 03:43:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728770AbgDQHnq (ORCPT ); Fri, 17 Apr 2020 03:43:46 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30092C061A0C for ; Fri, 17 Apr 2020 00:43:45 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id t63so890800wmt.3 for ; Fri, 17 Apr 2020 00:43:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=7VxUyCozUFRQ3HWyk/FR84Y855XH8vC8ACtL+uxdHOg=; b=eepHxWx0UCQ3bBjYPAxbl27Om6GC70uRgirDesMlw0GcwtwctP16SCiHB+9lipG9Q0 MgNdJoEZVSmbzmwNbFctN8vwR/E4WL5PrBitcvaR4Mv5RZyqao5nKchsF6SAoVjQw6q8 1sBR/TQ8qY8RmucdLYRWbxuvwjwkdplwZck/fYRcvy1zb+UVhxu540CJET3ACX9t6WuQ IAlO3q/oQ0fiIwt/0iD1Y5oFpSq3BcdbdHfOVxTsU7YR4v7fa0aOShrllZ4IZQDEdY1z wcrFjOJJqsSYcm+HvrKBxOn3cHvgNXvN8UbAciWfiS7exv4J4Q6YoZlD4nsCuLB51+ze HL6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=7VxUyCozUFRQ3HWyk/FR84Y855XH8vC8ACtL+uxdHOg=; b=ZFnJHdRDlTzMJJdH5OUTPBqea4gN58isrGWTesbV5mRckseGDMnXCuGDxFAVSqYmzX j4DRVzeuhYTdllQ6l+6KLFkX2FXgth1DiFlGeJCr02qPAGLGFYhcImhEsFV2fkj6H661 kcRMqJoq6mTWkIAAVdFEkxj3f871UeBLbwbO3ZOpg0eu2BLIAf6loSgI3sDSgNRsyZsD 6NMCjW6nrbtdNxqna2UAffzKUADa0vV48+qYbEXM1JANYingF6++BGfuRcGQ7eVWa/43 AfvuqmSFuX5qoqRqIw0qatnM2QdZbFm2ZEAHW3EyzuW+4sihDhpy4uSWFNU2Z5cpLhWz rqVw== X-Gm-Message-State: AGi0Pub1kVJJi7cWsrtaTJ5LdNVv33gpsNHoXwDBuAJ0QYYygis3dMq/ zmCevdZF2lRVi8UK4qME7CeOvg== X-Received: by 2002:a05:600c:2214:: with SMTP id z20mr2124159wml.189.1587109423806; Fri, 17 Apr 2020 00:43:43 -0700 (PDT) Received: from localhost (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.gmail.com with ESMTPSA id l185sm6779244wml.44.2020.04.17.00.43.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Apr 2020 00:43:43 -0700 (PDT) References: <20200414200017.226136-1-martin.blumenstingl@googlemail.com> <20200414200017.226136-3-martin.blumenstingl@googlemail.com> <1ja73bbtqt.fsf@starbuckisacylon.baylibre.com> User-agent: mu4e 1.3.3; emacs 26.3 From: Jerome Brunet To: Martin Blumenstingl Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, Neil Armstrong , mturquette@baylibre.com, sboyd@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] clk: meson: meson8b: Fix the polarity of the RESET_N lines In-reply-to: Date: Fri, 17 Apr 2020 09:43:42 +0200 Message-ID: <1j8siublqp.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 16 Apr 2020 at 20:12, Martin Blumenstingl wrote: > Hi Jerome, > > On Thu, Apr 16, 2020 at 12:38 PM Jerome Brunet wrote: > [...] >> > >> > if (id >= ARRAY_SIZE(meson8b_clk_reset_bits)) >> > return -EINVAL; >> > >> > reset = &meson8b_clk_reset_bits[id]; >> > >> > + if (assert == reset->active_low) >> > + value = 0; >> > + else >> > + value = BIT(reset->bit_idx); >> >> if (assert ^ reset->active_low) >> value = BIT(reset->bit_idx); > I can do that, but I prefer "!=" over "^" because the result is > expected to be a bool (and because I'm not used to reading "^" for > logical comparisons) > will this work for you as well? yes > > > Martin