From patchwork Sat Oct 5 19:35:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Drew Fustini X-Patchwork-Id: 1993105 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=tenstorrent.com header.i=@tenstorrent.com header.a=rsa-sha256 header.s=google header.b=ZfWUJcgD; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=147.75.80.249; helo=am.mirrors.kernel.org; envelope-from=linux-gpio+bounces-10881-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [147.75.80.249]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XLbHX3YtCz1xtN for ; Sun, 6 Oct 2024 06:35:52 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D7E011F23359 for ; Sat, 5 Oct 2024 19:35:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62EF915FA72; Sat, 5 Oct 2024 19:35:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tenstorrent.com header.i=@tenstorrent.com header.b="ZfWUJcgD" X-Original-To: linux-gpio@vger.kernel.org Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89C941552E0 for ; Sat, 5 Oct 2024 19:35:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728156939; cv=none; b=rwsTnc1uGFu+ZiNFr/NK1foaaL/LRka7VKGncgELbOezZyVdotiByLKlhy3xfeHWJqHNRWGEESyIBLyP6Hd+OSIJLoK/3JV+8tsoeTHsJbD/B6Arax9i7xJYgT6/oyxgQARIOf9UPfLr5z07HnkutnrSV8vHCQaeM6Jyip6PTGw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728156939; c=relaxed/simple; bh=PWhRz5ntv1PMjmqcUQQ24v+XFnMX1HVF2DLDKHaUGLM=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=BQgc2zLqB8fbuA1OznbISNXVTh1N5hKH5axJF1nv6zik/3QY6+WWpe65boA+2RUTk+lhqdg1RXWl/pICmuYjaMdqRNak5AQB137kKJPMTOHWgeTWK0OrPy5/n13cDCad6d6hLrd+aUz8DFwXo98ecYuf57+IV3tZPPnziddT1s0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tenstorrent.com; spf=pass smtp.mailfrom=tenstorrent.com; dkim=pass (2048-bit key) header.d=tenstorrent.com header.i=@tenstorrent.com header.b=ZfWUJcgD; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tenstorrent.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tenstorrent.com Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-20b86298710so27137405ad.1 for ; Sat, 05 Oct 2024 12:35:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenstorrent.com; s=google; t=1728156936; x=1728761736; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=eUo8PbLV7DzH/3OkoXZxex7mQaAy2ITOpmg7h/Bwg5k=; b=ZfWUJcgDI3MUh9dNCp1TyJci+kXy22/aaIe4q6vbL7SYnih08jrXhYZnuBp6X2hjsq 3oAYTOM7J1RR0QB8zWn5KrUCPDx5IOH966Z/EnW+TIraQqIRzisOrwRAWewOvNbKoBG2 efIMpKZ9bY3ERg9xw2CW2cOIHkDVuFaYWJwnfm9Z7kWW4jCmCV98vovH0ijz/AQ4RL+9 7yJggycg/KkAk0znmuKwteekzbGj3k2GxcZZEhobahOEBBloKToZ+HLJXlM8xr1Dob7E TTmBYUCi50H6bmeTOaHX9v/ukgtNiBd8Pmbx6Dis1plH+s5WxirMrE1eOJa7TBQf2HAW sPcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728156936; x=1728761736; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eUo8PbLV7DzH/3OkoXZxex7mQaAy2ITOpmg7h/Bwg5k=; b=xVZj6TygKjiHImhE1TQtTRsPmA0JL18ayyDtllunwv30gL44zIykzSOkiCVYYim6Cw dJxlf3bnwg/G3g+HLK1lOqbGLnzgxhJi65BnUsWIjm2T7bPiUC3rqT01EbJu09WpytVt f+BzSMRE9LRKEkg8tUe5H+K6fggtuTgHUPCFPnKIPJ0h5auvz+t4cF8nSJMKRcrTD+ik jBCFcIWwhmvWyt574VRl5N/999G0YQtRLwAtw431bF2AxVTv0I3OYywc23XZKFBT7XLl M6yW/K1HvzPeKV3gs51jx7osKMe2VPKwEFakIM0svLY2kdz+gxd4bq7tacUSeE/zNgcO TOfQ== X-Forwarded-Encrypted: i=1; AJvYcCXHQN3lU5nSMjfuf65EpMrj1CQ83Z8lTms4Hork3F2dWeglAh8+CpwGXYvePxXsdtfvHWXZhALoDOZS@vger.kernel.org X-Gm-Message-State: AOJu0YyXdMGhKTG3tBTa8pqOuBbjqILH8BFgM3jY9e+xnJBwoGCibBFz GDKz6lNDWt0I4BgMB3vamucEKFLKYX3giKoiCpTdLTuco5+ABKwZf7BiD+HimkYRaH8RCFb2YVf T X-Google-Smtp-Source: AGHT+IHtwrV24xE/l+gDAETrNQXp2UVakTLTo1slvBKGsduAnZc+2iZyU7ukJKrX33skCIK41Z8bZQ== X-Received: by 2002:a17:90b:1b05:b0:2d3:cd5c:15bb with SMTP id 98e67ed59e1d1-2e1e63698a6mr8331157a91.25.1728156936433; Sat, 05 Oct 2024 12:35:36 -0700 (PDT) Received: from [127.0.1.1] (71-34-69-82.ptld.qwest.net. [71.34.69.82]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e20ae6dfa4sm2208372a91.2.2024.10.05.12.35.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Oct 2024 12:35:35 -0700 (PDT) From: Drew Fustini Subject: [PATCH 0/2] pinctrl: th1520: Improve code quality Date: Sat, 05 Oct 2024 12:35:26 -0700 Message-Id: <20241005-th1520-pinctrl-fixes-v1-0-5c65dffa0d00@tenstorrent.com> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAP+UAWcC/x3LQQqAIBBA0avErBsYLS26SrSonGogLFQiiO6et Hx8/gORg3CErngg8CVRDp+hygLmbfQro7hs0KRrRWQwbcpowlP8nMKOi9wc0Wlyk22rtmELeT0 D/yGf/fC+H2w6r2FmAAAA To: Drew Fustini , Guo Ren , Fu Wei , Linus Walleij Cc: linux-riscv@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Drew Fustini , Dan Carpenter X-Mailer: b4 0.14.1 Two code quality improvements for the new TH1520 pinctrl driver [1]: - Linus suggested using guarded mutexs so I've converted the thp->mutex lock to that usage in the first patch. - The 2nd patch is a fix for a missing return value that smatch found. The series is based on the linusw devel branch [2]. [1] https://lore.kernel.org/lkml/CACRpkdavPAv2sPRREQhx_A7EtOj6Ld_n+NcO+vH0QCnfVedXKw@mail.gmail.com/ [2] https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git/log/?h=devel Signed-off-by: Drew Fustini --- Drew Fustini (2): pinctrl: th1520: Convert to thp->mutex to guarded mutex pinctrl: th1520: Fix return value for unknown pin error drivers/pinctrl/pinctrl-th1520.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) --- base-commit: 2694868880705e8f6bb61b24b1b25adc42a4a217 change-id: 20241005-th1520-pinctrl-fixes-d20db68387e6 Best regards,