Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1462711rwb; Sun, 14 Aug 2022 04:38:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR7PzREsj/WF99YEQHkJDxMNfIN4SAyrWbn4df7o29XaFXfY3iquDTOJI14ZHtYqs48csFZN X-Received: by 2002:a63:fe52:0:b0:41d:2966:48d0 with SMTP id x18-20020a63fe52000000b0041d296648d0mr10064100pgj.151.1660477101666; Sun, 14 Aug 2022 04:38:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660477101; cv=none; d=google.com; s=arc-20160816; b=uu/yqqFwx2n1EQv6uoBFn8xhlv338x22DnWgVVKg1TgNr7k7g1Hj92EUT8OE1or0J9 Ni3x6Jdz2t4Sb668giBbjRABFD564Zo6EAJpp9d0h85J4M+/1XirpgXKu0c7qhgVaqDW S7S7Xyeb7Vl9JaY5Zgd3ci5kRCFXYojRVe/1dP9+Y+oOOqshHsvjiDr22jNSWOEQEnuP nZ3UV8FiIPjA9LrxqLlcIjeHzeacXzC8Tq7Lcmh4kx7ChzR910KweDBVgL0aTCONYyT8 nE9nCWGhYzX0iLOcr7d3k4EE+QEYJBKa/TjJjKVsmVfEwq5N8VWTnGSRF2/qsHHDxodX iIJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wzo/x007uCa6HXfMQAlfCGpeZPzzBdlngiaw5dHiDKo=; b=czBXG0iJeKCSFg1+eXsY0zpinqmUnZkNhQLIVShQFU13w4u9Zb8nNQIGVbMRjEgNCE ReggotQJ7iO/9KP1XfG1SJWkCxoYubKYim8U+17y4eB4ddsMpks3leCLTjHf3E+6tJ69 s5Ux8emSUA+uP/20TDgK0VoRzOWWZeoGrg2G8hns9tcjRy/ENunFbyAMGea+FvAAfV59 34fPhMSiuJAaX2dksytMSouExh0JMIAPRc4WgJ+Rs2RV5JfXsb1CmXlYZN/dnDaAqxo9 8XV6A+K5ZCOqfswppstMfv1RB8LOjp/b/gh4CsGpr+L+lc61YoPE3HVvAx84i9oq0p+F /ArA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="TRjw2/aF"; 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 70-20020a630449000000b0041be1dda445si7202151pge.431.2022.08.14.04.38.04; Sun, 14 Aug 2022 04:38:21 -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="TRjw2/aF"; 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 S231304AbiHNKeO (ORCPT + 99 others); Sun, 14 Aug 2022 06:34:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229723AbiHNKeN (ORCPT ); Sun, 14 Aug 2022 06:34:13 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 380ED5598; Sun, 14 Aug 2022 03:34:12 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id kb8so9113990ejc.4; Sun, 14 Aug 2022 03:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=wzo/x007uCa6HXfMQAlfCGpeZPzzBdlngiaw5dHiDKo=; b=TRjw2/aFGxFEPk773kgZUbxVW7yh9qhMpDpQo3Y796X6EV/1Ec/ZY05nU90L3Cpt/A f1aqu+MMBpw80UIDHv6fghQCmkf75jcR/WU1g90lMwxo1xeAtlbpgotJ4YTuNKsr4Lfx s/LcbiMvKF74XhX6E9ZVKolfX5GQRnEmzf5OuN7/33R3Dt6Et8on9JXVb9G8RqpqZyzC ZsUegrj1hPQa2YARtOSh+ZxWGtnROHrkfLThuFaRzuI/3j+2waMRAA9gKW3jHivF5xRs nDsX6+rJ9vewzZETDFmhN2DYEzYK4lbZeaqEy675YWz0HdkANyrKQpF9FrgSFw04f+pV rtcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=wzo/x007uCa6HXfMQAlfCGpeZPzzBdlngiaw5dHiDKo=; b=z3iIny2uEawkpimqs94NvRpWtwtci4VgoGD+yBbZ1LLgSRTxk6sb3RzDwabUVEqfH6 R0oW0606B16f+yRRA36rOxod8PzjNvGnU2DLprMezjrW6q3uW7RsT+d5P5w196e+Waj8 SFpSD9bNP0zkamSD22Wc/CHmROTav4V2tkbA4TegS2qA8SN6DX6lm3Jc0qlErh9FQudC kLJj5t40NYLrR0TCmKea5nCG8M9L3FeSeKFttGlciIbBr1oivEtTlDi0mIpPVXbK5Hhy 0KW5p8ZEDGVVwAzyANj960Ok8Y/v4blwTd+xgi2r5JKOqCR4SWmdben5Tt1aPBfjHKNu 7udA== X-Gm-Message-State: ACgBeo1D7zOiv1xczR55H9L4u9r1nr7NEjAS4+rb9SctgVP8kolbmYor B+0Am8TkLBM8gkDeca4i7Xg= X-Received: by 2002:a17:907:288a:b0:730:996d:c605 with SMTP id em10-20020a170907288a00b00730996dc605mr7191809ejc.682.1660473250865; Sun, 14 Aug 2022 03:34:10 -0700 (PDT) Received: from jernej-laptop.localnet (89-212-118-115.static.t-2.net. [89.212.118.115]) by smtp.gmail.com with ESMTPSA id n11-20020a17090695cb00b0072f9dc2c246sm2764897ejy.133.2022.08.14.03.34.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Aug 2022 03:34:10 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Chen-Yu Tsai , Samuel Holland Cc: Samuel Holland , Arnd Bergmann , Hans de Goede , Icenowy Zheng , Krzysztof Kozlowski , Maxime Ripard , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: Re: [PATCH 4/9] soc: sunxi: sram: Fix probe function ordering issues Date: Sun, 14 Aug 2022 12:34:09 +0200 Message-ID: <4204539.ejJDZkT8p0@jernej-laptop> In-Reply-To: <20220801030509.21966-5-samuel@sholland.org> References: <20220801030509.21966-1-samuel@sholland.org> <20220801030509.21966-5-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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,T_SCC_BODY_TEXT_LINE 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 Dne ponedeljek, 01. avgust 2022 ob 05:05:04 CEST je Samuel Holland napisal(a): > Errors from debugfs are intended to be non-fatal, and should not prevent > the driver from probing. > > Since debugfs file creation is treated as infallible, move it below the > parts of the probe function that can fail. This prevents an error > elsewhere in the probe function from causing the file to leak. Do the > same for the call to of_platform_populate(). > > Finally, checkpatch suggests an octal literal for the file permissions. > > Fixes: 4af34b572a85 ("drivers: soc: sunxi: Introduce SoC driver to map > SRAMs") Fixes: 5828729bebbb ("soc: sunxi: export a regmap for EMAC clock > reg on A64") Signed-off-by: Samuel Holland Reviewed-by: Jernej Skrabec Best regards, Jernej