From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2178EC43460 for ; Thu, 8 Apr 2021 07:17:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E5A6661164 for ; Thu, 8 Apr 2021 07:17:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229819AbhDHHRw (ORCPT ); Thu, 8 Apr 2021 03:17:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbhDHHRw (ORCPT ); Thu, 8 Apr 2021 03:17:52 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09986C061760 for ; Thu, 8 Apr 2021 00:17:40 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id g8so2204031lfv.12 for ; Thu, 08 Apr 2021 00:17:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sHOGEjU+QLVjkfYh4MtLWCK0GiBMyL2W88ovw24/jfA=; b=gXuFmlNM9xl944esT8i2XnfB9JiY8FYyB6YskSzLyJ6lyGvcA3bPhFcrkzTmoGe7po waUk8v1uNDTV5G5eoM08eLO7/e1QfiqJO8tw844UnaYB2V+AUPjLNXkC1uCsXK1vMhQ1 e6pe+b5NY2jgcavGb0lw+T1XVbICvPWRkhQUt6ZkCTGJpYYoOeG6lYmvilZD6itU3neF E9wqPUspyFRujMIMDB/Xa/01HZptZFGt/6rz0UYvLT7ExkRLQGPZg7CwJrezsZlOmMvG v9NlkVuuv21IeZxeXj3a6+MA/cRdG4rNQxqy3rXg93slB/0ezzEwmdlnC/wFf/sV3TzD S+FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sHOGEjU+QLVjkfYh4MtLWCK0GiBMyL2W88ovw24/jfA=; b=q+zO3U8OprAxXO0rTVz+bX4r7C/bfsmdpuvbN7ruEEVfefhMU3fvGlwNGy5gtSVUwO eTWVhKOMMtnu/eBf/7cRWNaLagOaUN33qhpeiJp1I8F/LSHv71xifqntRVaISG4CFvfW C4NKsCU/nBfZ4tAOccBgzQbqpp2KImMWdvcnDqtn1+XcTK5h7Nnx1BQCyVaZ5nZuMmVF dyINNcTRU7xl9oRyEVgrl7605vOY44HkeKKzsLqiRQ3rBR5fwPyOKhEYB8SsoIjcubhF 7ztxhjl78oZVu650LLz+qv544zxAxV41IpA7wOGp/yoXYsK/EG/hi1qbemlps++Hz6HC 3Big== X-Gm-Message-State: AOAM530tjo+vEQOxEiB1+8So00066OhNPVIeRK1a7Mi2sTYSBYpXdYOq ZcAM22wcJ30ucylPwAy7m6CAIRQtqlOnHjziW9DTPA== X-Google-Smtp-Source: ABdhPJzdi9hUTmmsqrF4d30Yw3Gyu85aIWTE4jgQW4GSlImk4y1s49OjI4+qHSlzhnvFuEHutjj5IlrSxC7oMLPG3cc= X-Received: by 2002:a05:6512:c0b:: with SMTP id z11mr5351095lfu.586.1617866258558; Thu, 08 Apr 2021 00:17:38 -0700 (PDT) MIME-Version: 1.0 References: <20210405200259.23525-1-petr.vorel@gmail.com> <20210405225222.GD904837@yoga> In-Reply-To: <20210405225222.GD904837@yoga> From: Linus Walleij Date: Thu, 8 Apr 2021 09:17:27 +0200 Message-ID: Subject: Re: [PATCH 1/1] arm64: dts: qcom: msm8994: Reserve gpio ranges To: Bjorn Andersson Cc: Petr Vorel , MSM , Andy Gross , Rob Herring , Ricardo Ribalda , Konrad Dybcio , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Tue, Apr 6, 2021 at 12:52 AM Bjorn Andersson wrote: > On Mon 05 Apr 15:02 CDT 2021, Petr Vorel wrote: > > Simple testing with /sys/class/gpio/export showed that 85-88. > > 3 disables UART. I expect 0-2 are also reserved as on other msm8998. > > > > Are you saying that once you export these gpios the uart stops working? That might be a Fixes: but certainly not a regression. Using GPIO sysfs access is dangerous and if someone enables it into their kernel (which requires setting CONFIG_EXPERT) they are certainly aware that they are taking a risk. (Same goes for using the character device from userspace.) Yours, Linus Walleij