Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp275655rdb; Thu, 8 Feb 2024 05:52:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXEWhliaBp90lMyAPpqVjjoPY9qQD6xD8JRb4Dyuj3mKVYFNkh4+y4b0ohpyUJNon5wJyB+k7IV/d5ZSth6WrrXj7iV7mxmNXqdkxkVIg== X-Google-Smtp-Source: AGHT+IFQoIngLr4xqzQnHNG2i0LEJBqUZ1BPbDfRRaf3UuoWJUX5/E0GCBzWXuc2tiXE32YhNkbn X-Received: by 2002:a05:6214:4902:b0:68c:7cbb:272e with SMTP id pd2-20020a056214490200b0068c7cbb272emr5193394qvb.19.1707400367448; Thu, 08 Feb 2024 05:52:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707400367; cv=pass; d=google.com; s=arc-20160816; b=VQwhIE4mNfWxT9wRyhtsdjnoeQXJ42HYa/ByeX2dyM6TqjxmReq843h63UZVUNHx2G MDv2hfskC4CgAg/A6QmUUAqCZ5A/wt4X5ywePqfWf25GDFzBopp/+8ojODGecSk29LJZ n3wqfCBHPnaGEF2RAgxJ8ciQNROy+NZSM1ZJb7LUvnIjpDY4e6nSYbB99YB4VcLxky8w UrWJUSgc85m+XBdHIb2KqMih3ojeDqB7DHEDTNp4fFEdqSEAzZMxCfnjH0t0MADeoFMm LeiDCikE4TdSHorKgKsWZKwF+DghHyFhrX0xyBbzhI9dY61wN/sQrEfBl5shf4V02eqB 1aZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=TbvKAanWHb5NHCc78DYWj3IudYbRJBQeeD4twXOiMjs=; fh=K2NMnRbK2syiuhIK3GC3AtMFhZLCiQFSwGCEpzLcvJ4=; b=l36hefs/Ew3XDH8cWfHn8QRa2xb+6CX5cSr5+7pCQf5jk3S566PLpS2rsMgjGkBvQN blMn0NIEWrT2jD9M/gc6LRZdztwaMMMqMUfUmAH4vuYp7s09wgi5HmxNl5zgBcqbWYGa c3sjYgvJXg3k5AMG/Sobw39vItBjUerG3ovdIFIFEPvGSiR9ByZcZ38Z7K0lWBM4xG5n qjgmocISkrladgWGvbqU6HhUzCAR+YJgEZeeBec4SxRVggoPY9KhWZ4Qt5E97oAQ/Jw8 iKunVwsdz9EDt/VqdtiK59OurFqVwyJaRpwVdoo2Tfao2HqdpGmlYdXzSQn/q+ItmPYK tj4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zC6yuWek; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-58182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCU0iaYP2XWHOzESl04cUvexZTb3UCCXpR8VP/mMo4ebdRuNLHj012gJwRfcBpiWIMC65A5abw/bKHSWrCK7n21HkSfWRTe7Y2qbGqvWjw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id iv4-20020ad45ce4000000b0068c4ed35d85si56407qvb.23.2024.02.08.05.52.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 05:52:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zC6yuWek; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-58182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EB1E71C27576 for ; Thu, 8 Feb 2024 13:52:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A59497D40D; Thu, 8 Feb 2024 13:51:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zC6yuWek" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 3A7597B3C8 for ; Thu, 8 Feb 2024 13:51:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707400263; cv=none; b=KjX7oebvt+JJN2OxGDI9IDEWwdODawps45vXT3CFO/f6COKs34v0tab++KiuKL/40gpub1l5CXBreaITLlsk3wJevzNSnq4eGvnqbqM/n4YBFUc3MuewQD/kytMqlzTSp7TaL4pGi54uIx1aFg1Z03qT9Anwj+jMlB1jROoTDS0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707400263; c=relaxed/simple; bh=LEhcV/DRGuck7Ycrdv2oDV0m9G3uCaehI82ftyxYpr4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GDlfoD7mR+MaMOqlKavwpgz+u7aY87OgB8MZ2fmuxAi0Wogr7JDL4Ydeh2aU5mO6xZh66Z+ARUJQS8+H4Wk5ttquZzRZMYyX2SlT1q4NA7bDdj+DpYrTqdmaUq5pM4d/I+zaMNhTWfF6wB7bvI0oyT8SciJY/z9znLSycHQZoH4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=zC6yuWek; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-33b13332ca7so1023819f8f.2 for ; Thu, 08 Feb 2024 05:51:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707400259; x=1708005059; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TbvKAanWHb5NHCc78DYWj3IudYbRJBQeeD4twXOiMjs=; b=zC6yuWekFYcrKiTWNl7Irxn4vEeZ17gByRyi+df/h/PvJNCK7b3T4R4EHCimll3BKE nIClfBMPifpaXiXO+WRIt+snDCL7l4wEkZfx3mP+wVgxzgPvDsI0FuftZxCAhzSXJ5Op 7q5vdUmcIyGKAoA6oINY2QqJs5nj4fC60ATlGrGoepcrurHhzI+J7m2x6o2p9X9jwhDB BEV7O2mhS7Fe18rCIIfy1I8egOHHDdlIFDiek0IzFpSGPy0EcU+O2GkIf56BgaWAVkR4 EC/u0Du7oYuAV6Ikhk+zv39prZO5ew3p/9AZn4PsBxjOLrHRqY3pvEw8grKp11JpoJCp DbvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707400259; x=1708005059; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TbvKAanWHb5NHCc78DYWj3IudYbRJBQeeD4twXOiMjs=; b=t7c7Rh56vm/uET5B96lUsWw8H2e40k6D+vFm3pIc/YvFRnHcE376pdegfkqbHDEmbd JYhzOt/QfmAYE+qThg3X0EA6gjjDsy8xZ3NY1AOhxweXam5vrqxlEJEDM2dTf7K2Ncpk SBDK2ogoIIWIbczHkPNbqEGGpvPYomUa0aaLX3h3cnzyY78ie46M1AuOgY3mTNXk24oR CEyDMlOnspjSx1N1cPOFRnr0N3BqRZTUzIdfZVnnU6ErgxLZARhYvw73M3cBzUfaitzQ vWpmeYBgqpZUB/lusaI3wJpTd8r9J6FrsXRdxI5fqk3D94ecm3UyJ+2dAZvXAj/eqhG0 p+tQ== X-Forwarded-Encrypted: i=1; AJvYcCUwtXoUKn2/ZTA00JbPoHGQ+m6dqAP6ryfBUMgY5Xd9YeUzb0eEAHPBb5UHX+8Vxs7ZYgSHp24FiLWZkGuG7YSIwdKxLkMyOKuicMR5 X-Gm-Message-State: AOJu0YxCGaApIjwOCzVHkcC9U9PB9oXYqEGXzEVynPSAEmxijPLmF7Bu Y9cKWKczYlwAsvB9QCJlnJFd36zgU3ToZJSe1Prbm/oleVTIHdBRahGRH8TFmws= X-Received: by 2002:a5d:6da2:0:b0:33b:48ee:87f8 with SMTP id u2-20020a5d6da2000000b0033b48ee87f8mr6419735wrs.29.1707400259539; Thu, 08 Feb 2024 05:50:59 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWxecFnI5ihH/Uv6xAE+LBWZjq1Z4+yqXFAecpGoWOAMHQ29fr+wxVlBVy77BGkFo03I7SflzCMNZ5/D8ccCrjyEkEb63tIKUq1geecG3Xxh4kF6UkySVvixJ3u7nCL2jhCh2AKa+J8zjx56TuczSW8oh6o4dRRhagDl6MCwa4HOWHstI9QrOl7IjrLsGnk0fFTELH98+sHwIL3X5BHto5JRZ6mnl/xcLwjdbr9bZ+9HcYGK8ZDEu0/7tWqd70cBaAhNBIlviiM99BdfEgcdxdUCvLBaXA80NoSLWRn2D553cWEhLp4Gtg59m/t6L/G//O2Iv3iS5RPaAkEw1FxJ+/O4p/6CiU8QnlyjG9+/KAeM2akjgLJJehEc/7Bxe54BLQtqSitOsFB9bdxA239Zwes/r/F9svXbWNlJVE/Zhv+Es92ZBIlO+h/F97UsvmnVliTGrECuX0ARQxcoknXfkRAJCmku/VZRUFUTg9RYaWjzskW8oq4bdE/wN9jqypjttlQg/MbuD5cs3+Al3R25qPN2By6QkJuL3ph95ipsKRcUrB1376CPwWjkBtDm4yvS3qddVVm4WXFf7ylc+90yIM9wLak/jGUYYYJsmhx/Q== Received: from ta2.c.googlers.com.com (105.168.195.35.bc.googleusercontent.com. [35.195.168.105]) by smtp.gmail.com with ESMTPSA id m20-20020a056000181400b0033b43a5f53csm3618820wrh.103.2024.02.08.05.50.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 05:50:58 -0800 (PST) From: Tudor Ambarus To: broonie@kernel.org, robh@kernel.org, andi.shyti@kernel.org, semen.protsenko@linaro.org Cc: krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, kernel-team@android.com, willmcvicker@google.com, conor+dt@kernel.org, devicetree@vger.kernel.org, arnd@arndb.de, Tudor Ambarus Subject: [PATCH 07/12] spi: s3c64xx: let the SPI core determine the bus number Date: Thu, 8 Feb 2024 13:50:40 +0000 Message-ID: <20240208135045.3728927-8-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.687.g38aa6559b0-goog In-Reply-To: <20240208135045.3728927-1-tudor.ambarus@linaro.org> References: <20240208135045.3728927-1-tudor.ambarus@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Let the core determine the bus number, either by getting the alias ID (as the driver forces now), or by allocating a dynamic bus number when the alias is absent. Prepare the driver to allow dt aliases to be absent. Signed-off-by: Tudor Ambarus --- drivers/spi/spi-s3c64xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 68f95c04d092..ac47755beb02 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1279,7 +1279,7 @@ static int s3c64xx_spi_probe(struct platform_device *pdev) sdd->rx_dma.direction = DMA_DEV_TO_MEM; host->dev.of_node = pdev->dev.of_node; - host->bus_num = sdd->port_id; + host->bus_num = -1; host->setup = s3c64xx_spi_setup; host->cleanup = s3c64xx_spi_cleanup; host->prepare_transfer_hardware = s3c64xx_spi_prepare_transfer; @@ -1360,7 +1360,7 @@ static int s3c64xx_spi_probe(struct platform_device *pdev) } dev_dbg(&pdev->dev, "Samsung SoC SPI Driver loaded for Bus SPI-%d with %d Targets attached\n", - sdd->port_id, host->num_chipselect); + host->bus_num, host->num_chipselect); dev_dbg(&pdev->dev, "\tIOmem=[%pR]\tFIFO %dbytes\n", mem_res, sdd->fifo_depth); -- 2.43.0.687.g38aa6559b0-goog