Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp739379imn; Thu, 28 Jul 2022 14:21:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uNsqoiZWe6ltC/YN6ygV+nS4ZJ8+Qv6ljx64hqNPdl0sPyqXSiIMeBqgyyFPswVYcTc/FG X-Received: by 2002:a17:907:2cf5:b0:72b:7656:f162 with SMTP id hz21-20020a1709072cf500b0072b7656f162mr538345ejc.565.1659043316074; Thu, 28 Jul 2022 14:21:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659043316; cv=none; d=google.com; s=arc-20160816; b=pnAajuixtSFjLR0BiLC/VfKar7GeU/WtU1XNXFxAo89dfu0znUyO+pSejmnlVJ4ULw U0kAL6O0ytFK3fRwOFreJjQ5KGNnSk4ZekK95sTUx4DNuB8+Ae3nBvHHoFA8EDFNGmaQ W6FUCTSFbBgi6OKziIQ0HDlqbWnwBUvtJVSTBUGIgaqxZqV4ZkgVjfqAoFYukBFcHEqD DwKgcpEZh5UcltlVe+lIln48XtsH142LegydbhJmSGAmqm/VgGE4JxRy5ASbi1LfL/Hw 1hyRnHgpgsG4mIN3lweqrcC7vUA+CBgfggHeD7mnRTmMWbVQV+0BI0qxH0S2/GL2UWeF aLzQ== 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=MGd+LwdnoFiDkdx9krfKLdtj5Dt+fVCB4Sh2nY5wr3c=; b=aMX14gximf07mwrH/jQUszatiIbd+leQPIkeK4maEkv5TlBOH/+hEdarnE5SG9BycM qqOGiexou4gdcXgqr8KrJSUburtXk70YpPb+jGlGcjfTjlnrc22bZw1vRBGtlVHHBu6b WeloHNVkMSzZVlYmR1lD00NZtmENYil7/sVho7vkzbq8jbsrRN+LvWyDfTJpOS/r89uM ZQhfQCDrK/m96SHRIg0UfkfF3++A6sNTR8LZCZTbfDkdG7DK6+Hgl3uTLIBrFj2qFSjh LQWdO8NFJGqxxS5d+5swvajX1Ic5KdNZF03C7wC6+L6/0GP2oZAf8QG2VGaLx5iG/KWE 5sSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XF5dl8tQ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kq23-20020a170906abd700b0072b68ce3704si1340808ejb.655.2022.07.28.14.21.30; Thu, 28 Jul 2022 14:21:56 -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=@gmail.com header.s=20210112 header.b=XF5dl8tQ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229568AbiG1VFL (ORCPT + 99 others); Thu, 28 Jul 2022 17:05:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229735AbiG1VFF (ORCPT ); Thu, 28 Jul 2022 17:05:05 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BA706246; Thu, 28 Jul 2022 14:05:04 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id j22so5209472ejs.2; Thu, 28 Jul 2022 14:05:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=MGd+LwdnoFiDkdx9krfKLdtj5Dt+fVCB4Sh2nY5wr3c=; b=XF5dl8tQGdES7zL4V8n959l0CmDhfnXFccMVTbYlBUZLfCjQCW2qPMmfbke3Yd/FlX 9fABsmDUHF7O04RUphiNEmVpnNa0o23+ZIp6qz2Az2maaFB95cUS2ePsseQJdQ3OSfP2 DThFEvF+SzgTIl3wbZG0rnpOug+EUOHtBqSFTlOlcuBSXE6F8myfgnBWOZOVb8hoCvRn 8p7q8CTOwd6agOrclnY9O5I0Se3vNDlRCzTK7hrjbwu0o0sJN6ID6fRP9CHGgWB+HAAs Xnv1Czpa6LOkvjKxnkvJ9XZjINUpRvoqhTQCCbHWn+wKOjPVhKAQyOeKNsajyvA2Tl0o /GCA== 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; bh=MGd+LwdnoFiDkdx9krfKLdtj5Dt+fVCB4Sh2nY5wr3c=; b=Uug6i2tfZ03Hlh9SFk2zAHtDZwCS6JWrhQNFoo7vdXqvbFhmDjO9G4U1u0E8T3fqHZ PFQF8lJzzPqGIQxuQBAbdqQJPXANtzHypvPy4CQGy18ntT0Rz/2kX9voFB16SdzDV2HF eFDPeiMxMEKOTgI4iOlvfFEJzKlbddVw2H5gJ0zePX3wJtbPZB2M7gtEuMMwqUdQLz1d qB9RTon9rD84AQ+t4uSUCtCRErUP5+M78pJbMOPrM4YCPwXe5OmodZTnBwixkiskSg+2 21ZUeH97Da58eeuPZIZvphN6ZYbp5pdMky6sntxiXTtzFXQs2//lDm/KsgeXDbFSGAEd H55A== X-Gm-Message-State: AJIora/ZF89RFcqf8JtHEwd/NuaiySMZf9sVCmZjUSgtNFtHzcTNiEpN mmFMJ1/XXTHafzrwcVbAyrSTCv+9yZt3B3zVJEAQzEF6 X-Received: by 2002:a17:907:28d6:b0:72b:7497:76b with SMTP id en22-20020a17090728d600b0072b7497076bmr523196ejc.365.1659042302373; Thu, 28 Jul 2022 14:05:02 -0700 (PDT) MIME-Version: 1.0 References: <20220728142824.3836-1-markuss.broks@gmail.com> <20220728142824.3836-2-markuss.broks@gmail.com> In-Reply-To: From: Andy Shevchenko Date: Thu, 28 Jul 2022 23:04:24 +0200 Message-ID: Subject: Re: [PATCH 1/2] drivers: serial: earlycon: Pass device-tree node To: Greg Kroah-Hartman Cc: Markuss Broks , Linux Kernel Mailing List , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jonathan Corbet , Ard Biesheuvel , Jiri Slaby , Helge Deller , "Paul E. McKenney" , Borislav Petkov , Andrew Morton , Kees Cook , Randy Dunlap , Damien Le Moal , Thomas Zimmermann , Javier Martinez Canillas , Michal Suchanek , Andy Shevchenko , Arnd Bergmann , Wei Ming Chen , Bartlomiej Zolnierkiewicz , Tony Lindgren , Linux Documentation List , linux-efi , "open list:SERIAL DRIVERS" , "open list:FRAMEBUFFER LAYER" , dri-devel , Petr Mladek 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,FREEMAIL_FROM, 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 Thu, Jul 28, 2022 at 4:41 PM Greg Kroah-Hartman wrote: > On Thu, Jul 28, 2022 at 05:28:18PM +0300, Markuss Broks wrote: > > Pass a pointer to device-tree node in case the driver probed from > > OF. This makes early console drivers able to fetch options from > > device-tree node properties. ... > > + unsigned long node; > > That should not be an unsigned long, but rather an 'int'. Something got > messed up, of_setup_earlycon() should be changed to reflect this before > propagating the error to other places in the kernel. It's a pointer, but what puzzles me, why it can't be declared as a such: struct device_node *node; ? > And it's not really a "node" but an "offset", right? Seems no. -- With Best Regards, Andy Shevchenko