Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp64404rdb; Thu, 1 Feb 2024 02:04:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHDeZX5Y8BSZnTVr4a+j5quvcLsiGqAYRbR5Wc7SZOmRtiX7lIuq8cd/SdlpWO0qsKkrlCQ X-Received: by 2002:a9d:4b13:0:b0:6e1:1501:589c with SMTP id q19-20020a9d4b13000000b006e11501589cmr4409033otf.7.1706781894653; Thu, 01 Feb 2024 02:04:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706781894; cv=pass; d=google.com; s=arc-20160816; b=o2gEWZkDjk3ty98tgMGV1c88AlCDMOPZeON0/lwTaVP+Mxfcx6lj5o3Wt2c+I+DPZn TM/xMVmwKyIAkJWnbH6mrCnruOksX6zOBnt1OfyO3wKgkkJVQlCcAJccK17XW5jszOha fvj5V82TSawob+WEwo++yZd21I7rhj1GLQ2jFgdyQI5pzOF77WjzaOeC0gWXiFsqoi4Z o4i7DPWAt3hgnPkKqiBWhSgccEVKSm0nwfhh2TC/BJCF6ATurv8sOvhVO8+lDm68lFY8 HCsa1rmrhdt6ojY6FTzlnTOtWUrvqd++iPUvDnbBJjacFBQArxJKGQfQb/NEtL8WKs3O xYwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=TobXHOvp/dz8kxbMAIzwojAW/w9MH2Tdl2d4c7g2LAA=; fh=LDpCW1dVRmQPDK5tOX7+Mq2Qdr8eK2FhwHAGAOvkp4E=; b=eiTL4IIRqdqQPdugxAYVKVRjE2bl/gJy5Bp/wu8nro0QB8GnCK0xzsyz22iJ4MrLbX vlgFSn3O50KH2CGresiQQFKJjy5+SxJvrhPj1/PBNv6JTpHHbb2VlKiWyv+csToW3PRw kXlIasaSrI+RmmRc7qUxo42F1AJ2BsUuK3IBotFfDOeOJ5y8LchFnsi6iUF73+lRDXKl 41zCpnnkveCJdHtxk5nOSvmULCyqOQ5+fXrWs00GwsFR1c6hDelbHtc0RWJyMC9X9aRS Un/aandz3EybZugzUag/Mr/3ibcOKPC0ezP8VWs21KsWKrWWnnSvbzl2m9pk0sL7iVm2 rZFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fIKpjUVT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-2930-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2930-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCXqa/LgWIT0P9iao9Jb/L+coVt50TLZYUX9D/a0MK0QCFKxDI6UHrc2OS89vULhiU7nsQLZEr1VCnH/AB8iD3+FCvoCX9fz/WQyWqJbNQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u68-20020a637947000000b005d833363035si11125566pgc.790.2024.02.01.02.04.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 02:04:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2930-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fIKpjUVT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-2930-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2930-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2AC5528B5E7 for ; Thu, 1 Feb 2024 10:03:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F39B4DA19; Thu, 1 Feb 2024 10:03:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fIKpjUVT" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15D094D9FE; Thu, 1 Feb 2024 10:03:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706781782; cv=none; b=DB9BsDGy7PW8QDRn3+3jrS8Ydc0o+90iSbnDxir2I2tNvCGm5ZeUQ8dges+k4hKloAgNbtUd/HQXw5gTUYHhsUP3R0zljVcqqyN+xqe4QVmWn86UnjZ6KGc49c8fhuLahKND4lLLSmUFhc+PBpHS5EmxeEO0Tjdn+P1Hgw8HCPQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706781782; c=relaxed/simple; bh=NkpX4SR0tWKjeMojKZD/2vUJKUhdE2cs8VKLouOlFuQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=O4gCrSxJop7JXrqCSo2jISJXLxK2Oc+sOfitAG4goCK3prZAXYY4UoWAHXxDcWFIhhmb1xxWyB4W6n7bgxXajsUMX1EUj/XvfE3oOFWOZAVciYBEngj4WzKwPbTX63LBIjSA/6Ld6fDF5Sfp85PnjX1oqAaGD3q4DMb6kt6NXvk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fIKpjUVT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFD50C433F1; Thu, 1 Feb 2024 10:02:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706781781; bh=NkpX4SR0tWKjeMojKZD/2vUJKUhdE2cs8VKLouOlFuQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=fIKpjUVTCmz01limyDF4sdEe7dgd8lLjkZXFDQh+rgYg/Xr0d682yVRR9Pdb4PLSG VMAldDJz0aCxuh61jRfA1yy8htZF47ri6tZ56wJM8kUKTnewAZjK9C5J7JhoRQLKeD qbwR8YWpLdNkPxJiXqfZLy8GmQstBVdL6uQCceuUWKB6UOgmL9BKhasvogHfUY7bNe 8DCtfL5akj/tZY/TOytQIsi15Ub6luYpcXAYwC9oMRGO58t2A7e3hxlovArya3gTKB vLzgzezM8Ss3WRsEQzOG27ruxiQZf0PCJNk550FVBG0/VOjsSGQAfwFc4l1BoywDu1 lc25VVav3OBEw== From: Kalle Valo To: Linus Walleij Cc: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= , Arend van Spriel , Franky Lin , Hante Meuleman , Andy Shevchenko , Arnd Bergmann , Lee Jones , Brian Norris , Srinivasan Raju , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com Subject: Re: [PATCH 6/6] wifi: cw1200: Convert to GPIO descriptors References: <20240131-descriptors-wireless-v1-0-e1c7c5d68746@linaro.org> <20240131-descriptors-wireless-v1-6-e1c7c5d68746@linaro.org> Date: Thu, 01 Feb 2024 12:02:56 +0200 In-Reply-To: <20240131-descriptors-wireless-v1-6-e1c7c5d68746@linaro.org> (Linus Walleij's message of "Wed, 31 Jan 2024 23:37:25 +0100") Message-ID: <87h6isv6wf.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Linus Walleij writes: > The CW1200 uses two GPIOs to control the powerup and reset > pins, get these from GPIO descriptors instead of being passed > as platform data from boardfiles. > > The RESET line will need to be marked as active low as we will > let gpiolib handle the polarity inversion. > > The SDIO case is a bit special since the "card" need to be > powered up before it gets detected on the SDIO bus and > properly probed. Fix this by using board-specific GPIOs > assigned to device "NULL". > > There are currently no in-tree users. > > Signed-off-by: Linus Walleij [...] > +/* Like the rest of the driver, this only supports one device per system */ > +static struct gpio_desc *cw1200_reset; > +static struct gpio_desc *cw1200_powerup; Side comment about cw1200 driver: it's pretty bad that the driver supports only one device per system. As I haven't seen any real activity for this driver a long time I thinking of just removing it in the near future. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches